[Koha-bugs] [Bug 35043] New: Handling of \t in PO files is confusing
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Thu Oct 12 12:33:11 CEST 2023
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=35043
Bug ID: 35043
Summary: Handling of \t in PO files is confusing
Change sponsored?: ---
Product: Koha
Version: unspecified
Hardware: All
OS: All
Status: NEW
Severity: enhancement
Priority: P5 - low
Component: Architecture, internals, and plumbing
Assignee: koha-bugs at lists.koha-community.org
Reporter: jonathan.druart+koha at gmail.com
QA Contact: testopia at bugs.koha-community.org
We have our own "quote_po" sub that is stating that Locale::PO::quote is buggy
because it does not deal with quoting new lines correctly. However it seems
that it is fixed now.
Ideally we could use Locale::PO::quote everywhere, but it does not escape tab
characters:
$string =~ s/\\(?!t)/\\\\/g; # \t is a tab
This means the following:
msgid "Tabulation (\\t)"
msgstr "Tabulation (\\t)"
become:
-msgid "Tabulation (\t)"
-msgstr "Tabulation (\t)"
And we are seeing the following on Weblate: https://snipboard.io/BjQmDC.jpg
Note that Locale::PO has not been updated since 2014...
--
You are receiving this mail because:
You are the assignee for the bug.
You are watching all bug changes.
More information about the Koha-bugs
mailing list