Skip to main content

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
3 votes
1 answer
4k views

Why load_textdomain work but not load_plugin_textdomain?

In my plugin's init function load_textdomain( 'myplugin', ABS_PATH_TO_MO_FILE ); // OK load_plugin_textdomain( 'myplugin', false, ABS_PATH_TO_LANGS_DIR); // No effect echo( __('Test', '...
Yoga's user avatar
  • 909
3 votes
1 answer
1k views

Change the Search Base in a multi language wordpress

I have two Wordpress sites that share the same template files for two languages. I want to change the search base word for the non-english website. However, when I change the var $search_base = '...
Tasos's user avatar
  • 169
3 votes
2 answers
2k 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 ...
urok93's user avatar
  • 4,034
3 votes
2 answers
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 ...
wyc's user avatar
  • 3,867
3 votes
1 answer
379 views

One of the messages in .po file doesn't show up

I've changed a file wp-content/languages/pl_PL.po #: bfa_header.php msgid "notice" msgstr "napis" msgid "Online Information Website" msgstr "Internetowy Portal Informacyjny" msgid "something" ...
naugtur's user avatar
  • 1,163
3 votes
1 answer
883 views

Setting up partial Right-to-Left admin interface

I am building a custom theme WordPress instance, which needs to be Arabic at the public face and English on Admin site, but with RTL (flush right) in editing fields. My theme takes care of the public ...
Alexandre Rafalovitch's user avatar
3 votes
2 answers
4k views

How to change date language without changing the entire site language?

I want my entire site in English, but the dates to be in another language. I tried to set PHP local like this: setlocale(LC_ALL, 'he'); Setting my whole website to another language from the admin ...
Daniel Iliaguev's user avatar
3 votes
1 answer
2k views

Change menu with language?

My problem is that I have used a plugin called polylang and now it doesnät work with another more importent plugin so I need to find a solution. I use WPML on other sites and that is not an option ...
user36511's user avatar
3 votes
2 answers
2k views

How to change ?lang=cn into /cn/

I'm trying to add languages to my wordpress driven website and i installed xili-languages plugin. Unfortunately it uses lang param to differentiate between languages and i rather have seen something ...
adax2000's user avatar
  • 149
3 votes
2 answers
6k views

How to manage multiple domain with different languages on each domain with single wordpress installation?

I need to manage multiple domain with different content on each domain. For each domain I need to manage content in different languages. I found we can use WordPress MU Domain Mapping to manage ...
user478's user avatar
  • 333
3 votes
2 answers
713 views

Multi-language module in Wordpress or Google sites

Which is an easy software for creating a simple multi-language website? I'd like a button to switch from English to German, for example. I don't want to write code, possibly. Thanks, Carlo
user avatar
3 votes
1 answer
1k views

Qtranslate displays empty categories with get_categories()

I am using qtranslate (Wordpress Plugin) on a website and I don't want to display categories that don't contain posts for a language. So when I do get_categories() (without qtranslate) the ...
Alexandros B's user avatar
3 votes
0 answers
34 views

How to have english digits in some posts with an rtl Wordpress theme

I have an RTL theme for Wordpress. When I want to have a post in which some digits should intentionally be in English, the theme tends to convert all the digits from English to Persian. Adding lang="...
developer's user avatar
  • 151
3 votes
0 answers
292 views

How make a multi language routes, with rewrite rules or rewrite endpoints?

I want to know a concept of making a multi language routing system for WP. That is the best practice, to make this routing system with add_rewrite_rules for pages post archive etc in part, or to use ...
user1147145's user avatar
3 votes
1 answer
8k views

Qtranslate + Advanced Custom Fields: how to have a multilanguage wysiwyg editor? [closed]

This is my setup: Wordpress: 3.4.2 qTranslate: 2.5.32 Advanced Custom Field: 3.5.1 i've also installed qTranslate extension: 1.1.1 but I don't know how/if it works... How can I have a multilanguage ...
stefano1's user avatar
  • 157
3 votes
0 answers
309 views

Insights into WordPress Multi-Site, Domain Mapped, and Multilanguage site using WPML [closed]

I have a project with WordPress for a multi-language, multi-country site. I want to have a structure like: domain.com domain.com/es domain.com/de domain.com/fr domain.es domain.es/en domain.fr ...
RAD MKT's user avatar
  • 31
2 votes
2 answers
11k views

Get the ID of the default language equivalent page in Polylang [closed]

