The tag has no usage guidance.

learn more… | top users | synonyms (1)

0
votes
1answer
5 views

WPML admin texts with serialized objects

I have been trying to get a plugin to work with WPML - I'm almost there but I'm wondering if anyone knows if it's possible to get WPML's admin texts (wpml-config.xml) to read serialized objects stored ...
0
votes
1answer
17 views

How to get Post title by locale with Qtranslate-X

I need to send 2 emails, when new comment is posted and when new comment is approved. Site is multilingual and uses qtranslate-x plugin. Here is code, which sends email when comment is posted. In ...
0
votes
1answer
24 views

Plugin translations problem

I developed a plugin for my client in english by default. I created estonian and russian translation files. But my client installed wordpress with estonian language by default and now, when my plugin ...
0
votes
1answer
15 views

Plugin localization persistance (woocommerce)

I am having an issue with a WooCommerce translation being overwritten. What I've tried so far: moving my woocommerce-de_DE.po/mo files to wp-content/languages/plugins/ blocking translation auto-...
0
votes
1answer
482 views

Display 1 Post per taxonomy with polylang

I am trying to make a loop where I display all my taxonomies with the first post of every taxonomy. It's the taxonomy "customers" and I want to display every first portfolio-CPT of the customer. I ...
-1
votes
0answers
25 views

translate text in a plugin incompatible with translation [on hold]

i have installed in my website this plugin: https://wordpress.org/plugins/video-list-manager/ but it's incompatible with translation (the text is included directly in hmtl). now i want translate ...
-4
votes
0answers
13 views

Which community translations plugins/options do you recommend?

I am running a Positive News website - www.thepositiv.com, and I am looking deeply and carefully now for the change I need, in order to make my website multilingual, all my posts translated and the ...
0
votes
0answers
14 views

My plugin translation will only work partly

I've made a simple plugin that so far just creates a new role "Super Editor". I've made my translation files and added the load_plugin_textdomain-code within the plugins_loaded hook. function ...
6
votes
1answer
37 views

How to get a traslated 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
2answers
20 views

How do you translate comments_number function text in a theme?

If I'm just echoing regular text, I do this: <?php _e('This post is closed to new comments.','my-theme') ?> But how would I translate the text in comments_number(); so that the "Comments" ...
1
vote
1answer
90 views

Why can I not use a class constant as text domain?

What makes Wordpress.org make an internationalization of a plugin approved? I've created my first plugin and here's the main code: https://plugins.trac.wordpress.org/browser/mastercurrency-wp/trunk/...
0
votes
1answer
547 views

How to translate menu items?

is there i way for menu to be translated when i choose website language? Can it be done without using a plugin? Does anyone have a solution to do it withot using the plugin? Thanks in advance
1
vote
1answer
549 views

Force Plugin to English Translation

Here's my thing: I'm using a plugin that has multilang capabilities. The point is that the language translation in my country lang is very bad and it makes more complex than simpler my work. :D. So ...
0
votes
0answers
225 views

Google Language Translator - Manage Translation

I installed Google Language Translator wordpress plugin. How can I manage it's translation (https://translate.google.com/manager/website). I can manage the translation if not using a plugin, but ...
0
votes
2answers
524 views

Wordpress translator plugin: Google Webmaster's Tools shows hundreds of 404 not found errors. How to clean the mess?

I had Global Translator Wordpress plugin. It littered Google Search index with thousands of translated urls. Couple of months ago I removed the plugin and also the cached pages on the server. But ...
4
votes
1answer
54 views

How to escape single and plural i18n text strings?

I've come across the esc_html_e() and esc_attr_e() functions which allow me to escape translated text strings. I'm now using these instead of _e() where appropriate. The _n() function allows for both ...
0
votes
0answers
18 views

Why is my theme not translated in the backend?

My function is: add_action('init', 'wan_load_textdomain'); function wan_load_textdomain() { load_theme_textdomain('mytheme', get_template_directory() . '/languages'); } This translates in the ...
4
votes
1answer
79 views

How to escape the single quote character in i18n translation strings?

How should I properly escape the single quote character in a translation string? I'm using it as an apostrophe. For example: __( '404. This isn't the page you're looking for.', 'textdomain' ); I ...
3
votes
0answers
20 views

Use override_load_textdomain for cache translation and improve performance

I have a multisite wordpress with multiple localized sites (es_ES, de_DE, it_IT). I want improve page speed by caching wordpress translation file. My code works (inspired by Tristan Darricau)! and ...
0
votes
0answers
15 views

Swedish characters unreadable after each WP update

With each update of WordPress, my site title in Swedish becomes unreadable. I then have to go in Customizer, write the site title again, and everything becomes alright. Sure it's a small ...
14
votes
6answers
8k views

Change the text on the Publish button

Is there a way to change the text of the publish button on a custom post type to say some different? For example, Save instead of Publish. And also remove the draft button?
0
votes
1answer
24 views

How to handle single qoute in a translatable string in Wordpress

