Develop and Download Open Source Software

Browse CVS Repository

Contents of /exerb/exerb-win32/m17n.rb

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.5 - (show annotations) (download)
Fri May 30 01:00:52 2003 UTC (20 years, 10 months ago) by yuya
Branch: MAIN
CVS Tags: HEAD
Changes since 1.4: +1 -1 lines
FILE REMOVED
* ソースファイルをsrcディレクトリに移動

1
2 #==============================================================================#
3 # $Id: m17n.rb,v 1.4 2003/02/07 06:07:32 yuya Exp $
4 #==============================================================================#
5
6 class Symbol
7
8 def _
9 entry = Exerb32::M17N::TABLE[self]
10
11 unless entry
12 raise "entry not found in the string table -- :#{self.to_s}"
13 end
14
15 return (Exerb32::M17N.japanese_environment? ? entry[1] : entry[0])
16 end
17
18 end
19
20 #==============================================================================#
21
22 module Exerb32
23
24 module M17N
25
26 TABLE = {
27 :menu_file => ['&File', '繝輔ぃ繧、繝ォ(&F)'],
28 :menu_file_exit => ['E&xit', '邨ゆコ?&X)'],
29 :menu_help => ['&Help', '繝倥Ν繝?&H)'],
30 :menu_help_about => ['&About', '繝舌?繧ク繝ァ繝ウ諠??ア(&A)'],
31
32 :lab_corefile => ['Core file', '繧ウ繧「繝輔ぃ繧、繝ォ'],
33 :lab_rbcfile => ['Recipe file', '繝ャ繧キ繝斐ヵ繧。繧、繝ォ'],
34 :lab_exefile => ['Output file', '蜃コ蜉帙ヵ繧。繧、繝ォ'],
35 :lab_option => ['Options', '繧ェ繝励す繝ァ繝ウ'],
36 :lab_compress => ['Compresses an archive', '繧「繝シ繧ォ繧、繝悶r蝨ァ邵ョ'],
37
38 :btn_build => ['Generate exe file', '螳溯。後ヵ繧。繧、繝ォ繧堤函謌?#39;],
39
40 :filter_rbc => ['Recipe file(*.rbc)', '繝ャ繧キ繝斐ヵ繧。繧、繝ォ(*.rbc)'],
41 :filter_exe => ['Executable file(*.exe)', '螳溯。後ヵ繧。繧、繝ォ(*.exe)'],
42 :filter_all => ['All files(*.*)', '縺吶∋縺ヲ縺ョ繝輔ぃ繧、繝ォ(*.*)'],
43
44 :state_preparing => ['Starting...', '貅門y荳ュ...'],
45 :state_read_rbc => ['Reading recipe file...', '繝ャ繧キ繝斐ヵ繧。繧、繝ォ隱ュ霎シ荳ュ...'],
46 :state_read_arc => ['Reading archive...', '繧「繝シ繧ォ繧、繝冶ェュ霎シ荳ュ...'],
47 :state_build_arc => ['Building archive...', '繧「繝シ繧ォ繧、繝也函謌蝉クュ...'],
48 :state_read_core => ['Reading core file...', '繧ウ繧「繝輔ぃ繧、繝ォ隱ュ霎シ荳ュ...'],
49 :state_build_exe => ['Building exectable file...', '螳溯。後ヵ繧。繧、繝ォ逕滓?荳ュ...'],
50 :state_verify_exe => ['Verifying exectable file...', '螳溯。後ヵ繧。繧、繝ォ遒コ隱堺クュ...'],
51 :state_write_exe => ['Writing exectable file...', '螳溯。後ヵ繧。繧、繝ォ譖ク霎シ荳ュ...'],
52
53 :msg_core_empty => ['Please choose a core file.', '繧ウ繧「繝輔ぃ繧、繝ォ縺碁∈謚槭&繧後※縺?∪縺帙s縲?#39;],
54 :msg_rbc_empty => ['Please input filename of recipe.', '繝ャ繧キ繝斐ヵ繧。繧、繝ォ蜷阪′蜈・蜉帙&繧後※縺?∪縺帙s縲?#39;],
55 :msg_exe_empty => ['Please input filename of output.', '蜃コ蜉帙ヵ繧。繧、繝ォ蜷阪′蜈・蜉帙&繧後※縺?∪縺帙s縲?#39;],
56 :msg_overwrite => ['"%s" exists already. Do you want to overwrite?', '"%s"縺ッ譌「縺ォ蟄伜惠縺励∪縺吶?ゆク頑嶌縺阪@縺セ縺吶°??#39;],
57 :msg_created => [
58 %|"%s" was created.\n\nCore file\t\t: %s\nRecipe file\t: %s\nOutput file\t: %s\nSize of output file\t: %s byte\nArchive compression\t: %s|,
59 %|"%s"繧堤函謌舌@縺セ縺励◆縲?n\n繧ウ繧「繝輔ぃ繧、繝ォ\t: %s\n繝ャ繧キ繝斐ヵ繧。繧、繝ォ\t: %s\n蜃コ蜉帙ヵ繧。繧、繝ォ\t: %s\n蜃コ蜉帙ヵ繧。繧、繝ォ繧オ繧、繧コ\t: %s 繝舌う繝?n繧「繝シ繧ォ繧、繝門悸邵ョ\t: %s|
60 ],
61 :msg_failed => [
62 %|"%s" building failed. Details are as follows.\n\n%s\n%s|,
63 %|"%s"縺ョ菴懈?縺ォ螟ア謨励@縺セ縺励◆縲りゥウ邏ー縺ッ荳玖ィ倥?騾壹j縺ァ縺吶??n\n%s\n%s|
64 ],
65
66 :str_enable => ['Enable', '譛牙柑'],
67 :str_disable => ['Disable', '辟。蜉ケ'],
68
69 :title_about => ['About', '繝舌?繧ク繝ァ繝ウ諠??ア'],
70 }
71
72 def self.japanese_environment?
73 return (Win32::GetUserDefaultLangID.call & 0x3ff) == Win32::LANG_JAPANESE
74 end
75
76 end
77
78 end
79
80 #==============================================================================#
81 #==============================================================================#

Back to OSDN">Back to OSDN
ViewVC Help
Powered by ViewVC 1.1.26