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
19 views

Remove Home page slug in translated pages

I'm building a website in wordpress, and i've decided to use a custom page "home" for my website's home. I know that i could use the index.php file for the home page , but i needed to use some plugins....
0
votes
0answers
18 views

How to change WordPress core language using Loco Translate?

I just want to change the text "Add Media" to another English text. I search the text under my theme but it didn't appear. But under Loco Translate > WordPress, there're so many translation files. ...
0
votes
1answer
41 views

How to become a translator on wordpress.org?

I tried to find the solution on WordPress.org, but to me as a new contributer, the documentation seems confusing, and links like "Become an editor." in the "Translation Editors" on a plugin's ...
0
votes
1answer
11 views

GDPR Cookie Consent Translations (Polylang)

Hey I'm using the Polylang plugin to make translations to my pages. I have started to implement the cookies consent using GDPR Cookies Consent, is there any way to translate its content using polylang ...
4
votes
2answers
2k views

custom theme: english .mo file not working

I'm having an issue with a .mo file. I have a fully functioning localized custom theme that's running in four languages for the moment: Dutch, English, French and Spanish. There is one problem: the ...
0
votes
1answer
864 views

What would cause the gettext filter to not work for a given text domain?

Inside of a plugin, I'm using the gettext filter to alter strings of a theme so that I don't have to copy the template files over to a child theme and edit them. Also, this isn't always possible since ...
0
votes
0answers
10 views

Translating a string (Russian)

I am trying to translate the following string (using po). All %%category%% %%in_location_single%% It translates just fine except that it doesn't account for a few singular feminines. in majority of ...
0
votes
0answers
28 views

Translatepress taxonomy and custom post type root FIX

I'm using Translatepress. Great plugin, one exception: they haven't developed translation for taxonomies and custom post type root slugs. Does anyone know how to achieve this? Some .htaccess magic ...
4
votes
4answers
3k 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
0answers
17 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
17 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
1answer
5k views

Add a string to file .pot using Poedit

I want to add a string to a pot document for language, but it says there’s an error. I have opened file .pot with a text editor and I have add this code #:D:\Programe\InstantWP\InstantWP_4.3.1\...
1
vote
0answers
43 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 ...
0
votes
1answer
647 views

How to translate wordpress error message

I have a problem and I am not finding the variable to solve, I have a site in WP and when I try to login and neither the password nor the email exists, I get the error message: ERROR: The username or ...
0
votes
2answers
532 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 ...
1
vote
1answer
697 views

How can you locate the .po file used for translation of a page?

I'm trying to translate a plugin, Dokan Pro, but I can't seem to find the correct .po file that my Wordpress site is using to translate. Part of it is already translated in Italian, but other parts ...
1
vote
0answers
30 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
432 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
529 views

Set parent theme language with custom .mo files

I am using Buttercream as my parent theme. I have translated the .mo file located in themes\buttercream\languages and saved it as nl_NL.mo and nl_NL.po. Now I want to display the parent theme in Dutch ...
1
vote
1answer
1k views

Replace text string on individual page

I am looking to replace a few text strings for only two specific pages on a wordpress site. It should not affect those strings on any other pages. I'd prefer to do this via adding some code to ...
2
votes
2answers
515 views

Translation of plugin in MU-PLUGINS directory not working

I have successfully translated a child theme, but not the same result in mu-plugins folder. The name of the plugin is "mu-functions.php". In this file I have added the "Text Domain: mu-functions" in ...
1
vote
1answer
25 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
25 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 ...
0
votes
4answers
3k views

get_the_date() for translating date format

I want to display a in Hindi like "jan 10" using get_the_date(). What i have tried : <?php echo get_the_date(_e('F j')); ?> output like : F jJanuary 10, 2017.
1
vote
1answer
168 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 ...
2
votes
1answer
865 views

Wordpress different language footer text

I am new to WordPress, and I have a problem building my website. I use the Sydney theme and Polylang plugin for my multilanguage website. I have build a website in 4 different languages and now I ...
1
vote
2answers
1k views

How to edit T&C checker text in Woocommerce checkout page? gettext?

I'm trying to edit wording in terms & conditions checkbox on checkout page (order review section), but without luck. It was easy to edit other fields like billing and shipping fields. But I'm not ...
0
votes
1answer
470 views

Translating form labels shortcode output

I'm using MyMail plugin to manage my newsletter. I'm also using WPML to manage translations, there is no compatibility between the two plugins. The subscription form, is placed in the footer area, ...
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
1answer
528 views

Load textdomain from global languages directory

I am creating translations for my plugin. To fetch .mo files from my-plugin/languages directory , I use the function //Load translation function load_plugin_textdomain() { load_plugin_textdomain( ...
1
vote
1answer
769 views

Two text domains in one plugin

From start: A = main plugin(the library), B = child plugin I develop a plugin B that will depend on another plugin A in order to work properly. I do this because I'm one of the persons who don't ...
0
votes
1answer
1k views

Plugin translation not being displayed

I'd like to change some translatable text of a plugin I'm using, Buddypress Group Email Subscription. The text is: No Email (users will read this group on the web - good for any group - the default), ...
2
votes
2answers
2k 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 ...
0
votes
0answers
14 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
616 views

When translating not all string are present in POedit

I've bought a theme few days back, i switched to the Slovak localization. Some of the strings were incorrect so i decided to fix them in poedit (never done that before) Most of the strings were ...
0
votes
1answer
13 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
41 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
37 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
14 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
21 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
23 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
11 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
7k 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
30 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
33 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
165 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
133 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. ...

1 2 3 4 5 10