Hi!
I have developed a new plugin for the language selection. Has other people told, the one used as default isn't so pratical to design.
I developed one using country flags for each language. It is "more modern" easier to customize.
For the moment, all languages are not with the plugin, but it is very easy to add flags.
To try it out and for more information for the link
http://zenphoto.rkemps.frI hope that some people will be interested by this :-)
Comments
I have no problem that you adapt the code for your purpose. If the purpose is right, then it is OK ;-).
I was thinking to add an option in the administration interface, to select languages and not automatically those who are there.
Why would you exclude a language. If no one visits needing it, then it is not an issue. If someone does visit that is more comfortable in that language, then why not let him see it?
I know that maybe the site data is not in most languages. But then the visitor is no worse for those than without the Zenphoto languages present. In fact, he is better, because at least some standard text is translated.
I planned this option for those who wish it. By default, all languages will be displayed, even those who where installed after the plugin installation.
If the administrator wishes to have only few languages then he can do so. But it will only change the selection on the front-end. In the back-end, nothing will be changed. At least, so will it be in the next versions.
I have modified the plugin following what I read on the translation group.
So it now takes the flags who are in the locale directory in consideration. If there isn't a flag for the language, it takes the one in the plugin directory. If there isn't too, the flag will not be displayed.
I will perhaps modify soon this behaviour and set a default flag.
And thanks a lot for adding the feature to choose languages in the next big release :-).
Thanks a second time for importing my plugin as official. It is for me a great honour.
How can I change the icons and the texts in version 1.4.1.6 with ZenPage ?
Thanks a lot. But it is immpossible to see/download this plugin. The plugin page (info/download) has been blocked.
One should use printLanguageSelector(); in the theme where it ought to appear, and uncheck "use flags" in the dynamic locale option, right?
For the record, this is how to place the function in a theme: printLanguageSelector(false);
Or printLanguageSelector(); and disable it in the admin.
I had another variable in the parenthesis, something from the past that is not relevant, and that made it so that only the flags would show no matter what the setting was.