OSDN Git Service

update
[bashlib/bashlib-develop.git] / document / MakeEnglish.vbs
diff --git a/document/MakeEnglish.vbs b/document/MakeEnglish.vbs
new file mode 100755 (executable)
index 0000000..7bdbea1
--- /dev/null
@@ -0,0 +1,96 @@
+Option Explicit \r
+\r
+'// Copyright (C) 2007-2011 Sofrware Design Gallery "Sage Plaisir 21" All Rights Reserved.\r
+\r
+\r
+Sub  Main( Opt, AppKey )\r
+  Dim  out : out = GetAbsPath( "..\english", Empty )\r
+  Dim  w_:Set w_=AppKey.NewWritable( out ).Enable()  '// \83X\83N\83\8a\83v\83g\82ª\81A\82±\82Ì\83t\83@\83C\83\8b\82ª\82 \82é\83t\83H\83\8b\83_\81[\88È\89º\82ð\8f\91\82«\8d\9e\82Ý\82Å\82«\82é\82æ\82¤\82É\82·\82é\81B\r
+  Dim  ds_: Set ds_ = new CurDirStack\r
+\r
+  echo_line\r
+  echo  "\89p\8cê\94Å("+ out +")\82ð\88ê\93x\8dí\8f\9c\82µ\82Ä\81A\8dì\82è\92¼\82µ\82Ü\82·\81B"\r
+  Pause\r
+\r
+  del  out\r
+\r
+  copy  "README", out\r
+  copy  "..\menu", out\r
+  copy  "..\sample", out\r
+  copy  "..\scriptlib", out\r
+  copy  "..\test\Test.sh", out+"\test"\r
+  copy  "..\test\ans", out+"\test"\r
+\r
+  pushd  out +"\sample"\r
+  Translate  "samples.trans", "JP", "EN"\r
+\r
+  cd  out +"\scriptlib"\r
+  Translate  "bashlib.trans", "JP", "EN"\r
+\r
+  popd\r
+\r
+  ren  out +"\test",  "test_patch"\r
+\r
+  echo  "scriptlib(vbslib) \82ð\8dí\8f\9c\82µ\82Ä\82­\82¾\82³\82¢\81B"\r
+End Sub\r
+\r
+\r
+\r
+\r
+\r
+\r
+\r
+\r
+\r
\r
+'--- start of vbslib include ------------------------------------------------------ \r
+\r
+'// \82±\82±\82Ì\93à\95\94\82©\82ç Main \8aÖ\90\94\82ð\8cÄ\82Ñ\8fo\82µ\82Ä\82¢\82Ü\82·\81B\r
+'// \82Ü\82½\81Ascriptlib \83t\83H\83\8b\83_\81[\82ð\92T\82µ\82Ä\81Avbslib \82ð\83C\83\93\83N\83\8b\81[\83h\82µ\82Ä\82¢\82Ü\82·\r
+\r
+'// vbslib is provided under 3-clause BSD license.\r
+'// Copyright (C) 2007-2011 Sofrware Design Gallery "Sage Plaisir 21" All Rights Reserved.\r
+\r
+Dim  g_Vers : If IsEmpty( g_Vers ) Then\r
+Set  g_Vers = CreateObject("Scripting.Dictionary") : g_Vers.Add "vbslib", 4.0\r
+Dim  g_debug, g_debug_params, g_admin, g_vbslib_path, g_CommandPrompt, g_fs, g_sh, g_AppKey\r
+Dim  g_MainPath, g_SrcPath, g_f, g_include_path, i, g_debug_tree, g_debug_process, g_b_compile_debug\r
+g_SrcPath = WScript.ScriptFullName : g_MainPath = g_SrcPath\r
+SetupVbslibParameters\r
+Set  g_fs = CreateObject( "Scripting.FileSystemObject" )\r
+Set  g_sh = WScript.CreateObject("WScript.Shell") : g_f = g_sh.CurrentDirectory\r
+g_sh.CurrentDirectory = g_fs.GetParentFolderName( WScript.ScriptFullName )\r
+For i = 20 To 1 Step -1 : If g_fs.FileExists(g_vbslib_path) Then  Exit For\r
+g_vbslib_path = "..\" + g_vbslib_path  : Next\r
+If g_fs.FileExists(g_vbslib_path) Then  g_vbslib_path = g_fs.GetAbsolutePathName( g_vbslib_path )\r
+g_sh.CurrentDirectory = g_f\r
+If i=0 Then WScript.Echo "Not found " + g_fs.GetFileName( g_vbslib_path ) +vbCR+vbLF+_\r
+  "Let's download vbslib "&g_Vers.Item("vbslib")&" and Copy scriptlib folder." : Stop : WScript.Quit 1\r
+Set g_f = g_fs.OpenTextFile( g_vbslib_path ): Execute g_f.ReadAll() : g_f = Empty\r
+If ResumePush Then  On Error Resume Next\r
+  CallMainFromVbsLib\r
+ResumePop : On Error GoTo 0\r
+End If\r
+'---------------------------------------------------------------------------------\r
+\r
+Sub  SetupDebugTools()\r
+  set_input  ""\r
+  SetBreakByFName  Empty\r
+  SetStartSectionTree  ""\r
+End Sub\r
+\r
+Sub  SetupVbslibParameters()\r
+  '--- start of parameters for vbslib include -------------------------------\r
+  '// g_Vers("OldMain") = 1\r
+  g_vbslib_path = "scriptlib\vbs_inc.vbs"\r
+  g_CommandPrompt = 2\r
+\r
+  g_debug = 0   '// release:0, debug:99, -1:call SetupDebugTools\r
+                '// \82l\82r\83I\83t\83B\83X\82â\83R\83\93\83p\83C\83\89\82ª\82 \82ê\82Î\81Ag_debug \82ð 1 \88È\8fã\82É\82·\82é\82Æ\83f\83o\83b\83K\81[\82ª\8eg\82¦\82Ü\82·\81B\r
+                '// \83X\83e\83b\83v\8eÀ\8ds\82ð\8aJ\8en\82·\82é\8fê\8f\8a\82â\81A\95Ï\90\94\82Ì\92l\82ð\8am\94F\82µ\82½\82¢\8fê\8f\8a\82É\81AStop \96½\97ß\82ð\8bL\8fq\82µ\82Ä\82­\82¾\82³\82¢\81B\r
+\r
+  '--- end of parameters for vbslib include ---------------------------------\r
+End Sub\r
+'--- end of vbslib include --------------------------------------------------------\r
+\r
\r