WordPress.org

Support

Support » Plugins and Hacks » [Plugin: Global Translator] Resequencing the Flags

[Plugin: Global Translator] Resequencing the Flags

  • nhowarth
    Participant

    @nhowarth

    Hi,

    Does anyone know how I can resequence the order in which the flags are displayed. Living in the Eastern Mediterranean, I’d like ‘Greek’ to come first, followed by ‘Russian’ and then ‘Arabic’.

    I’m happy to hack the php – but the problem is knowing where to start – and my programming skills are 40 years out of date.

    Thanks,

    http://wordpress.org/extend/plugins/global-translator/

Viewing 2 replies - 1 through 2 (of 2 total)
  • I need a solution to this too. Please help.

    nhowarth
    Participant

    @nhowarth

    Here’s the solution I received from the author – I’ve implemented it on my blog and it works fine:

    The order of the flags depends on the order of the items inside the arrays on header.php.

    Suppose you’re using Google Translation Engine and your blog language is english. If you want to change the flags order you have to modify the order of the items inside the array on line 209 of header.php:

    ‘en’ => array( ‘en’ => ‘English’,
    ‘it’ => ‘Italian’,
    ‘ko’ => ‘Korean’,
    ‘zh-CN’ => ‘Chinese (Simplified)’,
    ‘pt’ => ‘Portuguese’,
    ‘de’ => ‘German’,
    ‘fr’ => ‘French’,
    ‘es’ => ‘Spanish’,
    ‘ja’ => ‘Japanese’,
    ‘ar’ => ‘Arabic’,
    ‘ru’ => ‘Russian’,
    ‘el’ => ‘Greek’,
    ‘nl’ => ‘Dutch’,
    ‘bg’ =>’Bulgarian’,
    ‘cs’ =>’Czech’,
    ‘hr’ =>’Croat’,
    ‘da’ =>’Danish’,
    ‘fi’ =>’Finnish’,
    ‘hi’ =>’Hindi’,
    ‘pl’ =>’Polish’,
    ‘ro’ =>’Rumanian’,
    ‘sv’ =>’Swedish’,
    ‘el’ =>’Greek’,
    ‘no’ =>’Norwegian’
    ),

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Plugin: Global Translator] Resequencing the Flags’ is closed to new replies.