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
2
votes
1answer
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 ...
1
vote
1answer
957 views

Two text domains in one plugin

From start: A = main plugin(the library), B = child plugin I develop a plugin B that will depend on another plugin A in order to work properly. I do this because I'm one of the persons who don't ...
0
votes
0answers
15 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 ...
0
votes
0answers
6 views

Translation working on staging site, not on live one

I’m in a bit of a pickle. I tried migrating a site to a live URL, and all of my translations disappeared. I made a small video to explain the issue: I used ALL-IN-ONE Migration to transfer the site. ...
3
votes
2answers
2k views

change only the theme language

My wordpress admin is in french. and my theme is in arabic. i have two files mo : arabic and french. i used this : add_filter( 'locale', 'change_locale' ); function change_locale(){ return 'pt_AR'; }...
0
votes
1answer
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
1answer
863 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 ...
0
votes
0answers
22 views

Translate portfolio arrow in german [closed]

I use the Portofolio for my WordPress website. However, the navigation arrows are displayed in English, which I would like to change to German. Does anyone know if this is possible? Update: I have ...
5
votes
2answers
3k 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
0answers
16 views

Translations not appended even strings are edited

Well after 5 days of trying to find solution, I think I need WordPress magician to help me solve this. I am translating my WordPress site. So far I have translated over 80% of the content mainly ...
0
votes
2answers
864 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 ...
0
votes
0answers
12 views

Translations not working on Safari

I have bilingual Wordpress page and I'm adding translations in my .po file. They work fine on every browser except Safari. Is there any way I can fix this or any idea why it's not working?
0
votes
1answer
23 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 ...
0
votes
1answer
16 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?
0
votes
1answer
30 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 ...
2
votes
1answer
379 views

How to get menu strings, categories and tags into po file for translation

I'm prepping my theme for translation. I've added the following line to my functions.php, and added the text domain within my theme files. <?php /*** LOAD THEME TEXTDOMAIN ***/ ...
1
vote
1answer
7k 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
1answer
831 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
4answers
8k 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.
2
votes
1answer
5k views

Internationalize / translate custom post types & taxonomies

I've created custom post type and taxonomy via generator, but not quite sure how to make it translatable. Google doesn't help in this. I have no idea where to put text-domain here and things what I've ...
6
votes
2answers
7k 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
1answer
922 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
0answers
32 views

Gettext: Specify base language for translatable strings?

I have plenty of customizations on a page which was only meant to be used for german audience - hence I hardcoded the some German sentences directly into the functions.php whereever I had language ...
1
vote
2answers
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
2answers
97 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 ...
1
vote
1answer
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 ...
0
votes
1answer
576 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( ...
3
votes
2answers
960 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 ...
16
votes
3answers
11k views

Override default WordPress core translation

WordPress is set to Dutch language. When I use get_the_archive_title() my theme correctly outputs "Categorie: Category-name" on a category archive page. However I'd like that to read "Sectie: Category-...
0
votes
0answers
46 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 ...
5
votes
4answers
8k views

Changing the language of a single page

I have a wordpress site in a language that aligns RTL, but some pages are in English. These pages look terrible, however, because the English text is aligned with the RTL language, and punctuation, ...
0
votes
1answer
24 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( $...
0
votes
1answer
2k views

load_textdomain won't load my .mo file

I am using Yoast' method to build an HTML site map. But it needs to be translated. It uses a page template page-sitemap.php that uses a template part <?php get_template_part('/partials/sitemap'); ?...
0
votes
1answer
1k views

What would cause the gettext filter to not work for a given text domain?

Inside of a plugin, I'm using the gettext filter to alter strings of a theme so that I don't have to copy the template files over to a child theme and edit them. Also, this isn't always possible since ...
14
votes
7answers
43k views

Different Language for Frontend vs Backend

I use an English WordPress package and this is very well. Now, I would like to translate some elements of the blog (like "posted on", "comments") etc., but do leave the dashboard interface intact in ...
0
votes
0answers
20 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 ...
0
votes
0answers
23 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. (...
8
votes
3answers
20k views

generating po mo translating files from scratch in a wordpress theme

Maybe I'm missing something here but I really can't find any answer to my question around the web. I am creating a new wordpress theme from scratch (literally from scratch) and would like to create ...
0
votes
1answer
26 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. ...
0
votes
1answer
14 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&...
10
votes
2answers
4k 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 ...
0
votes
0answers
13 views

multilingual theme but no multilingual posts

I have a Wordpress page with a custom theme translated into 3 languages using load_theme_textdomain. I can change the site language by going to settings > site language and the theme strings change ...
2
votes
2answers
3k views

How to override languages files in wp-content/languages/themes with child theme

I want to create a child theme for TwentyFifteen theme, which will customize a lot of things, including translation. When I install WordPress in my language (Farsi), it includes TwentyFifteen language ...
2
votes
2answers
921 views

use __($str) to translate strings (symfony/twig)

I usually use frameworks like Yii(2), Zend or Laravel to build pages but a customer forced us to use Wordpress this time. I integrated Symfony/Twig as my template engine but now I have trouble with ...
0
votes
0answers
15 views

How to create a 1 to N dynamic dictionary-like interface in a plugin page?

Background: I am currently expanding a plugin that is used only over the Network in Multisite mode. We have a network of sites in different languages, they are not the translated versions of the main ...
0
votes
0answers
22 views

Update .po & .mo localization files of a custom plugin

So I've developed some plugins using wp's localization functions (such as __(), _e(), etc.). I want to localize with PoEdit, a tool actually recommended by the wp docs. It works all easily to import ...
1
vote
1answer
2k views

Updating WordPress Theme/Plugin POT file without losing line numbers consistency

This is a recurrent problem I have when building WordPress Theme or Plugin: each new feature added to the code breaks the i18n files consistency. POT/PO files store the line number of the translated ...
1
vote
0answers
10 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 ... ...
0
votes
1answer
277 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,...
0
votes
0answers
42 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 ...

1
2 3 4 5
11