Questions tagged [translation]

Translation is the term used to describe the effort to make WordPress (with themes and plugins) available in languages other than English for people from different locales, who have different dialects and local preferences. The process involves two main topics: internationalization (i18n) and localization (l10n).

Filter by
Sorted by
Tagged with
4
votes
4answers
4k 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, ...
0
votes
1answer
36 views

My theme is not translated

I have translated the po file and uploaded the mo and po files in the languages folder with the language code file name. But translation is not loading Here is the function file code: if( is_dir( ...
1
vote
0answers
36 views

How to Translate a string of an array inside a class?

I want to translate my functions.php with custom code in it. There I have a Class "Glbl_Helper" with a public static array that contains strings like "translate_me". Now I want to translate 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?
1
vote
1answer
440 views

Force translated language on front

I'm facing a really simple issue : We made a theme for a multisite wordpress (see here : http://www.agence-malttt.fr/) and translated it with Loco Translate for French. It's still showing English ...
1
vote
1answer
38 views

Create cron job for update translations automatically

I would like to set cron job in WordPress with WP Crontrol for update translations automatically. If I saw it right I have to create a PHP code (simple plugin) and then schedule it with mentioned ...
0
votes
1answer
27 views

Translation from .mo file not working in theme

I'm trying to add translations to my theme. I went through the documentation and many questions here on Wordpress Development Stack. Setted a text domain in my style.css file: /* Theme Name: My ...
1
vote
1answer
205 views

Different translations for the same plugin inside a multisite

We have a multisite solution, inside this solution there are two WooCommerce shops. Both are in Dutch. The way they approach people is different so they want to use different translations. Hoe can ...
1
vote
1answer
930 views

How to add links in .po (language) file in wordpress?

I am beginner in wordpress and I want to know how can I add links in .po file. Basically I am using Loco Translate to change language text in plugins and theme. But I need to add Login page link in ...
0
votes
1answer
21 views

Securing langugae folder

I have plugin and theme translations for my language and they work great. I had to change some translations in a few plugins and theme per customer needs. Today I updated WooCommerce and I lost my ...
0
votes
0answers
20 views

RTL theme displaying LTR in WooCommerce pages

I'm using DIVI with WPML, WooCommerce and Variations for WooCommerce I have issues with text align/direction/float and string translations on the shop, product, and checkout pages (see below) Where ...
0
votes
1answer
16 views

Can't have a Persian website with a completely English admin panel!

I'm new to WordPress. there is a problem which really freaks me out. the WordPress(v5) which my host installed for me was all in Persian; I changed the user language to English, the main interface ...
1
vote
2answers
77 views

How to translate functions like get_the_date()?

My wordpress website has two languages. The theme translates properly, but whenever I use get_the_date it is in the default english language. How do I force the use of another language? The locale ...
0
votes
0answers
87 views

How to use Polylang strings in Jquery

I have problem with my theme. I'm making simple hide/show component in JS. const button = $('.button-hidden'); button.on('click', function (e) { let content = $(this).closest('.columns'); ...
0
votes
1answer
34 views

How can I show the author's latest post with title?

The following is my code: (klcom is my theme name) I just show the author by: name and description, I want to show the author's last 3 post with tile after each author, How can I code? Thanks <...
0
votes
0answers
15 views

How to call wordpress API to translate a post request

Assuming am trying to send a post request for my application from wordpress. I know how to do that via wordpress function. Here is my question: lets assume I want translate a certain words in a ...
0
votes
1answer
84 views

Changing text for “Continue reading…” translation

I am not satisfied with the read more text in Twenty Fifteen (I am using the French translation). In English it says "Continue reading", and in French it is very similar, but it didn't work well with ...
-1
votes
1answer
27 views

Apostrophes replaced by &#39;

I use a plugin for automatic posting of articles on social networks, and when I send an article on Facebook or Twitter from my website, the apostrophes of my articles are replaced by this: ' ...
0
votes
0answers
7 views

Is it possible that WordPress keeps old plugins languages in wp-content/languages/plugins?

I just discovered that an updated WordPress install in which I deactivated plugins a long time ago has kept the old languages files in the folder wp-content/languages/plugins. According to the Query ...
0
votes
0answers
13 views

Share text domain between themes and plugins

I frequently am building a custom theme and one or more custom plugins that are intended for use on only one custom website. Say I have a theme called mytheme and a plugin called mytheme-misc and ...
1
vote
5answers
8k views

Proper way to create / manage gettext (.po, .pot) files?

So I'm trying to figure out how .po and .pot files work, seeing as this is what Wordpress seems to use. But I can't wrap my head around it. I get that a .pot file is a template file that indicates ...
0
votes
1answer
36 views

`<!--:en-->` Language notation in the post content

Can someone tell mich which plugin usually handles the following notations, used to translate posts? <!--:en-->english text<!--:--> <!--:es-->spanish text<!--:--> Any way to ...
0
votes
1answer
50 views

Wordpress custom block compatability with WPML

I am trying to build a simple custom Wordpress block using the Block API, but I'm struggling to get the text strings to show up for translation properly within the WPML translation plugin. I've seen ...
0
votes
1answer
24 views

Theme starter content translation is not working

I have written and translated a theme and all is working fine, except the starter content. It seems that i am not able to translate the content and it is still displayed in English, even though I have ...
1
vote
1answer
441 views

How to merge two .PO language files?

I have a .po file that works with the theme and it contains 1259 characters, and i translated many words in it. That been said, after the theme was updated i found out that the new .po files contains ...
2
votes
2answers
191 views

Ajax - gettext without a plugin

How would you go about setting the correct language returned in AJAX calls, when you are not using any plugin? All other strings in page work fine just by defining WPLANG to a proper locale. ...
0
votes
1answer
24 views

How to do translations in Wordpress?

I want my website to be in English and French, but I'm not sure how to make this happen. I have an excel spreadsheet with French translations for each English page in the site. How to translations ...
0
votes
2answers
182 views

Child Theme Translations with PoEdit

What I'm doing I am translating a child theme and followed the instructions on https://developer.wordpress.org/themes/advanced-topics/child-themes/#internationalization. What I did so far Step 0 ...
0
votes
0answers
18 views

Looking for a Wordpress Translation Management System integration

A little bit of background: I started with WPML which has an AWESOME TMS integrated. But for some reason, the String Translation plugin is totally broken. I spent nearly a week trying to solve a ...
1
vote
0answers
46 views

Polylang post_translations key

How does Polylang generate the post_translations key value that it uses to group the original with the translations? I need to make an import with custom posts and their translations, but I can't get ...
1
vote
2answers
102 views

Is is safe to edit language files from wp-content/languages/plugins/woocommerce-ro_RO?

Is is safe to edit language files from wp-content/languages/plugins/woocommerce-ro_RO.mo(.po) ? I'm asking this because I don't want them to be overriden on plugin update. Sorry if dumb question.
0
votes
1answer
35 views

Can't translate child theme

Using last version of Wordpress, I am stuck here. I can't translate my theme, some of the strings remain in english (I want french). I use Poedit and generated the .mo file. I pasted it in : /...
0
votes
1answer
25 views

How connect my plugin translation to my page

I have a problem. I am not very good at page making, but I use this plugin: https://sk.wordpress.org/plugins/booking-ultra-pro/ I wanted to translate it to my language, so I used Poedit and translated ...
0
votes
1answer
26 views

Translate are not working for standard admin

I'm developing a plugin which uses strings of the "default" textdomain, but several strings will not shown translated. My locale language is "de_DE" (german). I try to access the word "Count", which ...
0
votes
1answer
26 views

How to translate WP Blog (search, category etc.)?

We are running a site with WordPress and WooCommerce. We have used WPML to have the option of adding multiple languages. Now we want to get rid of WPML :) We have deleted it and set the WP language ...
1
vote
0answers
29 views

How to avoid override string by child theme mo files when the string is empty?

In my child theme, I copy files from the parent theme and do some changes. My problem is about translation. In functions.php I load the child translation file like this : if ( !defined( '...
0
votes
0answers
27 views

Theme-located plugin translation, but on empty string; use plugin translation

I'm storing a plugin translation in my theme/languages. In that file I have all the translatable strings for the plugin. Although, I leave all translations empty except for those I wanna translate for ...
0
votes
1answer
352 views

Make dynamic string translatable

I have a plugin where people can add their own (title) somewhere, but this title is not picked up by multilingual plugins. Reason for that is that I'm not using the __() function of course, I'm just ...
0
votes
0answers
30 views

Theme translation not working

A few months ago I bought theme from gorillatheme and tried to translate it to my native language which isn't English. Didn't work in any way. Asked from gorillatheme no answer from them, that was 2 ...
0
votes
1answer
18 views

Translating plugin settings page - dropdown list

I would like to translate all items from button style dropdown list on the settings page in my plugin. Normally, when I want to translate something, I use this pattern: __( 'Theme style', 'qty-...
0
votes
0answers
10 views

Suspect incomplete .pot file - what to do?

I'm trying to translate the "Organize Series"-plugin. I have already translated all 166 sentences in the .pot file located in the lang folder of the plugin, however it looks incomplete. Many ...
9
votes
7answers
36k views

Different Language for Frontend vs Backend

I use an English WordPress package and this is very well. Now, I would like to translate some elements of the blog (like "posted on", "comments") etc., but do leave the dashboard interface intact in ...
0
votes
1answer
30 views

How to get dashboard langauge not the website language?

Sometimes you may have a language for the dashboard that differs from the site language, how to get the dashboard language. i tried to use get_locale and get_user_locale but both get the site language....
0
votes
0answers
16 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
44 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
1answer
19 views

Admin keeps showing pending translation update

WP shows that I have a pending update In /wp-admin/update-core.php, I see it's a translation update I press the update translation button The update warning disappears ... and after a few moments of ...
0
votes
1answer
29 views

Translating “comments”, “leave a comment”, “prev”, “next”, “share”

I have a problem to locate ""comments", "Leave a comment", and similar words within post section of the WP theme. I need to translate those words to another language, but they are not visible in PO/...
0
votes
1answer
89 views

Why should I escape translatable strings? and how shall i do that?

Is it really need to escape translatable strings?
19
votes
2answers
13k views

How to make a WordPress plugin translation ready?

What is the best way create a plugin that is translation ready? It doesn't have to be translated from the beginning but it has to be easily translatable so fellow developers from different cultures ...
0
votes
1answer
49 views

printf, translation function and date_i18n adds extra characters

So I am trying to make these strings translatable and in proper PHP/WP format. This works: 'Du ' . date_i18n( 'j M', strtotime( $date_debut->format('j M Y') ) ) . ' au ' . date_i18n( get_option( '...

1
2
3 4 5
11