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
0
votes
0answers
13 views

WordPress Virtual pages for translations

I will really appreciate your help for a detailed guide about how can I achieve the following: Please don't refer to external Plugins since I don't want to use them. I'm developing my own WP theme so ...
0
votes
1answer
14 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
33 views

How to load translation in JavaScript?

I am struggling to load translation in JavaScript for my simple plugin. Translation works for PHP, but not in JS. What seems to be the problem, how can I debug this? I have loaded text domain in my ...
1
vote
0answers
25 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 ...
0
votes
1answer
24 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
23 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
17 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
12 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
12 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
30 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
28 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
0answers
12 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
13 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 ...
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 ...
-1
votes
1answer
20 views

Apostrophes replaced by '

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
10 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 ...
0
votes
1answer
27 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
26 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
20 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
102 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 ...
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
0answers
16 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 ...
0
votes
0answers
22 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 ...
0
votes
1answer
24 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
18 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
17 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
22 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
21 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
25 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
0answers
24 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
15 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
8 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 ...
0
votes
1answer
25 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
34 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
79 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
1answer
15 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
61 views

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

Is it really need to escape translatable strings?
0
votes
1answer
17 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
28 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( '...
0
votes
0answers
26 views

How to translate wordpress filter slugs

I'm trying to translate filter slugs based on the current language. I can successfully translate taxonomy slugs using wpml_translate_single_string For example: localhost/products/oil_type/ gets ...
1
vote
1answer
42 views

Internationalization autocomplete JS variable

I'm working in a plugin (My first plugin) that uses autocomplete (Via JQuery UI) via an array and I'm wondering if I have to translate the array too if I want to make my plugin fully translatable. ...
0
votes
0answers
19 views

How to sync updated translation file with old custom one

I have customized the translations of Wordpress admin In 4.9 version. When I updated WP to 5.1, new strings are not translated with the old .po file. So I updated the tranlations after backing up ...
2
votes
1answer
41 views

New plugin translation does not work

I´m trying to resolve one matter for 2 days without success. I don´t know why but for some mysterious reasons, new translations in my plugin project did not work but it works perfectly for old ...
0
votes
0answers
50 views

Translate wordpress without duplicate custom post

As I can't find a proper way to do this, I'll just drop this here : I run a website where anyone can post offers from fontend. I want the website to be multi language with switcher and/or browser ...
0
votes
2answers
87 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 ...
1
vote
1answer
22 views

trying to modify colormag-fr_FR.po

How can I modify a translation in colormag-fr_FR.po? In fact the translation of "breaking news" is "Récents" in french. I went in the above mentionned file and changed "Récent" for "A la Une". But ...
0
votes
0answers
34 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) ...
2
votes
1answer
66 views

I can't translate text in my plugin using a .mo file, load_plugin_textdomain() function is always false

I create a plugin just for testing /** * @package SurveyPlugin * @version 1.0 */ /* Plugin Name: Survey Plugin Plugin URI: http:marcogomesweb.com Description: This is survey Author: NodeLondon ...
1
vote
2answers
916 views

Custom translation of Month names

How do I customize the translation of the Month name strings in WordPress? example "January" be "Jan11" in all of website