Debian Codegraph @

rhino/toolsrc/org/mozilla/javascript/tools/resources/Messages.properties

raw
1 #
2 # JavaScript tools messages file.
3 #
4 # This Source Code Form is subject to the terms of the Mozilla Public
5 # License, v. 2.0. If a copy of the MPL was not distributed with this
6 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
7
8 msg.expected.string.arg =\
9 Expected a string argument.
10
11 msg.class.not.found =\
12 Class "{0}" not found.
13
14 msg.couldnt.open =\
15 Couldn''t open file "{0}".
16
17 msg.couldnt.open.url =\
18 Couldn''t open URL "{0}": {1}.
19
20 msg.couldnt.read.source =\
21 Couldn''t read source file "{0}": {1}.
22
23 msg.no-opt =\
24 Must have the org.mozilla.javascript.optimizer package available \
25 to compile to class files.
26
27 msg.shell.invalid =\
28 Invalid option "{0}"
29
30 msg.shell.usage =\
31 Usage: java {0} [options...] [files]\n\
32 Valid options are:\n\
33 \ -?, -help Displays help messages.\n\
34 \ -w Enable warnings.\n\
35 \ -version 100|110|120|130|140|150|160|170|180|200\n\
36 \ Set a specific language version.\n\
37 \ -opt [-1|0-9] Set optimization level.\n\
38 \ -f script-filename Execute script file, or "-" for interactive.\n\
39 \ -e script-source Evaluate inline script.\n\
40 \ -modules [uri] Add a single path or URL element to the CommonJS\n\
41 \ module search path. (implies -require)\n\
42 \ -require Enable CommonJS module support.\n\
43 \ -sandbox Enable CommonJS sandbox mode. (implies -require)\n\
44 \ -debug Generate debug code.\n\
45 \ -strict Enable strict mode warnings.\n\
46 \ -fatal-warnings Treat warnings as errors.\n\
47 \ -encoding charset Use specified character encoding as default when reading scripts.
48
49 msg.help =\
50 \n\
51 Command Description \n\
52 ======= =========== \n\
53 help() Display usage and help messages. \n\
54 defineClass(className) Define an extension using the Java class \n\
55 \ named with the string argument. \n\
56 \ Uses ScriptableObject.defineClass(). \n\
57 load(["foo.js", ...]) Load JavaScript source files named by \n\
58 \ string arguments. \n\
59 loadClass(className) Load a class named by a string argument. \n\
60 \ The class must be a script compiled to a \n\
61 \ class file. \n\
62 print([expr ...]) Evaluate and print expressions. \n\
63 write([expr ...]) Evaluate and print just like "print" but without a trailing newline. \n\
64 quit() Quit the shell. \n\
65 version([number]) Get or set the JavaScript version number. \n\
66 gc() Runs the garbage collector.\n\
67 spawn(arg) Evaluate function or script name on a new thread \n\
68 sync(function [, obj]) Creates a synchronized version of the function, \n\
69 \ where the synchronization object is the obj \n\
70 \ argument or "this" if obj is undefined\n\
71 readline([prompt])\n\
72 \ Reads a line of input from the console terminal. \n\
73 \ "prompt" is optional, and if included, will be printed \n\
74 \ before taking the input. \n\
75 readFile(fileName [, encoding])\n\
76 \ Returns the content of the file as a string. \n\
77 \ Encoding of the string can be optionally specified. \n\
78 readUrl(url [, encoding]) \n\
79 \ Similar to readFile, reads the contents of the url.\n\
80 runCommand(name ...) Runs a specified shell command. Additional arguments are \n\
81 \ passed to the command \n\
82 seal(args ...) Seals the supplied objects \n\
83 toint32(arg) Converts the argument into a 32-bit integer \n\
84 serialize(obj, fileName) \n\
85 \ Serializes an object and saves it to a file \n\
86 deserialize(fileName) Reconstructs a serialized object \n\
87 environment Returns the current environment object \n\
88 history Displays the shell command history
89
90 msg.warning =\
91 warning: {0}
92
93 msg.format1 =\
94 {0}
95
96 msg.format2 =\
97 line {0}: {1}
98
99 msg.format3 =\
100 "{0}", line {1}: {2}
101
102 msg.uncaughtJSException =\
103 exception from uncaught JavaScript throw: {0}
104
105 msg.uncaughtEcmaError =\
106 uncaught JavaScript runtime exception: {0}
107
108 msg.jsc.bad.usage =\
109 Didn''t understand "{1}". \n\
110 For more information, try java {0} -h
111
112 msg.jsc.usage =\
113 Usage: java {0} [OPTION]... SOURCE...\n\
114 Valid options are: \n\
115 \ -version VERSION Use the specified language version.\n\
116 \ VERSION should be one of 100|110|120|130|140|150|160|170.\n\
117 \ -opt LEVEL Use optimization with the specified level.\n\
118 \ LEVEL should be one of 0..9.\n\
119 \ -debug, -g Include debug information.\n\
120 \ -nosource Do not include source to function objects.\n\
121 \ It makes f.toString() useless and violates ECMAScript\n\
122 \ standard but makes generated classes smaller and\n\
123 \ saves memory.\n\
124 \ -o CLASSNAME Use specified name as the last component of the main\n\
125 \ generated class name. When specified, only one script\n\
126 \ SOURCE is allowed. If omitted, it defaults to source\n\
127 \ name with stripped .js suffix.\n\
128 \ -package PACKAGE Place generated classes in the specified package.\n\
129 \ -d DIRECTORY Use DIRECTORY as destination directory for generated\n\
130 \ classes. If omitted, it defaults to parent directory\n\
131 \ of SOURCE.\n\
132 \ -encoding charset Sets the character encoding of the source files. \n\
133 \ -extends CLASS The main generated class will extend the specified\n\
134 \ class CLASS.\n\
135 \ -implements INTERFACE1,INTERFACE2,... The main generated class will\n\
136 \ implement the specified list of interfaces.\n\
137 \ -main-method-class CLASS Specify the class name used for main method \n\
138 \ implementation. The class must have a method matching\n\
139 \ "public static void main(Script sc, String[] args)"\n\
140 \ -observe-instruction-count Generate code that contains callbacks to \n\
141 \ accumulate counts of executed instructions. Code \n\
142 \ compiled with this flag can be monitored using \n\
143 \ Context.setInstructionObserverThreshold. \n\
144 \ -help, --help, -h Print this help and exit.\n\
145
146
147 msg.no.file =\
148 A file name must be specified to compile.
149
150 msg.invalid.classfile.name =\
151 File "{0}" is not a valid class file name.
152
153 msg.extension.not.js =\
154 File "{0}" is not a valid js file name.
155
156 msg.jsfile.not.found=\
157 File "{0}" not found.
158
159 msg.multiple.js.to.file =\
160 Cannot compile multiple js files to "{0}".
161
162 msg.package.name =\
163 "{0}" is not a valid package name.
164
165 msg.spawn.args =\
166 Argument to spawn() must be a function or script.
167
168 msg.must.implement.Script =\
169 Argument to loadClass() must be the name of a class that implements \
170 the Script interface. Class files generated by compiling scripts \
171 will implement Script.
172
173 msg.must.implement.Scriptable =\
174 Argument to defineClass() must be the name of a class that implements \
175 the Scriptable interface.
176
177 msg.runCommand.bad.args =\
178 The first argument to runCommand must be a command name.
179
180 msg.runCommand.bad.env =\
181 A value of the env property of option object for runCommnad must be an \
182 object.
183
184 msg.shell.seal.not.object =\
185 seal function can only be applied to objects
186
187 msg.shell.seal.not.scriptable =\
188 seal function supports only sealing of ScriptableObject instances
189
190 msg.shell.readFile.bad.args =\
191 readFile require at least file path to be specified
192
193 msg.shell.readUrl.bad.args =\
194 readUrl require at least file path to be specified
195
196 msg.shell.bad.function.scope =\
197 Wrong scope object for shell function: {0}
198
199 msg.idswitch.same_string =\
200 The string {0} is used second time in the switch code. \
201 Previous occurrence was at line {1}
202
203 msg.idswitch.file_end_in_switch =\
204 End of file inside tag {0}
205
206 msg.idswitch.bad_tag_order =\
207 String switch tag {0} is not allowed here
208
209 msg.idswitch.no_end_with_value =\
210 End for tag {0} can not contain value
211
212 msg.idswitch.no_value_allowed =\
213 Tag {0} can not contain value
214
215 msg.idswitch.no_end_usage =\
216 Tag {0} can not be used as end tag
217
218 msg.idswitch.no_file_argument =\
219 File argument should be given
220
221 msg.idswitch.too_many_arguments =\
222 Too many arguments are given
223
224 msg.idswitch.bad_option =\
225 Invalid option {0}
226
227 msg.idswitch.bad_option_char =\
228 Invalid option letter {0}
229
230 msg.idswitch.bad_invocation =\
231 StringIdMap: {0}\n\
232 For more information, try\n\
233 java org.mozilla.javascript.tools.idswitch.StringIdMap --help
234
235 msg.idswitch.io_error =\
236 StringIdMap: IO error, {0}
237
238 msg.idswitch.usage = \
239 Usage: java org.mozilla.javascript.tools.idswitch.StringIdMap [OPTIONS] JAVA_SOURCE_FILE\n\
240 Generates efficient string dispatch code in JAVA_SOURCE_FILE.\n\
241 The resulting Java source fragment replaces the old dispatch code.\n\
242 If JAVA_SOURCE_FILE is -, standard input is used for Java source and the\n\
243 result is sent to standard output.\n\
244 \n\
245 \ -h, --help display this help and exit\n\
246 \ --version display version information and exit\n\
247 \n\
248 Note: the original file will be overwritten without any backup actions\n\
249 \ and all code inside #generated# tag will be replaced by new one.
250
251 msg.idswitch.version = \
252 org.mozilla.javascript.tools.idswitch.StringIdMap version 0.2
253