V
V
Vladislav Kolotsei2015-11-29 12:56:19
PHP
Vladislav Kolotsei, 2015-11-29 12:56:19

Opening a specific page based on location?

I saw an interesting thing on many sites, for example, if you are in Belarus, then a Belarusian site opens with the by-be prefix, Russian, respectively - ru-ru. How is it generally implemented? What is needed for this?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Anton, 2015-12-02
@karminski

In a word, this is called "internationalization" (i18n). All modern frameworks (Symfony, Yii) support the i18n module out of the box. For example, here is how it works for Yii2
www.yiiframework.com/doc-2.0/guide-tutorial-i18n.html

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question