How can I get the ID of the default language equivalent for whatever page I’m currently on? For example, I’m on abc.com/es/mypage, I want to get the ID of abc.com/mypage. I tried setting up the ...
website walrus's user avatar
2 votes
3 answers
8k views

How to tell a theme to use different .mo and .po files?

I have a theme which loads .po and .mo files to display strings in English. I want to have only one language (Polish), but those two files are en_US. I tried replacing content in the en_US.po file but ...
NakedCat's user avatar
  • 189
2 votes
1 answer
3k views

Why isn't WMPL correctly redirecting users based on browser language? [closed]

Even though I have 'Browser language redirect' activated at WMPL's setup screen, users aren't being correctly redirected according to browser language. I currently have three languages selected: en (...
emi's user avatar
  • 181
2 votes
2 answers
5k views

Multisite use language code as subdirectory

I installed WordPress in the subdiretory /de and activated multisite features. The main blog has the URL/path: mysite.de/de Now I want to add a second site for the English language with the following ...
user49454's user avatar
2 votes
1 answer
8k views

database columns: post_title vs post_name

I changed post_title, post_contents, and post_name to allow for utf by changing collating sequence to: utf8_general_ci Then using add new post, I type for the title three Hebrew ALEFs. The post_title ...
NealWalters's user avatar
2 votes
2 answers
4k views

How can I set up multi language admin ui?

I will have two admin users, one of them only speaking italian and the other only speaks english. How can I setup multi-language admin user interface?
gyurisc's user avatar
  • 143
2 votes
2 answers
15k views

How to change language?

Sorry for this complete newbie question, but I googled it and cannot find this simple information. I just installed Wordpress today. Right now all text on my Wordpress Blog is in English: "Home", "...
Timothée HENRY's user avatar
2 votes
1 answer
5k views

Polylang get non-current language/s

I am using Poly language plugin to build my own custom multi language website Previously i was using Q_translate it's working fine with me, but i need to use poly language now, so excuse me if there ...
adnan's user avatar
  • 323
2 votes
1 answer
2k views

How to change <html lang="bg-BG" , but only for one page

I spent last 4 hours searching for an answer how to change html lang="bg-BG" to html lang="en-GB". I already reviewed the old topics, and it seems that define ('WPLANG', 'xx_XX'); is not working ...
Kozuns's user avatar
  • 29
2 votes
1 answer
3k views

Multilingual theme: Changing locale based on URL

I'm developing a multilangual theme. I use the __() function for translation, which works just fine. The main language is English, but the second language is German. For that second language, I'd like ...
lupor's user avatar
  • 58
2 votes
2 answers
2k views

WordPress For Urdu Language

Can I use WordPress for Urdu Language? I want entire site to be toggled-translated in Urdu Language with one click... Is it possible to do it with some plugin or do i have to write manual codes for ...
Nasir Zia's user avatar
  • 293
2 votes
2 answers
430 views

Separate backend "Widgets" page for each language

Im currently trying to make my backend work with multiple languages. Im using qTranslate as my translation plugin. So far I have accomplished a custom option page with multi-language support. When ...
Tom Siwik's user avatar
  • 135
2 votes
1 answer
46 views

Language Translation is not working?

My wpconfig.php file: define('WPLANG', 'tr_TR'); My Code: echo '<div id="wtdCustomizButtonDetailsPage"><a href="'. $getCustomPage .'?type=wtd_sc_designer&wtd_id='. $id .'">'. __('...
HOY's user avatar
  • 291
2 votes
1 answer
178 views

Wordpress multilingual site using page-id.php files

I'm building a Wordpress site which I hope to offer in three languages namely: English Spanish French In the past I've always built out my sites by creating the pages via the backend, recording the ...
Javacadabra's user avatar
2 votes
1 answer
2k views

How to find a language direction?

The function is_rtl() checks the blog language direction if it is LTR or RTL. public function is_rtl() { return 'rtl' == $this->text_direction; } But I couldn't find where or who fills in ...
Fahad Alduraibi's user avatar
2 votes
1 answer
535 views

How to use both British and American English?

I've taken over a website targeting different markets using five language versions, each is setup as it's own site within a multisite network. The main website mainly targets a British audience and ...
Linda H's user avatar
  • 167
2 votes
1 answer
1k views

Setting up a multilingual wordpress site

I am trying to set up a multilingual site using wordpress. I went through Each language in its own WordPress installation and decided to use this option: Plugins like Multisite Language Switcher ...
Sankalp Mishra's user avatar
2 votes
1 answer
6k views

How to change menu according to the language?

I want to change primary menu according to the language of the user. I have reviewed multi language plugins such as WPML and qTranslate. They have lots of features but what I want is much simpler than ...
Mert Nuhoglu's user avatar
2 votes
1 answer
285 views

Should multi-language site using multi-site architecture have default language in base site?

I am setting up a multi-language site using wordpress multi-site and wanted some feedback on the best approach/best practice. I will have the following languages: en, sa, de, ru. en is default. ...
Manas's user avatar
  • 123
2 votes
1 answer
7k views

Custom Meta Field not Working with qTranslate [closed]

I am running the newest WordPress and qTranslate. I have made a page that enables some custom fields that are working ok. qTranslate enables languages like tabs when editing a page. But this doesn'...
Ronnie Jespersen's user avatar
2 votes
1 answer
560 views

Redirect one of two domains on one Wordpress installation

I have to domains: mydomain.dk and mydomain.de. Both are showing the same page in danish. I have a plugin that takes care of the languages, but I need to connect the .de domain to the german 'language ...
Kebu's user avatar
  • 21
2 votes
1 answer
13k views

How do you install a .MO (language file) to use as part of a theme?

I have my own theme that I've created and I need to support 3 languages. I started by adding the gettext functions to my template _e("string","namespace") etc, generated the po file with Poedit, and ...
qodeninja's user avatar
  • 407
2 votes
1 answer
34 views

Problem in Internationalizing a plugin built for network level usage

Context: I have created a plugin that is enabled only at the network level and it handles certain synchronizations between the child sites. As it is a network level plugin, it has its menu added to ...
Talha Imam's user avatar
2 votes
1 answer
353 views

How Wordpress knows where to find locale files?

I just used Poedit to translate a plugin with no translations. I found strings to translate and I generated the .POT file and the .PO and .MO in my language. I created a folder languages in the ...
Vincent Decaux's user avatar
2 votes
1 answer
1k views

Getting translated string through a variable

I am translating a website into different languages, and I have the following problem: Through the backend, user can select via a dropdown, a value (text string) from a list of 50 options. This ...
Capiedge's user avatar
  • 778
2 votes
1 answer
583 views

htmll lang="de" but admin page in English

I've set up a multisite Wordpress installation, because I want to work with multipul languages. Everything work except the lang attribute. I want the admin panel to be English, but I want to give lang ...
Jeff 's user avatar
  • 161
2 votes
2 answers
924 views

Two different domains for two different languages

I have been using WPML for the use of multilingual but I am having major issues with it and am tired of it. I have now set up two WordPress set ups on two different domains. What I need to do is ...
Max Jacobs's user avatar
2 votes
1 answer
225 views

Prepare plugin options for multi-lingual support

I'm looking for a way to make my plugin's options available/translatable across a multi-lingual site. For example, several of my options are text strings that are then used on the front end. echo ...
helgatheviking's user avatar
2 votes
2 answers
693 views

What is the correct way for multi-domain and multi-language website?

I have very interesting request from a client: They want to have website in two languages for different countries and also are asking whether it possible to have domains for each langues. Goal is so ...
nerijusgood's user avatar
2 votes
1 answer
2k views

How to update records using $wpdb?

I am migrating non-wp database to Wordpress (for the first time in my life, and hopefully the last). As both new and old websites are multilingual, one of the tasks for me is to connect the articles ...
Bojana Šekeljić's user avatar
2 votes
2 answers
3k views

How to change the language of the 'Reset Password' page

I have a WooCommerce powered WordPress website. In this website a user can login to order products, basic WooCommerce functionality. The site is translated using qTranslate. I can translate everything,...
Birger Eelen's user avatar
2 votes
0 answers
253 views

How to reload wordpress textdomains at runtime

I'm currently using this to reload my theme and plugin textdomain in order to send e-mails (admin move, in admin language) in the user language. add_filter("theme_locale", array($this, "theme_locale")...
Rodrigo Butzke's user avatar
2 votes
1 answer
333 views

Popup Cookie Wordpress select language and section (Elementor)

I need to show a popup where the user can choose the language and which section to open (partners, customers, support) and that this choice is kept in the cookies so that the next time he returns that ...
Despotars's user avatar
  • 121
2 votes
1 answer
163 views

plugin development: storing language specific options

I'm currently rewriting a little plugin that shows visitors a small info text. This plugin is German only so far and so I want to add multi language support as I am working on a page that should be in ...
5tefan's user avatar
  • 21

1
2
3 4 5
8