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
0 answers
13 views

Translate Breadcrumps from Rank Math in Wordpress

I have a website on Wordpress in Bulgarian. I added bread crumps from Rank Math and everything is fine, but the bread crumps on pagination. See, everything is in Bulgarian but the last part which is ...
The White Peony's user avatar
0 votes
0 answers
23 views

TRANSLATION Change the content default language

i create my website with French as a default language(Dashboard and website content) and when i finished i install a Translation Plugin 'TranslatePress' to translate my website to English, and as you ...
Norman's user avatar
  • 1
0 votes
0 answers
15 views

How to find the source of a rendered string?

I truly appreciate it if you could help me with this issue since I could not fix it for the last few days. I am currently using a journal publication plugin and when a new paper is submitted by the ...
Cogito's user avatar
  • 1
1 vote
0 answers
31 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
0 votes
0 answers
27 views

Plugin translations are not loaded from translate.wordpress.org

My plugin has 100% translations for few languages in translate.wordpress.org. I have set the correct text domain, slug, "requires at least version" as per documentation below. https://...
Aakash Chakravarthy's user avatar
0 votes
0 answers
20 views

Translate via URL parameter working only in localhost

I have a website and the default language is brazilian portuguese ( already using __() ). Then, using POEdit, I created two others languages: English and Chinese, translated all the terms, tested it ...
Marcus Matsutani's user avatar
0 votes
1 answer
79 views

Admin Notice is only localized when displaying the "Plugins" Backend Page

My plugin checks if a specific theme is activated. The check is hooked on init. If the theme is not activated, it displays a warning, hooked on admin_notices. This works fine. Now I added localization ...
Maxwwos's user avatar
0 votes
0 answers
32 views

.po file is loaded but changes are not appearing

I made a translation file (fr_CA) and it's loading. But any change I make in the file does not appear on website. Clear cache, private window, other browser. It's all the same. I don't get it... What ...
PEROY's user avatar
  • 1
0 votes
1 answer
51 views

plugin translation *.mo file not getting loaded for custom post

I'm encountering a weird behavior with the translation for a custom plugin I've made for a customer. The translation files are in the plugin languages folder and I load them with ...
piero's user avatar
  • 1
0 votes
1 answer
39 views

multisite same language different translation

I am ruing multisite, and I have two sites, and the two sites are sharing two plugins, pro and free; I have translated the two plugins on the first site. And I want to edit a few strings on the second ...
KDot's user avatar
  • 15
1 vote
1 answer
89 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
0 votes
1 answer
31 views

How to find posts that are missing translation? (wpml)

I have a page with hundreds of posts that should all be available in two languages. In the admin area however I have differing post counts – so I guess some of the posts are not translated. Instead of ...
tillinberlin's user avatar
2 votes
0 answers
76 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
0 votes
0 answers
22 views

Theme translation file translating some strings and not translating others

I have an issue with translating the theme. I am translating the theme changing the .po and .mo files in Poedit but also tried Loco plugin hoping it will resolve the issue. Some strings in the given ...
matteomat's user avatar
0 votes
1 answer
38 views

plugin translations not reflected in admin dashboard

I have a plugin which has all strings originally in English, now translations to Arabic have been done at 100% and are appearing on the project link. When I check the plugin's page in Arabic, it is ...
jaafar Nasrallah's user avatar
0 votes
1 answer
102 views

Transate plugin with js & wp_localize_script

I'm trying to translate a plugin with JS functionality. I was able to translate the classic php part with a .po file etc... In my plugin there are 2 words in js that I would like to translate and I ...
Thica's user avatar
  • 13
0 votes
1 answer
33 views

How to automatically translate plugin using translate.wordpress.org

Is there a way to automatically download translations for a plugin from translate.wordpress.org. I'm testing with WPML String Translation. The plugin has about 20 untranslated strings and I need a ...
Snels Nick's user avatar
1 vote
1 answer
46 views

Should I include colon in my msgid in PO file? [closed]

