Hi,
I'm having some hard time to set portuguese (not the brazilian one) the G2 default language. I've been reading other posts, trying everything there ... but nothing works.
Quote:
Gallery version = 2.2.1 core 1.2.0.1
PHP version = 4.4.4 cgi
Webserver = Apache/1.3.37 (Unix) mod_fastcgi/2.4.2 mod_auth_passthrough/1.8 mod_log_bytes/1.2 mod_bwlimited/1.4 FrontPage/5.0.2.2635.SR1.2 mod_ssl/2.8.28 OpenSSL/0.9.7a PHP-CGI/0.1b
Database = mysqlt 4.1.21-standard, lock.system=flock
Toolkits = ArchiveUpload, Exif, Getid3, ImageMagick, LinkItemToolkit, NetPBM, Thumbnail, Gd, Ffmpeg, SquareThumb
Acceleration = none, none
Operating system = Linux diamond.nocdirect.com 2.6.9-42.0.10.ELsmp #1 SMP Tue Feb 27 10:11:19 EST 2007 i686
Tema de defeito = matrix
gettext = enabled
Locale = pt_PT
Browser = Mozilla/5.0 (Windows; U; Windows NT 5.1; pt-PT; rv:1.8.1.4) Gecko/20070515 Firefox/2.0.0.4
Rows in GalleryAccessMap table = 42
Rows in GalleryAccessSubscriberMap table = 126
Rows in GalleryUser table = 411
Rows in GalleryItem table = 122
Rows in GalleryAlbumItem table = 12
Rows in GalleryCacheMap table = 0
i don't know
could anyone help me?
Best regards.
Note:
- I have gettext enabled on PHP
- My server suports :
portuguese
pt_PT
pt_PT.iso88591
pt_PT.iso885915@euro
pt_PT.utf8
pt_PT@euro
Posts: 8601
I think you need to describe the problem in more detail.. what is "nothing works"?
If you copy/pasted the above System Information from your Gallery then it looks like translations may be working. I see "Tema de defeito" in the output. Perhaps the only problem is that the Portuguese translation is only at 21.5% complete, so you still see a lot of English text?
Posts: 4
Sorry
Thank for your availability to answer my question.
When i said 'nothing worked', I meant the translated text on-screen\output. I also knew the translation wasn't complete, but thank's anyway.
And I also think, that i found the problem, my server supports the follows locale's:
- portuguese
- pt_PT
- pt_PT.iso88591
- pt_PT.iso885915@euro
- pt_PT.utf8
- pt_PT@euro
and the gallery locale is 'pt', 'cause if I add ?g2_language=pt to main.php the gallery URL, it will be translated.
Is there any way to find a solution?
Other thing,
I found a link for G2 translation http://codex.gallery2.org/Gallery2:Localization, but i'm having some doubts about the 1st steps for how to create the location and start with the files translation for pt_PT (in WIN XP OS). Could you help with this too?
Thanks!
Posts: 8601
what did you pick for default language in site admin / general? is "use browser preference" checked? what is your user language preference in "your account"?
try these settings:
default = Portuguese
use browser preference = not checked
user language = <none>
Posts: 4
Hi,
- No, the Check Browser Preference isn't checked.
- My Account language is 'none'
The settings you gave me:
Quote:
were already my own settings.
I've already tried to set 'Portuguese' my default language, both on Site Admin and User Account, and i've already checked my Browser and OS settings for language preference (even knowing that I unchecked the Check Browser Preference )
My browser's IE7, Firefox 2.04, Opera 9.21; Windows XPsp2 OS (Portuguese);
( PS: Sorry my english )
Posts: 8601
you mentioned g2_language=pt works.. does g2_language=pt_PT work?
you could modify your modules/core/classes/Gallery.class file.. find the $this->_translator->init call and change $language to 'pt'
Posts: 4
Yes, ?g2_language=pt does work. I've tried adding g2_language=pt_PT to main.php, but didn't work, only the pt locale.
I modified modules/core/classes/Gallery.class file and changed $language to 'pt' and worked perfectly.
Thank you very much mindless! Seriously, you're the man !
By the way, this is a great piece of software, one of the best out there!
Congratulations!