Koha-clms/misc/translator
Pasi Kallinen c229553040 Bug 11631: Make i18n toolchain ignore useless strings
This patch removes several types of strings from the
PO files that cannot be usefully translated, including
ones that consist entirely of punctuation and/or HTML entities.

Test:
1) Update PO files of some lang, xx-YY-*po
cd misc/translator
perl translate update xx-YY
2) Do it again, just in case
3) rm po/xx-YY*po~
4) Extract all msgid's, sorted
cat po/xx-YY*po | egrep "^msgid" | sort | uniq > xx-YY-pre
5) Apply the patch
6) Repeat 1-3
7) Repeat 4 again, other file
cat po/xx-YY*po | egrep "^msgid" | sort | uniq > xx-YY-post
8) Do a diff, inspect results, only strings with %s and \s
diff xx-YY-pre xx-YY-post | less

Signed-off-by: Bernardo Gonzalez Kriegel <bgkriegel@gmail.com>
Works as described, 380 strings less to 'translate'
No koha-qa errors.

Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de>
Tested according to test plan, works as described.

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
2014-04-27 21:06:48 +00:00
..
po Bug 11393: fix display of Thai in language menu when Thai translation is installed 2014-04-03 15:38:10 +00:00
LangInstaller.pm Bug 11571: fix breakage of -f option for translate script 2014-01-26 15:50:41 +00:00
Makefile merging 2.2 branch with head. Sorry for not making it before, many many commits done here 2005-03-01 13:40:35 +00:00
TmplTokenizer.pm Revert "Subroutine prototypes used at line XXX, column 1. See page 194 of PBP." 2012-06-11 15:38:35 +02:00
VerboseWarnings.pm Bug 2505 - Add commented use warnings where missing in *.pm 2010-04-21 20:28:51 +12:00
text-extract.pl Bug 2505 - Add commented use warnings where missing in the misc/ directory 2010-04-21 20:26:44 +12:00
text-extract2.pl Bug 8384: Some Perl scripts do not compile 2012-07-10 10:50:58 +02:00
tmpl_process3.pl Bug 9216: make columns.def file translatable 2014-04-19 13:34:33 +00:00
translate Bug 9161: Translate only specific files 2013-05-24 09:08:25 -07:00
translator_doc.html Documents translator dependency on 'gettext' Linux tools and add it to debian.packages 2008-06-26 05:51:35 -05:00
translator_doc.txt Documents translator dependency on 'gettext' Linux tools and add it to debian.packages 2008-06-26 05:51:35 -05:00
xgettext.pl Bug 11631: Make i18n toolchain ignore useless strings 2014-04-27 21:06:48 +00:00