Which of the below is recommended when creating msgid a PO file? msgid "Available Balance:" or msgid "Available Balance"
ratib90486's user avatar
0 votes
1 answer
515 views

Translate javascript with WordPress built-in localization API for static strings

I have been trying to implement the translation to a couple of strings in a .js file but nothing has worked. First try to do it like I do in php, in the .js file add this variable var __ = wp.i18n.__; ...
choseɳ's user avatar
  • 17
0 votes
0 answers
35 views

How to implement __() function in my theme's php file?

I am translating a site with Polylang that was created by someone else using a custom theme. Some strings couldn't be found by Polylang, so I need to manually register them for Polylang to see. Now, ...
anzorandom's user avatar
1 vote
1 answer
171 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
0 votes
1 answer
45 views

Translation for a text that is not printed on the screen

How can I enable the translation for a text that is not printed on the screen? I was recently implementing the translation to my plugin and everything worked as expected. But doing the tests I ...
choseɳ's user avatar
  • 17
1 vote
0 answers
83 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
0 votes
1 answer
115 views

Translate website without duplicate custom post

I have a website where anyone can post jobs from frontend. The jobs pages are rendered by custom archive and single pages in my custom theme. I want the website to be multi language with switcher. The ...
Caslaru Ion's user avatar
0 votes
0 answers
385 views

String translation for esc_html__() when registering string [closed]

