nworbnhoj / qwikgame

qwikgame.org website
GNU General Public License v3.0
2 stars 0 forks source link

Select Language with geolocation #31

Open nworbnhoj opened 4 years ago

nworbnhoj commented 4 years ago

When the Player has not yet nominated a Language then make an automatic language selection based on geo-location.

The stub for this geo-located language selection is contained in the function: Page->selectLanguage()

basically ..... Use the language requested by the Player in the current http POST if no POST language then continue to use the language set for the SESSION if no SESSION language then use the language set in the Player account if no Player language then choose a language based on the geo-location (not implemented) if geo-location fails then default to English