Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
QUESTION Change date
#2
(2015-09-28, 16:53:42)Frens Wrote: Hi,

Furder:
Try to find the condition to get the current language



PHP Code:
<?php 
if ($LANG == 'de') {
 echo 'lang is DE';
 ?>


But not good...


If you use the I18N plugin, you should test for $language == 'de'
If you use standard GS language handling, you should test for a language code in this format: language_region; for example: en_US, in your case $LANG == 'de_DE'... for a full list, check out the answers in this link
Reply


Messages In This Thread
Change date - by Frens - 2015-09-28, 16:53:42
RE: Change date - by Tyblitz - 2015-10-01, 21:14:19
RE: Change date - by Frens - 2015-10-01, 22:29:14
RE: Change date - by Tyblitz - 2015-10-05, 02:36:01
RE: Change date - by Frens - 2015-10-05, 03:00:26



Users browsing this thread: 4 Guest(s)