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
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 ...
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 ...
0 votes
2 answers
2k 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 ...
5 votes
3 answers
12k views

How to add extra language packs to WordPress

I've got a multisite which I installed in Dutch. Therefore English and Dutch are available in the general settings tab. But I need to add German and French. I can't select any other language from the ...
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 ...
0 votes
1 answer
29 views

WordPress Translation not working for my theme

Hi I've been trying to translate a string on my website using the translation function __( and _e and I'm not seeing it working on my site. for example i have a string on my site __( 'Show articles', '...
1 vote
1 answer
36 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 ...
0 votes
1 answer
30 views

Dashboard and Site Language only partially translated (in own theme)

I developed my own Block Theme. The default language of my Wordpress installation is English (US). If I change it to e.g. German (Switzerland), only a few words/sentences are translated in the ...
1 vote
1 answer
8k 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\...
0 votes
0 answers
19 views

How to translate to a language different than the current one?

I have a problem. Site in English, with serveral languages. Say I'm in an Italian page, but I want certain phrases to be translated in French, for example. Currently using standard .po files. I need ...
0 votes
2 answers
296 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....
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 ...
0 votes
1 answer
76 views

Custom post type slug localization

I need to have 2 languages in a website (EN and LT). I have a custom post type 'services'. I need to have the links like this: English version of the service: '/en/services/some-service' Lithuanian (...
1 vote
1 answer
679 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 ...
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) ...
0 votes
1 answer
2k views

Plugin translation not being displayed

I'd like to change some translatable text of a plugin I'm using, Buddypress Group Email Subscription. The text is: No Email (users will read this group on the web - good for any group - the default), ...
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 ...
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 ...
0 votes
1 answer
690 views

Locale changed but plugin still showing default language

I'm changing the locale using the locale filter. I've tried various methods; creating a plugin and hooking into filter, declaring locale filter hook in the functions.php file, and even as simply as ...
0 votes
0 answers
20 views

Handling gettext / string translation when WP is installed in subfolder

My setup I have a custom PHP application that uses po/mo files in a locale directory to provide translations for the website strings. All works perfectly. I have Wordpress installed in a sub-directory ...
0 votes
0 answers
44 views

Translating Gutenberg Block - JSON Translation Files Not Loading

In following the steps outlined in this question I am unable to get it to work with the setup that I have. Essentially I have all my custom blocks within a structure like so: They are loaded in ...
0 votes
0 answers
14 views

Approach to duplicate content like language plugins - without duplicating the page

I'm a little stuck while working on a site. I have already an existing site, and the client would like to have two copies of some of the pages - which content is presented is controlled by a query ...
0 votes
0 answers
35 views

Redirecting to Specific Page after Language Selection with GTranslate Plugin

Dear WordPress StackExchange Community, I have been using the GTranslate plugin, and I'm thrilled with its functionality. However, I am facing a challenge and would appreciate your insights. Here's ...
0 votes
0 answers
10 views

Translation problem of a webshop

Some components of some product pages like custom text/name option are lost on a translated site but are kept on the original language. What should i do?
1 vote
1 answer
934 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 │...
0 votes
0 answers
18 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 ...
1 vote
1 answer
151 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 ...
0 votes
0 answers
86 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 ...
0 votes
0 answers
23 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 ...
0 votes
4 answers
14k views

get_the_date() for translating date format

I want to display dates in Hindi format like jan 10 using get_the_date() function. What I have tried so far: echo get_the_date(_e('F j')); which outputs: F jJanuary 10, 2017.
5 votes
5 answers
8k 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 ...
0 votes
1 answer
615 views

Load textdomain from global languages directory

I am creating translations for my plugin. To fetch .mo files from my-plugin/languages directory , I use the function //Load translation function load_plugin_textdomain() { load_plugin_textdomain( ...
0 votes
1 answer
1k views

When translating not all string are present in POedit

I've bought a theme few days back, i switched to the Slovak localization. Some of the strings were incorrect so i decided to fix them in poedit (never done that before) Most of the strings were ...
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 ...
0 votes
1 answer
113 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 ...
0 votes
1 answer
74 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 ...
0 votes
2 answers
3k views

Using _e() or __() to translate text with div

Is this the correct way to translate a sting of text? _e( '<h2 class="title">' . $var . '</h2>', 'text-domain' ); or, is this? echo '<h2 class="title">'; _e( $...
0 votes
1 answer
58 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 ...
0 votes
1 answer
83 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 ...
2 votes
0 answers
98 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 ...
2 votes
2 answers
5k views

How to edit T&C checker text in Woocommerce checkout page? gettext?

I'm trying to edit wording in terms & conditions checkbox on checkout page (order review section), but without luck. It was easy to edit other fields like billing and shipping fields. But I'm not ...
0 votes
1 answer
556 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
1 answer
45 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 ...
0 votes
1 answer
140 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 ...
12 votes
3 answers
6k views

How to get a translated string from a language other than the current one?

I was wandering... All the translation functions (__(), _e(), _x() and so on) use the current/active language. Is there a way to get a translation from another language than the current one? For ...
7 votes
2 answers
8k views

[Plugin WPML] : How to create a translation of a post using the WPML API?

I'm trying to figure out how to create a translation for a post using the internal WPML API (inc/wpml-api.php) I simply want to create a translation for post ID xx, set some content and publish it. ...
0 votes
1 answer
45 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 ...
0 votes
0 answers
39 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, ...
1 vote
1 answer
247 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 ...
-1 votes
1 answer
309 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: ' ...

1
2 3 4 5
12