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.

0
votes
0answers
9 views

WPGlobus Multilingual - REST API

I'm using WPGlobus plugin with REST API, For fetching data from posts now if I fetching content of pages it shows me like, "content": "{:nl}De korting wordt automatisch berekend aan de hand van o.a. ...
0
votes
0answers
11 views

How to fix wordpress permalinks flip in hebrew

I have a WordPress website in hebrew. My problem is when have a parent page and a child page, the child page url permalink is backward(the child page slug is after the parent page slug). I want first ...
0
votes
0answers
14 views

get_locale() is different from $locale

for a language switcher I need to change the get_locale value to the needed language which works great using this code in my functions.php add_filter( 'locale', 'set_my_locale' ); function ...
0
votes
0answers
11 views

Multi language compatible series plugin

I'm using Polylang to offer a German and an English version of my blog contents. Polylang has many ways of translating your blog contents, including custom taxonomies. However using the organize ...
0
votes
1answer
24 views

Load custom translation in custom plugin fails

I'm working on a custom plugin and I try to add translations but without any success class MyClass { public function __construct() { add_action('plugins_loaded', [$this, ...
0
votes
0answers
18 views

different stylesheets for different languages

I want to translate an LTR wordpress theme to RTL. The theme uses bootstrap and includes bootstrap.min.css. But for RTL mode I need to include a different bootstrap css file named bootstrap-rtl.min....
0
votes
1answer
19 views

How to display dual language menus and headers?

For reference: https://www.hpa.org.nz/about/our-role Note the dual language menu - Te Reo Māori in smaller text above each English menu item and the English header. All the multi-lang plugins I have ...
0
votes
0answers
24 views

Multilingual website with different content and look

I want to make the second language for a site. But actually, I don't need to translate the current content. That is why I think it is not effective to use plugins like Polylang. I was thinking about ...
2
votes
1answer
38 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 ...
0
votes
0answers
10 views

Set Adjacent Post By Alphabetical Order for Custom Post Type in Multilingual Site

In order to apply chronological order with posts and alphabetical order with a certain Custom Post Type, let's say, "animals", displayed through a single-animals.php template, I found this snippet ...
0
votes
0answers
14 views

Post excerpt doesn't translate to current language

I'm using WP Multilang v2.3.0 plugin to support translation of the content to English. Currently I have it configured for two languages, my primary and English. While I'm on the main site (index.php) ...
0
votes
1answer
16 views

How to get full native language instead of iso?

I am not using WPML or Polylang, but multisite to create multiple languages. The code below is used to make a language switcher, but I want a second menu with the full language name for a different ...
1
vote
0answers
16 views

Is the Multi site functionality a viable option for Country and Language targeting?

I am working on an eCommerce website, which only has the TLD Extension .com at present. The website owner is keen on looking to expand the website, as to reach other Countries and Languages. Since ...
0
votes
1answer
21 views

Plugin translation not working on WordPress.org

I have been developed a new plugin and published on wordpress.org. I want to translate my plugin in French language. I created a .pot file and translate strings using poedit. After translation, I ...
0
votes
1answer
95 views

Qtranslate-X get raw post title value

