Questions tagged [wpml]

WordPress Multilingual (WPML) is a commercial plugin that adds various multilingual capabilities to WordPress.

414 questions
14
votes
4 answers

Hide language WPML

I am using WPML language, and cant find solution for next thing: On the Language switcher i want to hide language, lets say for example - "he", if current language is lets say for example "ar", so when we on arabic site we will not see on the…
Oshrib
  • 1,789
  • 12
  • 40
  • 67
13
votes
4 answers

WPML and custom post types archive template

I am using WPML 3.0.2-a with WordPress 3.8.1 I have a custom post type defined like this: function add_custom_posts(){ $args = array( 'labels' => array( 'name' => __( 'Showcases' ), …
12
votes
5 answers

Call to undefined method WP_Textdomain_Registry::reset()

My Wordpress site is broken and only shows this error message: Fatal error: Uncaught Error: Call to undefined method WP_Textdomain_Registry::reset() in…
Eloy Ruiz
  • 739
  • 1
  • 8
  • 14
11
votes
3 answers

Override a WordPress plugin translation file on load

I'm using WordPress in french with the plugin The Events Calendar. This plugin comes with a bundled french translation but it has some mistakes. I want to fix them but replacing the original file is a bad idea since it's gonna be replaced with the…
LeBen
  • 1,884
  • 12
  • 21
9
votes
1 answer

The values in the ACF Repeater fields is null when the values for the same repeater field is updated in other languages?

I have a site in three languages and when I edit the repeater field for one of the languages, the value of the repeater field in other languages becomes null. This is only for some of the repeater fields in the site.
prajwal_stha
  • 357
  • 3
  • 17
9
votes
2 answers

Unable to translate one custom post type slug in WPML

I have raised this issue on the WPML forums, but hoping someone here will be able to assist. I am trying to translate the slug for a custom post type The English URL is http://brigade-electronics.com/nl/products/backeye360/ The translated URL should…
terrorfall
  • 1,121
  • 3
  • 16
  • 33
8
votes
3 answers

Why strings don't appear in "String translation" of WPML?

I have in my php files string like this: and there are not appearing in "String translation" . I have also bought and installed this theme:…
iWizard
  • 6,816
  • 19
  • 67
  • 103
7
votes
2 answers

Wordpress, Redirects and WPML

I have a fresh installation of wordpress, and I wrote some quick rewrite rule in my functions.php that looks like this - // "rewrite" /assets/xyz to /assets/?asset=xyz function assets_rewrite_rule($rules) { global $wp_rewrite; $asset_rule =…
Gonras Karols
  • 1,150
  • 10
  • 30
6
votes
2 answers

Wordpress Plugin translation - load_plugin_textdomain

I'm working on a custom Wordpress plugin but I cannot get it multi-lang ready. It does load the .mo file of the main language properly, but when switching languages (using WPML), it always shows the translation of the main language (in this case…
jekey123
  • 91
  • 1
  • 6
6
votes
2 answers

WPML: wp_query() returns posts in all languages rather than just current one

No matter whether I use it from my page in French version or in English version, wp_query() returns my custom post types in all languages, not just in the current one. Get_posts() does the same thing too. When I visit my page in French, I want them…
drake035
  • 3,955
  • 41
  • 119
  • 229
6
votes
1 answer

What's the use of wpml-config.xml if you have String Translation?

What is exactly the usage of wpml-config.xml file in WPML? Especially if I have translation management and string translation add-ons enabled? With those I just scan my theme, the plugin finds all the translatable strings, and I can just translate…
dingo_d
  • 11,160
  • 11
  • 73
  • 132
5
votes
1 answer

Passing ID to Translated Post in save_post

I have a method connected to save_post action, WPML is being used as a translation plugin, I am trying to find a way that once a translation is added, and published is clicked and save_post method is triggered to know the ID of the original Post. So…
5
votes
2 answers

Timber & WPML string translation

Hi I'm using Timber and what it used to be as simple as _e('string', 'theme') to translate strings with WPML, seems to not been working on Timber any idea on how to translate strings? I have tried the following and nothing is working {{…
Mario Sanchez Maselli
  • 1,021
  • 1
  • 12
  • 25
5
votes
4 answers

WPML - Get current language within a another plugin

I am trying to get current language code via ICL_LANGUAGE_CODE in my plugin but I can't , it's not defined , the result of this echo "Code: ".ICL_LANGUAGE_CODE; is Code: ICL_LANGUAGE_NAME When I trying the following global…
dkruchok
  • 1,829
  • 3
  • 19
  • 25
5
votes
1 answer

PHP inside jQuery for Wordpress translation with WPML

Is it possible to implement in jQuery the wordpress function ( _e ) to translate string with WPML ? I want to put some text in some div with jQuery and be able to translate this string with WPML. $('#MyDiv').html(
colapsnux
  • 872
  • 2
  • 15
  • 32
1
2 3
27 28