Language Selector v1.0.2

Release Notes

Provides a language_selector view to use in your theme's.
If you are using a default theme, there is an admin option to extend the header with the language selector
Check the admin settings of the plugin for things to configure.

Features:
 - language_selector/default view to use in theme's
 - configure the minimum amount of completeness in the admin settings to exclude minor translations in the language selector
 - handles translation preferences for logged in (user preferences) AND non logged in users (cookies)
 - incorporated autodetection of browser language (only for non logged in users) 
       - this replaces the automagic_translation plugin and requires NO core hack
 - language selector display country codes or flags
       - flags borrowed from translation browser plugin

Version History
1.0.2:
 - fixed: issue with selecting languages for non logged in users
 - added: flag for zh (chinese) language
1.0.1:
 - added: flag for hebrew
 - fixed: current language onclick action incorrect
 - fixed: dutch translations
1.0:
 - first release

ColdTrick IT Solutions
(c) 2009 ColdTrick IT Solutions

Like this plug-in? Consider making a donation.
image

  • For non logged in users clicking on the country flags will it now work?

    Last time I installed this for non logged in users clicking on the flags did not work.

  • This version should fix the problem when there are multiple languages selectable for non loggedin users. Please let me now if it isn't working for you.

    If there are any flags missing, please let me know and if you can provide a link to the flag or mail them to jdalsem@coldtrick.com

     

  • Hello! Great Plugin :)

    Unfortunately, selecting language for non logged in users doesn't work for me.
    (www.yourlife.eu/elgg)

    Regards, Gleb!

  • @gleb did you use the automagic translation plugin before you started using this plugin on your site?

  • Jeroen: If you want grab the swedish and danish flag off my site to add to pack for the next version.

  • @Jeroen
    No, I didnot use the automatic translation, only the translation browser. But it is not activated now.

  • I'm also having the same problem. Non-logged in users can't alter the language choice. The flags show up as supposed to but clicking on then doesn't change the content.

    Default language was set to Chinese and still didn't work.

    I'm using 1.5 and didn't use the automagic plugin before (or after).

  • @Jeroen - This is great stuff. I really appreciate the work you've put into this aspect of Elgg and will be implementing these tools on my site. Dhrup Chand has been helping me flesh out ideas for a full fledged multilingual toolset for Elgg - a conversation you might be interested in. Our discussions included the need for a language selector so you've just checked a major item off the list.

  • @Trajan and @Gleb this version should fix a problem with the languages not being effective for non-logged in users. I have reproduced a problem similar to the ones described in the comments of the previous version. The fix is related to languages not being completely loaded on the index page. I register a hook that forces the reload of the languages so they should be available. Maybe you can try something for me; in mod/languages_selector/start.php on line 25 lower the number 400 to 1 and try changeing languages again on your frontpage. If this doesn't work it is an other/new issue.

  • Does anyone know how I can center the flags to the middle of the page?

    At the moment they are hard left above the main content and look totally out of place.

    I had a look at mod/language_selector/views/default/language_selector/default.php

    but am not sure how to (where to) add the align="center"

    Cheers

Jeroen Dalsem

Owner of ColdTrick IT Solutions, developing social networking sites for the dutch market

Stats

  • Category: Language packs
  • License: GNU General Public License (GPL) version 2
  • Updated: 2019-3-20
  • Downloads: 11046
  • Recommendations: 36

Other Projects

View Jeroen Dalsem's plugins