SID-00124: Changing default locale
| Status: |
Answered |
TWiki version: |
4.2.4 |
Perl version: |
5.8.4 |
| Category: |
CategoryLocalization |
Server OS: |
Ubuntu 8.04.1, kernel |
Last update: |
17 years ago |
Localization is working fine for me. The only thing that I want is change the pt_BR to my default language no matter what. I mean, even when the browser declares himself in english. Itīs an internal site only in portuguese. I want to change it in a way that it will maintain even after an upgrade. Thanks in advance.
--
GabrielHahmann - 23 Feb 2009
Discussion and Answer
In configure click on
Yes, I have read all the documentation button and set
{UserInterfaceInternationalisation} on,
{Languages}{pt}{Enabled} on,
{Site}{Lang} pt,
{Site}{FullLang} pt_BR
You could also remove the language bar from
WebTopBar.
--
EnriqueCadalso - 23 Feb 2009
The {UserInterfaceInternationalisation} on and {Languages}{pt}{Enabled} on are ok, but the other two doesn't exist on my twiki. Do I need to change this directly on the configuration file?
I've alredy removed the language bar from
WebTopBar but when the client send tha it's using english as default language, the wiki appers in english.
Where is the other place where I can change those settings?
Thanks for you reply.
--
GabrielHahmann - 25 Feb 2009
Don't you have a
Yes, I've read all the documentation button in your configure page? It was there up to 4.2.3, I don't know if it was removed on 4.2.4
--
EnriqueCadalso - 25 Feb 2009
Enrique,
The button is there on the configuration page, but these options doesn't exist. In the localisation section are these options and their values:
{UserInterfaceInternationalisation} yes
{Languages}{pt}{Enabled} yes
Other language files disabled
{DisplayTimeValues} gmtime
{DefaultDateFormat} $day $month $year
{UseLocale} yes
{Site}{Locale} pt_BR.utf8
{Site}{LocaleRegexes} yes
{LowerNational} blank
{Site}{CharSet} iso-8859-1
{PluralToSingular} yes
I dont find the options you talking about!
Thanks in advance.
--
GabrielHahmann - 26 Feb 2009
Humm, that's very strange. I have three sites here with different versions and each of them have those options. Tray to set it on
Main.TWikiPreferences defining
* Web default Language
* Set LANGUAGE = pt_BR
Otherwise insert on /var/www/twiki/lib/LocalSite.cfg
$TWiki::cfg{Site}{Lang} = 'pt';
$TWiki::cfg{Site}{FullLang} = 'pt_BR';
--
EnriqueCadalso - 26 Feb 2009
Enrique, it worked perfectly.
I've used the first one, Set LANGUAGE in the Main.TWikiPreferences. I think it's easier when upgrading TWiki, backup and other things.
Thanks a lot for your help.
Best regards,
Gabriel.
--
GabrielHahmann - 02 Mar 2009
If you answer a question - or someone answered one of your questions - please remember to edit the page and set the status to answered. The status selector is below the edit box.