From 25420c0cb1f08f4cb3cb92dfdd918fc81f3c6148 Mon Sep 17 00:00:00 2001 From: Bernardo Gonzalez Kriegel Date: Thu, 27 Mar 2014 10:26:41 -0300 Subject: [PATCH] Bug 11393 - Language menu not show up as name for Thai (th-THA was shown) The problem is with the name of PO files Currently Koha expect, among other variants, that PO filenames began with (using as example *-pref.po): {lang}-pref.po {lang}-{region}-pref.po {lang}-{scrip}-pref.po {lang}-{script}-{region}-pref.po and expect 2 chars for lang and region, and 4 for script So the problem with Thai translation files are that it's names do not match that convention. This patch only rename Thai files as th-THA-* to th-TH-*. In that way language description is right. translate script use that chars to make dirs, and use dirs to find description. To test: 1) Go to I18N/L10N sysprefs 2) Install th-THA language (or simply mkdir koha-tmpl/intranet-tmpl/prog/th-THA) 3) Reload page, wrong description 4) Apply patch 5) Install th-TH language (or simply mkdir koha-tmpl/intranet-tmpl/prog/th-TH) 6) Reload page, right description 7) If you want do "mkdir koha-tmpl/intranet-tmpl/prog/th-Thai", reload, also right description To the reporter of this Bug: the rename of the folder is a good workaround, when this patch is pushed to stable I'll rename Thai files --- ...3006000.po => th-TH-i-opac-t-prog-v-3006000.po} | 0 ...006000.po => th-TH-i-staff-t-prog-v-3006000.po} | 0 ...A-opac-bootstrap.po => th-TH-opac-bootstrap.po} | 0 .../po/{th-THA-opac-ccsr.po => th-TH-opac-ccsr.po} | 0 .../po/{th-THA-pref.po => th-TH-pref.po} | 0 .../{th-THA-staff-help.po => th-TH-staff-help.po} | 0 6 files changed, 0 insertions(+), 0 deletions(-) rename misc/translator/po/{th-THA-i-opac-t-prog-v-3006000.po => th-TH-i-opac-t-prog-v-3006000.po} (100%) rename misc/translator/po/{th-THA-i-staff-t-prog-v-3006000.po => th-TH-i-staff-t-prog-v-3006000.po} (100%) rename misc/translator/po/{th-THA-opac-bootstrap.po => th-TH-opac-bootstrap.po} (100%) rename misc/translator/po/{th-THA-opac-ccsr.po => th-TH-opac-ccsr.po} (100%) rename misc/translator/po/{th-THA-pref.po => th-TH-pref.po} (100%) rename misc/translator/po/{th-THA-staff-help.po => th-TH-staff-help.po} (100%) diff --git a/misc/translator/po/th-THA-i-opac-t-prog-v-3006000.po b/misc/translator/po/th-TH-i-opac-t-prog-v-3006000.po similarity index 100% rename from misc/translator/po/th-THA-i-opac-t-prog-v-3006000.po rename to misc/translator/po/th-TH-i-opac-t-prog-v-3006000.po diff --git a/misc/translator/po/th-THA-i-staff-t-prog-v-3006000.po b/misc/translator/po/th-TH-i-staff-t-prog-v-3006000.po similarity index 100% rename from misc/translator/po/th-THA-i-staff-t-prog-v-3006000.po rename to misc/translator/po/th-TH-i-staff-t-prog-v-3006000.po diff --git a/misc/translator/po/th-THA-opac-bootstrap.po b/misc/translator/po/th-TH-opac-bootstrap.po similarity index 100% rename from misc/translator/po/th-THA-opac-bootstrap.po rename to misc/translator/po/th-TH-opac-bootstrap.po diff --git a/misc/translator/po/th-THA-opac-ccsr.po b/misc/translator/po/th-TH-opac-ccsr.po similarity index 100% rename from misc/translator/po/th-THA-opac-ccsr.po rename to misc/translator/po/th-TH-opac-ccsr.po diff --git a/misc/translator/po/th-THA-pref.po b/misc/translator/po/th-TH-pref.po similarity index 100% rename from misc/translator/po/th-THA-pref.po rename to misc/translator/po/th-TH-pref.po diff --git a/misc/translator/po/th-THA-staff-help.po b/misc/translator/po/th-TH-staff-help.po similarity index 100% rename from misc/translator/po/th-THA-staff-help.po rename to misc/translator/po/th-TH-staff-help.po -- 1.7.9.5