SID-02241: Language pt_BR
Hi,
I am trying to configure twiki to portuguese/Brazil (pt_BR).
I tried:
$TWiki::cfg{Site}{Locale} = 'pt_BR.utf8';
$TWiki::cfg{Site}{LocaleRegexes} = 1;
$TWiki::cfg{Site}{Lang} = 'pt_BR';
$TWiki::cfg{Site}{FullLang} = 'pt';
But it doesn´t work. I tried to change for other languages (fr, for example), and it doesn´t work either.
What I am doing wrong? Should I change some other configuration?
I am using
TwikiVM -6.0.1-1
Thanks
--
Marcelo RiveraSilva - 2016-08-16
Discussion and Answer
I guess you missed to activate
{UserInterfaceInternationalisation} ? It is the very first item under the "Localisation" heading.
To quote from
configure:
Note: for user interface internationalization, the only settings that
matter are {UserInterfaceInternationalisation}, which enables user interface
internationalisation, and {Site}{CharSet}, which controls which charset TWiki
will use for storing topics and displaying content for the users. As soon as
{UserInterfaceInternationalisation} is set and the required
(
Locale::Maketext::Lexicon and
Encode /
MapUTF8 Perl
modules) are installed (see the
CGI Setup section above), the
multi-language user interface will
just work.
--
Harald Jörg - 2016-08-16
Work in Twiki VM, but dosen't work in twiki personal.
TwikiPersonal not support this method?
Now i using twiki personal, for test...
--
Marcelo RiveraSilva - 2016-08-19
Erm.... (looking embarassed to the floor) I admit that I've never tested this setting in
TWikiPersonal. You are correct, it doesn't work - but that's a bug and not a feature. The automatic detection for Perl dependencies fails for all "optional" modules, in this case
Locale::Maketext::Lexicon (I bet you find entries in your personal TWiki's
data/warn201608.txt file).
I'll look into it during the weekend. Maybe the fix is just to add a few (more) modules to the package, then I'll upload a new version in the next days.
--
Harald Jörg - 2016-08-19
Done:
https://sourceforge.net/projects/twiki/files/TWiki-Personal/TWiki-Personal-Win-6.0.3-alpha.zip/download
It turned out to be not too difficult - just adding a couple of modules seemed to be sufficient to get it working. Thanks for the feedback!
--
Harald Jörg - 2016-08-20
Thanks! I will try.
--
Marcelo RiveraSilva - 2016-08-22
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.