New language + Flag

Powerfull XFileSharing version

Moderator: admin

Posts: 146
Joined: Feb 10, 2010 8:17 pm

New language + Flag

#1 Postby Timmy » Feb 11, 2010 11:03 pm

hi guys,

Im with problems creating a new language for my site.
I want to add the portuguese language, and I make that work, the problem is that appears the english flag. But the link is working....
Here what I have in file:

Code: Select all

 # Language list to show on site
 languages => ['english','portuguese','russian','german','french','arabic','turkish','polish','thai','spanish','japan','hungary'],

 show_server_stats => '1',

### NEW 1.7 ###

 # Start mp3 playing instantly
 mp3_mod_autoplay => '',

 # Match list between browser language code and language file
 # Full list could be found here:
 language_codes => {'en.*'             => 'english',
                    'pt'               => 'portuguese',
                    'cs'               => 'czech',
                    'da'               => 'danish',
                    'fr.*'             => 'french',
                    'de.*'             => 'german',
                    'p'                => 'polish',
                    'ru'               => 'russian',
                    'es.*'             => 'spanish',

If I change:

Code: Select all

 languages => ['english','portuguese'


Code: Select all

 languages => ['english','pt'

the portuguese flag appears, but the text appears "Pt" and I want to show "Portuguese". Also the link stop to work...

What am I doing wrong?

Thank you

Posts: 146
Joined: Feb 10, 2010 8:17 pm

#2 Postby Timmy » Feb 11, 2010 11:52 pm

Solved! :)

I changed main.css


Code: Select all

.trf-pt{background-position:-864px 0;}

To this:

Code: Select all

.trf-portuguese{background-position:-864px 0;}

Now is working

Return to “XFileSharing Pro”

Who is online

Users browsing this forum: No registered users and 0 guests