From: hickert Date: Thu, 5 Apr 2007 09:05:14 +0000 (+0000) Subject: Added new checkbox that allows to leave the lang attribute empty X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=badec362128db3214c4b738a81cf879a4c406e9b;p=gosa.git Added new checkbox that allows to leave the lang attribute empty git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@5991 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/contrib/gosa.conf b/contrib/gosa.conf index e79bf7684..37b58a379 100644 --- a/contrib/gosa.conf +++ b/contrib/gosa.conf @@ -300,7 +300,11 @@ {if $cv.optional.auto_network_hook_active} auto_network_hook="{$cv.optional.auto_network_hook} " {/if} +{if $cv.force_global_lang} lang="{$cv.lang}" +{else} + lang="" +{/if} theme="{$cv.theme}" session_lifetime="{$cv.optional.session_lifetime}" compile="{$cv.optional.compile}" diff --git a/setup/class_setupStep1.inc b/setup/class_setupStep1.inc index cffd35266..33ed3a2c6 100644 --- a/setup/class_setupStep1.inc +++ b/setup/class_setupStep1.inc @@ -24,7 +24,8 @@ class setup_step_1 extends setup_step { var $lang = "en_EN"; var $languages = array(); - var $attributes = array("lang"); + var $attributes = array("lang","force_global_lang"); + var $force_global_lang = FALSE; function setup_step_1() { @@ -53,6 +54,7 @@ class setup_step_1 extends setup_step $smarty = get_smarty(); $smarty->assign("languages", $this->languages); $smarty->assign("lang", $this->lang); + $smarty->assign("force_global_lang", $this->force_global_lang); return($smarty->fetch(get_template_path("setup_step1.tpl",TRUE,dirname(__FILE__)))); } @@ -62,6 +64,12 @@ class setup_step_1 extends setup_step $this->lang = $_POST['lang']; $this->is_completed = TRUE; $_SESSION['lang'] = $this->lang; + + if(isset($_POST['force_global_lang'])){ + $this->force_global_lang = TRUE; + }else{ + $this->force_global_lang = FALSE; + } } } } diff --git a/setup/setup_step1.tpl b/setup/setup_step1.tpl index bafeb3d1f..030e2ee5a 100644 --- a/setup/setup_step1.tpl +++ b/setup/setup_step1.tpl @@ -1,17 +1,34 @@
- {t}Please select the language that should be used in GOsa setup.{/t} + {t}Please select the language you prefer to use GOsa with.{/t}

-
- {t}Language{/t} +
+ {t}Setup language{/t}
-
+
+ +
+
+
+ {t}GOsa language settings{/t} +
- +
+
+ {t}To force GOsa to use the selected language as global default language, use the option below.{/t} +
+ {t}If you want GOsa to automatically detect the language settings, leave this option clear.{/t} +   +
+ {if $force_global_lang} +  {t}Force global language{/t} + {else} +  {t}Force global language{/t} + {/if}