diff --git a/src/AppArena/Models/Entities/AbstractEntity.php b/src/AppArena/Models/Entities/AbstractEntity.php index 20027cd..d72cfc5 100644 --- a/src/AppArena/Models/Entities/AbstractEntity.php +++ b/src/AppArena/Models/Entities/AbstractEntity.php @@ -461,6 +461,16 @@ public function getLang() { return $this->lang; } + if ( isset( $_REQUEST['lang'] ) ) { + $this->lang = $_REQUEST['lang']; + return $this->lang; + } + + if ( isset( $_SERVER['lang'] ) ) { + $this->lang = $_SERVER['lang']; + return $this->lang; + } + // Get the default language from of the entity if ( $languages = $this->getLanguages() ) { foreach ( $languages['activated'] as $language ) {