Member
Member
theWholeLifeToLearn   21-09-2010, 15:21
#1

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.fr

I hope that some people will be interested by this :-)

Member
Member
sbillard   21-09-2010, 17:38
#2

Nice job. Do you mind if we partially adapt this. I am thinking we would add the flag images to the locale folders for the languages and also show the flag in the selector drop-down that we have in admin (and maybe in the standard language selector plugin.)

Member
Member
theWholeLifeToLearn   21-09-2010, 21:35
#3

Thanks.
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.

Member
Member
sbillard   22-09-2010, 00:21
#4

I've wondered about this. However, I keep comming back to the following:

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.

Member
Member
smiguel   22-09-2010, 08:33
#5

GREAT!!!

Member
Member
theWholeLifeToLearn   22-09-2010, 09:20
#6

I understand your reasoning sbillard.
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.

Member
Member
sbillard   22-09-2010, 18:21
#7

It is really better not to hack the zenphoto scripts. Anyway, we will make this a feature of the 1.3.2 release. It is better solution than removing the language files from the install.

Member
Member
theWholeLifeToLearn   23-09-2010, 09:31
#8

Hi!

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.

Member
Member
Soleil   21-11-2011, 09:56
#9

Very good job with the flags, but I would like to use other icons and texts in the language selector.

How can I change the icons and the texts in version 1.4.1.6 with ZenPage ?

Administrator
Administrator
acrylian   21-11-2011, 10:59
#10

Copy the plugin, renamed it and modify it to fit your needs.

Member
Member
Soleil   21-11-2011, 11:57
#11

Thank you very much acrylian, but I cannot find this plugin. According to your documentation it should be flag_language_selector. Could you please tell me where I can find it in my gallery codes?

Administrator
Administrator
fretzl   21-11-2011, 12:29
#12

http://www.zenphoto.org/news/category/extensions/4

Member
Member
Soleil   21-11-2011, 12:40
#13

Hello Fretzi,

Thanks a lot. But it is immpossible to see/download this plugin. The plugin page (info/download) has been blocked.

Administrator
Administrator
acrylian   21-11-2011, 13:11
#14

You cannot download it as it is a standard plugin included in the Zenphoto package (which is noted on the page). To add further: The flags are actually an option of the dynamic_locale plugin. The flags itself are a component of the translation files within /zp-core/locale. As said you will need to do some changes as you of course should not change these (they will be overwritten on updates anyway).

Member
Member
Soleil   21-11-2011, 13:20
#15

On my zenphoto CMS I have unchecked the flags in dynamic_locale, but I get nevertheless flags.

Administrator
Administrator
acrylian   21-11-2011, 16:41
#16

If you use the static html cachec you of course need to clear that to see changes.

Member
Member
mikeque   23-11-2011, 21:09
#17

I am experiencing the same thing too, where I cannot get the flags to disappear. I am trying to get a pulldown menu in its place as was before the flag selector feature was introduced.

One should use printLanguageSelector(); in the theme where it ought to appear, and uncheck "use flags" in the dynamic locale option, right?

Administrator
Administrator
acrylian   23-11-2011, 21:14
#18

Yes. Looking at the code (to remind myself) you can either set the only parameter to TRUE to enable flags or NULL/FALSE to disable them (NULL is default). If it is set to NULL the plugin option is checked.

Member
Member
mikeque   25-11-2011, 16:37
#19

Sorry, I had seen that and made a syntax error. thanks.
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.

  
Powered By MyBB, © 2002-2026 MyBB Group.
Made with by Curves UI.