troubles adding a new entry in language file

xp2002

Joined: 2006-10-06
Posts: 1
Posted: Fri, 2006-10-06 07:34

Hi,

I've copied the matrix theme and renamed the theme to e.g. mytheme.
Then I changed the theme.inc. And works fine. I did the layout, set the language to dutch (nl) and it's perfect, but...

I added a little extra text at the bottom of the album.tpl:
{g->text text="Slogan"}

and edited the nl.po file:

msgid "Slogan"
msgstr "dit is een test"

And I only see on the site: "slogan".

I also tried to make the nl.po file.

What am I doing wrong? (or am I missing)

Thanks!

 
Tim_j
Tim_j's picture

Joined: 2002-08-15
Posts: 6818
Posted: Fri, 2006-10-06 10:05

You need to compile the corresponding .mo file.

Have a look at this documentation: http://codex.gallery2.org/index.php/Gallery2:Localization

Jens
--
Last Gallery v1 Developer and v1 translation manager.

 
sergii

Joined: 2006-10-29
Posts: 16
Posted: Mon, 2006-10-30 11:03

I tried to create a translation - that is
mkdir po (cd, copy makefile)
make ru.po
edit ru.po in vim
make install (all ok, no warnings)
verify - ok, a file is created, world-readable

oops, doesn't help - Gallery still shows the original text :(

 
mindless
mindless's picture

Joined: 2004-01-04
Posts: 8601
Posted: Tue, 2006-10-31 00:15

did a *.mo file get created by 'make install'?
does other russian text show ok? maybe select another language and switch back to russian.. also make sure to clear your browser cache.

 
sergii

Joined: 2006-10-29
Posts: 16
Posted: Tue, 2006-10-31 08:07

Yes, thank. It noticed that it was working after I restarted apache and mysqld (for unrelated reasons).
Weird. Must be some caching somewhere indeed... But reinstalling the module itself did not help.

Ah, nevermind.