Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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

0
votes
1answer
21 views

Why translations?

I wonder why my WordPress installation has frequent updates for all sorts of translations, as my webpage is in a single language only (German). Is there some way to uninstall languages/translations ...
1
vote
0answers
23 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 ...
0
votes
0answers
11 views

Is there a up to date plugin like qTranslate? [closed]

wpml and polylang seems too complicated. and qtranslate has not been updated for 3 years. is there any alternative multi-language plugin that doesnt involving creating different pages for every ...
0
votes
1answer
19 views

Gtranslate function with custom menu

I am very newbie with WordPress and editing plugins. I have a custom menu (English, Chinese (Simplified)) using HTML that I want it to call the gtranslate function for each language but it seems like ...
0
votes
1answer
20 views

Change 'Categories' to 'Topics'

I'm trying to find a way of displaying 'Topics' rather than 'Categories' and so far not being very successful. I tried this: function translate_category($translated) { $translated = str_ireplace('...
0
votes
1answer
11 views

How to use my .mo file in the Divi child theme instead of file in a parent /builder directory?

I use Divi from elegantthemes.com there is a Lang folder in my parent wordpress theme; I added my own .mo file in the child-theme using load_theme_textdomain. but there is another file located in /...
0
votes
0answers
18 views

Polylang - how to use array to translate strings

I’m using polylang to translate strings in my theme. I’m wondering is it possible to declare strings in array like $langs = [ 'item' => 'my string', 'next' => 'another string', ]; And ...
1
vote
1answer
12 views

Should I change text-domain of TGM library inside theme?

I created a theme and I want to publish it in wordpress.org. I used TGM library to check to require plugins. but the Theme-check get bellow warning: Warning: More than one text-domain is being used ...
-1
votes
1answer
11 views

WPML & Events Manager translatable fields after duplication

I have created a WordPress site with WPML and Events Manager together. I want to create events in a language and then translate it to my second one. That's easy but I can't seem to find where I change ...
0
votes
1answer
22 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 ...
0
votes
1answer
24 views

Found a translation function that is missing a text-domain. Function _n

I am getting this error? Found a translation function that is missing a text-domain. Function _n can this be fixed? how can the translation be done in this case? if( count($value) < $field['...
1
vote
1answer
32 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
0answers
40 views

Translate strings not recognised in plugin

I am trying to translate my plugin strings, but for some reason my plugin does not find the strings via the _e() and __() functions. My plugin directory is called test-plugin. My plugin /test-plugin/...
0
votes
1answer
10 views

How to get custom translations from child theme to be loaded?

I have a child theme that loads translations normaly but if i added custom translatable strings that doesn't exist into the parent, how to add these strings to the main po file or how to load it ...
0
votes
0answers
12 views

Show different forms depending on selected language

I'm using a theme that uses a booking form on the product page. It's an event booking theme. I wanted for the booking form to only show up on specific products. On all other products, I wanted a ...
1
vote
1answer
25 views

Change template copy with po/mo files

I just got my hands on a WordPress site and i'm trying to edit some words from a theme login template, so I went to cPanel to check how the theme templates handle the copy and I found the pt_PT.po ...
0
votes
1answer
56 views

Can't translate the post meta data (Date) in another language

I want to translate the post meta data (date) in chines language for example, September 13, 2017, should be translated as 2017年9月13. But my code gives it in English. Do you see any error? Please help. ...
0
votes
1answer
30 views

Translation ready code format for taxonomy

https://codex.wordpress.org/Function_Reference/register_taxonomy i have these doubts _x( 'Categories', 'taxonomy general name' ) does it make taxonomy general name a text domain? wont it resulting ...
0
votes
0answers
17 views

Change the language of domain from English to French WPML String Translation

Changed the language of the domain in French so now it takes strings and let's me edit the Original(English) string from WPML and not editing/changing the string directly in the template. But after I ...
0
votes
1answer
33 views

WooCommerce does not translate every string

So I have an issue with WooCommerce translation to German language - basically it does not translate every single string. I'm using a child theme of "Neighborhood" theme and we have a plugin Loco ...
0
votes
1answer
10 views

How to 'manually' load translations/test domain outside theme context?

So I need to build a pdf file starting from a php/html template (currently using mpdf library). So my-pdf-template.php file will never be shown on the website frontend, and sits on the main theme's ...
2
votes
1answer
56 views

Do i have make the content() also translation ready in theme?

I am trying to understand things needed to make theme translation ready.Things below are not clear for me Which content of theme are to made transnational? Are title,customposttype and content are be ...
0
votes
1answer
77 views

How to translate custom Divi module using POEDIT and Polylang [closed]

I am using Divi theme and Polylang plugin. I use Polylang to add Bosnian language (bs_BA). I know how to register strings for Polylang and translate them that way, but I can't manage to do plurals ...
1
vote
2answers
46 views

How to override default Wordpress core language file

I am experiencing a small problem and I have tried several solutions, but none of them has worked unfortunately. Perhaps somebody has a clue why :-) I am using the Syntax theme from Automattic which ...
0
votes
0answers
21 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 ...
1
vote
2answers
31 views

Multiple text-domains per single plugin - admin and frontend

There is a plugin: In admin area it has about 300 various strings added via __('', 'my-textdomain'). Most of these are form labels, titles, etc. On "frontend" (which end user sees), there just 15 ...
0
votes
1answer
220 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 ...
0
votes
0answers
14 views

Page-section link doesn't work with translation

I've set up a bilingual site (with the TranslatePress plugin, which adds ?lang=en etc. to the end of a URL to select language), and links to page sections don't work properly. Normally, I create ...
-1
votes
1answer
27 views

Auto translate plugin text-domain [closed]

I'm searching for a plugin that automatically translate plugins. I don't want plugins like polylang or gtranslate, I don't want to have more than one language in my website(The website has only one ...
-1
votes
2answers
61 views

ACF + WPML: How to translate date fields?

I'm trying to translate the month name outputted by an ACF date field. How do I get the Spanish versions of those month names? Here's an example of my code: $start_date = get_field('start_date'); $...
0
votes
0answers
19 views

How to deal with differently translated prepositions?

I'm maintaining a Wordpress site in both English and Portuguese. I'm using .po and .mo files. The site is related to elections. In English, you can always say "Candidates in {{state}}". In ...
1
vote
1answer
82 views

Fetch ID's associated with a custom post type when translated with WPML?

I've created a custom post type (roomtype). Now these roomtypes has post id 272 (single room in swedish) and 350 (double room in swedish) I've made it translatable (with WPML) and created in english. ...
0
votes
2answers
36 views

Wordpress Baskerville 2 translation

I don't understand how translation works in Wordpress. I made my first wordress using Baskerville 2 theme and I would like it to be translated in French. How does it work ?
2
votes
2answers
162 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
1answer
42 views

How to Convert Date to Thai

The Thai text I want to end up with is: อาทิตย์ 03 มกราคม 2016 to อาทิตย์ ๐๓ มกราคม ๒๐๑๖ I don't think it should matter what language but in this case it is Thai. My function is: $strdate = ...
0
votes
1answer
31 views

Conditionally change Wordpress core language

I need to change the wordpress language conditionally. So I use the code: //Change Site Locale function wpsx89972_redefine_locale($locale) { if .....my condition exists... { $locale = 'en_US'; } ...
1
vote
1answer
34 views

Is is safe to edit language files from wp-content/languages/plugins/woocommerce-ro_RO?

Is is safe to edit language files from wp-content/languages/plugins/woocommerce-ro_RO.mo(.po) ? I'm asking this because I don't want them to be overriden on plugin update. Sorry if dumb question.
0
votes
1answer
38 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) ...
1
vote
0answers
72 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.
2
votes
1answer
26 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 ...
0
votes
0answers
34 views

