Error when installing pt-PT translation
Hi all, I'm using "Koha Virtual Appliance 3.2 – Configured" and I'm trying to translate Koha to Portuguese (pt-PT). But I get an error when I do "perl translate install pt-PT" under "/home/koha/koha-dev/misc/translator" The error is: % s: Unknown or unsupported format specification I do a little search and see a message saying that "% s" should be "%s", I edit .po file, replace and save it. But when I run the command again the error occurred again (it seem to be in other place). I try the .po files that came with Koha Virtual Appliance and with the recent translation files. The same occur. If someone know how to solve this or if anyone can give me a clue I appreciate it very much. Thank's to everyone, Ivo Esteves PS: Sorry for my poor English :)
Hi Ivo,
I'm using "Koha Virtual Appliance 3.2 – Configured" and I'm trying to translate Koha to Portuguese (pt-PT).
But I get an error when I do "perl translate install pt-PT" under "/home/koha/koha-dev/misc/translator"
The error is: % s: Unknown or unsupported format specification
I do a little search and see a message saying that "% s" should be "%s", I edit .po file, replace and save it. But when I run the command again the error occurred again (it seem to be in other place).
It means that your .po file's syntax is invalid. Then it breaks the translation installation process. This can occur when .po files are translated by hand (not on Pootle). The person who edit .po files is in charge and has to verify that his files's syntax is valid. You have to track those kind of syntax errors and fix them all.
I try the .po files that came with Koha Virtual Appliance and with the recent translation files. The same occur.
Which version exactly? If you're a translator, you must NOT work on .po files coming with Koha but you must work on .po files available on: http://translate.koha-community.org And of course, working remotely, you have to coordinate your effort with other Portuguese translators. -- Frédéric DEMIANS Koha Translation Manager http://www.tamil.fr/u/fdemians.html
Ivo, You need to replace all % s with %s. It solves your problem. During translation some mistakes were done but I have tested it with version 3.2 and it worked. Any way you can allways download finished translation available from www.koha-community.org If you need any help feel free to ask. Rafael 2011/2/3 Ivo Esteves <ivo.matos.esteves@gmail.com>
Hi all,
I'm using "Koha Virtual Appliance 3.2 – Configured" and I'm trying to translate Koha to Portuguese (pt-PT).
But I get an error when I do "perl translate install pt-PT" under "/home/koha/koha-dev/misc/translator"
The error is: % s: Unknown or unsupported format specification
I do a little search and see a message saying that "% s" should be "%s", I edit .po file, replace and save it. But when I run the command again the error occurred again (it seem to be in other place).
I try the .po files that came with Koha Virtual Appliance and with the recent translation files. The same occur.
If someone know how to solve this or if anyone can give me a clue I appreciate it very much.
Thank's to everyone, Ivo Esteves
PS: Sorry for my poor English :)
_______________________________________________ Koha-translate mailing list Koha-translate@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-translate website: www.koha-community.org git: git.koha-community.org bugs: bugs.koha-community.org
Hi! Thanks for your reply. I'm going to write in Portuguese, sorry guys!! Quanto à sugestão do Vítor Fernandes, utilizei os ficheiro .po que vinham com o Koha e também utilizei os que estão no site de tradução. O problema mantém-se em qualquer dos casos. Quanto à sugestão do Rafael, é algo que eu já tinha feito com os ficheiros .po originais, penso que nos que estavam no site de tradução não tinham esse problema. Mas mais uma vez o erro manteve-se. Nos testes que tenho feito, notei que quer tenha ficheiros .po dentro da pasta *"../translator/po"* quer não tenha nenhum ficheiro, quando executo o comando "*perl translate install pt-PT*" o comportamento é o mesmo assim como os erros. Estou um pouco perdido e já perdi bastante tempo de volta desta situação sem qualquer resultado... :( Se me puderem ajudar, ficarei muito agradecido. Cumprimentos, Ivo Esteves 2011/2/3 Rafael Antonio <koha.pt@gmail.com>
Ivo,
You need to replace all % s with %s. It solves your problem. During translation some mistakes were done but I have tested it with version 3.2 and it worked. Any way you can allways download finished translation available from www.koha-community.org If you need any help feel free to ask.
Rafael
2011/2/3 Ivo Esteves <ivo.matos.esteves@gmail.com>
Hi all,
I'm using "Koha Virtual Appliance 3.2 – Configured" and I'm trying to translate Koha to Portuguese (pt-PT).
But I get an error when I do "perl translate install pt-PT" under "/home/koha/koha-dev/misc/translator"
The error is: % s: Unknown or unsupported format specification
I do a little search and see a message saying that "% s" should be "%s", I edit .po file, replace and save it. But when I run the command again the error occurred again (it seem to be in other place).
I try the .po files that came with Koha Virtual Appliance and with the recent translation files. The same occur.
If someone know how to solve this or if anyone can give me a clue I appreciate it very much.
Thank's to everyone, Ivo Esteves
PS: Sorry for my poor English :)
_______________________________________________ Koha-translate mailing list Koha-translate@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-translate website: www.koha-community.org git: git.koha-community.org bugs: bugs.koha-community.org
Hi Ivo. Which command do you use to do the translations? What you can do: 1) go to the OPAC folder Koha_home/opac/htdocs/opac-tmpl/prog/ and create a folder named pt_PT (sudo -u koha mkdir pt_PT) 2) go to the intranet folder Koha_home/intranet/htdocs/intranet-tmpl/prog/ and create a folder named pt_PT (sudo -u koha mkdir pt_PT) 3) go to the translations folder Koha_home/misc/translator/ and run the command to the OPAC translations: sudo -u koha ./tmpl_process3.pl install -r -i ../../opac/htdocs/opac-tmpl/prog/en/ -o ../../opac/htdocs/opac-tmpl/prog/pt-PT/ -s po/pt-PT-i-opac-t-prog-v-3002000.po (or the file downloaded from the translation site) 4) go to the translations folder Koha_home/misc/translator/ and run the command to the intranet translations: sudo -u koha ./tmpl_process3.pl install -r -i ../../intranet/htdocs/intranet-tmpl/prog/en/ -o ../../intranet/htdocs/intranet-tmpl/prog/pt-PT/ -s po/pt-PT-i-staff-t-prog-v-3002000.po See if this sequence works for you.... Regards. Vitor Fernandes 2011/2/11 Ivo Esteves <ivo.matos.esteves@gmail.com>:
Hi! Thanks for your reply. I'm going to write in Portuguese, sorry guys!! Quanto à sugestão do Vítor Fernandes, utilizei os ficheiro .po que vinham com o Koha e também utilizei os que estão no site de tradução. O problema mantém-se em qualquer dos casos. Quanto à sugestão do Rafael, é algo que eu já tinha feito com os ficheiros .po originais, penso que nos que estavam no site de tradução não tinham esse problema. Mas mais uma vez o erro manteve-se. Nos testes que tenho feito, notei que quer tenha ficheiros .po dentro da pasta "../translator/po" quer não tenha nenhum ficheiro, quando executo o comando "perl translate install pt-PT" o comportamento é o mesmo assim como os erros. Estou um pouco perdido e já perdi bastante tempo de volta desta situação sem qualquer resultado... :( Se me puderem ajudar, ficarei muito agradecido. Cumprimentos, Ivo Esteves
2011/2/3 Rafael Antonio <koha.pt@gmail.com>
Ivo,
You need to replace all % s with %s. It solves your problem. During translation some mistakes were done but I have tested it with version 3.2 and it worked. Any way you can allways download finished translation available from www.koha-community.org If you need any help feel free to ask.
Rafael
2011/2/3 Ivo Esteves <ivo.matos.esteves@gmail.com>
Hi all,
I'm using "Koha Virtual Appliance 3.2 – Configured" and I'm trying to translate Koha to Portuguese (pt-PT).
But I get an error when I do "perl translate install pt-PT" under "/home/koha/koha-dev/misc/translator"
The error is: % s: Unknown or unsupported format specification
I do a little search and see a message saying that "% s" should be "%s", I edit .po file, replace and save it. But when I run the command again the error occurred again (it seem to be in other place).
I try the .po files that came with Koha Virtual Appliance and with the recent translation files. The same occur.
If someone know how to solve this or if anyone can give me a clue I appreciate it very much.
Thank's to everyone, Ivo Esteves
PS: Sorry for my poor English :) _______________________________________________ Koha-translate mailing list Koha-translate@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-translate website: www.koha-community.org git: git.koha-community.org bugs: bugs.koha-community.org
_______________________________________________ Koha-translate mailing list Koha-translate@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-translate website: www.koha-community.org git: git.koha-community.org bugs: bugs.koha-community.org
Hi! This sequence solve my problem. I was using the command like the koha wiki says http://wiki.koha-community.org/wiki/Installation_of_additional_languages_for... I'm using Koha 3.2 so I use the command "perl translate install pt-PT". Fortunately the old way works. Thank you very much Vitor and the other guys that help me. If I've some time, I try to help in the translation. Ivo Esteves 2011/2/11 Vitor Fernandes <vitorfernandes87@gmail.com>
Hi Ivo.
Which command do you use to do the translations?
What you can do:
1) go to the OPAC folder Koha_home/opac/htdocs/opac-tmpl/prog/ and create a folder named pt_PT (sudo -u koha mkdir pt_PT)
2) go to the intranet folder Koha_home/intranet/htdocs/intranet-tmpl/prog/ and create a folder named pt_PT (sudo -u koha mkdir pt_PT)
3) go to the translations folder Koha_home/misc/translator/ and run the command to the OPAC translations:
sudo -u koha ./tmpl_process3.pl install -r -i ../../opac/htdocs/opac-tmpl/prog/en/ -o ../../opac/htdocs/opac-tmpl/prog/pt-PT/ -s po/pt-PT-i-opac-t-prog-v-3002000.po (or the file downloaded from the translation site)
4) go to the translations folder Koha_home/misc/translator/ and run the command to the intranet translations:
sudo -u koha ./tmpl_process3.pl install -r -i ../../intranet/htdocs/intranet-tmpl/prog/en/ -o ../../intranet/htdocs/intranet-tmpl/prog/pt-PT/ -s po/pt-PT-i-staff-t-prog-v-3002000.po
See if this sequence works for you....
Regards. Vitor Fernandes
Hi! Thanks for your reply. I'm going to write in Portuguese, sorry guys!! Quanto à sugestão do Vítor Fernandes, utilizei os ficheiro .po que vinham com o Koha e também utilizei os que estão no site de tradução. O problema mantém-se em qualquer dos casos. Quanto à sugestão do Rafael, é algo que eu já tinha feito com os ficheiros .po originais, penso que nos que estavam no site de tradução não tinham esse problema. Mas mais uma vez o erro manteve-se. Nos testes que tenho feito, notei que quer tenha ficheiros .po dentro da pasta "../translator/po" quer não tenha nenhum ficheiro, quando executo o comando "perl translate install pt-PT" o comportamento é o mesmo assim como os erros. Estou um pouco perdido e já perdi bastante tempo de volta desta situação sem qualquer resultado... :( Se me puderem ajudar, ficarei muito agradecido. Cumprimentos, Ivo Esteves
2011/2/3 Rafael Antonio <koha.pt@gmail.com>
Ivo,
You need to replace all % s with %s. It solves your problem. During translation some mistakes were done but I have tested it with version
3.2
and it worked. Any way you can allways download finished translation available from www.koha-community.org If you need any help feel free to ask.
Rafael
2011/2/3 Ivo Esteves <ivo.matos.esteves@gmail.com>
Hi all,
I'm using "Koha Virtual Appliance 3.2 – Configured" and I'm trying to translate Koha to Portuguese (pt-PT).
But I get an error when I do "perl translate install pt-PT" under "/home/koha/koha-dev/misc/translator"
The error is: % s: Unknown or unsupported format specification
I do a little search and see a message saying that "% s" should be
"%s",
I edit .po file, replace and save it. But when I run the command again
2011/2/11 Ivo Esteves <ivo.matos.esteves@gmail.com>: the
error occurred again (it seem to be in other place).
I try the .po files that came with Koha Virtual Appliance and with the recent translation files. The same occur.
If someone know how to solve this or if anyone can give me a clue I appreciate it very much.
Thank's to everyone, Ivo Esteves
PS: Sorry for my poor English :) _______________________________________________ Koha-translate mailing list Koha-translate@lists.koha-community.org
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-translate
website: www.koha-community.org git: git.koha-community.org bugs: bugs.koha-community.org
_______________________________________________ Koha-translate mailing list Koha-translate@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-translate website: www.koha-community.org git: git.koha-community.org bugs: bugs.koha-community.org
participants (4)
-
Frédéric DEMIANS -
Ivo Esteves -
Rafael Antonio -
Vitor Fernandes