Php page judgment user generated page language I now use opencart to design web pages, using two languages, simplified, traditional, currency RMB, HKD encountered a problem: how can I determine which language to use based on the user, and show only one language and the other hidden? Determine the currency, RMB, and HKD based on the language used? Determine zh or zh-hk through the lang submitted by the user. but how does lang work here? Maybe I do not purchase clear php pages to determine the language on which the user generates the page
I now use opencart to design web pages, using two languages: simplified, traditional, currency RMB, HKD
Encountered a problem:
How can I determine which language to use based on the user, and show only one language and the other hidden?
Determine the currency, RMB, and HKD based on the language used?
Determine zh or zh-hk by using the lang submitted by the user.
But how does lang work?
Maybe I am not clear about the purchase. But some people are willing to tell me how to design the change?
------ Solution --------------------
You can obtain $ _ SERVER ['http _ ACCEPT_LANGUAGE '] for judgment, and then jump to the instruction language page for processing.