Tags:
create new tag
view all tags

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

TWiki version: TWikiRelease04x00x05
TWiki plugins: DefaultPlugin, EmptyPlugin, InterwikiPlugin
Server OS: fedora linux
Web server: apache
Perl version: perl 5.8
Client OS: mac os x
Web Browser: firefox
Categories: Internationalisation

-- EricHanson - 15 Dec 2006

Answer

ALERT! 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

Change status to:
Edit | Attach | Watch | Print version | History: r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r3 - 2006-12-19 - JohnGeorges
 
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2026 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.