Topics

User Functions

Events

There are no upcoming events

What's New

Stories

No new stories

Comments last 2 weeks

No new comments

Trackbacks last 2 weeks

No new trackback comments

Links last 2 weeks

No recent new links

NEW FILES last 14 days

No new files

Welcome to Geeklog Friday, May 24 2013 @ 12:41 AM EDT


 Forum Index > Support > Plugin Support New Topic Post Reply
 Language and G2Bridge
   
casper
 03/18/10 02:40PM (Read 1068 times)  
++++-
Regular Poster

Status: offline


Registered: 02/11/04
Posts: 113
No matter what Im changing, I cant get gallery to use the right language.
This site use only one language, but gallery still only use english when logged in via GL.
Using gallery directly, right language are used...

What am I missing????

 
Profile Email
 Quote
suprsidr
 03/18/10 06:08PM  
+++++
Full Member

Status: offline


Registered: 12/29/04
Posts: 552
Am I missing your language?
PHP Formatted Code

    $GL_to_G2_language = array(
        //'bosnian'=>'xx',  // *** No mapping
        'bulgarian'=>'bg',
        'chinese_big5'=>'zh',
        'chinese_gb2312'=>'zh',
        'chinese_simplified_utf-8'=>'zh_TW',
        'chinese_traditional_utf-8'=>'zh',
        //'croatian_utf-8'=>'xx',   // *** No mapping
        //'croatian'=>'xx', // *** No mapping
        'czech'=>'cs',
        'danish'=>'da',
        'dutch'=>'nl',
        'english_utf-8'=>'en_GB',
        'english'=>'en_GB',
        'finnish_utf-8'=>'fi',
        'finnish'=>'fi',
        'french_canada'=>'fr',
        'french_france'=>'fr',
        'german_formal'=>'de',
        'german_utf-8'=>'de',
        'german'=>'de',
        'hebrew'=>'he',
        'hellenic'=>'el',
        //'indonesian'=>'xx',   // *** No mapping
        'italian'=>'it',
        'japanese_utf-8'=>'ja',
        'japanese'=>'ja',
        'norwegian'=>'no',
        'polish'=>'pl',
        'portuguese_brazil'=>'pt_BR',
        'portuguese'=>'pt_PT',
        //'romanian'=>'xx', // *** No mapping
        'russian'=>'ru',
        //'slovak'=>'xx',   // *** No mapping
        'slovenian'=>'sl',
        'spanish_argentina'=>'es',
        'spanish'=>'es',
        'swedish'=>'sv',
        'turkish'=>'tr'
        );
 


This is not my strong point, so if there are any I'm missing please fill me in.

-s

FlashYourWeb and Your Gallery with the E2 XML Media Player for Gallery2 - http://www.flashyourweb.com
 
Profile Email Website
 Quote
casper
 03/18/10 07:32PM  
++++-
Regular Poster

Status: offline


Registered: 02/11/04
Posts: 113
Ah!
Added 'norwegian_utf-8'=>'no',
That did the trick Wink

Its always in the last place you look! Thanks agian!

And a little follow-up:
How to tweak for better performance?
Page-rendering gets from 0,23 sec, to 1,20 sec with G2Bridge enabled.
After setting cache options i G2, the time drops to 0,93 sec..

 
Profile Email
 Quote
suprsidr
 03/18/10 07:38PM  
+++++
Full Member

Status: offline


Registered: 12/29/04
Posts: 552
It all depends on the number of options enabled in G2.
G2 Performance_Tips

-s

FlashYourWeb and Your Gallery with the E2 XML Media Player for Gallery2 - http://www.flashyourweb.com
 
Profile Email Website
 Quote
casper
 03/18/10 07:56PM  
++++-
Regular Poster

Status: offline


Registered: 02/11/04
Posts: 113
Thank you so much!

 
Profile Email
 Quote
Content generated in: 0.50 seconds
New Topic Post Reply

Normal Topic Normal Topic
Sticky Topic Sticky Topic
Locked Topic Locked Topic
New Post New Post
Sticky Topic W/ New Post Sticky Topic W/ New Post
Locked Topic W/ New Post Locked Topic W/ New Post
View Anonymous Posts 
Able to post 
Filtered HTML Allowed 
Censored Content