Have language selection like this on page1: function Image12Click($sender, $params) { global $application; $application->Language = "English (United Kingdom)"; $this->Language = "English (United Kingdom)"; }
Both page1 and page2 are translated, and I open page2 like this:
function Button1Click($sender, $params) { header("Location: page2.php"); }
Page2 always open with default language and the user have to do language selection on every page. How can I preserve the selected language when navigating from page1 to page2?
通过将所选语言保存为cookie来解决此问题,然后将cookie加载到后续页面上。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.