v50 Steam/Premium information for editors
- v50 information can now be added to pages in the main namespace. v0.47 information can still be found in the DF2014 namespace. See here for more details on the new versioning policy.
- Use this page to report any issues related to the migration.
This notice may be cached—the current version can be found here.
Editing Language token
Jump to navigation
Jump to search
Warning: You are not logged in.
Your IP address will be recorded in this page's edit history.
If you are creating a redirect to the current version's page, do not use any namespace. For example: use #REDIRECT [[Cat]], not #REDIRECT [[Main:Cat]] or #REDIRECT [[cv:Cat]]. See DF:Versions for more information.
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 1: | Line 1: | ||
+ | {{Migrated_article}} | ||
+ | {{quality|Exceptional|18:10, 28 April 2011 (UTC)}}{{av}} | ||
− | + | Language tokens are used within the language_*.txt raw files. Each token is permitted in a specific context. | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
==WORD== | ==WORD== | ||
Line 19: | Line 12: | ||
|- | |- | ||
− | + | | NOUN | |
| | | | ||
* singular | * singular | ||
* plural | * plural | ||
− | | Begins defining a noun usage of a word | + | | Begins defining a noun usage of a word |
|- | |- | ||
− | + | | ADJ | |
| | | | ||
* adjective | * adjective | ||
− | | Begins defining an adjective usage of a word | + | | Begins defining an adjective usage of a word |
|- | |- | ||
− | + | | PREFIX | |
| | | | ||
− | * prefix | + | * prefix |
− | | Begins defining a prefix usage of a word | + | | Begins defining a prefix usage of a word |
|- | |- | ||
− | + | | VERB | |
| | | | ||
* present first person | * present first person | ||
Line 45: | Line 38: | ||
* past participle | * past participle | ||
* present participle | * present participle | ||
− | | Defines a verb usage of a word | + | | Defines a verb usage of a word |
|- | |- | ||
− | + | | ADJ_DIST | |
| number 1-7 | | number 1-7 | ||
| Determines what order the adjective being defined comes in when in a string of multiple adjectives. | | Determines what order the adjective being defined comes in when in a string of multiple adjectives. | ||
|- | |- | ||
− | + | | THE_NOUN_SING | |
− | | | + | | |
− | | Lets the singular noun form of the word be used after "the" ("The X of Y", where X is the word with the tag) | + | | Lets the singular noun form of the word be used after "the". ("The X of Y", where X is the word with the tag) |
|- | |- | ||
− | + | | THE_NOUN_PLUR | |
− | | | + | | |
− | | As above, but with plural ("The Xs of Y") | + | | As above, but with plural. ("The Xs of Y") |
|- | |- | ||
− | + | | THE_COMPOUND_NOUN_SING | |
− | | | + | | |
− | | Lets the singular noun form of the word be used as part of a compound noun after "the" ("The Z-X of Y") | + | | Lets the singular noun form of the word be used as part of a compound noun after "the" ("The Z-X of Y") |
|- | |- | ||
− | + | | THE_COMPOUND_NOUN_PLUR | |
− | | | + | | |
− | | As above, but with plural ("The Z-Xs of Y") | + | | As above, but with plural. ("The Z-Xs of Y") |
|- | |- | ||
− | + | | THE_COMPOUND_ADJ | |
− | | | + | | |
− | | Lets the adjective form of the word be used as part of a compound noun after "the" ("The Z-X of Y") | + | | Lets the adjective form of the word be used as part of a compound noun after "the" ("The Z-X of Y") |
|- | |- | ||
− | + | | OF_NOUN_SING | |
− | | | + | | |
− | | Lets the singular noun form of the word be used after "of" ("The Y of X") | + | | Lets the singular noun form of the word be used after "of" ("The Y of X") |
|- | |- | ||
− | + | | OF_NOUN_PLUR | |
− | | | + | | |
− | | As above, but with plural ( | + | | As above, but with plural. (The Y of Xs) |
|- | |- | ||
− | + | | FRONT_COMPOUND_NOUN_SING | |
− | | | + | | |
− | | Lets the singular noun form of the word be used at the front of a compound noun ( | + | | Lets the singular noun form of the word be used at the front of a compound noun (XY, as in surnames) |
|- | |- | ||
− | + | | FRONT_COMPOUND_NOUN_PLUR | |
− | | | + | | |
| As above, but with plural. | | As above, but with plural. | ||
|- | |- | ||
− | + | | REAR_COMPOUND_NOUN_SING | |
| | | | ||
− | | Lets the singular noun form of the word be used at the rear of a compound noun ( | + | | Lets the singular noun form of the word be used at the rear of a compound noun (YX, as in surnames) |
|- | |- | ||
− | + | | REAR_COMPOUND_NOUN_PLUR | |
− | | | + | | |
| As above, but with plural. | | As above, but with plural. | ||
|- | |- | ||
− | + | | FRONT_COMPOUND_ADJ | |
− | | | + | | |
− | | Lets the adjective form of the word be used at the front of a compound noun | + | | Lets the adjective form of the word be used at the front of a compound noun |
|- | |- | ||
− | + | | REAR_COMPOUND_ADJ | |
− | | | + | | |
| As above, but at the rear instead. | | As above, but at the rear instead. | ||
− | + | ||
|- | |- | ||
− | + | | FRONT_COMPOUND_PREFIX | |
− | | | + | | |
| Allows the prefix form to be appended as a prefix to a compound noun. | | Allows the prefix form to be appended as a prefix to a compound noun. | ||
|- | |- | ||
− | + | | THE_COMPOUND_PREFIX | |
− | | | + | | |
| Allows the prefix form to be appended as a prefix to a compound noun following "the". | | Allows the prefix form to be appended as a prefix to a compound noun following "the". | ||
|- | |- | ||
− | + | | STANDARD_VERB | |
− | | | + | | |
| Allows the verb to be used in a compound noun and for its participles to be used as adjectives. | | Allows the verb to be used in a compound noun and for its participles to be used as adjectives. | ||
+ | |||
|} | |} | ||
Line 141: | Line 135: | ||
|- | |- | ||
− | + | | S_WORD | |
| | | | ||
* WORD | * WORD | ||
− | | Specifies the given WORD (defined in | + | | Specifies the given WORD (defined in language_words.txt) as belonging to the symbol being defined. A given word can belong to multiple symbols. |
+ | |||
|} | |} | ||
+ | |||
==TRANSLATION== | ==TRANSLATION== | ||
Line 156: | Line 152: | ||
|- | |- | ||
− | + | | T_WORD | |
− | | | + | | |
* WORD | * WORD | ||
* translation | * translation | ||
| Specifies a translation from a given WORD (defined in language_words.txt) into the language being defined. | | Specifies a translation from a given WORD (defined in language_words.txt) into the language being defined. | ||
+ | |||
|} | |} | ||
− | ==English instead of | + | ==English instead of dwarfen language (Linux)== |
− | You can hack the language files | + | You can hack the language files in vi with this regular expression command: |
'''<nowiki>:%s/T_WORD:\([A-Z_ -]*\):[^\]]*\]/T_WORD:\1:\L\1]/</nowiki>''' | '''<nowiki>:%s/T_WORD:\([A-Z_ -]*\):[^\]]*\]/T_WORD:\1:\L\1]/</nowiki>''' | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | + | ==See Also== | |
+ | [[40d:Language]] (has expanded explanations of parts of the language system, which seems to still be the same in this version) | ||
+ | |||
{{Category|Modding}} | {{Category|Modding}} | ||
{{Category|Tokens}} | {{Category|Tokens}} | ||
− | |||
− |