Question
When I enable {UserInterfaceInternationalisation} in configurations and change my language to 'fr' I get this error.
Software error:
Can't call method "language" on unblessed reference at /usr/local/twiki/lib//TWiki/I18N.pm line 161.
But then I tried to to make a en.po file in my locales directory and got this error:
TWiki detected an internal error - please check your TWiki logs and webserver logs for more information.
maketext doesn't know how to say:
Edit this topic text
as needed
I was reading through the code and it seems that without {UserInterfaceInternationalisation} it uses Fallback.pm which does
not use TWiki.pot as noted in another support topic.
This seems like a defect and encourages users to simply change the template instead of using maketext, since it doesn't do anything but pass the text through without regards to the TWiki.pot file. I can see this framework allowing people a great deal of flexibility to customize wording for a company or particular purpose, it is unfortunate it does not seem to work.
Environment
--
EricHanson - 15 Dec 2006
Answer
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.
i believe that the lib path is not correctly set in the configure...
/usr/local/twiki/lib//TWiki/I18N.pm
in the above line, notice lib//TWiki
should be lib/TWiki
--
SteveStark - 15 Dec 2006
I had the same problem with the correct path configured.
Check that the webserver has read access to the "locale" directory and all the files in it. This fixed the problem for me.
--
JohnGeorges - 19 Dec 2006