The tag has no usage guidance.

learn more… | top users | synonyms (1)

0
votes
1answer
455 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
525 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
1answer
22 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"
1
vote
1answer
29 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
15 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
18 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 ...
1
vote
1answer
458 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 ...
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ù?" ...
14
votes
6answers
12k 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
15 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
50 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
66 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: ...
0
votes
0answers
13 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
30 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
40 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
15 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
46 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
58 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 ...
0
votes
1answer
29 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
29 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
963 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
32 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
25 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
30 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 ...
4
votes
1answer
345 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: ...
2
votes
1answer
45 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
42 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
424 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
16 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
68 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
29 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 ...
0
votes
2answers
24 views

Conflict with single and double quotes

This might be a very silly question but I am losing my hair over this.. So basically, I have the following line of code" 'Default' => '<img src="' . THEMEROOT . ...
2
votes
2answers
575 views

Transfer from English page to Arabic page

I have a button at the top of the website in header.php. That button should transfer me to the Arabic version of the page if I am on an English page. For example, on contact.html the button should ...
1
vote
1answer
14 views

Translating a word with locotranslate, but wordpress does display another by default

I use wpadverts plugin and Loco translate to translate the plugin. I'm trying to translate from English to French the "Email" word to "Email" :D. When I translate the word in LocoTranslate plugin, it ...
0
votes
0answers
36 views

How to correctly translate custom posts url rewrites?

I've got a custom post type 'product'. I've just added the rewrite option: 'rewrite' => array('slug'=>__('products','jungle'),'with_front'=> false) Fine. But I want mydomain.com/products ...
0
votes
0answers
12 views

Load custom language(.mo) file after admin selection option on theme options

I have different .po and .mo file on theme's language folder, I want to give facility to the site admin to select language file which are on the language folder from theme options making drop down of ...
0
votes
1answer
28 views

Multi Site Translate Strings

I've finally made it to setup a multisite. http://www.jeroenbrugman.com/ Now. There are some things I need to change. Like the button on the contact page. It says "Stuur bericht" on both my sites. ...
0
votes
0answers
32 views

I18n l10n of plugin does not show the translation

I tried to Internationalize I18n one of free plug-ins (after 7 hours of trial I decided to ask for help). But I'm not able to get translations displayed. What I did: inserted the definition of text ...
1
vote
1answer
50 views

Load plugins'.mo and .po files from a directory

What I'm trying to do is simple: I have so much WordPress plugins, and 3/4 of them aren't translated in my language, so I want and can translate them all without problems, but I would insert ...
0
votes
1answer
20 views

Custom taxonomy name not being translated in post manager page

I'm having problems trying to display the proper translation for my taxonomy name, specifically in the post manager page. Where it should show the taxonomy's name translated to Spanish, it displays ...
1
vote
1answer
50 views

How to translate a WordPress.org plugin?

WordPress.org launched recently a new translation mechanism via https://translate.wordpress.org/. What steps should I make to translate a plugin at wp.org plugin repository correctly? Can I remove ...
0
votes
0answers
110 views

Poedit ASCII errors ( Wordpress )

I am trying to translate a wordpress theme to Arabic and I am totally new to the translation field. I followed the steps in this question and I added a new domain to my theme instead of hard coding ...
1
vote
2answers
30 views

Default string not appearing want to translate

I am trying to make my theme translatable so I am using the following command to output text. But its just returning an empty value some reason? No error is displayed <?php __('PLAYER POINTS AT A ...
0
votes
1answer
36 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
0answers
18 views

Translation for child theme

I built a child theme for adding ar translation, but I can't get it translated to Arabic. My functions.php: /** * Setup My Child Theme’s textdomain. * * Declare textdomain for this child theme. * ...
9
votes
1answer
6k views

How to make a WordPress plugin translation ready?

What is the best way create a plugin that is translation ready? It doesn't have to be translated from the beginning but it has to be easily translatable so fellow developers from different cultures ...
7
votes
2answers
3k views

Override parent theme translation on child theme

I have a parent theme that uses correctly load_theme_textdomain() to load all the translated strings in many languages. Then I created a child theme that uses load_child_theme_textdomain() to achieve ...
0
votes
1answer
29 views

Plugin Translation project not found

Today I go to our plugin page in WordPress.org and see the translation part under the support forum part. However, when I click to translate this plugin, it displays "Not found". I joined the ...
0
votes
1answer
53 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

Widget Title Translation

How would you translate this line in a widget? I can't seem to find a way to make it pass the theme check plugin: parent::__construct('recent-posts', __('Recent Posts'), $widget_ops); I have tried: ...