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).

161 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
7 votes
2 answers
9k 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 ...
André Kelling's user avatar
5 votes
2 answers
4k 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 ...
Peter-L's user avatar
  • 59
3 votes
2 answers
1k 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 ...
Eduardo Leão's user avatar
3 votes
0 answers
85 views

Custom values are not translated

I'm trying to translate my plugin. Inside plugin's root folder I have 'inc' folder, where located registration.php file. This file has a code, which adds custom fields to comment form. (I use right ...
anton's user avatar
  • 1,033
2 votes
0 answers
103 views

Can't load text domain in a mu-plugin

My plugin is in: /root/.../mu-plugins/my-plugin In /root/.../mu-plugins/my-plugin/languages/ I have the following files: my-domain.pot my-domain-fr_CA.po my-domain-fr_CA.mo The strings I want to ...
Gazillion's user avatar
  • 317
2 votes
0 answers
180 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 ); $...
Reto Schneebeli's user avatar
2 votes
0 answers
261 views

Gutenberg not all editor text translated

I just upgraded to wordpress 5.0 and not all text in Gutenberg is translated to my website's language German and stays in English. I already tried disabling all my plugins and switched to default ...
JoJota's user avatar
  • 21
2 votes
1 answer
2k 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 ...
BR Management's user avatar
2 votes
1 answer
53 views

What is the way to ship read-me strings like plugin-strings for internationalization?

I want to translate my plugin for non-English languages. But for readme strings, I could find the only option to submit translations over translate.wordpress.org. Is there any way like the one ...
learning_13's user avatar
2 votes
0 answers
155 views

How does WordPress choose which translation file to use?

One of my WordPress plugins has ended up with 2 different sets of translations for the same exact language (Spanish)... there's the one set of .mo/.po files I bundle with the plugin itself, and ...
David R.'s user avatar
  • 121
2 votes
1 answer
158 views

How to translate theme name

I want to translate a theme from English to Chinese. I've added load_theme_textdomain and successfully translated many of words to the Chinese language, but I don't know how to translate "theme name".
shahin's user avatar
  • 21
2 votes
1 answer
476 views

How to get menu strings, categories and tags into po file for translation

I'm prepping my theme for translation. I've added the following line to my functions.php, and added the text domain within my theme files. <?php /*** LOAD THEME TEXTDOMAIN ***/ ...
roybatty's user avatar
  • 113
2 votes
0 answers
279 views

Partially translated dashboard in one of network's site

I have multisite WordPress installation with default language for all new sites set to English. For one of my sites I wanted to add support for different (Polish) language. I copied all Polish *.mo ...
trejder's user avatar
  • 322
1 vote
1 answer
37 views

Translating the "Everything" filter menu in Quicksand jquery file

I have been using QuickSand Jquery to display my WordPress portfolio. Everything is working well. I just added the polylang plugin and would like to be able to translate the first item of the filter ...
made leod's user avatar
1 vote
0 answers
46 views

Save translation file of third party plugin in a custom plugin?

I have a custom plugin that I install on a handful of client sites. All the client sites uses a third party premium plugin, and I have translated that plugin to another language and saved the ...
Torben's user avatar
  • 11
1 vote
1 answer
162 views

How to translate multiple blocks within one plugin

I'm struggling to get translations working on my custom blocks. I have a plugin with multiple blocks, following this file structure: /languages /build ..build files /src /block-one block.json ...
Infobahn's user avatar
1 vote
1 answer
257 views

How to work with multilingual sites using the full site editor and block themes?

I'm developing a block theme and I need the user to edit the site content with the full site editor in two different languages. In this situation, what would be the approach to allow the same page to ...
Augusto A's user avatar
  • 111
1 vote
0 answers
110 views

Translation for frontend

In my plugin I have many strings to translate for the backend and only a few for the frontend. For the visitors of the website it is nicer to read the words in the language of the site. Is there a ...
pehu's user avatar
  • 11
1 vote
0 answers
21 views

Working with .po and .mo files translation

I translated a plugin with poedit and translation is fine, I checked it changing default language inside general > language. Then I installed Qtranslate-x, it works fine with titles, contents ... ...
user1818326's user avatar
1 vote
0 answers
1k views

Generate JSON files for language translation from po file without wp-cli i18n make-json

My plugin uses wp_set_script_translations() to load translations for JS as mentioned here https://make.wordpress.org/core/2018/11/09/new-javascript-i18n-support-in-wordpress/. I understand that when ...
itsoft3g's user avatar
  • 111
1 vote
2 answers
487 views

How do I translate month names in post metadata?

I'm trying to translate the month names as underlined in this image, without changing the entire WP backend as well, as I require the backend to remain English. I managed to translate the default ...
QQQ's user avatar
  • 11
