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
28
votes
2answers
44k 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>' . '<...
22
votes
3answers
13k 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 ...
18
votes
2answers
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 ...
14
votes
7answers
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 ...
11
votes
1answer
5k 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?
10
votes
6answers
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. ...
9
votes
7answers
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 ...
9
votes
1answer
26k 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 ...
9
votes
1answer
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 ...
9
votes
3answers
14k 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 ...
9
votes
1answer
2k 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 ...
9
votes
4answers
7k 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 ...
9
votes
4answers
4k 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 ...
9
votes
2answers
4k 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 ...
9
votes
2answers
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 ...
7
votes
2answers
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 ...
6
votes
1answer
6k 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 ...
6
votes
1answer
993 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 ...
6
votes
1answer
7k 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 ...
6
votes
1answer
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/ > ...
6
votes
1answer
188 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....
6
votes
2answers
6k 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 ...
5
votes
2answers
32k 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 ...
5
votes
4answers
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. ...
5
votes
4answers
7k 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, ...
5
votes
3answers
9k 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 ...
5
votes
2answers
13k 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
4
votes
3answers
4k 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). ...
4
votes
3answers
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="...
4
votes
2answers
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 ...
4
votes
2answers
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 ...
4
votes
1answer
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 ...
4
votes
3answers
1k 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 ...
4
votes
1answer
161 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="&...
4
votes
1answer
3k 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 ...
4
votes
2answers
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 ...
4
votes
3answers
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 ...
3
votes
2answers
14k 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 ...
3
votes
5answers
15k 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 ...
3
votes
2answers
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. ...
3
votes
2answers
687 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 ...
3
votes
3answers
4k 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 ...
3
votes
1answer
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ù?" ...
3
votes
2answers
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(...
3
votes
1answer
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 ...
3
votes
1answer
671 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 ...
3
votes
1answer
329 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 ...
3
votes
2answers
12k 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 ...
3
votes
2answers
1k views

How to add just one page in Arabic

Hi I have a WordPress site where all the content is in English, however I need just one page to be in Arabic with left to right text, plus some bullets which obviously appear on the right instead of ...
3
votes
2answers
1k views

Making a theme multilingual by adding a custom taxonomy to posts and pages called “Languages”?

Recently, I've been thinking of implementing an easy and simple localization feature in my WordPress site. I thought about adding a custom taxonomy to my posts, and pages called "Languages." So ...

1
2 3 4 5
8