]> git.koha-community.org Git - koha.git/commit
Bug 10214 Add header to syspref po files
authorFrédéric Demians <f.demians@tamil.fr>
Tue, 14 May 2013 11:01:56 +0000 (13:01 +0200)
committerBernardo Gonzalez Kriegel <bgkriegel@gmail.com>
Fri, 14 Jun 2013 02:13:57 +0000 (23:13 -0300)
commit00aa61dec0c7e9d6c77158d33c69d0108135211b
treed08708852c17fbd6acc81340582b4c6d23858a17
parent8c1589e2541920d65f858eaa59c114a18837e8f3
Bug 10214 Add header to syspref po files

With this patch, header is created when creating a new syspref .po file
for a new language (translate create), and is added if it doesn't
already exist when updating an existing language (translate update).

To test:

(1) Create a new language syspref file:

    ./translate create -p xx-XX

    Check that there is an header

(2) Update an existing syspref file without header:

    ./translate update fr-FR

    Check that fr-FR-pref.po has a header

(3) Update an existing syspref file with header:

    Modify fr-FR-pref.po. Add an email, or whatever.

    ./translate update fr-FR

    Check that fr-FR-pref.po has a header with the manual modification

Signed-off-by: Bernardo Gonzalez Kriegel <bgkriegel@gmail.com>
Comment: Work as described. No errors.

Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de>
All tests and QA script pass.
Also tested that updated pref files can still be installed correctly.
Signed-off-by: Jared Camins-Esakov <jcamins@cpbibliography.com>
(cherry picked from commit 9ce862e451f56fdca7d368fd1a39e64e40fc678f)

Signed-off-by: Jared Camins-Esakov <jcamins@cpbibliography.com>
(cherry picked from commit 06d576f4d7698152db8f2b1c89b92dc6892c5dfd)
Signed-off-by: Bernardo Gonzalez Kriegel <bgkriegel@gmail.com>
(cherry picked from commit 06d576f4d7698152db8f2b1c89b92dc6892c5dfd)
misc/translator/LangInstaller.pm