Testimonials not showing in wordpress site for arabic translation

I've developed a bilingual website on wordpress. In my wordpress site I'm using Testimonials for user reviews on my site. The testimonials are working fine for english translation but when i switch ...
1
vote
3answers
255 views

Is this a correct usage of esc_html_e?

<h1 class="page-title"><?php esc_html_e( 'Oops! Something went wrong.', '_amnth' ); ?></h1> I think this should simply use the __() function, since it's a static string and it ...
0
votes
0answers
27 views

How to reload WPML string translations for a reloaded theme textdomain?

I have an action that changes the theme locale from the plugin in the following way (plugin/wcet/wcet.php): $locale = get_custom_locale(); add_filter( 'theme_locale', function() use ( $locale ) { ...
0
votes
0answers
22 views

Translate WP/WC request data strings

Has anyone come a cross on how to translate the email and message from request links for export data (gdpr) WordPress and Woocommerce ? I added the text from the thanks for confirming... to the .po/....
0
votes
1answer
71 views

WordPress i18n in Array throws Error

i am wirting my very first plugin. For publishing it to the repository i want to make it translatable. On my options page i some arrays, which store the default settings. Somehow i get an error when ...
0
votes
1answer
118 views

wordpress plugin translation not working

I have no idea what is wrong here. First I would like to share probably all required info. Plugin tree: $ tree . ├── classes │   ├── database │   │   ├── plugin-auth.php │   │   ├── plugin-user.php │...
1
vote
1answer
71 views

loco translate plugin edits file in plugin folder

I'm creating a plugin that must be translatable. Under plugins/my-plugin/languages I've my .po, .pot and .mo files. When I translate something in loco plugin I can see translation applied as ...
1
vote
1answer
54 views

Internationalization: Not loading plugin translated text

I am trying to internationalize the plugin I am creating but it doesn't seem to display the translated texts that are translated in the .po file. Firstly, I have referred to the following sources: ...
3
votes
2answers
292 views

Disabling Translation Update

There are two ways that WordPress updates translation files inside Languages folder: 1. Automatic updates whenever it gets triggered. 2. Manually when user requests it on "Updates" page. Is there a ...
0
votes
0answers
55 views

How to disable translations update notifications for a plugin?

I need the plugin to keep notifying about the updates, except for its translations. Is it possible to disable translations update notification for a specific plugin?