[Ttssh2-commit] [5667] 繁体字中国語の言語ファイルをインストーラに組み込んだ

svnno****@sourc***** svnno****@sourc*****
2014年 9月 26日 (金) 22:58:44 JST


Revision: 5667
          http://sourceforge.jp/projects/ttssh2/scm/svn/commits/5667
Author:   maya
Date:     2014-09-26 22:58:43 +0900 (Fri, 26 Sep 2014)
Log Message:
-----------
繁体字中国語の言語ファイルをインストーラに組み込んだ

Modified Paths:
--------------
    trunk/installer/teraterm.iss

-------------- next part --------------
Modified: trunk/installer/teraterm.iss
===================================================================
--- trunk/installer/teraterm.iss	2014-09-23 16:09:37 UTC (rev 5666)
+++ trunk/installer/teraterm.iss	2014-09-26 13:58:43 UTC (rev 5667)
@@ -94,6 +94,7 @@
 Source: release\lang\Russian.lng; DestDir: {app}\lang; Components: TeraTerm; Attribs: readonly; Flags: uninsremovereadonly overwritereadonly
 Source: release\lang\Korean.lng; DestDir: {app}\lang; Components: TeraTerm; Attribs: readonly; Flags: uninsremovereadonly overwritereadonly
 Source: release\lang\Simplified Chinese.lng; DestDir: {app}\lang; Components: TeraTerm; Attribs: readonly; Flags: uninsremovereadonly overwritereadonly
+Source: release\lang\Traditional Chinese.lng; DestDir: {app}\lang; Components: TeraTerm; Attribs: readonly; Flags: uninsremovereadonly overwritereadonly
 Source: ..\ttssh2\ttxssh\Release\ttxssh.dll; DestDir: {app}; Components: TTSSH; Flags: ignoreversion
 Source: release\ssh_known_hosts; DestDir: {app}; Components: TTSSH; Flags: onlyifdoesntexist uninsneveruninstall; Permissions: authusers-modify
 Source: ..\cygterm\cygterm.exe; DestDir: {app}\cygterm+-i686; Components: cygterm
@@ -295,6 +296,7 @@
 en.msg_language_russian=&Russian
 en.msg_language_korean=&Korean
 en.msg_language_chinese=&Chinese(Simplified)
