Added langs in configuration
parent
44a1d936fd
commit
d6b78f7d54
|
|
@ -29,7 +29,7 @@
|
|||
<fieldset class="install">
|
||||
<legend class="install">Database Settings</legend>
|
||||
<ul>
|
||||
<li><label for="login">Are you the admin? please write the database name User</label>
|
||||
<li><label for="login">Are you the admin? Write the same data that "DB_User" in config.php</label>
|
||||
<input type="text" name="db_login" id="db_login" value="{db_login}" class="txt"/>{error.9}</li>
|
||||
</ul>
|
||||
</fieldset><br />
|
||||
|
|
@ -59,7 +59,9 @@
|
|||
<input type="text" name="posts_limit" id="posts_limit" value="10" class="txt"/></li>
|
||||
<li><label for="lang">Language:</label>
|
||||
<select id="lang" name="lang">
|
||||
<option value="en" selected="selected">english</option>
|
||||
{block $langs as $k=>$v}
|
||||
<option value="{$k}" {if $k=='en'}selected="selected"{/if}>{$v}</option>
|
||||
{/block}
|
||||
</select>
|
||||
</li>
|
||||
<li><label for="template">Template:</label>
|
||||
|
|
|
|||
|
|
@ -24,7 +24,9 @@ function initLang($lang = "en") {
|
|||
|
||||
function __($text) {
|
||||
global $l10n;
|
||||
if($l10n)
|
||||
return $l10n->translate($text);
|
||||
return $text;
|
||||
}
|
||||
|
||||
function T_ngettext($single, $plural, $number) {
|
||||
|
|
|
|||
|
|
@ -406,7 +406,6 @@ class util {
|
|||
$cls_lang_dir = @ dir($dir);
|
||||
while (($directory = $cls_lang_dir->read()) !== false) {
|
||||
if($directory != "." && $directory != "..") {
|
||||
|
||||
$dir2 = (substr(PHP_OS, 0, 3) == 'WIN') ? $path."\\".$langs_dir."\\".$directory : $path."/".$langs_dir."/".$directory;
|
||||
$dir2 = str_replace("admin\\", "", $dir2);
|
||||
$dir2 = str_replace("admin/", "", $dir2);
|
||||
|
|
|
|||
|
|
@ -42,6 +42,7 @@ $theme->set('description',isset($install->data['description'])?$install->data['d
|
|||
|
||||
$theme->set('url_installation',(isset($install->data['url_installation']) and $install->data['url_installation'])?$install->data['url_installation']:(isset($_SERVER['SCRIPT_URI'])?substr($_SERVER["SCRIPT_URI"], 0, -12):''));
|
||||
$theme->set('themes',util::getThemes());
|
||||
$theme->set('langs',util::getLangs());
|
||||
|
||||
for($c=1;$c<=10;$c++)$errores[$c] = $install->mostrarerror($c);
|
||||
$theme->set('error',$errores);
|
||||
|
|
|
|||
Loading…
Reference in New Issue