[Koha-bugs] [Bug 12221] New: Remove TT statement placeholders from translatable strings
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Fri May 9 07:25:28 CEST 2014
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=12221
Bug ID: 12221
Summary: Remove TT statement placeholders from translatable
strings
Change sponsored?: ---
Product: Koha
Version: master
Hardware: All
OS: All
Status: NEW
Severity: enhancement
Priority: P5 - low
Component: I18N/L10N
Assignee: pasi.kallinen at pttk.fi
Reporter: pasi.kallinen at pttk.fi
QA Contact: testopia at bugs.koha-community.org
CC: frederic at tamil.fr
The translation message catalogs contain a lot of Template Toolkit
statements in the messages. They bloat the message lengths, and
add unnecessary complications for translators, making errors
far more likely.
For example, there's no need to have "INCLUDE 'opac-bottom.inc'"
show up as a placeholder in the messages.
Using the following incantation:
grep -E '^#\. %[0-9]+\$s: ' po/xx-YY-*.po | cut -d':' -f 3- | sed -e 's/^
*\(IF\|ELSIF\|CASE\|SWITCH\|INCLUDE\|USE\|SET\|PROCESS\|BLOCK\|FOREACH\|UNLESS\)
*.*$/ \1 /g' | sort | uniq -c | sort -rn
we get a list of all placeholders, sorted by # of uses. The top-5 is:
1750 END
1429 IF
647 ELSE
263 ELSIF
252 INCLUDE
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list