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).
576
questions
1
vote
2
answers
222
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 ...
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)
...
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
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), ...
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
2
answers
29
views
How to use native wordpress translation domain inside a custom plugin?
Inside a custom plugin with a custom post type page entirely rework, I would use wordpress native translation to translate the post statut and other wordpress default informations.
I try to use the ...
0
votes
0
answers
4
views
Plugin for translation from one account and posting in different account
this is my first post in this part of Stackexchange. Here is my situation and my question:
I own two wordpress blogs in two different hostings and domains, one in each language (pt-BR and en-US). Both ...
1
vote
3
answers
17k
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 ...
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 ...
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 ...
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
...
1
vote
1
answer
711
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 ...
0
votes
1
answer
704
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
1
answer
28
views
Strings in class not being translated. (All other strings are.)
I have been handed an existing WP plugin for translation. I am using the WP __() function, which works fine in all cases, except for the following. (This is the relevant part of the code, of course, ...
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\...
0
votes
2
answers
2k
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 ...
0
votes
1
answer
43
views
Translations not making it into Block UI but work in the rest of the plugin
I'm currently flummoxed by a translation issue I've run into with a Block inside of my plugin.
Both myself and the developer who did most of the work on the Block portions of the plugin have been ...
0
votes
0
answers
24
views
How to correct translation error in WP Astra Taxonomy block
In Astra Child theme, there's a nice Taxonomy block that displays all categories with the number of posts to them. Translated to Dutch, the plural form is wrong. It's "Berichts", should be &...
0
votes
0
answers
27
views
Translate string in another langage than Locale
I am developping a plugin for my company to register projects with some products. I am creating a purchase order for my supplier with this products.
My local langage is french but my supplier is ...
6
votes
3
answers
13k
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 ...
0
votes
1
answer
40
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
39
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
41
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 ...
0
votes
0
answers
22
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
413
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
1
answer
255
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 (...
0
votes
0
answers
27
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
83
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
15
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
61
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
11
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
935
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
19
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
217
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
4
answers
15k
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
620
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
50
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
143
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
89
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
5k
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
91
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
101
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
122
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
669
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
58
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 ...
1
vote
1
answer
177
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 ...