Koha/misc/translator
Bernardo Gonzalez Kriegel 0258d3a42d Bug 12535 - PROG/CCSR Deprecation: Make opac translation theme independent
This patch makes opac translation files theme independent
A side effect is that current prog translation file is
renamed.

But the renaming is not added, that gives a patch of ~60M!

Current list of languages are now obtained from pref files.

To test:
1) Apply the patch

2) For your preferred language, rename opac prog file
from 'xx-YY-i-opac-t-prog-v-3006000.po' to 'xx-YY-opac-prog.po'

3) Update that language, there must be no errors
cd misc/translation
./translate update xx-YY [-v]
Check updated po files

4) Install any language, there must be no errors
./translate install xx-YY
Check prog theme for that language

5) Create translation files. Remove a language or create new lang files
./translate create zz-WW
ls -l po/zz-WW*po
check there are 3 files (and *~) for opac

6) Check updated pod for LangInstaler.pm and translate script

When PROG/CCSR themes are removed, I'll add a Bug to remove
corresponding files.

Perhaps RM could add a followup to rename all files,
cd misc/translator/po
for old in $(ls *opac-t*); do
    new=$(echo $old | sed 's/-i-opac-t-prog-v-3006000/-opac-prog/');
    git mv $old $new;
done

Signed-off-by: Jonathan Druart <jonathan.druart@biblibre.com>
Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de>
Works as described, no problems found.

Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>
2014-10-29 22:00:22 -03:00
..
po Fix of translation files as requested by RM 2014-10-11 16:55:40 -03:00
LangInstaller.pm Bug 12535 - PROG/CCSR Deprecation: Make opac translation theme independent 2014-10-29 22:00:22 -03:00
Makefile
text-extract.pl
text-extract2.pl Bug 11349: Change .tmpl -> .tt in scripts using templates 2014-07-17 11:05:49 -03:00
tmpl_process3.pl Bug 12061 - tmpl_process3.pl - Include/exclude file by name 2014-09-01 11:00:15 -03:00
TmplTokenizer.pm Bug 12301: Remove warnings on translate scripts 2014-05-30 15:46:17 -03:00
translate Bug 12535 - PROG/CCSR Deprecation: Make opac translation theme independent 2014-10-29 22:00:22 -03:00
translator_doc.html
translator_doc.txt
VerboseWarnings.pm
xgettext.pl Bug 11349: Change .tmpl -> .tt in scripts using templates 2014-07-17 11:05:49 -03:00