The following warnings occurred:
Warning [2] Undefined array key "threadviews_countguests" - Line: 745 - File: showthread.php PHP 8.1.31 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/showthread.php 745 errorHandler->error_callback
Warning [2] Undefined array key "allowautourl" - Line: 584 - File: inc/class_parser.php PHP 8.1.31 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/inc/class_parser.php 584 errorHandler->error_callback
/inc/class_parser.php 228 postParser->parse_mycode
/inc/functions_post.php 830 postParser->parse_message
/showthread.php 916 build_postbit
Warning [2] Undefined array key "allowautourl" - Line: 584 - File: inc/class_parser.php PHP 8.1.31 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/inc/class_parser.php 584 errorHandler->error_callback
/inc/class_parser.php 228 postParser->parse_mycode
/inc/functions_post.php 861 postParser->parse_message
/showthread.php 916 build_postbit
Warning [2] Undefined property: MyLanguage::$thread_modes - Line: 46 - File: showthread.php(1650) : eval()'d code PHP 8.1.31 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/showthread.php(1650) : eval()'d code 46 errorHandler->error_callback
/showthread.php 1650 eval




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: 2 Guest(s)