Member
Member
mtc   23-09-2013, 05:43
#1

Hi, I would like to include a language selection menu in my navigation bar, i can't find a way to call the dynamic_locale function from any other means than the flag menu.
Thanks in advance

Administrator
Administrator
acrylian   23-09-2013, 12:05
#2

The dynamic locale has two options a dropdown selector or the flag list. You could also use this plugin to create simple links to switch: http://www.zenphoto.org/news/seo_locale

Member
Member
mtc   23-09-2013, 12:59
#3

Thank you, I have unchecked the flags option in the plugin admin and i still don't get the text, anyway i'd to keep the flags menu. I was hoping to call the function from a text string, i saw an old thread related to this by using a form but it did not work
http://www.zenphoto.org/support/topic.php?id=3874 (I'm not really
sure how to implement it)

Administrator
Administrator
acrylian   23-09-2013, 13:55
#4

That topic is 5 years old and surely outdated. Look at the plugin I referenced and build the links yourself.

Member
Member
mtc   23-09-2013, 15:16
#5

Yes, i thought it was something like that, i'll try to look into the plugin

Administrator
Administrator
acrylian   23-09-2013, 17:55
#6

I assume your site will not have all languages so you can easily create those two links. The plugin entry above tells what urls you need to use to switch via url.

Member
Member
mtc   25-09-2013, 07:24
#7

Thank you, i think i beginning to understand...
One more thing: the plug-in only seem to work when the site is "live", is there a way to enable it on the localhost?

Administrator
Administrator
acrylian   25-09-2013, 08:26
#8

All plugins do work on localhost as we do our primary development on those (I use MAMP on Mac). If languages don't work that mostly means the server (regardless if live or local) does not have the locales for those languages installed and/or no gettext support. Gettext is a PHP server side extension.

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