WordPress has no ability to switch language based on URL or query string parameter. In fact it does no dynamic language switching at all. Wherever you’ve seen this working, it would have been using a plugin.
You say you don’t want to use a plugin, which means you’ll have to write all the switching logic yourself. It’s possible using the locale filter, but I’d recommend you look for a plugin to do this for you.
Alternatively set up WordPress multisite with a site for Italian and a site for English. You can use your directory paths like /it/
for this.
As a side point – be careful with locale codes. gb_UK is not valid. British English would be en_GB. (language_REGION)
Related Posts:
- Two language versions for each article
- Where to modify translation files by _e()
- Multilingual website without third-party plugin
- WordPress and Localization
- Changing interface language without multisite
- WordPress Translation to french, at -> à not working
- Translation not working in sprinf variable
- Create a category in different language?
- Having problem in using wordpress with an other language
- Multi language site using only .mo and WPLANG
- HTML inside __() or _e() language translation string
- Change language by clicking a button
- Best WordPress Multi-language Plugin? [closed]
- Setting WPLANG from a plugin
- Best WordPress Localization Plugin? [closed]
- How to get a translated string from a language other than the current one?
- qTranslate get content by language [closed]
- Localization: I want the backend: english and frontend in defined language
- How to determine current active language in qtranslate plugin? [closed]
- WPML: getting page title in different language
- Titles in my sidebar widget appear in all languages – with qtranslate
- Having two different versions of the same post?
- What is better for wordpress performace?
- WordPress | Sub-domain switching
- Checking current language in a function
- detect the language a post is written in
- Does changing ‘WPLANG’ in wp-config.php just effect the admin language or does it have other consequences?
- Is there a way to localize role labels?
- How to add just one page in Arabic
- Making a theme multilingual by adding a custom taxonomy to posts and pages called “Languages”?
- One of the messages in .po file doesn’t show up
- Multi-language module in WordPress or Google sites
- Translations does not work with .pot file
- Put an extra check box on “Page Attributes” widget
- Trigger language change in WordPress
- How to change language file used by _e function
- Qtranslate + Advanced Custom Fields: how to have a multilanguage wysiwyg editor? [closed]
- Insights into WordPress Multi-Site, Domain Mapped, and Multilanguage site using WPML [closed]
- Get Polylang available languages on admin page of my plugin [closed]
- How to change language?
- Polylang get non-current language/s
- Why isn’t WMPL correctly redirecting users based on browser language? [closed]
- WordPress For Urdu Language
- Why load_textdomain work but not load_plugin_textdomain?
- WordPress multilingual site using page-id.php files
- How to find a language direction?
- How to have english digits in some posts with an rtl WordPress theme
- Getting translated string through a variable
- Two different domains for two different languages
- What is the correct way for multi-domain and multi-language website?
- How to change the language of the ‘Reset Password’ page
- How to reload wordpress textdomains at runtime
- How can I make a site viewable in multiple languages?
- How to set up WPLANG in wp-config.php for 4 languages?
- Using categories as multilingual mechanism
- ‘Trick’ a plugin (WP-Members) to think the blog language has changed for a single page
- Were the language toggles removed from WP recently?
- Frontend language per user
- Is it possible to temporarily override the language setting?
- make a mulitingual wordpress website Arabic-english
- How to use language files in plugins?
- How to find when qtranslate plugin’s language changes? [closed]
- conditional (theme) language selection at ‘runtime’
- Simple Multilanguage Switcher
- How to have multiple site (UI) languages?
- How to make a wordpress site multilingual by uploading a translated CSV file that has the traslations?
- can’t change a few lines of text to another language
- Country switcher, then option to choose language for that country [closed]
- Force language in translate function
- Specific content by country in multiple languages
- WordPress Multilinigual
- how to remove language selection option from wordpress?
- How WordPress is able to change locale without using setlocale
- Localization: I want the backend: english and frontend in defined language
- Multisite WPLANG won’t save
- Get the ID of the default language equivalent page in Polylang [closed]
- Switch site language to en_ZA
- I display messages using code snippets but how can I use the right language?
- language_attributes for two languages?
- How to set a dual language site in wordpress?
- WPML customizing language selector [closed]
- Translating my custom theme, always translated version?
- how to have __() translating in languages different from admin?
- Website in multiple Language
- qtranslate arabic shortcode?
- Problems character encoding for pages in multiple languages
- Can I set is_rtl() to true?
- WordPress in 3 languages
- Can the qTranslateX-Plugin translate non-article text? [closed]
- WPML language tags (Qtranslate feature) [closed]
- Translate a theme with a PO file
- Transposh Japanese language transaltion not showing up
- WordPress Relative Path
- WordPress page with non-English text
- Redirection plugin and Chinese URLs
- Wrong WordPress language?
- WP E-commerce wpml translation or multilingual
- For multiple languages, two wordpress instances on subdomains or a plugin?
- I cant test my .po file for Turkish Language
- different domains disabled in polylang