mirror of
https://github.com/OpenXE-org/OpenXE.git
synced 2024-11-15 04:27:14 +01:00
RETROTEC-AG/OpenXE#17 Locale des GUI-Users ermitteln
This commit is contained in:
parent
dc58045423
commit
bd0392698d
@ -97,7 +97,11 @@
|
||||
<td>{|Sprache|}:</td>
|
||||
<td><select name="sprachebevorzugen" id="sprachebevorzugen">[SPRACHEBEVORZUGEN]</select></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<tr>
|
||||
<td>{|Sprache und Region|}:</td>
|
||||
<td><input type="text" name="locale" id="locale" value="[LOCALE]" size="40" disabled="disabled"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>{|Eigene Kalenderfarbe|}:</td>
|
||||
<td><input type="text" name="defaultcolor" id="defaultcolor" value="[DEFAULTCOLOR]" size="80"></td>
|
||||
<td></td>
|
||||
|
@ -1712,6 +1712,13 @@ $this->app->Tpl->Add('TODOFORUSER',"<tr><td width=\"90%\">".$tmp[$i]['aufgabe'].
|
||||
$this->app->Tpl->Set('DEFAULTCOLOR', $settings['defaultcolor']);
|
||||
$this->app->Tpl->Set('SPRACHEBEVORZUGEN', $this->languageSelectOptions($settings['sprachebevorzugen']));
|
||||
|
||||
/** @var \Xentral\Components\I18n\Localization $localization */
|
||||
if($localization=$this->app->Container->get('Localization')) {
|
||||
$this->app->Tpl->Set('LOCALE', $localization->getLocale());
|
||||
} else {
|
||||
$this->app->Tpl->Set('LOCALE', 'Fehler!');
|
||||
}
|
||||
|
||||
if($settings['chat_popup']){
|
||||
$this->app->Tpl->Set('CHAT_POPUP', ' checked="checked" ');
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user