Malformed header in syspref .po file
Hello, I just opened the bug http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=10214 because I've discovered a problem in syspref.po file. This problem is symptom-less for pootle users, but transifex complains refuses to upload sysprefs.po because of a header missing. The header contains major informations, as encoding. many tools, in this case, fallback on utf-8 by default probably (and they're right in our case), but transifex want this information explicitly. -- Paul POULAIN - BibLibre http://www.biblibre.com Free & Open Source Softwares for libraries Koha, Drupal, Piwik, Jasper
Hi, you are right. I use to download syspref.po, add the header and then upload to pootle. We may check how is created/updated. Bernardo -- Bernardo Gonzalez Kriegel bgkriegel@gmail.com On Tue, May 7, 2013 at 1:24 PM, Paul Poulain <paul.poulain@biblibre.com>wrote:
Hello,
I just opened the bug http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=10214 because I've discovered a problem in syspref.po file. This problem is symptom-less for pootle users, but transifex complains refuses to upload sysprefs.po because of a header missing.
The header contains major informations, as encoding. many tools, in this case, fallback on utf-8 by default probably (and they're right in our case), but transifex want this information explicitly.
-- Paul POULAIN - BibLibre http://www.biblibre.com Free & Open Source Softwares for libraries Koha, Drupal, Piwik, Jasper
_______________________________________________ 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
Le 07/05/2013 18:42, Bernardo Gonzalez Kriegel a écrit :
I use to download syspref.po, add the header and then upload to pootle. We may check how is created/updated.
The .po files are generated by misc/translator/translate script. Digging a little, I've found that the culprit is probably in LangInstaller.pm, sub save_po { my $self = shift; # Write .po entries into a file put in Koha standard po directory Locale::PO->save_file_fromhash( $self->po_filename, $self->{po} ); say "Saved in file: ", $self->po_filename if $self->{verbose}; Other .po are generated by tmpl_process3.pl AFAIK (but i'm not a translation process specialist, I may be wrong) -- Paul POULAIN - Associé-gérant Tel : (33) 4 91 81 35 08 http://www.biblibre.com Logiciels Libres pour les bibliothèques et les centres de documentation
participants (2)
-
Bernardo Gonzalez Kriegel -
Paul Poulain