- removed web-setup - new CLI parameters --account : create initial account(s) --siteconfig : edit php/aowow config values --dbconfig : set up db connection --sql : create db content from world/dbc-tables --firstrun : [NYI] step by step initial setup - some fixes by the wayside * display required arena bracket for extendedCost * achievement chains are searchable again * category trees for factions should now be correct * trainer tab on spell detail page reapeared * userMenu item 'Settings' no longer breaks the page * display abilities of shapeshift in tab on spell detail page * corrected reading ?_sourcestrings for titles * fixed error on race detail page * added simple descriptions to skill detail page * fixed tab "reward from" (achievement) on title detail page * fixed alphabetical order of some filter-dropdowns * fixed skill colors for spells * fixed power display for rune-based spells, that also cost mana * added more information to zones * also check mail_loot_template for achivements * fixed bug, where loot_template-ids would be reused for multiple templates * display sourcemore for pvp-sources
56 lines
2.3 KiB
PHP
56 lines
2.3 KiB
PHP
<?php
|
|
|
|
if (!defined('AOWOW_REVISION'))
|
|
die('illegal access');
|
|
|
|
if (!CLI)
|
|
die('not in cli mode');
|
|
|
|
|
|
// Create 'locale.js'-file in static/js
|
|
// available locales have to be set in aowow.aowow_config
|
|
|
|
function locales()
|
|
{
|
|
$result = [];
|
|
$available = array(
|
|
LOCALE_EN => " 0: { // English\r\n" .
|
|
" id: LOCALE_ENUS,\r\n" .
|
|
" name: 'enus',\r\n" .
|
|
" domain: 'www',\r\n" .
|
|
" description: 'English'\r\n" .
|
|
" }",
|
|
LOCALE_FR => " 2: { // French\r\n" .
|
|
" id: LOCALE_FRFR,\r\n" .
|
|
" name: 'frfr',\r\n" .
|
|
" domain: 'fr',\r\n" .
|
|
" description: 'Fran' + String.fromCharCode(231) + 'ais'\r\n" .
|
|
" }",
|
|
LOCALE_DE => " 3: { // German\r\n" .
|
|
" id: LOCALE_DEDE,\r\n" .
|
|
" name: 'dede',\r\n" .
|
|
" domain: 'de',\r\n" .
|
|
" description: 'Deutsch'\r\n" .
|
|
" }",
|
|
LOCALE_ES => " 6: { // Spanish\r\n" .
|
|
" id: LOCALE_ESES,\r\n" .
|
|
" name: 'eses',\r\n" .
|
|
" domain: 'es',\r\n" .
|
|
" description: 'Espa' + String.fromCharCode(241) + 'ol'\r\n" .
|
|
" }",
|
|
LOCALE_RU => " 8: { // Russian\r\n" .
|
|
" id: LOCALE_RURU,\r\n" .
|
|
" name: 'ruru',\r\n" .
|
|
" domain: 'ru',\r\n" .
|
|
" description: String.fromCharCode(1056, 1091, 1089, 1089, 1082, 1080, 1081)\r\n" .
|
|
" }",
|
|
);
|
|
|
|
foreach (CLISetup::$localeIds as $l)
|
|
if (isset($available[$l]))
|
|
$result[] = $available[$l];
|
|
|
|
return implode(",\r\n", $result);
|
|
}
|
|
|
|
?>
|