+en.msg_language_tchinese=Chinese(&Traditional)
 ja.msg_language_caption=\x8C\xBE\x8C\xEA\x82̑I\x91\xF0
 ja.msg_language_description=\x83\x86\x81[\x83U\x81[\x83C\x83\x93\x83^\x81[\x83t\x83F\x81[\x83X\x82̌\xBE\x8C\xEA\x82\xF0\x91I\x91\xF0\x82\xB5\x82Ă\xAD\x82\xBE\x82\xB3\x82\xA2\x81B
 ja.msg_language_subcaption=\x83A\x83v\x83\x8A\x83P\x81[\x83V\x83\x87\x83\x93\x82̃\x81\x83j\x83\x85\x81[\x82\xE2\x83_\x83C\x83A\x83\x8D\x83O\x93\x99\x82̕\\x8E\xA6\x8C\xBE\x8C\xEA\x82\xF0\x91I\x91\xF0\x82\xB5\x82āA\x81u\x8E\x9F\x82ցv\x82\xF0\x83N\x83\x8A\x83b\x83N\x82\xB5\x82Ă\xAD\x82\xBE\x82\xB3\x82\xA2\x81B
@@ -305,6 +307,7 @@
 ja.msg_language_russian=\x83\x8D\x83V\x83A\x8C\xEA(&R)
 ja.msg_language_korean=\x8A؍\x91\x8C\xEA(&K)
 ja.msg_language_chinese=\x8Aȑ̎\x9A\x92\x86\x8D\x91\x8C\xEA(&C)
+ja.msg_language_tchinese=\x94ɑ̎\x9A\x92\x86\x8D\x91\x8C\xEA(&T)
 en.msg_del_confirm=Are you sure that you want to delete %s ?
 ja.msg_del_confirm=%s \x82\xF0\x8D폜\x82\xB5\x82܂\xB7\x82\xA9\x81H
 en.msg_uninstall_confirm=It seems a former version is installed. You are recommended to uninstall it previously. Do you uninstall former version ?
@@ -510,12 +513,26 @@
   case GetUILanguage and $3FF of
   $04: // Chinese
     begin
+
+      case GetUILanguage of
+      $c04, $1404, $404: // Hong Kong, Macao, Taiwan
+        begin
+          if Length(Locale) = 0 then
+            SetIniString('Tera Term', 'Locale', 'cht', iniFile);
+          if CodePage = 0 then
+            SetIniInt('Tera Term', 'CodePage', 950, iniFile);
+        end;
+      else
+        begin
+          if Length(Locale) = 0 then
+            SetIniString('Tera Term', 'Locale', 'chs', iniFile);
+          if CodePage = 0 then
+            SetIniInt('Tera Term', 'CodePage', 936, iniFile);
+        end;
+      end;
+
       if Length(Language) = 0 then
         SetIniString('Tera Term', 'Language', 'UTF-8', iniFile);
-      if Length(Locale) = 0 then
-        SetIniString('Tera Term', 'Locale', 'chs', iniFile);
-      if CodePage = 0 then
-        SetIniInt('Tera Term', 'CodePage', 936, iniFile);
       if Length(VTFont) = 0 then
         SetIniString('Tera Term', 'VTFont', 'Terminal,0,-12,255', iniFile);
       if Length(TEKFont) = 0 then
@@ -603,6 +620,8 @@
       SetIniString('Tera Term', 'UILanguageFile', 'lang\Korean.lng', iniFile);
     6:
       SetIniString('Tera Term', 'UILanguageFile', 'lang\Simplified Chinese.lng', iniFile);
+    7:
+      SetIniString('Tera Term', 'UILanguageFile', 'lang\Traditional Chinese.lng', iniFile);
     else
       SetIniString('Tera Term', 'UILanguageFile', 'lang\Default.lng', iniFile);
   end;
@@ -638,6 +657,7 @@
   UILangFilePageRussian     : String;
   UILangFilePageKorean      : String;
   UILangFilePageChinese     : String;
+  UILangFilePageTChinese    : String;
 begin
   UILangFilePageCaption     := CustomMessage('msg_language_caption');
   UILangFilePageDescription := CustomMessage('msg_language_description');
@@ -649,6 +669,7 @@
   UILangFilePageRussian     := CustomMessage('msg_language_russian');
   UILangFilePageKorean      := CustomMessage('msg_language_korean');
   UILangFilePageChinese     := CustomMessage('msg_language_chinese');
+  UILangFilePageTChinese    := CustomMessage('msg_language_tchinese');
 
   UILangFilePage := CreateInputOptionPage(wpSelectComponents,
     UILangFilePageCaption, UILangFilePageDescription,
@@ -660,6 +681,7 @@
   UILangFilePage.Add(UILangFilePageRussian);
   UILangFilePage.Add(UILangFilePageKorean);
   UILangFilePage.Add(UILangFilePageChinese);
+  UILangFilePage.Add(UILangFilePageTChinese);
   case ActiveLanguage of
     'ja':
       UILangFilePage.SelectedValueIndex := 1;
@@ -745,6 +767,8 @@
             UILangFilePage.SelectedValueIndex := 5
           else if iniFile = 'lang\simplified chinese.lng' then
             UILangFilePage.SelectedValueIndex := 6
+          else if iniFile = 'lang\traditional chinese.lng' then
+            UILangFilePage.SelectedValueIndex := 7
           else
             UILangFilePage.SelectedValueIndex := 0;
         end;



Ttssh2-commit メーリングリストの案内