summaryrefslogtreecommitdiff
path: root/Master/tlpkg/tltcl/tltcl.tcl
diff options
context:
space:
mode:
Diffstat (limited to 'Master/tlpkg/tltcl/tltcl.tcl')
-rw-r--r--Master/tlpkg/tltcl/tltcl.tcl5
1 files changed, 2 insertions, 3 deletions
diff --git a/Master/tlpkg/tltcl/tltcl.tcl b/Master/tlpkg/tltcl/tltcl.tcl
index ed5c01cdcc7..b43b36e421b 100644
--- a/Master/tlpkg/tltcl/tltcl.tcl
+++ b/Master/tlpkg/tltcl/tltcl.tcl
@@ -278,9 +278,7 @@ proc initialize_language {} {
initialize_language
proc load_translations {} {
- foreach s [array names ::TRANS] {
- array unset ::TRANS $s
- }
+ array unset ::TRANS
if {$::lang eq ""} return
set messcat [file join $::instroot "tlpkg" "translations" "${::lang}.po"]
# parse messcat.
@@ -314,6 +312,7 @@ proc load_translations {} {
if $inmsgstr {
# empty line signals end of msgstr
if {$msgstr ne ""} {
+ # unescape some characters
set msgid [string map {{\n} "\n"} $msgid]
set msgstr [string map {{\n} "\n"} $msgstr]
set msgid [string map {{\\} "\\"} $msgid]