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)
committerJared Camins-Esakov <jcamins@cpbibliography.com>
Wed, 15 May 2013 11:22:32 +0000 (07:22 -0400)
commit9ce862e451f56fdca7d368fd1a39e64e40fc678f
tree9f35af683504af6e69f09235b75ae51bc6b6c676
parentb11800df0a8fda645a9d6b620d7faa843db6270d
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>
misc/translator/LangInstaller.pm