[Koha-bugs] [Bug 7939] Separate po files for different MARC dialects
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Mon Mar 24 10:42:18 CET 2014
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=7939
--- Comment #2 from Bernardo Gonzalez Kriegel <bgkriegel at gmail.com> ---
Created attachment 26530
-->
http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=26530&action=edit
Bug 7939 - Separate po files for different MARC dialects
[PRELIMINAR - not in final form but can be tested]
This patch implements separate PO files for
different MARC dialects.
To do so it depends on correct filenames,
i.e. it will build PO files using files
with/without "unimarc|normarc|marc21" on
their names.
Prominent changes:
A) tmpl_process3.pl
three new options: exclude or include certain filenames
and a new source dir that can have multiple values
B) LangInstaller.pm
added definitions to create or update nn-NO-{MARCFLAVOR}.po
and a little modification on install procedure
C) Standarization of filenames
OPAC prog po file is now xx-YY-opac-prog.po
STAFF po file is now xx-YY-staff-prog.po
MARC dialects po files are xx-YY-marc-{MARCFLAVOUR}.po
To test:
1) Update po files for your preferred language, ej. nn-NO
cd misc/translator
perl translate update nn-NO
(do it twice if there are warnings)
2) Do some copying/renaming
cp po/nn-NO-i-staff-t-prog-v-3006000.po po/nn-NO-marc-UNIMARC.po
cp po/nn-NO-i-staff-t-prog-v-3006000.po po/nn-NO-marc-NORMARC.po
cp po/nn-NO-i-staff-t-prog-v-3006000.po po/nn-NO-marc-MARC21.po
mv po/nn-NO-i-staff-t-prog-v-3006000.po po/nn-NO-staff-prog.po
mv po/nn-NO-i-opac-t-prog-v-3006000.po po/nn-NO-opac-prog.po
(most MARC dialect strings are on staff)
3) Apply the patch
4) Update again to fix translation files, verbose
perl translate update nn-NO -v
5) Install language, verbose, verify translations
perl translate install nn-NO -v
More tests to come.
To be continued...
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list