ex20 wrote:
> Hi!
> 
> 1) Is the language data caching somewhere? I added a new language, changed
> some texts in the appropriate po file, changed config (configs shows
> that Im using my language), but texts from po file are not showing.
> Where can I find functions that read from po file?
> 

For one thing, you need to compile the .po files to .mo for the changes
to be used. You would do something like:

 msgfmt -f -o laconica.mo laconica.po

in the appropriate directory to do this.

If you've added a NEW language, you would also need to make sure it's
defined in the big table in lib/language.php.

If you're using a Debian-based distro, you would need to make sure your
OS has locale support for that language installed. (See 'Translations
on Debian/Ubuntu' at http://laconi.ca/trac/wiki/Installation)

Finally, if you're just setting the 'default language' in Laconica's
config file, that's unlikely to have any effect. That setting is only
used if a) no user is logged in (it would use they language they chose
in their settings), and b) the browser is not requesting a specific
language. All modern browsers will be requesting a language, unless
you have deliberately configured it not to, and Laconica will supply
the requested language. In other words, the default site language you
set in the config file is pretty much always ignored.

Cheers,

Ciaran
_______________________________________________
Laconica-dev mailing list
[email protected]
http://mail.laconi.ca/mailman/listinfo/laconica-dev

Reply via email to