Mercurial > projects > dil
annotate trunk/src/lang_en.d @ 349:a0711c57c1db
- Added variable 'lang_code' to language files.
- Changed the variable 'language' in config.d to 'langfile'. It must contain the path to the language file.
author | aziz |
---|---|
date | Sat, 25 Aug 2007 11:13:01 +0000 |
parents | f13d551d7c4f |
children | 511c14950cac |
rev | line source |
---|---|
309 | 1 /++ |
2 Author: Aziz Köksal | |
3 License: GPL3 | |
4 +/ | |
5 | |
349 | 6 string lang_code = "en"; |
7 | |
309 | 8 string[] messages = [ |
310 | 9 // Lexer messages: |
309 | 10 "invalid Unicode character.", |
11 "invalid UTF-8 sequence.", | |
12 // '' | |
13 "unterminated character literal.", | |
14 "empty character literal.", | |
15 // #line | |
16 "expected 'line' after '#'.", | |
17 "integer expected after #line", | |
323 | 18 `expected filespec string (e.g. "path\to\file".)`, |
19 "unterminated filespec string.", | |
309 | 20 "expected a terminating newline after special token.", |
21 // "" | |
22 "unterminated string literal.", | |
23 // x"" | |
24 "non-hex character '{1}' found in hex string.", | |
25 "odd number of hex digits in hex string.", | |
26 "unterminated hex string.", | |
27 // /* */ /+ +/ | |
28 "unterminated block comment (/* */).", | |
29 "unterminated nested comment (/+ +/).", | |
30 // `` r"" | |
31 "unterminated raw string.", | |
32 "unterminated back quote string.", | |
33 // \x \u \U | |
34 "found undefined escape sequence.", | |
35 "insufficient number of hex digits in escape sequence.", | |
36 // \&[a-zA-Z][a-zA-Z0-9]+; | |
37 "undefined HTML entity '{1}'", | |
38 "unterminated HTML entity.", | |
310 | 39 "HTML entities must begin with a letter.", |
309 | 40 // integer overflows |
41 "decimal number overflows sign bit.", | |
42 "overflow in decimal number.", | |
43 "overflow in hexadecimal number.", | |
44 "overflow in binary number.", | |
45 "overflow in octal number.", | |
46 "overflow in float number.", | |
47 "digits 8 and 9 are not allowed in octal numbers.", | |
48 "invalid hex number; at least one hex digit expected.", | |
49 "invalid binary number; at least one binary digit expected.", | |
50 "the exponent of a hexadecimal float number is required.", | |
51 "missing decimal digits in hexadecimal float exponent.", | |
52 "exponents have to start with a digit.", | |
53 | |
54 // Parser messages | |
55 "expected '{1}', but found '{2}'.", | |
56 "'{1}' is redundant.", | |
341
3ac651ea83fb
- Fix: created TemplateAliasParameter instead of TemplateTypeParameter.
aziz
parents:
338
diff
changeset
|
57 "template tuple parameters can only be last.", |
342
f13d551d7c4f
- Added error messages MID.InContract and MID.OutContract.
aziz
parents:
341
diff
changeset
|
58 "the functions 'in' contract was already parsed.", |
f13d551d7c4f
- Added error messages MID.InContract and MID.OutContract.
aziz
parents:
341
diff
changeset
|
59 "the functions 'out' contract was already parsed.", |
309 | 60 |
310 | 61 // Help messages: |
309 | 62 `dil v{1} |
310 | 63 Copyright (c) 2007 by Aziz Köksal. Licensed under the GPL3. |
309 | 64 |
65 Subcommands: | |
338 | 66 {2} |
309 | 67 Type 'dil help <subcommand>' for more help on a particular subcommand. |
68 | |
338 | 69 Compiled with {3} v{4} on {5}.`, |
329 | 70 `Generate an XML or HTML document from a D source file. |
71 Usage: | |
72 dil gen file.d [Options] | |
73 | |
74 Options: | |
338 | 75 --syntax : generate tags for the syntax tree |
76 --xml : use XML format (default) | |
329 | 77 --html : use HTML format |
78 | |
79 Example: | |
338 | 80 dil gen Parser.d --html --syntax > Parser.html`, |
309 | 81 ]; |