I am trying to translate the string 'Home' in wordpress that is registered as an esc_html__(). This is the code registering the themes functions.php: if(!function_exists('gem_breadcrumbs')) { function ...
pointydrip's user avatar
3 votes
1 answer
429 views

WordPress: After Gutenberg plugin migration to block.json the localization/ translations with PolyGlot in JavaScript does not work anymore

I made a plugin with existing localization on WordPress.org for free. I migrated to block.json and made all changes by comparing it to the output of npx @wordpress/create-block todo-list. I read ...
Marc's user avatar
  • 655
0 votes
1 answer
107 views

Automatic translation with different domains per languages?

I would like to know if there is a plugin to make automatic translations with one different domain by language for the same project. For example : car.co.uk for the English voiture.fr for the French ...
GWAdev's user avatar
  • 3
0 votes
1 answer
1k views

Using wp-cli to create a .pot file that interprets .twig files as well

Using the wp i18n make-pot I can create a .pot file that can interpret .php files. This is the command I use wp i18n make-pot . languages/my-plugin.pot This is good but because I use timber with my ...
Buttered_Toast's user avatar
0 votes
0 answers
187 views

Translations only load from `wp-content/languages/plugins` but not from the plugin's languages folder

I translated my plugin and put all the files (my-plugin-de_DE_formal.po, my-plugin-de_DE_formal.mo, my-plugin.pot) in the wp-content/plugins/my-plugin/languages folder. My plugins header says: … Text ...
Mountain's user avatar
  • 101
0 votes
0 answers
123 views

Date translation doesn't work

I would like to translate into French the month of the date I get with the function: get_the_date() I have done several searches and found several solutions but none of them worked so far. I have ...
Clément Ozor's user avatar
0 votes
1 answer
58 views

Use localized plugin name and description even when the plugin is disabled

I'm working on plugin development and I'd like to localize my plugin name and description, so that these two pieces of information are shown to other WordPress developers in their native languages (if ...
zeko868's user avatar
0 votes
1 answer
24 views

Include external po file for 3th party plugin to theme

I used 3th party plugin in my theme but some of them don't have my target language support.I want to add new language support to these plugins from my theme plugin.How can I do it?
attack-to-overflow's user avatar
0 votes
1 answer
194 views

Making WP theme / plugin multii-lingual without plugins

I am new to theme and plugin development and am stuck at the translation part. I read one place that if you are using __(), and e() throughout, you do not need a plugin like WPML. Is it correct? Is ...
Raging Vids's user avatar
0 votes
2 answers
531 views

Setting Email locale before retrieving gettext translations

I developed several plugins which I localized using the standard approach with __() functions and the .po or rather the .mo files. All of this works like a charm. What I now want to be able to do is ...
DevelJoe's user avatar
  • 467
0 votes
0 answers
93 views

How can I change a translation for a string in a plugin?

I'm only starting with WordPress development so please be gentle :) I'm using the Amelia Booking plugin and am trying to change the string "On-site (Bank Transfers Only)" which is defined in ...
Maryando's user avatar
0 votes
1 answer
39 views

Issue with translation - Gutenberg

Here is my code. I based it on CapitaineWP formation and template. I have the .pot, .po, .mo and .json files. $script_asset_path = PERSO_FOLDER."/build/index.asset.php"; if ( ! file_exists( $...
David Dufour Morin's user avatar
0 votes
0 answers
26 views

Is there a way to load translations from .PO and .MO files for Customizer strings?

I would like to ask if there is a way, a filter or a hook that lets us display the translated strings of the Customizer options. For example, most WordPress themes provide translation files in the ...
Usman Ali Qureshi's user avatar
0 votes
0 answers
32 views

HTML Elements in my WP Plugin being generated in JS. Security and Translated Text Question about this method being used

So unfortunately when developing my WP plugin I created some methods that will help me generate HTML elements and their attributes with document.createElement. One example function is provided below. (...
Andrew Lee's user avatar
0 votes
1 answer
44 views

Wordpress Include 'print_f' in WP_Customize_Control array [closed]

I have the following problem: I want to add print_f in an array in wordpress. printf( __('Option to share on %s', 'themename'), 'name') However, the following code does not work properly for me. ...
Chris's user avatar
  • 13
0 votes
1 answer
21 views

how to unlocalize theme/plugin?

I have theme with this code in one php file : 'logged_in_as' => '<p class="logged-in-as">'. sprintf( __( 'Logged in as <a href="%1$s">%2$s</a&...
masoud nkh's user avatar
1 vote
0 answers
18 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
0 votes
0 answers
97 views

Structure of multilingual and multiregional directory listing website for translation

What is the best translation structure for a multilingual and multiregional directory website? Let's say our listing owners as members of our work team are from around 20 different countries with ...
Bahram's user avatar
  • 1
1 vote
1 answer
871 views

How do I create a function that modifies a message in the wp-login.php file?

When a user uses the password reset functionality in WordPress, they are asked to enter their email and click confirm. After doing so, they get the message: Check your email for the confirmation link,...
Dalen's user avatar
  • 13
1 vote
1 answer
1k views

Can't generate pot file using wp cli

I'm developing a child theme and I want to get .pot file using wp-cli. I follow the wp-cli handbook and run: cd /media/sf_TOOLS/ubuntu-20.04/bin curl -O https://raw.githubusercontent.com/wp-cli/builds/...
Lety's user avatar
  • 131
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
0 votes
2 answers
482 views

How can all E-mails be sent with BCC copy to Admin?

I'm translating WordPress page into seven different languages. Have around 70 plugins active and working, no worries. Subscriptions, shop, pre-orders you name it. Getting there with translations, ...
Kztok's user avatar
  • 1
0 votes
1 answer
132 views

How can I tranlslate post date in italian?

I'm using this filter to display post date in my single and archive pages, because working on a windows azure php app I can't show post date before 1901. This filter is working but It displays post ...
Bondweb's user avatar
0 votes
1 answer
22 views

Translation is not being output in one instance

I am creating translation for a custom theme and specifically custom template file of the theme and user Poedit to create the pot template. After translating the file one line in the template won't ...
annkswe's user avatar
  • 23
0 votes
1 answer
46 views

Plugin language always shows WP site language, not profile language

I wrote a plugin that I translated from English to German. The German translation only shows up, when I change the site's language to german. Once the site language is set to German, it will always ...
Skymonkey's user avatar
0 votes
2 answers
102 views

Is there any way to use @wordpress/i18n for <5.0?

I'm looking to make use of translation strings inside my JS files and unfortunately, I've read that @wordpress/i18n doesn't work <5.0. Are there any tools/libraries that help me with this?
Daniel Simmons's user avatar

1
2 3 4 5
12