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

Wordpress + Polylang: translations too time consuming, how to optimize?

I am using Wordpress, Porto Wordpress Theme and Polylang for translation (4 languages). I need to translate all website pages into all 4 languages. The website has around 50 pages. I plan to create ...
0
votes
1answer
23 views

How to translate wordpress blog to other languages?

I have a blog in wordpress security niche. It is currently in english and is quite popular with wordpress folks but i want to target other languages/countries as well. What would be the ideal way to ...
0
votes
0answers
24 views

How to get translated role names from different plugins?

For some reason in edit-user.php I have to do a checkbox list of user roles. I got it but I have a problem of translation. My code <?php foreach ( $roles as $role_id => $role_data ) : ?> ...
0
votes
1answer
86 views

String translation within WordPress multisite with i18n not working on all sites

Using WordPress Multisite (subdir) Child themes Loco Translate The Issue One of our multisite sites isn't string translating (Japanese). We started with non-multisite with just English. Then, ...
0
votes
1answer
29 views

How to save post with different languages and linked them with WPML?

I received a php object ($binding_main_cpt) built from an external API like this : array ( 'post' => array ( 'en' => array ( 'post_title' => 'Villa with magnificent sea ...
0
votes
0answers
24 views

__() function inside html tags

sprintf(<span style="display:block;margin:4px 0 0;line-height:1.25em;font-size:95%%"> Image credit: %$s</span> esc_html( $credit )); I would like to add __() function to translate Image ...
0
votes
0answers
35 views

load_plugin_textdomain was called with an argument that is deprecated since version 2.7.0 with no alternative available

I tried to update Avada theme using ftp. I deleted Avada folder and copied that again from zip file I downloaded. Since then, I am facing these errors: Deprecated: load_plugin_textdomain was ...
0
votes
1answer
31 views

Loco Translate: Custom Post and Custom Taxonomy Labels not translated in wp-admin menu

I am currently translating all of my plugins with loco translate. This is working fine on frontend and in all metaboxes in the backend, but not in the wp-admin menu: The red circled word should be in ...
0
votes
1answer
12 views

translate wordpress website from english to arabic

I install weglot plugin and add arabic as destiantion language but when change website from english to arabic i get this error Not Found The requested URL /ar/ was not found on this server how can ...
0
votes
1answer
26 views

Translate string inside twig template

I am trying to translate a string inside a placeholder in a twig (timber) template. But I cannot detect the string in WPML string translation. <input type="text" id="s" name="s" value="" ...
0
votes
0answers
13 views

How to conditionally concatenate and translate two very long strings?

I am conditionally concatenating a very long string onto another very long string. Then I am returning it as the argument to another function. I think I should translate the strings individually first,...
0
votes
0answers
19 views

Advantage of saving term translations with polylang?

Ok, so I'm trying to automate the generation of posts and custom taxonomies in different languages, and it's all working. What I did (summary): create posts with wp_insert_post() set language of ...
0
votes
1answer
46 views

WordPress filter load_textdomain_mofile not working inside a child theme's functions.php but works form inside a plugin

Function in a plugin is behaving differently than function in the functions.php inside a child theme. I have a custom simple plain plugin with nothing but the following code in it and it works ...
0
votes
1answer
16 views

Language does not switch while cache is enabled

At my website I have a button when pressed PHP script through ajax write session variable to change language and reload page. But when I enable caching every time is loading default language. When ...
0
votes
0answers
8 views

Wordpress: How to change the text of automatic E-Mails e.g. after changing your password? (German localization) #2

According to this, which was posted some years ago, I understand it is (was) possible to change the password changed mail text using Poedit. I need a clarification though: The .po file containing the ...
0
votes
1answer
49 views

Wordpress theme doesn't read my translations from pt_BR.po file

I used PoEdit to create my .pot file. Added some translations, then created a .po file alongside with automatically created .mo file. My .po file looks like this: msgid "" msgstr "" "Project-Id-...
0
votes
0answers
19 views

How to translate strings in comment form?

How to translate strings in comment form? I need to change string "Název" to "Jméno" and "Email" to "Emailová adresa". I didn't found this strings in .po files.
0
votes
0answers
13 views

Unable to translate with pot file Azuma Child theme

I have looked for a lot of information and I need to ask here because I'm not able to translate my child theme in Wordpress. I installed Azuma Theme (Free version) and, after it, I installed their ...
0
votes
0answers
29 views

Theme translates the_author_posts_link. How can I remove their translation?

My theme (Avada) translates the function the_author_posts_link to add “By ” before the author’s name (see their code below). I don't want “By ” before the author’s name. How can I override this ...
0
votes
0answers
24 views

Woocommerce: “is a required field” not translated

I have this problem from a long time and more than a theme. I now have this site build with storefront and the string “is a required field” given in error messages in checkout is not trnslated. ...
1
vote
1answer
22 views

Translation Issue with Wordpress Theme Check in comment_form function

I ended my wordpress theme, which called the_mdttheme. I tried to check it and get two errors with translation in comment_form(). Can't understand what did wrong, can someone help me? Here is two ...
1
vote
0answers
21 views

Wordpress if (is_page) translation on certain page

Hy there i have the following code for custom translations there are missing. function translate_text( $translated ) { $translated = str_ireplace( 'All Ratings', 'Alle Bewertug', $translated ); $...
1
vote
2answers
75 views

Some translations do not work in my template class

I am struggling with the translations of my theme. I use the function get_permalink_date of my class. The relevant snippet is: $permalink_title = sprintf( /* translators: 1 = Post Title, 2 = ...
0
votes
1answer
20 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
27 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
1answer
44 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
46 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
85 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
1answer
43 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( ...
2
votes
1answer
437 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
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 ...
0
votes
1answer
31 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
41 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
22 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
23 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
19 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
95 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
133 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
39 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
2answers
126 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
29 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
14 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
39 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
60 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
548 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
25 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 ...

1
2 3 4 5
11