How can I get a raw value of post title using Qtranslate-X plugin? I have 2 active languages - [:et] and [:ru] $posts = get_posts($args); if($posts){ foreach($posts as $post){ $title1 = ...
0
votes
1answer
18 views

Language setting for Specific WordPress Page

My website is in English Language and using WordPress. Html Code contains lang="en-US" only. But I want some of the page in other language like Spanish, Arabic and German. When I create new page ...
0
votes
2answers
31 views

Wordpress in 3 languages

I have my website with Wordpress in English. I would like to translate the full website in French and German. I don't want to have an automatic translation from google. I would like to translate ...
0
votes
0answers
29 views

Country specific pages in a site

I’m working on an multi-national site for which the sponsors want pages supported so that each page: Can be served from a single default page regardless of the country (80% of pages), and Default ...
0
votes
1answer
24 views

How to Get Linked Elements for a specific ml_source_elementid

I'm using MultiLingualPress* on one of my pages, which is multisite, multilingual. I am trying to get the permalink of a page based on two things: 1) The ml_source_elementid, which identifies the ...
0
votes
0answers
16 views

Wordpress theme to support single website but with 3 sections for 3 languages

I have 3 domains that go around the same topic - city portal. These domains are basically aimed at 3 languages: local, English and (just for the sake of argument): Esperanto. I want to organize these ...
0
votes
0answers
17 views

How to add language tags like “<html lang=es>” in just some certain pages?

How is it possible to add the language-tag like at a certain wordpress page? Background: I have some translated articles in my blog and want add to add this tag to the sites I translated. How is it ...
0
votes
1answer
16 views

Localisation and Wordpress

So I'm setting up translations for a website based on locale. But it seems like Wordpress is determining this with the language as set in the Admin. How do I set up a localisation so that if I'm in ...
0
votes
0answers
92 views

Different language for each Custom Post Type

I doubt this method, check is that true? Imagine we have a wordpress in English language that have a Custom Post Type in French language with fr slug. We can create single-fr.php and archive-fr.php, ...
0
votes
1answer
37 views

Multilanguage backend interface

I manage a site that is available in 5 languages, including English. The Polylang plugin is used to achieve this. The problem is that I only understand two of the languages, and it's cumbersome to ...
1
vote
0answers
60 views

How to make a wordpress site multilingual by uploading a translated CSV file that has the traslations?

I have a website which is in french and i need the website to be read by my users in english too. How do i achieve that without making or creating entirely new pages with english translations. I have ...
0
votes
1answer
49 views

Conditionally change Wordpress core language

I need to change the wordpress language conditionally. So I use the code: //Change Site Locale function wpsx89972_redefine_locale($locale) { if .....my condition exists... { $locale = 'en_US'; } ...
0
votes
0answers
53 views

2 languages, 3 domains

I have a site that uses WPML for showing the website in 2 languages. Now I want to add a domain alias for 1 of these languages. And I don't want it to be a redirect. For example: sitename.nl should ...
0
votes
1answer
492 views

How to make a wordpress blog in two different languages?

I have a news blog and i am posting news in English. Now I want to make another section where I want to display news only in Urdu language. I also want to keep both languages separate that when I am ...
2
votes
2answers
1k views

Get Polylang available languages on admin page of my plugin

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. ...
3
votes
1answer
106 views

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

I want my my entire site on English, but the dates to be on other language. I tried to set PHP local like this: setlocale(LC_ALL, 'he'); Setting my whole website to the another language from admin ...
0
votes
1answer
50 views

how to remember specific action/event for current user?

i have made multi-language site thanks to polylang now i dont want to use polylang's switcher as it causes layout issues so i found a better solution is by putting a link on top. for example if user ...
0
votes
1answer
32 views

Recall translations made with Poedit

I designed a WordPress theme from scratch starting from my html site and in the conversion I used the functions _e() and __() to make the theme multilingual ready. Then I created the translation .po ...
-1
votes
2answers
1k 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 ...
0
votes
3answers
58 views

Is there SEO or related limitations to using Custom Post Types instead of WPMU?

With regard to the structure of a multi language wordpress site, I read articles discussing the pros and cons of a subdomain based WPMU(wordpress multisite) or a subdirectory based WPMU or WMPL plugin ...
0
votes
0answers
25 views

phantom language switcher

Some background, I had an english installation of wordpress, with ENFOLD theme. (not my doing) the original developer installed polylang and turned it to multi-language site (two languages). I've ...
2
votes
0answers
53 views

Multilanguage URLs

I am trying to achieve multilanguage behaviour for my website. I'm very close but not quite there and feel like I'm running in circles. That's why I decide to ask for your help. I'd like to use URLs ...
1
vote
1answer
29 views

Show category to visitors in different name or different language without changing basic category

I use WordPress blog and I post in Arabic language. My idea is, for example, my basic category is astronomy, but I want it to be appearing to visitors in different language like الفلك, but without ...
0
votes
0answers
37 views

Interface translation without plugins

EDIT 2: I am planning to implement a language switcher, but I don't have a clear understanding of how interface translation works in WordPress out-of-the-box, without multilanguage plugins (I don't ...
0
votes
1answer
25 views

How do I add languages?

This may seem like a basic question but I’ve been using Drupal for almost 3 years now and moved to WordPress two weeks ago. I'm using Buddypress. I just want to add some kind of language tool that ...
0
votes
1answer
28 views

Create sub-domain for multisite and multi languages?

I have developed multisite in WordPress. I have created two multisite one for Hindi and another for English. Hindi URL is: http://example.com/hindi and English URL is: http://example.com Now my ...
0
votes
0answers
116 views

Polylang plugin translation problems

I am using polylang. I have certain input values that are stored in options table of my plugin. I have changed those value to Nepali language as well. You can see here: https://prnt.sc/ibqcfx I have ...
1
vote
2answers
293 views

How to translate WordPress Emails?

I'm running a multilingual site, and I want the emails sent to the user to be in their language. The scheme I already have is the following: The website determines the user's country through their IP....
0
votes
0answers
76 views

Multiple Languages for each subsite on a Multisite

I need to create a multisite consisting in two Subsites, but I'll also need that each of them have 3 languages. So just to be clear, the structure is: Multisite - Subsite 1 - - Portuguese - - ...
0
votes
2answers
69 views

Is this possible? A multisite with “www.example.com/en/blog/” and “www.example.com/cn/blog/” (two directories deep)

Is it possible to install a multisite and have the first installation here: http://www.example.com/en/blog/ and then all other sites in these places? http://www.example.com/cn/blog/ http://www....
0
votes
2answers
28 views

Translation plugin to translate another plugins

I have installed several plugins, but there are a lot of, which doesn't support my language. I found solutions, which supports to write multilingual content, but can't handle language of plugins or ...
1
vote
0answers
26 views

Efficient way to handle translations with Multisite Wordpress installation

We inherited from a Wordpress multisite install to achieve localisation with more than five different languages. Thanks to the Multilingual Press, we have a reasonable setup where href lang are well ...
0
votes
1answer
584 views

WPML language switcher for custom rewrite rules

I am making custom rewrite rules for categories in a dual-language project (german as main, english as second language). The urls look like this example.com/fliegen > shows archive.php for category ...
0
votes
2answers
417 views

Language files are not loaded in production

I made changes to my website and it became multilingual locally. I'm using qTranslate-X plugin. I deal with PT and EN. I used __() and _e() functions for strings and POEdit for creating .po and .mo ...
0
votes
0answers
20 views

Is there a way to ensure browser automatically translates page content to another language (via Google Translate)?

How would I approach automatically applying a Google translation to page content for ~500 custom posts on my site? I’ve created a French version of my website using the WPML plugin (French site here)....
2
votes
1answer
47 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 ...