Hello I just upgraded to 3.04.07. Everything went smoothly but now i cant change language. INSTALL file says: "Once you have upgraded, please regenerate your templates in your chosen languages." How do i do that? thanks -- Przemysław Sztuczyński Centrum Systemów Informatycznych Uniwersytet Kardynała Stefana Wyszyńskiego tel. (22)561-89-21 (wew. 321)
Hi! 2011/12/21 Przemek Sztuczyński <p.sztuczynski@uksw.edu.pl>:
Hello
I just upgraded to 3.04.07. Everything went smoothly but now i cant change language. INSTALL file says: "Once you have upgraded, please regenerate your templates in your chosen languages." How do i do that?
You will find the details under the heading "Koha 3.2 and 3.4" here: http://wiki.koha-community.org/wiki/Installation_of_additional_languages_for... Basically you have to move into the misc/translator directory in the Koha source code, and then do something like this: perl translate install xx-YY where xx-YY is the language code you want to install. Best regards, Magnus Enger libriotech.no
On 21.12.2011 11:03, Magnus Enger wrote:
Hi!
2011/12/21 Przemek Sztuczyński<p.sztuczynski@uksw.edu.pl>:
Hello
I just upgraded to 3.04.07. Everything went smoothly but now i cant change language. INSTALL file says: "Once you have upgraded, please regenerate your templates in your chosen languages." How do i do that?
You will find the details under the heading "Koha 3.2 and 3.4" here: http://wiki.koha-community.org/wiki/Installation_of_additional_languages_for...
Basically you have to move into the misc/translator directory in the Koha source code, and then do something like this:
perl translate install xx-YY
where xx-YY is the language code you want to install.
Best regards, Magnus Enger libriotech.no
Thanks. I can now switch language and it works fine in OPAC However when i try to lookup a patron(...members/moremember.pl?borrowernumber=...), i get this error: Template process failed: file error - parse error - /usr/share/koha/intranet/htdocs/intranet-tmpl/prog/pl-PL/modules/members/moremember.tt line 446: unexpected end of input at /usr/share/koha/lib/C4/Templates.pm line 125. and im not sure what to do with it. moremember.tt looks fine for me. Any idea how to fix this? thanks -- Przemysław Sztuczyński Centrum Systemów Informatycznych Uniwersytet Kardynała Stefana Wyszyńskiego tel. (22)561-89-21 (wew. 321)
2011/12/28 Przemek Sztuczyński <p.sztuczynski@uksw.edu.pl>:
Thanks. I can now switch language and it works fine in OPAC
However when i try to lookup a patron(...members/moremember.pl?borrowernumber=...), i get this error: Template process failed: file error - parse error - /usr/share/koha/intranet/htdocs/intranet-tmpl/prog/pl-PL/modules/members/moremember.tt line 446: unexpected end of input at /usr/share/koha/lib/C4/Templates.pm line 125.
and im not sure what to do with it. moremember.tt looks fine for me.
Any idea how to fix this?
Hm, are you sure "perl translate install xx-YY" ran without errors? Sometimes there are errors in the .po files that can cause errors similar to what you are seeing. The best way I have found for testing .po files is to download the file, open it in a program called poedit and then try to save. It will give you an error message if there are errors in the file. Usually this is caused by a different number of "%s" placeholders in the original string and the translated version. Best regards, Magnus Enger libriotech.no
On 28.12.2011 12:31, Magnus Enger wrote:
2011/12/28 Przemek Sztuczyński<p.sztuczynski@uksw.edu.pl>:
Thanks. I can now switch language and it works fine in OPAC
However when i try to lookup a patron(...members/moremember.pl?borrowernumber=...), i get this error: Template process failed: file error - parse error - /usr/share/koha/intranet/htdocs/intranet-tmpl/prog/pl-PL/modules/members/moremember.tt line 446: unexpected end of input at /usr/share/koha/lib/C4/Templates.pm line 125.
and im not sure what to do with it. moremember.tt looks fine for me.
Any idea how to fix this?
Hm, are you sure "perl translate install xx-YY" ran without errors?
Yes.
Sometimes there are errors in the .po files that can cause errors similar to what you are seeing.
The best way I have found for testing .po files is to download the file, open it in a program called poedit and then try to save. It will give you an error message if there are errors in the file. Usually this is caused by a different number of "%s" placeholders in the original string and the translated version.
I did that, found 10 erros. Fixed them and did 'perl tranlsate install' again. Works fine now. Thanks! -- Przemysław Sztuczyński Centrum Systemów Informatycznych Uniwersytet Kardynała Stefana Wyszyńskiego tel. (22)561-89-21 (wew. 321)
participants (2)
-
Magnus Enger -
Przemek Sztuczyński