rwdtinker 1.24 → 1.41
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/code/xb1rwdtinkerbackwindow/diagnostictab.rb +2 -1
- data/configuration/aa0rwdframework.cnf +6 -4
- data/configuration/ab1tinkerwin2.cnf +1 -0
- data/configuration/language.cnf +5 -0
- data/gui/aa2core/aa0rwdtop.rwd +4 -0
- data/gui/cc0viewphoto/cc0openphoto.rwd +17 -0
- data/gui/ll1selectiontabbegin/selectiontabbegin.rwd +16 -0
- data/gui/ll5rwdtinkerwin2selectiontab/rwdwin2selectiontab.rwd +12 -0
- data/gui/lz1selectiontabend/endselectiontab.rwd +3 -0
- data/gui/tt0documentsbegin/tt0documentbegin.rwd +6 -0
- data/gui/{en/uu5rwddocuments → uu5rwddocuments}/uu5documents.rwd +8 -6
- data/gui/{nl/uu6rwdtinkerwin2documents → uu6rwdtinkerwin2documents}/uu5documents.rwd +4 -2
- data/gui/ww0documentsend/ww0documentend.rwd +7 -0
- data/gui/wz6finaltabs/xx0rwdfirsttab.rwd +6 -0
- data/gui/{en/xa1versionwindow → xa1versionwindow}/1appname.rwd +4 -2
- data/gui/xa5rwdtinkercallablewindow/1appname.rwd +17 -0
- data/gui/xa5rwdtinkercallablewindow/9end.rwd +4 -0
- data/gui/xb1rwdtinkerbackwindow/1appname.rwd +5 -0
- data/gui/xb1rwdtinkerbackwindow/2tab1.rwd +11 -0
- data/gui/xb1rwdtinkerbackwindow/3arwddiagnostics.rwd +33 -0
- data/gui/xb1rwdtinkerbackwindow/4arwdlistapplets.rwd +44 -0
- data/gui/xb1rwdtinkerbackwindow/4arwdlistzips.rwd +35 -0
- data/gui/xb1rwdtinkerbackwindow/9backend.rwd +6 -0
- data/gui/ya1helpaboutbegin/ya0helpscreenstart.rwd +3 -0
- data/gui/yg5rwdhelpabout/1appname.rwd +4 -0
- data/gui/yg5rwdhelpabout/3copyright.rwd +3 -0
- data/gui/yg5rwdhelpabout/5version.rwd +10 -0
- data/gui/yg6rwdwin2helpabout/1appname.rwd +4 -0
- data/gui/yg6rwdwin2helpabout/3copyright.rwd +3 -0
- data/gui/yg6rwdwin2helpabout/5version.rwd +10 -0
- data/gui/yy5helpaboutend/helpscreenend.rwd +3 -0
- data/gui/za1applicationend/yy9rwdend.rwd +4 -0
- data/init.rb +74 -5
- data/installed/rwdtinkerwin2-0.5.inf +4 -12
- data/installed/rwdviewlogo-0.4.inf +1 -3
- data/lang/en/rwdcore/languagefile.rb +13 -3
- data/lang/es/rwdcore/languagefile-es.rb +14 -0
- data/lang/jp/rwdcore/languagefile.rb +9 -0
- data/lang/nl/rwdcore/languagefile.rb +18 -3
- data/lang/templangfile.rb +16 -0
- data/lang/wlocallangstart.rb +5 -0
- data/lang/xlocallangfile.rb +16 -0
- data/lang/zlocallangend.rb +2 -0
- data/rwd_files/HowTo_Tinker.txt +18 -0
- data/tests/rwdtinkertestEN.rb +107 -31
- data/tests/test.result +32 -0
- data/zips/rwdaschedule-0.7.zip +0 -0
- data/zips/{rwdhelloworld-0.2.zip → rwdhelloworld-0.3.zip} +0 -0
- data/zips/rwdrefreshacpi-0.3.zip +0 -0
- data/zips/rwdwcalc-0.3.zip +0 -0
- data/zips/rwdwshell-0.91.zip +0 -0
- data/zips/wrubyslippers-0.93.zip +0 -0
- metadata +48 -101
- data/code/al5languagefiles/templangfile.rb +0 -6
- data/code/lm1installapplets/ll5listzips.rb +0 -14
- data/code/lm1installapplets/lm1installapplet.rb +0 -20
- data/code/ssdiagnostictab/diagnostictab.rb +0 -20
- data/gui/en/aa2core/aa0rwdtop.rwd +0 -3
- data/gui/en/cc0viewphoto/cc0openphoto.rwd +0 -17
- data/gui/en/ll1selectiontabbegin/selectiontabbegin.rwd +0 -15
- data/gui/en/ll5rwdtinkerwin2selectiontab/rwdwin2selectiontab.rwd +0 -11
- data/gui/en/lz1selectiontabend/endselectiontab.rwd +0 -1
- data/gui/en/tt0documentsbegin/tt0documentbegin.rwd +0 -5
- data/gui/en/uu6rwdtinkerwin2documents/uu5documents.rwd +0 -4
- data/gui/en/ww0documentsend/ww0documentend.rwd +0 -6
- data/gui/en/wz6finaltabs/xx0rwdfirsttab.rwd +0 -4
- data/gui/en/xa5rwdtinkercallablewindow/1appname.rwd +0 -15
- data/gui/en/xa5rwdtinkercallablewindow/9end.rwd +0 -4
- data/gui/en/xb1rwdtinkerbackwindow/1appname.rwd +0 -3
- data/gui/en/xb1rwdtinkerbackwindow/2tab1.rwd +0 -9
- data/gui/en/xb1rwdtinkerbackwindow/3arwddiagnostics.rwd +0 -31
- data/gui/en/xb1rwdtinkerbackwindow/4arwdlistapplets.rwd +0 -42
- data/gui/en/xb1rwdtinkerbackwindow/4arwdlistzips.rwd +0 -33
- data/gui/en/xb1rwdtinkerbackwindow/9backend.rwd +0 -5
- data/gui/en/ya1helpaboutbegin/ya0helpscreenstart.rwd +0 -1
- data/gui/en/yg5rwdhelpabout/1appname.rwd +0 -2
- data/gui/en/yg5rwdhelpabout/3copyright.rwd +0 -1
- data/gui/en/yg5rwdhelpabout/5version.rwd +0 -9
- data/gui/en/yg6rwdwin2helpabout/1appname.rwd +0 -2
- data/gui/en/yg6rwdwin2helpabout/3copyright.rwd +0 -1
- data/gui/en/yg6rwdwin2helpabout/5version.rwd +0 -9
- data/gui/en/za1applicationend/yy9rwdend.rwd +0 -2
- data/gui/es/aa2core/aa0rwdtop.rwd +0 -3
- data/gui/es/cc0viewphoto/cc0openphoto.rwd +0 -17
- data/gui/es/ll1selectiontabbegin/selectiontabbegin.rwd +0 -15
- data/gui/es/ll5rwdtinkerwin2selectiontab/rwdwin2selectiontab.rwd +0 -11
- data/gui/es/lz1selectiontabend/endselectiontab.rwd +0 -1
- data/gui/es/tt0documentsbegin/tt0documentbegin.rwd +0 -5
- data/gui/es/uu5rwddocuments/uu5documents.rwd +0 -13
- data/gui/es/uu6rwdtinkerwin2documents/uu5documents.rwd +0 -4
- data/gui/es/ww0documentsend/ww0documentend.rwd +0 -6
- data/gui/es/wz6finaltabs/xx0rwdfirsttab.rwd +0 -4
- data/gui/es/xa1versionwindow/1appname.rwd +0 -17
- data/gui/es/xa5rwdtinkercallablewindow/1appname.rwd +0 -15
- data/gui/es/xa5rwdtinkercallablewindow/9end.rwd +0 -4
- data/gui/es/xb1rwdtinkerbackwindow/1appname.rwd +0 -3
- data/gui/es/xb1rwdtinkerbackwindow/2tab1.rwd +0 -9
- data/gui/es/xb1rwdtinkerbackwindow/3arwddiagnostics.rwd +0 -31
- data/gui/es/xb1rwdtinkerbackwindow/4arwdlistapplets.rwd +0 -42
- data/gui/es/xb1rwdtinkerbackwindow/4arwdlistzips.rwd +0 -33
- data/gui/es/xb1rwdtinkerbackwindow/9backend.rwd +0 -5
- data/gui/es/xx9photoview/xx9photoview.rwd +0 -3
- data/gui/es/ya1helpaboutbegin/ya0helpscreenstart.rwd +0 -1
- data/gui/es/yg5rwdhelpabout/1appname.rwd +0 -2
- data/gui/es/yg5rwdhelpabout/3copyright.rwd +0 -1
- data/gui/es/yg5rwdhelpabout/5version.rwd +0 -9
- data/gui/es/yg6rwdwin2helpabout/1appname.rwd +0 -2
- data/gui/es/yg6rwdwin2helpabout/3copyright.rwd +0 -1
- data/gui/es/yg6rwdwin2helpabout/5version.rwd +0 -9
- data/gui/es/za1applicationend/yy9rwdend.rwd +0 -2
- data/gui/nl/aa2core/aa0rwdtop.rwd +0 -3
- data/gui/nl/cc0viewphoto/cc0openphoto.rwd +0 -17
- data/gui/nl/ll1selectiontabbegin/selectiontabbegin.rwd +0 -15
- data/gui/nl/ll5rwdtinkerwin2selectiontab/rwdwin2selectiontab.rwd +0 -11
- data/gui/nl/lz1selectiontabend/endselectiontab.rwd +0 -1
- data/gui/nl/tt0documentsbegin/tt0documentbegin.rwd +0 -5
- data/gui/nl/uu5rwddocuments/uu5documents.rwd +0 -13
- data/gui/nl/ww0documentsend/ww0documentend.rwd +0 -6
- data/gui/nl/wz6finaltabs/xx0rwdfirsttab.rwd +0 -4
- data/gui/nl/xa1versionwindow/1appname.rwd +0 -17
- data/gui/nl/xa5rwdtinkercallablewindow/1appname.rwd +0 -15
- data/gui/nl/xa5rwdtinkercallablewindow/9end.rwd +0 -4
- data/gui/nl/xb1rwdtinkerbackwindow/1appname.rwd +0 -3
- data/gui/nl/xb1rwdtinkerbackwindow/2tab1.rwd +0 -9
- data/gui/nl/xb1rwdtinkerbackwindow/3arwddiagnostics.rwd +0 -31
- data/gui/nl/xb1rwdtinkerbackwindow/4arwdlistapplets.rwd +0 -42
- data/gui/nl/xb1rwdtinkerbackwindow/4arwdlistzips.rwd +0 -33
- data/gui/nl/xb1rwdtinkerbackwindow/9backend.rwd +0 -5
- data/gui/nl/xx9photoview/xx9photoview.rwd +0 -3
- data/gui/nl/ya1helpaboutbegin/ya0helpscreenstart.rwd +0 -1
- data/gui/nl/yg5rwdhelpabout/1appname.rwd +0 -2
- data/gui/nl/yg5rwdhelpabout/3copyright.rwd +0 -1
- data/gui/nl/yg5rwdhelpabout/5version.rwd +0 -9
- data/gui/nl/yg6rwdwin2helpabout/1appname.rwd +0 -2
- data/gui/nl/yg6rwdwin2helpabout/3copyright.rwd +0 -1
- data/gui/nl/yg6rwdwin2helpabout/5version.rwd +0 -9
- data/gui/nl/za1applicationend/yy9rwdend.rwd +0 -2
- data/lang/es/rwdcore/languagefile.rb +0 -4
- data/tests/rubyslippers-0.92.gemspec +0 -17
- data/tests/rwdtinker-1.2.gemspec +0 -17
- data/tests/temptest.out +0 -18
- data/zips/rwdrefreshacpi-0.1.zip +0 -0
- data/zips/rwdviewlogo-0.3.zip +0 -0
- data/zips/rwdwtinkerwin2-0.5.zip +0 -0
- /data/{code/al5languagefiles → lang}/alanguagehashbegin.rb +0 -0
- /data/{code/al5languagefiles → lang}/languagehash.rb +0 -0
- /data/{code/al5languagefiles/zlanguagehashend.rb → lang/vlanguagehashend.rb} +0 -0
|
@@ -1,11 +1,13 @@
|
|
|
1
|
-
|
|
1
|
+
|
|
2
|
+
RwdTinkerVersion = "1.41"
|
|
2
3
|
CodeName = "rwdtinker"
|
|
3
4
|
CodeNameFile = CodeName + ".rb"
|
|
5
|
+
LangNameFile = "rwdlanguage.rb"
|
|
4
6
|
RWDFile = "rwdtinker.rwd"
|
|
5
|
-
$lang = "en"
|
|
6
7
|
@@codedir = "code"
|
|
7
|
-
@@guidir = "gui"
|
|
8
|
+
@@guidir = "gui"
|
|
8
9
|
@@langdir = "lang"
|
|
9
10
|
|
|
10
|
-
TempLangHashFile = @@
|
|
11
|
+
TempLangHashFile = @@langdir + "/" + "templangfile.rb"
|
|
12
|
+
LocalLangHashFile = @@langdir + "/" + "xlocallangfile.rb"
|
|
11
13
|
$port = 7705
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
$rwdguivar=
|
|
2
|
+
|
|
3
|
+
"
|
|
4
|
+
<tab name=\"viewtinkerlogo\" caption=\"Tinker\">
|
|
5
|
+
|
|
6
|
+
<table>
|
|
7
|
+
<row> <p align=\"right\">#{Message[:tinker_logo]}</row>
|
|
8
|
+
|
|
9
|
+
</table>
|
|
10
|
+
<image src=\"tinker.png\"> </image>
|
|
11
|
+
<table>
|
|
12
|
+
<row> <p></row>
|
|
13
|
+
|
|
14
|
+
</table>
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
</tab>"
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
$rwdguivar=
|
|
2
|
+
"
|
|
3
|
+
<tab name=\"selectiontab\" caption=#{Message[:selection_panel]}>
|
|
4
|
+
|
|
5
|
+
<table>
|
|
6
|
+
<row> <p align=\"right\">Open a new window with callable applets you have loaded</row>
|
|
7
|
+
|
|
8
|
+
</table>
|
|
9
|
+
<horizontal>
|
|
10
|
+
|
|
11
|
+
<button caption=#{Message[:rwdtinker_help_window]} action=\"runrwdtinkerhelpwindow\"/>
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
</horizontal>"
|
|
15
|
+
|
|
16
|
+
|
|
@@ -1,13 +1,15 @@
|
|
|
1
|
-
|
|
1
|
+
$rwdguivar=
|
|
2
|
+
"
|
|
3
|
+
<row> <p align=\"left\">
|
|
2
4
|
<a href=HowTo_Tinker.txt>Howto_Tinker.txt</a></p></row>
|
|
3
|
-
<row> <p align
|
|
5
|
+
<row> <p align=\"left\">
|
|
4
6
|
<a href=Readme.txt>Readme.txt</a></p></row>
|
|
5
|
-
<row> <p align
|
|
7
|
+
<row> <p align=\"left\">
|
|
6
8
|
<a href=COPYING>GPL License </a></p></row>
|
|
7
|
-
<row> <p align
|
|
9
|
+
<row> <p align=\"left\">
|
|
8
10
|
<a href=rwdapplications.html>more information about rwdapplications </a></p></row>
|
|
9
|
-
<row> <p align
|
|
10
|
-
<a href=rwdindex.html>Link to online information about RubyWebdialogs </a></p></row>
|
|
11
|
+
<row> <p align=\"left\">
|
|
12
|
+
<a href=rwdindex.html>Link to online information about RubyWebdialogs </a></p></row>"
|
|
11
13
|
|
|
12
14
|
|
|
13
15
|
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
$rwdguivar=
|
|
2
|
+
"
|
|
3
|
+
<window name = \"applicationversion\" title=\"Application Version\">
|
|
2
4
|
|
|
3
5
|
<row> <p></row>
|
|
4
6
|
<p>%versionappnamedisplay%</p>
|
|
@@ -12,6 +14,6 @@
|
|
|
12
14
|
<cancel/>
|
|
13
15
|
</horizontal>
|
|
14
16
|
|
|
15
|
-
</window>
|
|
17
|
+
</window>"
|
|
16
18
|
|
|
17
19
|
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
$rwdguivar=
|
|
2
|
+
"
|
|
3
|
+
<window name = \"rwdtinkerhelpwindow\" title=#{Message[:rwdtinker_help]}>
|
|
4
|
+
<tabs>
|
|
5
|
+
<tab name=\"main\" caption=#{Message[:help]}>
|
|
6
|
+
<row> <p></row>
|
|
7
|
+
<row> <p>RwdTinker</row>
|
|
8
|
+
<cancel/>
|
|
9
|
+
</tab>
|
|
10
|
+
|
|
11
|
+
<tab name=\"nexttab\" caption=#{Message[:next]}>
|
|
12
|
+
<row> <p></row>
|
|
13
|
+
<row> <p>#{Message[:rwdtinker_help]}</row>
|
|
14
|
+
<cancel/>
|
|
15
|
+
</tab>
|
|
16
|
+
|
|
17
|
+
</tabs>"
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
$rwdguivar=
|
|
2
|
+
"
|
|
3
|
+
<tab name=\"diagnostictab\" caption=\"Diagnostic Tab\">
|
|
4
|
+
<horizontal>
|
|
5
|
+
<button caption=\"View Ruby Version\" action=\"runrubyversion\"/>
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
</horizontal>
|
|
9
|
+
<p>%rubyversion%</p>
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
<table>
|
|
13
|
+
<row> <p> </row>
|
|
14
|
+
|
|
15
|
+
</table>
|
|
16
|
+
|
|
17
|
+
<horizontal>
|
|
18
|
+
<button caption=\"view platform\" action=\"runviewplatform\"/>
|
|
19
|
+
|
|
20
|
+
</horizontal>
|
|
21
|
+
|
|
22
|
+
<p>%platformdisplay%</p>
|
|
23
|
+
<horizontal>
|
|
24
|
+
<button caption=\"View rwdtinker Version\" action=\"rwdtinkerversiondiagnostic\"/>
|
|
25
|
+
|
|
26
|
+
</horizontal>
|
|
27
|
+
|
|
28
|
+
<p>%rwdtinkerversionreturn%</p>
|
|
29
|
+
|
|
30
|
+
</tab>"
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
$rwdguivar=
|
|
2
|
+
"
|
|
3
|
+
<tab name=\"filelister\" caption=\"List Applets\">
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
<table>
|
|
7
|
+
<row> <p align=\"right\">File Name:</p> <text name=\"a_installlist\"/> </row>
|
|
8
|
+
|
|
9
|
+
</table>
|
|
10
|
+
|
|
11
|
+
<horizontal>
|
|
12
|
+
<button caption=\"View Install Text\" action=\"openname\"/>
|
|
13
|
+
<button caption=\"Cancel\" action=\"main\"/>
|
|
14
|
+
</horizontal>
|
|
15
|
+
<p>%displaytext%</p>
|
|
16
|
+
|
|
17
|
+
<table>
|
|
18
|
+
<row> <p align=\"right\">File Name:</p> <text name=\"a_removeapplet\"/> </row>
|
|
19
|
+
|
|
20
|
+
</table>
|
|
21
|
+
|
|
22
|
+
<p>%removeapplettext%</p>
|
|
23
|
+
<horizontal>
|
|
24
|
+
<button caption=\"remove applet\" action=\"removeapplet\"/>
|
|
25
|
+
<button caption=\"Cancel\" action=\"main\"/>
|
|
26
|
+
|
|
27
|
+
</horizontal>
|
|
28
|
+
<table>
|
|
29
|
+
<row> <p> </row>
|
|
30
|
+
<row> <p align=\"right\">View the list of installation files </row>
|
|
31
|
+
|
|
32
|
+
</table>
|
|
33
|
+
<horizontal>
|
|
34
|
+
|
|
35
|
+
<button caption=\"List Files\" action=\"listinstalledfiles\"/>
|
|
36
|
+
|
|
37
|
+
</horizontal>
|
|
38
|
+
|
|
39
|
+
<p>%%filesresult%%</p>
|
|
40
|
+
|
|
41
|
+
</tab>"
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
$rwdguivar=
|
|
2
|
+
"
|
|
3
|
+
<tab name=\"zipslister\" caption=\"List Zips\">
|
|
4
|
+
|
|
5
|
+
<table>
|
|
6
|
+
<row> <p align=\"right\">File Name:</p> <text name=\"a_installapplet\"/> </row>
|
|
7
|
+
|
|
8
|
+
</table>
|
|
9
|
+
|
|
10
|
+
<horizontal>
|
|
11
|
+
<button caption=\"install applet\" action=\"installapplet\"/>
|
|
12
|
+
<button caption=\"Cancel\" action=\"main\"/>
|
|
13
|
+
|
|
14
|
+
</horizontal>
|
|
15
|
+
<p>%installapplettext%</p>
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
<table>
|
|
19
|
+
<row> <p align=\"right\">Click below to view the list of zip files </row>
|
|
20
|
+
|
|
21
|
+
</table>
|
|
22
|
+
|
|
23
|
+
<horizontal>
|
|
24
|
+
<button caption=\"List applets available for installing\" action=\"listzipfilestoinstall\"/>
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
</horizontal>
|
|
29
|
+
|
|
30
|
+
<p>%%zipslistresult%%</p>
|
|
31
|
+
|
|
32
|
+
</tab>"
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
|
data/init.rb
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
|
|
2
2
|
#***********************************************************************
|
|
3
3
|
#* Rwd/Tinker -- A Ruby program for the RudyWebDialog.
|
|
4
|
-
#* Copyright (c) 2004 by Steven Gibson. All Rights Reserved.
|
|
4
|
+
#* Copyright (c) 2004, 2005 by Steven Gibson. All Rights Reserved.
|
|
5
5
|
#*
|
|
6
6
|
#* This library is free software; you can redistribute it and/or
|
|
7
7
|
#* modify it under the terms of the GNU General Public
|
|
@@ -43,7 +43,20 @@ $progdir = File::expand_path( File.dirname(__FILE__))
|
|
|
43
43
|
end
|
|
44
44
|
end
|
|
45
45
|
end
|
|
46
|
-
|
|
46
|
+
def loadguifile(d)
|
|
47
|
+
a = Array.new(Dir[d].entries.sort)
|
|
48
|
+
#loop through and get the files names
|
|
49
|
+
a.each do |x|
|
|
50
|
+
#adjust the filters to the files you want to see...
|
|
51
|
+
if(!test(?d,x))
|
|
52
|
+
# only rwd files
|
|
53
|
+
if x =~ /rb|rwd|txt/
|
|
54
|
+
load x #opens the file thats in fileName and reads it
|
|
55
|
+
$tempdoc += $rwdguivar # adds the file into the doc string
|
|
56
|
+
end
|
|
57
|
+
end
|
|
58
|
+
end
|
|
59
|
+
end
|
|
47
60
|
|
|
48
61
|
# Read in the configuration files
|
|
49
62
|
|
|
@@ -59,8 +72,8 @@ $progdir = File::expand_path( File.dirname(__FILE__))
|
|
|
59
72
|
|
|
60
73
|
Dir.chdir($progdir) # change back to top program directory
|
|
61
74
|
|
|
62
|
-
# build the Language hash file from the parts
|
|
63
|
-
startlangdir = @@langdir +"/" +
|
|
75
|
+
# build the English Language hash file from the parts
|
|
76
|
+
startlangdir = @@langdir +"/" + "en"
|
|
64
77
|
#get a list of the files and subdirectories on the starting directory only
|
|
65
78
|
alanghash = Array.new(Dir[startlangdir].entries.sort)
|
|
66
79
|
#loop through the list, ignore the files and add all new directories found
|
|
@@ -93,6 +106,62 @@ $progdir = File::expand_path( File.dirname(__FILE__))
|
|
|
93
106
|
# END of Lang building
|
|
94
107
|
$tempdoc = " "
|
|
95
108
|
Dir.chdir($progdir) # change back to top program directory
|
|
109
|
+
|
|
110
|
+
# build the local Language hash file from the parts
|
|
111
|
+
startlangdir = @@langdir +"/" + $lang
|
|
112
|
+
#get a list of the files and subdirectories on the starting directory only
|
|
113
|
+
alanghash = Array.new(Dir[startlangdir].entries.sort)
|
|
114
|
+
#loop through the list, ignore the files and add all new directories found
|
|
115
|
+
alanghash.each do |x|
|
|
116
|
+
#if a directory...
|
|
117
|
+
if(test(?d,x))
|
|
118
|
+
# add to the original list of directories
|
|
119
|
+
@@tmproot = x + "/**"
|
|
120
|
+
#adds the new ones to the array
|
|
121
|
+
blanghash = Dir[@@tmproot].entries.sort
|
|
122
|
+
blanghash.each do |x|
|
|
123
|
+
if(test(?d,x))
|
|
124
|
+
alanghash.push(x) #appends to the end of the array...
|
|
125
|
+
end
|
|
126
|
+
end
|
|
127
|
+
end
|
|
128
|
+
end
|
|
129
|
+
alanghash.each do |x|
|
|
130
|
+
#if it is a file...
|
|
131
|
+
if(!test(?d,x))
|
|
132
|
+
alanghash.delete(x)
|
|
133
|
+
else #it is a directory...
|
|
134
|
+
findfiles(x + "/**")
|
|
135
|
+
end
|
|
136
|
+
end
|
|
137
|
+
|
|
138
|
+
filelocalLangHash=File.open(LocalLangHashFile,"w") #deletes and opens a the file in fileName
|
|
139
|
+
filelocalLangHash.write($tempdoc) #writes the contents of doc into the file
|
|
140
|
+
filelocalLangHash.close
|
|
141
|
+
|
|
142
|
+
$tempdoc = " "
|
|
143
|
+
|
|
144
|
+
Dir.chdir($progdir) # change back to top program directory
|
|
145
|
+
|
|
146
|
+
# build the language hash constant object from the lang parts
|
|
147
|
+
#get a list of the files in lang directory only
|
|
148
|
+
alangfile = Dir.new(@@langdir).entries.sort.reverse.delete_if { |x| ! (x =~ /rb$/) }
|
|
149
|
+
alangfile.length.times{
|
|
150
|
+
fileName = alangfile.pop
|
|
151
|
+
Dir.chdir($progdir)
|
|
152
|
+
Dir.chdir(@@langdir)
|
|
153
|
+
fileLangA=File.open("#{fileName}","r") #opens the file thats in fileName as read only
|
|
154
|
+
$tempdoc += fileLangA.read #reads the file into the doc string
|
|
155
|
+
fileLangA.close
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
Dir.chdir($progdir)
|
|
159
|
+
fileLangB=File.open(LangNameFile,"w") #deletes and opens a the file in fileName
|
|
160
|
+
fileLangB.write($tempdoc) #writes the contents of doc into the file
|
|
161
|
+
fileLangB.close
|
|
162
|
+
load LangNameFile # load the file
|
|
163
|
+
|
|
164
|
+
$tempdoc = " "
|
|
96
165
|
|
|
97
166
|
# build the actual program from the code parts
|
|
98
167
|
#get a list of the files and subdirectories on the starting directory only
|
|
@@ -151,7 +220,7 @@ $progdir = File::expand_path( File.dirname(__FILE__))
|
|
|
151
220
|
a.delete(x)
|
|
152
221
|
|
|
153
222
|
else #it is a directory...
|
|
154
|
-
|
|
223
|
+
loadguifile(x + "/**")
|
|
155
224
|
end
|
|
156
225
|
end
|
|
157
226
|
|
|
@@ -1,16 +1,8 @@
|
|
|
1
1
|
# rwdwin2 - rwd applet in second window - core for Tinker: Applet adding/removing and Diagnostic tab
|
|
2
2
|
configuration/ab1tinkerwin2.cnf
|
|
3
3
|
code/xb1rwdtinkerbackwindow
|
|
4
|
-
gui/
|
|
5
|
-
gui/
|
|
6
|
-
gui/
|
|
7
|
-
gui/
|
|
8
|
-
gui/es/ll5rwdtinkerwin2selectiontab
|
|
9
|
-
gui/es/xb1rwdtinkerbackwindow
|
|
10
|
-
gui/es/uu6rwdtinkerwin2documents
|
|
11
|
-
gui/es/yg6rwdwin2helpabout
|
|
12
|
-
gui/nl/ll5rwdtinkerwin2selectiontab
|
|
13
|
-
gui/nl/xb1rwdtinkerbackwindow
|
|
14
|
-
gui/nl/uu6rwdtinkerwin2documents
|
|
15
|
-
gui/nl/yg6rwdwin2helpabout
|
|
4
|
+
gui/ll5rwdtinkerwin2selectiontab
|
|
5
|
+
gui/xb1rwdtinkerbackwindow
|
|
6
|
+
gui/uu6rwdtinkerwin2documents
|
|
7
|
+
gui/yg6rwdwin2helpabout
|
|
16
8
|
rwd_files/HowTo_TinkerWin2.txt
|
|
@@ -1,6 +1,16 @@
|
|
|
1
1
|
# English Language files for RwdTinker core
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
|
|
4
4
|
:applet_installed => "applet installed!.",
|
|
5
|
-
|
|
6
|
-
|
|
5
|
+
:clickfor_version => '"click for version"',
|
|
6
|
+
:documents => '"Documents"',
|
|
7
|
+
:help => '"Help"',
|
|
8
|
+
:module_unknown => "Module unknown",
|
|
9
|
+
:next => '"Next"',
|
|
10
|
+
:rwdtinker_window_2 => "RwdTinker Window 2",
|
|
11
|
+
:rwdtinker => "RwdTinker",
|
|
12
|
+
:rwdtinker_help_window => '"RwdTinker Help Window"',
|
|
13
|
+
:rwdtinker_back_window => '"RwdTinker Back Window"',
|
|
14
|
+
:rwdtinker_help => '"RwdTinker Help"',
|
|
15
|
+
:tinker_logo => "Tinker Logo",
|
|
16
|
+
:selection_panel => '"Selection Panel"',
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
:applet_installed => "applet instalado! ",
|
|
2
|
+
:clickfor_version => '"click para version"',
|
|
3
|
+
:documents => '"Documentos"',
|
|
4
|
+
:help => '"Ayuda"',
|
|
5
|
+
:module_unknown => "Module desconocido.",
|
|
6
|
+
:next => '"Siguiente"',
|
|
7
|
+
:rwdtinker => "RwdTinker",
|
|
8
|
+
:rwdtinker_help_window => '"RwdTinker Ventana Ayuda"',
|
|
9
|
+
:rwdtinker_help => '"RwdTinker Ayuda"',
|
|
10
|
+
:rwdtinker_window_2 => "RwdTinker Ventana 2",
|
|
11
|
+
:rwdtinker_back_window => '"RwdTinker Ventana Trasera"',
|
|
12
|
+
:tinker_logo => "Insignia de Tinker",
|
|
13
|
+
:selection_panel => '"Selecci�n Panel"',
|
|
14
|
+
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
# Japanese Language files for RwdTinker core
|
|
2
|
+
|
|
3
|
+
:module_unknown => "Module unknown",
|
|
4
|
+
:applet_installed => "applet installed!.",
|
|
5
|
+
:clickfor_version => '"click for version"',
|
|
6
|
+
:rwdtinker_window_2 => "RwdTinker Window 2",
|
|
7
|
+
:rwdtinker => "RwdTinker",
|
|
8
|
+
:selection_panel => "せんたく",
|
|
9
|
+
:documents => "オンラインマニュアル",
|
|
@@ -1,4 +1,19 @@
|
|
|
1
|
-
|
|
2
|
-
:applet_installed => "applet installed!",
|
|
3
|
-
|
|
1
|
+
# English Language files for RwdTinker core
|
|
4
2
|
|
|
3
|
+
:cancel => '"Annuleren"',
|
|
4
|
+
:open => '"Openen"',
|
|
5
|
+
:save => '"Opslaan"',
|
|
6
|
+
:window => '"Venster"',
|
|
7
|
+
:applet_installed => '"Applet geinstalleerd"',
|
|
8
|
+
:clickfor_version => '"Klier hier voor de Versie"',
|
|
9
|
+
:documents => '"Documenten"',
|
|
10
|
+
:help => '"Help"',
|
|
11
|
+
:module_unknown => '"Module onbekend"',
|
|
12
|
+
:next => '"Volgende"',
|
|
13
|
+
:rwdtinker => '"RWDTinker"',
|
|
14
|
+
:rwdtinker_help_window => '"RWDTinker Help Venster"',
|
|
15
|
+
:rwdtinker_help => '"RWDTinker Help"',
|
|
16
|
+
:rwdtinker_window_2 => '"RWDTinker Venster 2"',
|
|
17
|
+
:rwdtinker_back_window => '"RwdTinker Back Venster"',
|
|
18
|
+
:tinker_logo => '"RWDTinker Logo"',
|
|
19
|
+
:selection_panel => '"Selectie Paneel"',
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
# English Language files for RwdTinker core
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
:applet_installed => "applet installed!.",
|
|
5
|
+
:clickfor_version => '"click for version"',
|
|
6
|
+
:documents => '"Documents"',
|
|
7
|
+
:help => '"Help"',
|
|
8
|
+
:module_unknown => "Module unknown",
|
|
9
|
+
:next => '"Next"',
|
|
10
|
+
:rwdtinker_window_2 => "RwdTinker Window 2",
|
|
11
|
+
:rwdtinker => "RwdTinker",
|
|
12
|
+
:rwdtinker_help_window => '"RwdTinker Help Window"',
|
|
13
|
+
:rwdtinker_back_window => '"RwdTinker Back Window"',
|
|
14
|
+
:rwdtinker_help => '"RwdTinker Help"',
|
|
15
|
+
:tinker_logo => "Tinker Logo",
|
|
16
|
+
:selection_panel => '"Selection Panel"',
|