From d4816e55098666443c0d3524f672fc905e59d520 Mon Sep 17 00:00:00 2001 From: Ronald Tse Date: Wed, 24 Apr 2024 15:45:33 +0800 Subject: [PATCH 1/2] fix: replace wrong ISO 639-2 codes: "ger" => "deu", "chi" => "zho", fixes #35 --- lib/tc211/termbase/terminology_sheet.rb | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/tc211/termbase/terminology_sheet.rb b/lib/tc211/termbase/terminology_sheet.rb index 07470e8..2c252fe 100644 --- a/lib/tc211/termbase/terminology_sheet.rb +++ b/lib/tc211/termbase/terminology_sheet.rb @@ -30,6 +30,11 @@ def set_language_code(code) @language_code = case code when "dut/nld" "dut" + when "chi" + "zho" + when "ger" + "deu" + # below for backwards compatibility when "工作语言代码" "chn" when "pl" From 54e10436eccd306079d7e4486fcc40ad0b1af0dd Mon Sep 17 00:00:00 2001 From: Ronald Tse Date: Wed, 24 Apr 2024 15:47:59 +0800 Subject: [PATCH 2/2] fix: replace wrong ISO 639-2 codes: "dut" => "nld" --- lib/tc211/termbase/terminology_sheet.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/tc211/termbase/terminology_sheet.rb b/lib/tc211/termbase/terminology_sheet.rb index 2c252fe..521b1b5 100644 --- a/lib/tc211/termbase/terminology_sheet.rb +++ b/lib/tc211/termbase/terminology_sheet.rb @@ -29,7 +29,7 @@ def set_language_code(code) @language_code = case code when "dut/nld" - "dut" + "nld" when "chi" "zho" when "ger"