null+****@clear*****
null+****@clear*****
Thu Apr 26 16:05:43 JST 2012
SUZUKI Miho 2012-04-26 16:05:43 +0900 (Thu, 26 Apr 2012) New Revision: 86fa7ad08ef755dfcfe6b6e6e2dcda11047763fd Log: change method to get the lang Modified files: lib/logaling/external_glossaries/tmx.rb Modified: lib/logaling/external_glossaries/tmx.rb (+1 -1) =================================================================== --- lib/logaling/external_glossaries/tmx.rb 2012-04-26 14:09:29 +0900 (8737998) +++ lib/logaling/external_glossaries/tmx.rb 2012-04-26 16:05:43 +0900 (1440ab9) @@ -31,7 +31,7 @@ module Logaling translation = "" tu.children.each do |child| if child.name == "tuv" - lang = child["lang"].downcase.slice(0, 2) + lang = child["lang"].downcase.sub(/\-.*/, "") if lang == glossary_info[:source_language] original = child.text.strip elsif lang == glossary_info[:target_language]