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

change text of product id

:D with this code how aply changes only a product id? //Textos traducidos a medida add_filter( 'gettext', 'wps_translate_words_array' ); add_filter( 'ngettext', 'wps_translate_words_array' ); ...
0
votes
1answer
16 views

Which escaping function should be use on register_post_type label?

If I register a post type then which escaping should I use for escaping label? function book_setup_post_type() { $args = array( 'public' => true, 'label' => __( '...
0
votes
0answers
17 views

avoid email translations using translatepress

I need to work on wordpress website which has translatepress plugin to convert website in French(default is EN). Also it has these add-ons installed - TranslatePress - Browse as other role Add-on, ...
0
votes
0answers
22 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
19 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
16 views

GDPR Cookie Consent Translations (Polylang) [closed]

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 ...
0
votes
1answer
42 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
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
30 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 ...
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
0answers
46 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
31 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
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 ...
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
18 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
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
14 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
43 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
41 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
24 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
23 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
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 ...
0
votes
1answer
31 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
34 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
194 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
28 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
26 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
23 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
20 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
24 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
26 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
26 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
9 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
27 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
37 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
157 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
19 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
70 views

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

Is it really need to escape translatable strings?
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
31 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
28 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 2 3 4 5 10