I have two translatable strings as follows in my 404.php file esc_html_e( 'I couldn't find the page you were looking for.', 'themename' ); esc_html_e( 'Try a search or one of the links below.', '...
0
votes
1answer
23 views

How to add a translatable string to post date

I am trying to add a translatable string, like "posted on:" to my Wordpress theme post dates. I have already added a font-awesome icon next to it and I'd like to have the string after the icon. The ...
1
vote
2answers
4k views

Where is the right .mo file inside the language repository?

I need to translate my Wordpress in Italian. Following the instruction written on WordPress in Your Language, I've searched my .mo file inside the Language Repository but I've some problems. The ...
0
votes
1answer
16 views

Any way to permanently translate themes?

For the reason beyond my imagination Wordpress never had chance to get real theme updater (i.e. the one that would actually update only changed files) and instead offers a-joke-called-updater, that ...
2
votes
3answers
1k views

How to tell a theme to use different .mo and .po files?

I have a theme which loads .po and .mo files to display strings in English. I want to have only one language (Polish), but those two files are en_US. I tried replacing content in the en_US.po file but ...
5
votes
1answer
517 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-...
2
votes
1answer
3k views

How to debug failed load_theme_textdomain()?

I made my theme ready for translation. My text domain is my_theme and my .po and .mo (de_DE.po and de_DE.mo) files are located in a subfolder languages in my themes folder. In my functions.php I ...
2
votes
1answer
68 views

Getting translated string through a variable

I am translating a website into different languages, and I have the following problem: Through the backend, user can select via a dropdown, a value (text string) from a list of 50 options. This ...
3
votes
1answer
37 views

Translate content, not instance, per-post

TL;DR: I'm looking for a way to translate only the content of a specific post in another language, not everything around said post (such as the 'meta' and the 'search' field like this solution seems ...
1
vote
2answers
43 views

Localization / textdomain is slow and chaotic

My theme has a lot of templates. Most of them contain messages in the usual way: echo __('This is the message','mytextdomain') This has several disadvantages. For instance, if I want to change the ...
4
votes
1answer
4k 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
0answers
33 views

Theme doesn't load localization files

I create translation into Czech but I have a problem with setting up this language with the theme Blogon: I created translation. Then I copied the cs_CZ.po and the cs_CZ.mo files into to themes/...
0
votes
1answer
25 views

How to translate a string that contains a WordPress sitename

currently I have this code: <?php _e( 'Follow ' . get_bloginfo( 'name' ) . ' on Facebook', 'yanse' ); ?> But I just get Follow to translate and it echoes "Seguir 'Site name' on Facebook"
3
votes
1answer
60 views

Set language per post

I have a bi-lingual blog with English as the main language and Arabic. Currently I use the post "Custom Field" to indicate that the post is Arabic and I use that in my child theme to change the ...
0
votes
0answers
20 views

changing languages using locale

I am trying to build a plugin to make my website available in 2 languages. I found out about the 'locale' filter, but i had a lot of trouble trying to use it. Here is what I did. I know it might not ...
0
votes
0answers
23 views

Understanding Wordpress Default Theme - twentyfifteen.1.4 >> Languages Folder

Understanding Wordpress Default Theme - Twentyfifteen.1.4 is the standardized theme designed by the wordpress people. in the language folder there is a template. just like we have .php extension or ....
2
votes
1answer
33 views

Make a custom theme translate-ready

I created a my own theme, now I wish to make it translatable. I made two files: theme.pot msgid "know_more" msgstr "Vuoi saperne di più?" it_IT.po msgid "know_more" msgstr "Vuoi saperne di più?" ...
16
votes
6answers
14k views

How to create .pot files with POedit?

I've spent hours today on what seemed like something really simple, which is to create a .pot file for a Wordpress theme that I'm creating. I've read the Smashing Magazine article, the Tutsplus ...
0
votes
0answers
17 views

Is it possible to create another instance of theme localization file?

I'm using a theme that has a French language pot file fr_FR.po. That file is missing some phrases. I want to add the missing phrases via another .po file (in a child theme/plugin). I don't want to ...
0
votes
1answer
67 views

Translate a child theme with pure PHP and gettext

I'm trying to translate a child theme of a parent theme that has all msgstr empty. Therefore, I've created the file de_DE.mo using the "WordPress i18n tools" recommended in the docs together with ...
0
votes
0answers
14 views

translate_user_role doesn't work

I did dozens of tests, this is the code that I am tring to make work: $user = get_userdata($user_ID); /* WE NEED TO REMOVE BBP ROLES */ $roles = array(); global $wp_roles; foreach ($...
1
vote
2answers
36 views

WOO-Commerce translation | Tried it all [closed]

Hope anyone can help me with this problem. I installed WOO-Commerce all great and I set up the language to Dutch ... But as you can see there are still a lot of small things still not adjusted to ...
0
votes
1answer
62 views

Proper way to use esc_html__ and esc_attr__ etc for escaping value for translation

From the articles on Codex, esc_attr_e is proper way to escaping value for translation. But from other articles, I read about sanitizing issue and security issue for some escaping code. For my code, I ...
-4
votes
1answer
17 views

String tranlation with or without po file

I want to update some translation in it seems all translation are save in *.po file I update that file yet no update appear in website , can you help how can I make updates Thanks
0
votes
2answers
125 views

How to solve a translation function issue with no arguments and missing a text-domain?

I have a warning via WordPress Themecheck plugin WARNING : Found a translation function that is missing a text-domain. Function esc_html__, with the arguments As you can see, there is no arguments ...
-3
votes
1answer
100 views

Error in theme check “ Found a translation function…”

I have used underscores to create a unique theme. I am getting theme errors (as identified by the WP Theme Check plugin) as follows: WARNING: Found a translation function that is missing a text-...
0
votes
1answer
39 views

How to syntax Json output for translation?

Example I have this outputting decoded JSON $data and want to make contents translateable in wordpress. <?php echo $data['hair']['type'] )?> So in english this would output "Brown hair", but ...
2
votes
0answers
31 views

Translating plugin inside the theme [closed]

I've developped a WordPress Business theme and I use it to sell websites to local businesses. Everything works like a charm. But. One thing doesn't. I've included the Redux plugin into my theme. ...
0
votes
1answer
1k views

How to load theme textdomain from plugin?

I built a simple localization plugin to suit some specifications needed by my orgnanization. For each language there is a single .mo file that contains both the theme translations as the page content ...