The tag has no usage guidance.

learn more… | top users | synonyms (1)

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
50 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
17 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
74 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
16 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 ...
13
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
472 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 ...
0
votes
1answer
15 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 ...
0
votes
1answer
518 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
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
465 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
62 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 ...
1
vote
1answer
541 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 ...
3
votes
1answer
35 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
40 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
30 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
49 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
20 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
31 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
60 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
1answer
80 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
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
34 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
58 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
16 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
103 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
88 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 ...
0
votes
1answer
36 views

Localize strings from db

I'm using this method to translate strings in my template. The question is, what if some strings are dynamically loaded from the db? How can i translate them? I've been googling for days and even ...
0
votes
1answer
27 views

Translating a pager string

Most of Wordpress function found in themes look like this: <?php echo get_next_posts_link( 'Older posts', $the_query->max_num_pages ); // display older posts link ?> <?php echo ...
0
votes
1answer
40 views

Issue with strtotime() and Meta Box date

Shouldn't this code display the date provided from the META BOX date picker input field according to the language chosen? Explanation: The Meta Box value that is coming in though rwmb_meta() is ...
2
votes
1answer
62 views

Do you need to escape hard coded plain text?

I started playing with the Underscores starter theme and noticed it uses esc_html_e() even on plain text: <a class="skip-link" href="#content"><?php esc_html_e( 'Skip to content', '_s' ); ?&...
0
votes
1answer
60 views

Translate custom order status through a filter?

I'm using this plugin to customize order statuses in Woocommerce: Woocommerce Order Status Manager In documentation it says I translate order status name using the following filter: ...
0
votes
4answers
467 views

__(): What if I have to pass in a variable?

In the docs for the translate function __( $text, $domain ), it states that you must put the string directly in place of $text, that you cannot do something clever such as __( $my_text, 'text-domain' )...
0
votes
0answers
25 views

Change WordPress frontend language on link/cookie

I want to change the frontend language of my WordPress (single installation, no multisite) based on either a link the user clicks or an already present cookie. So I got the following language check ...
1
vote
1answer
77 views

Fixed values for same post translations

I was recently implementing a custom post type in WordPress, and added WPML so I could translate it's title & content. This post type (city) also has some custom metaboxes (metabox.io) like: ...
0
votes
0answers
31 views

Is placing translation files in subdirectory in wp-content/languages folder valid?

Some of the plugin uses textdomain like just the language (eg en_GB.po, it_IT.po, tr_TR.po etc..). If i put these files directly into wp-content/languages/plugins/ directory then some files will be ...