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

0
votes
0answers
8 views

My website is translated automatically to stars when accessed from different country

My website (specifically digits and codes in post detail pages) is translated automatically to some other language when accessed from different language countries and makes digit into stars and my ...
0
votes
0answers
6 views

Override translation, only if new translation exist

I wanna override some parts of WooCommerce from English to Swedish - but just some parts. The translations I wanna override is kind of unique to my theme so therefore I felt like the best solution ...
0
votes
0answers
20 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
13 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
5 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
23 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
11 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
24 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
16 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
13 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
17 views

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

Is it really need to escape translatable strings?
0
votes
1answer
9 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
14 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
17 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
vote
1answer
21 views

Internationalization autocomplete JS variable

I'm working in a plugin (My first plugin) that uses autocomplete (Via JQuery UI) via an array and I'm wondering if I have to translate the array too if I want to make my plugin fully translatable. ...
0
votes
0answers
17 views

How to sync updated translation file with old custom one

I have customized the translations of Wordpress admin In 4.9 version. When I updated WP to 5.1, new strings are not translated with the old .po file. So I updated the tranlations after backing up ...
2
votes
1answer
39 views

New plugin translation does not work

I´m trying to resolve one matter for 2 days without success. I don´t know why but for some mysterious reasons, new translations in my plugin project did not work but it works perfectly for old ...
0
votes
0answers
26 views

Translate wordpress without duplicate custom post

As I can't find a proper way to do this, I'll just drop this here : I run a website where anyone can post offers from fontend. I want the website to be multi language with switcher and/or browser ...
0
votes
1answer
23 views

Child Theme Translations with PoEdit

What I'm doing I am translating a child theme and followed the instructions on https://developer.wordpress.org/themes/advanced-topics/child-themes/#internationalization. What I did so far Step 0 ...
1
vote
1answer
20 views

trying to modify colormag-fr_FR.po

How can I modify a translation in colormag-fr_FR.po? In fact the translation of "breaking news" is "Récents" in french. I went in the above mentionned file and changed "Récent" for "A la Une". But ...
0
votes
0answers
14 views

Post excerpt doesn't translate to current language

I'm using WP Multilang v2.3.0 plugin to support translation of the content to English. Currently I have it configured for two languages, my primary and English. While I'm on the main site (index.php) ...
2
votes
1answer
46 views

I can't translate text in my plugin using a .mo file, load_plugin_textdomain() function is always false

I create a plugin just for testing /** * @package SurveyPlugin * @version 1.0 */ /* Plugin Name: Survey Plugin Plugin URI: http:marcogomesweb.com Description: This is survey Author: NodeLondon ...
1
vote
2answers
147 views

Custom translation of Month names

How do I customize the translation of the Month name strings in WordPress? example "January" be "Jan11" in all of website
1
vote
1answer
27 views

Transliterating search term in another language

I've been searching everywhere in order to find a way to transliterate a search term before initiating the search in a different language - greek in particular. So I would expect a term written in ...
0
votes
0answers
35 views

I am trying to retrieve my categories translated with Polylang to display articles by language

I am translating a carousel that allows to display different cooking items according to the language and according to the current category, it worked well (when I'm on a dessert item, my carousel ...
1
vote
1answer
21 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), ...
0
votes
1answer
21 views

Plugin translation not working on WordPress.org

I have been developed a new plugin and published on wordpress.org. I want to translate my plugin in French language. I created a .pot file and translate strings using poedit. After translation, I ...
0
votes
2answers
26 views

Is it best practice to use English as the base of a translation-ready theme?

If I make a theme and add hard-coded text using _e(), __(), esc_attr() and so on. Could I do this in polish (or whichever language) and then add English translation po/mo files with the other ...
0
votes
1answer
95 views

Qtranslate-X get raw post title value

How can I get a raw value of post title using Qtranslate-X plugin? I have 2 active languages - [:et] and [:ru] $posts = get_posts($args); if($posts){ foreach($posts as $post){ $title1 = ...
0
votes
0answers
20 views

how to link local pages with flags in submenu

we have 4 flags on our website in the submenu. two, german and english are leading to the internal translation (wpml) the other two (chinese and russian) are leding to external links (local copies of ...
0
votes
1answer
38 views

I dont know why my localization is not working

I am working on a Plugin for Wordpress and I'm not able to get the Internationalization working. Here is the GitHub Link: https://github.com/dev-nm/WP-StudioLink-Integration I used wppb.me as a ...
1
vote
2answers
258 views

Unknown language json files

Situation Since some version ago (currently running 5.0.3) some plugin updates generate translation files like wp-content/languages/de_DE-1aeac217128913231c1a10ae951869.json We use two systems, one ...
-1
votes
1answer
45 views

Translations in source code

I have finished and deployed a WordPress site. Looking the source code inside browser tools, there are scripts embedded in the HTML code with all strings (original-translated) including all Gutenberg ...
1
vote
1answer
101 views

load_plugin_textdomain in `plugins_loaded` or `init`?

Which is the best/recommended way to hook load_plugin_textdomain within - plugins_loaded or init? and what are drawbacks using either.
0
votes
1answer
30 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 ...
2
votes
0answers
120 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
1answer
97 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
27 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
25 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 /...
1
vote
1answer
46 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
16 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
302 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
88 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
99 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
44 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
11 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 ...
1
vote
1answer
37 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
186 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
31 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
1answer
207 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 ...