the languages can be found in 'languages/xx/'
Display All
in 'languages/xx/templates/'
here are the rules and emailtexts, as some texts for installation.
in smarty-template(for all *.tpl files) the syntax for using the $LNG variable in tpl files
in php you first have to call the $LNG array with '
(for all the includes/pages/*.php files)
' in the beginning of the script
afterwards you can use it like this
if you define new languagevariables, think about doing it for all languages. a new definition could look like this
hope it is a bit more clear, how to use the languagearray. if you ever encounter an error called undefinerd index: $LNG['xxx'] it is a missing definition in the languagefiles.
Source Code
- ADMIN.php -> as the name says, here you find the $LNG definitions of the adminpanel
- BANNER.php -> this one is for building the playerbanner
- CUSTOM.php -> here you can define custom $LNG definitones
- FAQ.php -> here the texts for the FAQ are stored
- FLEET.php -> here you find fleetrelated language content, exept the fleetnames itself
- INGAME.php -> here you find the gamecontent
- INSTALL.php -> only for installation
- L18N.php -> languagefile for tim and dates
- PUBLIC.php -> here are parts, wich can be used in the login
- TECH.php -> here are the sub arrays
- shortNames - untinames for battlereports -example: $LNG['shortNames']['1']
- bonus - names of possible bonuses -example: $LNG['bonus']['Defensive']
- tech - all gameelements by id -example: $LNG['tech']['1']
- shortDescription - all gameelements by id -example: $LNG['shortDescription']['1']
- longDescription - all gameelements by id -example: $LNG['longDescription']['1']
in 'languages/xx/templates/'
here are the rules and emailtexts, as some texts for installation.
in smarty-template(for all *.tpl files) the syntax for using the $LNG variable in tpl files
Smarty-Template
- {$LNG['tech'][202]} value would be: 'light cargo'
- {$LNG['shortNames'][202]} value would be: light cargo'
- {$LNG['shortDescription'][202]} value would be: 'The light cargo is an agile ship which can quickly transport resources to other planets.'
- {$LNG['longDescription'][202]} value would be: ''The light cargo is an agile ship which can quickly transport resources to other planets.'
in php you first have to call the $LNG array with '
(for all the includes/pages/*.php files)
' in the beginning of the script
afterwards you can use it like this
PHP Source Code
- $LNG['tech'][202] value would be:'light cargo'
- $LNG['shortNames'][202] value would be:'light cargo'
- $LNG['shortDescription'][202] value would be:'The light cargo is an agile ship which can quickly transport resources to other planets.'
- $LNG['longDescription'][202] value would be:'The light cargo is an agile ship which can quickly transport resources to other planets.'
if you define new languagevariables, think about doing it for all languages. a new definition could look like this
hope it is a bit more clear, how to use the languagearray. if you ever encounter an error called undefinerd index: $LNG['xxx'] it is a missing definition in the languagefiles.