1 vote
0 answers
234 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 ...
Programming Farmer's user avatar
1 vote
1 answer
173 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 ...
Sepehr23's user avatar
1 vote
0 answers
76 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( '...
J.BizMai's user avatar
  • 850
1 vote
1 answer
429 views

How to translate timestamp?

This script comes with the theme I purchased that output "Published 3 days ago on Feb 21, 2019" on the article. However I couldn't get the "%s ago" translated, which includes variables of minute(s), ...
Buramiko's user avatar
1 vote
0 answers
104 views

How can i merge the translations from one .po file into the source on another .po file?

I'm creating a survey in several different languages and so have two .po files, one has the questions and the other has the translations. I wanted to combine the files so the translations are copied ...
aheigins's user avatar
  • 111
1 vote
1 answer
2k views

Translate pages and URLs without duplicating

I would really appreciate some suggestions about what plugin to use in WP with DIVI editor, to translate my web site and following these specs: do not duplicate pages (that's really important) ...
Fabio's user avatar
  • 121
1 vote
0 answers
80 views

What can be reason for no plugin-strings available under stable section on translate.wordpress.org?

I cannot see any plugin-strings under the stable section on translate.wordpress.org. What can be reasons for that? P.S.: Under development section, I can see all the plugin-strings.
learning_13's user avatar
1 vote
1 answer
1k 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 ...
Enzo's user avatar
  • 11
1 vote
1 answer
25 views

How can I check if a var is equal a translated label?

In my plugin, I can publish a custom post. When I click on the "Publish" button, I have this data $_POST Array ( [foo_title] => test [foo_price] => ... [save] => Publier ) ...
J.BizMai's user avatar
  • 850
1 vote
0 answers
39 views

Build a translation correcter plugin

I'm planning on creating a plugin that fixes the translation issues of a specific theme. This theme is already translated into multiple languages but the translation is horrible. I don't know how to ...
mrKC.988's user avatar
  • 107
1 vote
0 answers
18 views

Single translation for many locales

Greetings to everyone, Is it possible to do make a single translation for many locales? Let me explain it better: Can I create a single translation file for my theme called es.po and es.mo so it ...
Ivan Montilla Miralles's user avatar
1 vote
1 answer
39 views

A new translation folder overrides my usual translation from "nowhere"

So I got to work on something really specific and strange on an old Wordpress I havn't edited already. The website is in French and English and this is a translation problem. To summaries the problem ...
Pierre Tusseau's user avatar
1 vote
1 answer
9k 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\...
maria russo's user avatar
1 vote
1 answer
200 views

Is there a way to test that readme looks in other language before submitting translation?

I am adding the translation for my plugin's readme file in Spanish. I want to check if there is a way to test how my file will look on Wordpress site's page before submitting the translation?
learning_13's user avatar
1 vote
0 answers
61 views

comment form args are not translatable (customized comment form)

I customized the comment form by changing the 'args'. Short Example: $comments_args = array( 'title_reply' => esc_html__( 'Leave a comment', 'mytheme' ), 'title_reply_to' =&...
Benmay's user avatar
  • 361
1 vote
0 answers
16 views

Translatable Categories

Hi I am working on new multilingual WordPess theme using loco translate plugin, I can't find categories names in translation files. Is there a way to make it translatable! Thanks!
Peter Wilson's user avatar
1 vote
0 answers
47 views

How can I change the language of automated Mails?

I've got a problem with translations, that sounds pretty simple, but I can't find a way around this. The Situation I got a software running on WordPress, and I need to send Emails to my users after ...
fischi's user avatar
  • 7,499
1 vote
0 answers
71 views

Translate slug in WPMU with PO files

I created my own plugin to make some taxonomies. Now I wish translate the url, but my attemp doesnt works. The code of the plugin made for create taxonomies: // Crea Post Type: Settori add_action('...
WalterV's user avatar
  • 197
1 vote
1 answer
683 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 ...
Matt Loye's user avatar
  • 111
1 vote
0 answers
685 views

Translation for the plugin using redux framework does not work

I am working on a commercial plugin and i integrated redux in it and use it as my option panel, i am almost done with the plugin, i started to translate the plugin but the translation does not work, i ...
hassan's user avatar
  • 11
1 vote
1 answer
399 views

Fixed values for same post translations

I was recently implementing a custom post type in WordPress, and added WPML so I could translate it's title & content. This post type (city) also has some custom metaboxes (metabox.io) like: ...
leuquim's user avatar
  • 131
1 vote
0 answers
120 views

Translation update successful but apparently not

I was updating my multi site installation just minutes ago to WordPress 4.0. The dashboard keeps notifying me, of an available translation update. I updated it as well and it gave me a success message....
twigmac's user avatar
  • 133
1 vote
0 answers
1k views

Translating dynamic strings

In my form I have a dropdown. I'm getting the values and labels of the dropdown dynamically from SugarCRM via it's rest API. I would need to translate these strings. I tried to pass the dynamic ...
user1049961's user avatar
1 vote
1 answer
540 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 ...
Bram Vanroy's user avatar
1 vote
0 answers
65 views

translation does not work for 'Home'

Using the birdtips theme, translation of messages generally works, with some minor omissions. When I click on a page, a new line appears below the header image saying Home >> MyPage Now, "...
Gergely's user avatar
  • 219
1 vote
0 answers
227 views

Wordpress translation loading english file

I am trying to translate a wordpress site but whatever I do the english file is always loaded. In functions.php I've set load_theme_textdomain('twentyeleven', get_template_directory() . '/languages');...
romainberger's user avatar
1 vote
2 answers
368 views

Translation not working after editing plugin template

I'm building a website with Wordpress and I'm using the plugin Event Organiser. I changed the config file of Wordpress to use the nl_NL (Dutch) language. This all works fine, even for the plugin, ...
Anonymous's user avatar
  • 111
1 vote
1 answer
827 views

Translate MCE button text/tooltip in custom plugin

I am using a custom MCE button in my wordpress custom plugin below is my code function enqueue_plugin_scripts($plugin_array) { //enqueue TinyMCE plugin script with its ID. $plugin_array["...
Awsme Sandy's user avatar
1 vote
1 answer
7k views

Easy export/import of data for Translation

We have several WordPress sites that we're going to get translated, however after some research this doesn't seem like an easy task. Preferred scenario 1) Ability to export all strings from themes, ...
jblz's user avatar
  • 111