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|unrated}}{{av}}
  
{{Quality|Fine}}
+
Language tokens are used within the language_*.txt raw files. Each token is permitted in a specific context.
{{av}}
 
{{Modding}}
 
 
 
'''Language tokens''' can be used to adjust existing [[language]]s or create a whole new languages. Vanilla language definitions can be found in <code>[[Game folder|<Dwarf Fortress>]]\data\vanilla\vanilla_languages\</code> within the language_*.txt raw files. Each [[token]] is permitted in a specific context.
 
 
 
Note: All language [[raw file]]s use [[Character table|Codepage 437]] encoding, and you should make sure you are editing these files in that format. As many text editors default to UTF-8, some characters with diacritical marks may fail to show properly. Saving one of the default language raw files in this state will overwrite these characters with the unicode question mark, which will corrupt the file. To fix this replace the file with a clean one downloaded from the distributed version of DF.
 
 
 
__TOC__
 
{{clear}}
 
  
 
==WORD==
 
==WORD==
Line 19: Line 12:
  
 
|-
 
|-
| {{text anchor|NOUN}}
+
| NOUN
 
|
 
|
 
* singular
 
* singular
 
* plural
 
* plural
| Begins defining a noun usage of a word.
+
| Begins defining a noun usage of a word  
  
 
|-
 
|-
| {{text anchor|ADJ}}
+
| ADJ
 
|
 
|
 
* adjective
 
* adjective
| Begins defining an adjective usage of a word.
+
| Begins defining an adjective usage of a word  
  
 
|-
 
|-
| {{text anchor|PREFIX}}
+
| PREFIX
 
|
 
|
* prefix
+
* prefix
| Begins defining a prefix usage of a word.
+
| Begins defining a prefix usage of a word
  
 
|-
 
|-
| {{text anchor|VERB}}
+
| 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
  
 
|-
 
|-
| {{text anchor|ADJ_DIST}}
+
| 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.
  
 
|-
 
|-
| {{text anchor|THE_NOUN_SING}}
+
| 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)
  
 
|-
 
|-
| {{text anchor|THE_NOUN_PLUR}}
+
| THE_NOUN_PLUR  
|  
+
|
| As above, but with plural ("The Xs of Y").
+
| As above, but with plural. ("The Xs of Y")
  
 
|-
 
|-
| {{text anchor|THE_COMPOUND_NOUN_SING}}
+
| 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")
  
 
|-
 
|-
| {{text anchor|THE_COMPOUND_NOUN_PLUR}}
+
| THE_COMPOUND_NOUN_PLUR  
|  
+
|
| As above, but with plural ("The Z-Xs of Y").
+
| As above, but with plural. ("The Z-Xs of Y")
  
 
|-
 
|-
| {{text anchor|THE_COMPOUND_ADJ}}
+
| 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")
  
 
|-
 
|-
| {{text anchor|OF_NOUN_SING}}
+
| 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")
  
 
|-
 
|-
| {{text anchor|OF_NOUN_PLUR}}
+
| OF_NOUN_PLUR
|  
+
|
| As above, but with plural ("The Y of Xs").
+
| As above, but with plural. (The Y of Xs)
  
 
|-
 
|-
| {{text anchor|FRONT_COMPOUND_NOUN_SING}}
+
| FRONT_COMPOUND_NOUN_SING  
|  
+
|
| Lets the singular noun form of the word be used at the front of a compound noun ("XY", as in surnames).
+
| Lets the singular noun form of the word be used at the front of a compound noun (XY, as in surnames)
  
 
|-
 
|-
| {{text anchor|FRONT_COMPOUND_NOUN_PLUR}}
+
| FRONT_COMPOUND_NOUN_PLUR  
|  
+
|
 
| As above, but with plural.
 
| As above, but with plural.
  
 
|-
 
|-
| {{text anchor|REAR_COMPOUND_NOUN_SING}}
+
| REAR_COMPOUND_NOUN_SING
 
|
 
|
| Lets the singular noun form of the word be used at the rear of a compound noun ("YX", as in surnames).
+
| Lets the singular noun form of the word be used at the rear of a compound noun (YX, as in surnames)
  
 
|-
 
|-
| {{text anchor|REAR_COMPOUND_NOUN_PLUR}}
+
| REAR_COMPOUND_NOUN_PLUR  
|  
+
|
 
| As above, but with plural.
 
| As above, but with plural.
  
 
|-
 
|-
| {{text anchor|FRONT_COMPOUND_ADJ}}
+
| 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
  
 
|-
 
|-
| {{text anchor|REAR_COMPOUND_ADJ}}
+
| REAR_COMPOUND_ADJ
|  
+
|
 
| As above, but at the rear instead.
 
| As above, but at the rear instead.
 
+
 
|-
 
|-
| {{text anchor|FRONT_COMPOUND_PREFIX}}
+
| 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.
  
 
|-
 
|-
| {{text anchor|THE_COMPOUND_PREFIX}}
+
| 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".
  
 
|-
 
|-
| {{text anchor|STANDARD_VERB}}
+
| 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:
  
 
|-
 
|-
| {{text anchor|S_WORD}}
+
| S_WORD
 
|
 
|
 
* WORD
 
* WORD
| Specifies the given WORD (defined in #REDIRECT [[language_words.txt]]) as belonging to the symbol being defined. A given word can belong to multiple symbols.
+
| 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:
  
 
|-
 
|-
| {{text anchor|T_WORD}}
+
| 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 dwarven language==
+
==English instead of dwarfen language (Linux)==
You can hack the language files to display english in-game with this regular expression command:
+
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)
 
* [[Speech file]]s
 
* '''Raws'''
 
** [[language_SYM.txt]]
 
  
+
==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}}
[[ru:Language token]]
 
[[Category:Language]]
 

Please note that all contributions to Dwarf Fortress Wiki are considered to be released under the GFDL & MIT (see Dwarf Fortress Wiki:Copyrights for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource. Do not submit copyrighted work without permission!

To protect the wiki against automated edit spam, we kindly ask you to solve the following CAPTCHA:

Cancel Editing help (opens in new window)

This page is a member of 1 hidden category: