Skip to main content
Share Your Experience: Take the 2024 Developer Survey

Questions tagged [multi-language]

WordPress does not support a bilingual or multilingual blog out-of-the-box. There are however Plugins developed by the WordPress community which will allow you to create a multilingual blog easily. Creating a mulitlingual blog is basically installing WordPress in more than one language and letting the Plugin switch between them. This includes installing .mo languages files which most Plugins will require you to do manually.

Filter by
Sorted by
Tagged with
29 votes
2 answers
50k views

HTML inside __() or _e() language translation string

What is the proper approach to building translation strings? For example, echo __( 'Hello ' . $first . ' you owe me money.' ); echo __( '<div><p>Top: ' . $t_margin . '</p>' . '<...
Jason's user avatar
  • 606
22 votes
3 answers
14k views

Change language by clicking a button

The goal is to offer a button/select drop-down or similar to switch the public interface1) language on the fly. What I'm searching for Plugin or Theme Code... ... or Ideas Using a work-around with ...
kaiser's user avatar
  • 50.6k
18 votes
2 answers
6k views

Best practices for localizing WordPress content?

A client asked for a blog that will have localized content (i.e. en.blogname.com for English content, fr.blogname.com for French content, etc). Being new to building such a blog, we recently ...
Mike Lee's user avatar
  • 851
14 votes
7 answers
47k views

Best Wordpress Multi-language Plugin? [closed]

What is the best multi-language plugin for WordPress? WordPress does not have multi-language support itself, so you need to use a plugin to obtain multi-language functionality. Do not suggest the ...
sorin's user avatar
  • 1,123
12 votes
3 answers
7k views

How to get a translated string from a language other than the current one?

I was wandering... All the translation functions (__(), _e(), _x() and so on) use the current/active language. Is there a way to get a translation from another language than the current one? For ...
Luca Reghellin's user avatar
11 votes
1 answer
6k views

Setting WPLANG from a plugin

For a single site wordpress, the language must be set from wp-config.php's WPLANG, but is it possible to set from my plugin which override the default value?
Howard's user avatar
  • 113
10 votes
1 answer
5k views

Rewrite Rule for Multilingual Website, Like qTranslate?

I would like to write my own little plugin for language switching. For that, the very first thing would be to get the rewrite rules running. I have been looking around the web for 2 hours, but I ...
rassoh's user avatar
  • 586
10 votes
6 answers
9k views

Best Wordpress Localization Plugin? [closed]

We would like to translate our Wordpress installation into multiple languages. I found the following three plugins: ICanLocalize GTS Translation Straker I heard the ICanLocalize is a bit of a mess. ...
Remy's user avatar
  • 345
9 votes
7 answers
4k views

What are options are there to implement a multi language site

What is the best way to have multiple languages on a site? I was thinking of using WP3.0 and then having each language of the site being a seperate blog in a sub directory. I.E. example.com ...
Paul Sheldrake's user avatar
9 votes
1 answer
27k views

qTranslate get content by language [closed]

How do you get the content by id and by specific language? I need to display two specific language content in a page, regardless of the session's language. So far, this is my progress: this works ...
user1348490's user avatar
9 votes
3 answers
15k views

How to set back-end language per user?

I would like to use the english interface for the back-end but I would like to set it to native language for an editor. I know WPML has this feature, but I don't want to install the unsupported WPML ...
hyperknot's user avatar
  • 327
9 votes
1 answer
3k views

Change admin language based on user (in single-site)

I'm trying to make a small plugin to install in some sites of a german client. I can make my way around WordPress in german, but would be easier if it was in english. There's a plugin that manages ...
brasofilo's user avatar
  • 22.1k
9 votes
4 answers
8k views

How to keep plugin translations after updates?

bbPress' language folder (wp-content/plugins/bbpress/bbp-languages) has that warning: /** * Do not put custom translations here. They will be deleted on bbPress updates. * * Keep custom bbPress ...
Ünsal Korkmaz's user avatar
9 votes
4 answers
5k views

Localization: I want the backend: english and frontend in defined language

I'd like to have the backend of Wordpress in English and use a different locale for the frontend so far I figure out perhaps I could do it by setting in the wpconfig the locale I want to use in the ...
unfulvio's user avatar
  • 1,814
9 votes
2 answers
5k views

Creating custom permalink structure for languages

I've written a simple multi-language system, whereby clicking on a flag icon sets a one year cookie containing a two letter language code (e.g. nl, de, etc). I hook into the wp action to read the ...
Simon Blackbourn's user avatar
8 votes
3 answers
8k views

How to manually link posts to each other in Wordpress

I have two language versions for each of my pages using Polylang plugin. There's a language switcher on every page. But somehow I created two posts not connected to each other (first two in the list). ...
Yevheniy8's user avatar
7 votes
1 answer
8k views

How to debug failed load_theme_textdomain()?

I made my theme ready for translation. My text domain is my_theme and my .po and .mo (de_DE.po and de_DE.mo) files are located in a subfolder languages in my themes folder. In my functions.php I ...
user1706680's user avatar
7 votes
2 answers
2k views

Multilingual WordPress plugins [closed]

I've been using WPML to have multilanguage capabilities in my WordPress implementations. Now WPML has gone commercial, and I'm looking for a open source non-commercial replacement. My main concerns ...
MZAweb's user avatar
  • 1,338
7 votes
1 answer
8k views

Show the most popular post per week

The plugin Most Popular Posts doesn't support WPML and therefore I have tried creating my own. I have found this tutorial in creating your own code for showing the most popular posts on my site: How ...
Philip's user avatar
  • 207
7 votes
2 answers
9k views

why is translation not working on theme?

Background I am using the theme Rookie from Sportpress. I created a child theme. Translation files are existing, especially german in my case. Wordpress is set to german language. The Problem ...
André Kelling's user avatar
6 votes
3 answers
10k views

How do I change the language of only the login page?

My wordpress blog is set up as de_DE. This means that my login page is also displayed in de_DE. I would like to only have the login page in en_US. So, How would I programmatically change a single ...
hitautodestruct's user avatar
6 votes
1 answer
1k views

Different back-end language for different users?

I've been searching the internet for the last hour but I can't find anything up-to-date to do this (all the suggestions are about plugins that haven't been updated in ages, see this question). Is ...
Orin Larrey's user avatar
6 votes
1 answer
1k views

Post and Page Inheritance to subsites in a WordPress Network

I have to develop a multi-country, multi-lingual website. One country may have multiple languages. I have setup a WordPress Network and created subsites for each country like following. abc.com/ > ...
M-R's user avatar
  • 2,606
6 votes
1 answer
204 views

WP Multisite - multilanguage - swich to other language by click, but "same" content

I want to run a WP-multisite for 4 languages (in development), and did it so, 4 blogs, each one got the same content but in a different language, same structure, same pages, same postings, same images....
Orwell's user avatar
  • 71
5 votes
2 answers
33k views

How to determine current active language in qtranslate plugin? [closed]

I have a situation where I want to give specific style to my Navigation Menu when the website is in German language. My website works well in English language but when I switch to German, it causes a ...
Darshan Thanki's user avatar
5 votes
4 answers
12k views

Changing the language of a single page

I have a wordpress site in a language that aligns RTL, but some pages are in English. These pages look terrible, however, because the English text is aligned with the RTL language, and punctuation, ...
Null_Error's user avatar
5 votes
4 answers
2k views

What is the best page ordering plugin that works well with WPML? [closed]

The title says it all. What is the best page ordering plugin that works well with WPML? It seems that may are reporting issues with different plugins such as my page order and WPML page order. ...
Bundarr's user avatar
  • 170
5 votes
2 answers
14k views

WPML: getting page title in different language

i'm running my web in english and german using the WPML plugin. my question: when in english mode - is it possible getting the page_title() but in german? thanks
Fuxi's user avatar
  • 769
5 votes
1 answer
4k views

Set language per post

I have a bi-lingual blog with English as the main language and Arabic. Currently I use the post "Custom Field" to indicate that the post is Arabic and I use that in my child theme to change the ...
Fahad Alduraibi's user avatar
4 votes
3 answers
10k views

Get Polylang available languages on admin page of my plugin [closed]

I am making an plugin, and inside my admin page (Which i add by add_menu_page() function) i call this function pll_the_languages(["raw" => 1])) but its return nothing,on client side its work fine. ...
Dahmane's user avatar
  • 143
4 votes
3 answers
3k views

Titles in my sidebar widget appear in all languages - with qtranslate

So here's my code, using the qTranslate plugin: query_posts(array('post_type' => 'uk_blog', 'numberposts' => 2)); $i = 0; while(have_posts()): the_post($post);?> <div class="...
Will's user avatar
  • 85
4 votes
2 answers
3k views

WPML Get url without outputting

I am in the process of migrating from qTranslate to WPML to handle my languages. With qTranslate, I had a very simple way to get an url to a page or post knowing it's slug: $url = get_language_url(...
fkoessler's user avatar
  • 145
4 votes
2 answers
6k views

Disable qTranslate by post type in admin + disable per page / post ID on front-end [closed]

I'm trying to find a way to selectively disable qTranslate - I would like to be able to show certain static content on my site in 4 languages, but to then only have a single language (and a simplified ...
Q Studio's user avatar
  • 2,516
4 votes
2 answers
2k views

Force Plugin to English Translation

Here's my thing: I'm using a plugin that has multilang capabilities. The point is that the language translation in my country lang is very bad and it makes more complex than simpler my work. :D. So ...
rdbisme's user avatar
  • 143
4 votes
1 answer
6k views

Using WP Multisite for multi language site? A good option?

I´m going to develop a site for a client which requires multiple languages. I have no experience with this from beforehand so I´m researching what might be the best way to do this. The webpage will ...
Johan Dahl's user avatar
  • 1,333
4 votes
3 answers
2k views

Having two different versions of the same post?

I'm currently working on a site that's targeted for beginners in a new language. Now I'm looking for something that can ease my work with having two different versions of the same post. One "easy to ...
INT's user avatar
  • 1,281
4 votes
1 answer
166 views

What is better for wordpress performace?

I'm developing a website using the WPML plugin. And I would like to know which is the better option, or even the correct way to change classes or IDs between the languages. Sample code: <ul id="&...
Vitor Argos's user avatar
4 votes
2 answers
2k views

Wordpress | Sub-domain switching

I'm finding a way to redirect to a sub-domain. Sub-domains contain instances of multiple languages, say for an example -: http://mysite/?p=7694 This is the English site and I want it to redirect to ...
Switch's user avatar
  • 143
4 votes
3 answers
18k views

Multi-language permalink in qtranslate

I am using qtranslate plugin for my WordPress site to make it a multi-language site. Now I have got a requirement like For English the url should look like www.sitename.com/contact-en For French the ...
Beniston's user avatar
  • 141
3 votes
2 answers
15k views

Checking current language in a function

I am running WordPress with "WPML Multilingual CMS", so that it has multiple language versions. In a function used with add_action('template_redirect',<functionname>), I need to find out what ...
naugtur's user avatar
  • 1,163
3 votes
5 answers
16k views

Add code into <head> on a per page/post basis

Is there plugin (or an easyish way) to add code to the <head> section on a per page/post basis? I have a multilingual website and I need to implement the rel="alternate" hreflang markup, so ...
moobot's user avatar
  • 148
3 votes
2 answers
3k views

Multisite - how to remove the root '/' site?

I want to install WP in 3 languages: en, ro, ru mysite.com/en mysite.com/ro mysite.com/ru I was not sure, but installed WP in the root folder. Now I need to redirect visitors to default language. ...
serhio's user avatar
  • 315
3 votes
2 answers
8k views

How to develop a multilingual theme?

I have yet to find a concise, start to finish description of how to create a multilingual WordPress theme. I am a fairly competent developer and have made a few custom themes in my time. For a ...
Ollie's user avatar
  • 181
3 votes
1 answer
2k views

Make a custom theme translate-ready

I created a my own theme, now I wish to make it translatable. I made two files: theme.pot msgid "know_more" msgstr "Vuoi saperne di più?" it_IT.po msgid "know_more" msgstr "Vuoi saperne di più?" ...
WalterV's user avatar
  • 197
3 votes
2 answers
809 views

What is the purpose of adding a .po file?

I added the below code to the function.php of a .po file and finished localization and edited the webconfig.php to add Arabic language but nothing happened. I want to know what should happen. Will the ...
sarah's user avatar
  • 67
3 votes
2 answers
14k views

detect the language a post is written in

Is there any way to evaluate the language a post/page is written in? I am building a multilingual site and am almost pulling my hair out trying to get the front-end navigation to take the chosen ...
tembamazingi's user avatar
3 votes
3 answers
5k views

Does changing 'WPLANG' in wp-config.php just effect the admin language or does it have other consequences?

I am curious to know if setting 'WPLANG' in wp-config.php just effects the admin language or does it have other consequences? I run a blog in a foreign language but use English in my admin. I ...
chentudou's user avatar
  • 107
3 votes
1 answer
2k views

date_i18n() issue

I'm trying to use date_i18n() to display a localised date in my theme. <?php echo date_i18n( 'F j, Y', strtotime( get_the_time( "Y-m-d" ) ) ); ?> However, this always returns the English ...
TDH's user avatar
  • 133
3 votes
1 answer
689 views

Integrate post tags in Post Edit page with qTranslate

Summary In the tags widget in the Post Edit page, I need to know a way to filter through: the tags suggestions the tag terms update when saving or updating the post At least that is what I think I ...
Giraldi's user avatar
  • 1,465
3 votes
1 answer
372 views

Is there a way to localize role labels?

I'm using Justin Tadlock's Members plugin to create new roles and WP Role on Registration to display them on the registration form. I've got a multilang site (English and Spanish) and I've localized ...
annabwashere's user avatar

1
2 3 4 5
8