fixing language swticher
This commit is contained in:
parent
83b135763d
commit
896c07930b
2 changed files with 11 additions and 4 deletions
|
|
@ -72,14 +72,14 @@
|
|||
<li>
|
||||
<select class="selectpicker" data-width="fit" onchange="location = this.value;" style="margin-top:10px;">
|
||||
{% if LANGUAGE_CODE == 'en-us'%}
|
||||
<option selected="selected" value="http://localhost:8000/en-us/datacenterlight/">English</option>
|
||||
<option selected="selected" value="{{base_url}}/en-us/datacenterlight/">English</option>
|
||||
{% else %}
|
||||
<option value="http://localhost:8000/en-us/datacenterlight/">English</option>
|
||||
<option value="{{base_url}}/en-us/datacenterlight/">English</option>
|
||||
{% endif %}
|
||||
{% if LANGUAGE_CODE == 'de'%}
|
||||
<option selected="selected" value="http://localhost:8000/de/datacenterlight/">Deutsch</option>
|
||||
<option selected="selected" value="{{base_url}}/de/datacenterlight/">Deutsch</option>
|
||||
{% else %}
|
||||
<option value="http://localhost:8000/de/datacenterlight/">Deutsch</option>
|
||||
<option value="{{base_url}}/de/datacenterlight/">Deutsch</option>
|
||||
{% endif %}
|
||||
|
||||
</select>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue