Quantcast
Channel: polylang – WordPress.org Forums
Viewing all 11471 articles
Browse latest View live

The problem with translating custom strings in the header

$
0
0

Hello! Thank you for paying attention to my message.

I am developing a site for myself and decided to test the free Polylang plugin with the aim of purchasing it further, if everything suits me. Before that I used qTranslate-X. Polylang is very convenient and perfectly translates website pages and much more, including custom strings (which the plugin found automatically).

Problem: I cannot translate the link that was created in the Basel theme header builder. The theme developers are referring to you to solve this problem.

The link has the following code: <ul class = "inline-list inline-list-with-border main-nav-style"> <li> <a class="color-primary" href="#"> PACKAGE TRACKING </ a > </li> </ul>

What I was trying to do:
1. Written in the theme’s functions.php: pll_register_string ('find', '<ul class = "inline-list inline-list-with-border main-nav-style"> <li> <a class = "color-primary" href = "#"> PACKAGE TRACKING </a> </li> </ul> ');
Next, I translated this custom string into the languages ​​I need in the plugin’s admin panel. Next, I wrote the theme header builder into the editor: <?php pll_e ('<ul class = "inline-list inline-list-with-border main-nav-style"> <li> <a class="color-primary" href="#"> PACKAGE TRACKING </a> </li> </ul> '); ?>
Nothing succeeded.
2. I continued looking for a solution. I could not find a theme template that would be responsible for the header builder and displaying it on the site pages. But I found entries about the link I created in phpMyAdmin in the vp_postmeta table. I supplemented the line entry with the pll_e expression. This also did not lead to success.
3. I was trying to create a string in the wp_icl_strings table by analogy with the auto-found custom strings in the plugin. It didn’t help either.

Perhaps I am doing something wrong. Please help me figure it out. What qTranslate-X was VERY CONVENIENT was that it was possible to use multilingual fields, for example: [: en] English Text [: xx] Other language Text [:]. Unfortunately, there is no such thing in Polylang.

My link consists of divs, here is the complete structure:

<div class = "whb-column whb-col-right whb-visible-lg">
<div class = "whb-text-element reset-mb-10"> <ul class = "inline-list inline-list-with-border main-nav-style">
 <li> <a class="color-primary" href="#"> PACKAGE TRACKING </a> </li> </div>
</div>

Flag icons not aligned on responsive

$
0
0

Hi,

I was wondering if someone could help me please. I installed polylang and it is working fine, but I realised there is a problem with the flag icons on mobile devices. The flags appear misaligned for some reason. The menu is aligned to the left, and two of the flags are misaligned. I have tried everything and they are still not aligned, I don’t know what else to do, and I have no idea about advanced CSS features. Anybody could point in the right direction here please?

Issues with ACF PRO

$
0
0

Hello,

I have a WP backend built with ACF pro; however when polylang is installed, there was no “Fields groups” checkbox under custom post field in the synchronize section in settings to select.
In pages, when we are modifying the French language for example, it is overwriting the English one.
I have referred to https://polylang.pro/doc/working-with-acf-pro/#activate-custom-fields-synchronization but with no luck.

Another point is when we enable the latest jQuery (3.5), then the flags dropdown doesn’t work anymore and the behavior become weird in everything related to polylang

Website details:
WP Version 5.5.3
Advanced Custom Fields PRO Version 5.9.3
Polylang Version 2.8.4

Looking forward for your feedback please

Does not fix very annoing bug for years

$
0
0

Does not fix very annoing bug for years. And, I assume, doesn’t have such a plan. I am talking about this one:
https://wordpress.org/support/topic/how-to-hide-category-translations-when-editing-a-post/
It is very annoing, especially, when you have two equal category names (similar languages) and does’t know, which one you shoud add to.

Polylang + WP Fastest Cache

$
0
0

Hi, I am using the Polylang plugin for my multi-language website. When i activate WP Fastest Cache the website gets stuck in one language, if i click on the flags it does not change to the other language. Thanks for your help. I have desactivated the plugin for now as it turns the website un-useable.
regards

Deleted pages in trash but not visible

$
0
0

Hello all!

I’ve been making a site multilingual using the polylang plugin.
During the modification of a newly added translated page in a new language, I realized I made a mistake. So I deleted the page, but it doesn’t show up in trash.
I have to delete the page in trash because Polylang doesn’t allow me to add the same page again until I have deleted the one in the trash. I also want to use the same url slug as the deleted page.

The issue I encouter is this in the PAGES menu:

All (34) | Mine (9) | Published (30) | Drafts (3) | Private (1) | Trash (2)

Even though it knows there are 2 pages in Trash it tells me this:
No pages found in Trash.

I already check the filters, Nothing is being filtered out.

I am using Thrive architect, Rise theme and the newest WP (5.5.3)

I already tried to dive in the SQL database but found no table with the name “Pages” in it.

Anyone know why I am unable to permanently delete the pages in trash?

Yours sincerely,
W

Polylang-Divi create one page for each language

$
0
0

Hi guys,

I would like to know if there is a turn around for Polylang creating single page for each languages of my website.
I’m using the Divi builder and I was wondering if Polylang can show me all of my text input after creating my page to translate them like I saw with WPML pro.

Thanks

Polylang – Pages don’t appear Admin Dashboard

$
0
0

Hi,
I have a clear issue between Polylang and Filebird. I have been in touch with the help desks however the issue continues. When I have both active something happens. Currently, although I have Filebird deactivated, only the ES pages are appearing on my Admin, when I have 39 pages – all the same but with translations: ES, EN, DE, FR.
I am unsure as to why I cannot see all 39 of my pages. When I deactivate Polylang I can, however I need this Plugin to have the language toggle bar.
Thank you!


how to tell polylang not to change images urls?

$
0
0

Hi,
using the free version of Polylang with Astra theme (no visual builder)

Initial site language is italian, and I’ve setup a .com domain for english. (so i used the multi domain translation option)

Via cpanel I pointed the .com domain (let’s call it english.com) to the WP root folder, and set a redirect 301 to the .it domain (let’s call it italian.it).

Now when i open the english version all images show src english.com/wp-content/..
instead of italian.it/wp-content/

How do i tell Polylang not to touch assets urls?

thank you

Polylang breaks STM slider

$
0
0

I have a problem with STM Slider. It worked fine for both Polish and English homepage, but few weeks ago it disappeared from the EN version: https://smartstock.cloud/en/strona-glowna-english/ It just doesn’t show at all! I tried turn on and off different plug-ins and Polylang is the one to blame. It breaks STM slider on both back office and front-end.
Any idea how to fix it? Thanks!

Funcion change current lenguage and page redirect

$
0
0

Hi!

I need to filter what language users in each country can see. I have to redirect a page if the country is not correct.

I found the code below, in the browser I can see that the language has changed but I still receive the same page and I can not access the page of the new language
PLL()->curlang = PLL()->model->get_language( 'de' );

I tried this and it didn’t work:

function get_correct_page() {
   if( get_location_geoIP() == 'DE') {
      $current = pll_current_language();
      if( $current != 'de' ) {
	global $post;
	$post_id = $post->ID;
	$post_id = pll_get_post($post_id, 'de');
	$url     = get_permalink($post_id);

	PLL()->curlang = PLL()->model->get_language( 'de' );

	wp_redirect($url);
	exit();
      }
   }
}
add_action( 'wp', 'get_correct_page');

horrible experience

$
0
0

I wasted hours of hours with this plugin, even paid PRO and got NOTHING in return

since months the plugin is not useable with top level domains and elementor and neither elementor nor polylang seem inclined to fix it.

Polylang didnt even refund me the money

would give MINUS 5 stars if possible

Error occurred while updating document Widget. Message: id value is not valid.

$
0
0

I have taken some errors from lingotek, already open a ticket on lingotek page but not response. I am using lingotek because Polylang suggest that for translation so on that made to select lingotek from other plugins. MOreover I believe also lingotek should your responsibilty because of suggestion.

Here is my problem’s,

1- content translation becoming empty and there is no chance to fix it again or upload again.
2- Using PHP 7.4 I am getting this error:

Deprecated: Unparenthesizeda ? b : c ? d : eis deprecated. Use either(a ? b : c) ? d : eora ? b : (c ? d : e)in wp-content/plugins/lingotek-translation/admin/filters-columns.php on line 115

(and again for line 137).

3- Error occurred while updating document Widget. Message: id value is not valid.

So on befor your big update for wp 5.6 please have a check for this also or make lingotek team to check.

Regards

major issue with Polylang plugin

$
0
0

Hi there!

I used Polylang on WP Sydney already in two other web pages with no issue.
Today I have found a major issue with the third multi-language web page I am making.
I am using the latest WP Sydney theme and the latest Polylang.
www.fineco-bank.com .
I had been working on Italian and English version of the front pages till yesterday without any problem.
Today only menu and main slider switch language. All the times I save a new version of the Italian front page, the English page is overwritten and becomes a copy of the Italian page, and vice versa, all the time I save a new version of the English front page, the Italian one is overwritten and becomes a copy of the English page.

What shall I do?

Bests,
Andrea

Polylang Duplicate page

$
0
0

I’ve got a website written in Italian, and have added Polylang plugin and activated / added English language, but we manually duplicated them.
Now we are interest in adding other 3 languages: French, Spanish and German.
We ask if you have a suggestion for duplicate pages from first language (Italian) to other 3 languages, for making a work without errors and more quickly.


Polylang Duplicate page

$
0
0

’ve got a website written in Italian, and have added Polylang plugin and activated / added English language, but we manually duplicated them.
Now we are interest in adding other 3 languages: French, Spanish and German.
We ask if you have a suggestion for duplicate pages from first language (Italian) to other 3 languages, for making a work without errors and more quickly.

Resta 2 veces stock finalizando compra

$
0
0

Buenos días,

Gestionamos una web donde tiene dos idiomas (castellano y catalán) y cuando se procede a finalizar la compra, se decuenta el stock dos veces. Si el producto solo tiene 1 en stock, pasa a -1 porque resta una vez en cada idioma. Antes no ocurria y sospechamos que puede ser la falta de actualización de los plugins de Polylang, pero ocurre desde hace muy poco y no podemos estar siempre pendientes de si el estoc esta correcto con tantos productos que contiene.

Gracias de antemano.

Notice: Undefined property: PLL_Cache

$
0
0

Hello,

I am using OceanWP Theme + Elementor Pro + Polylang for my website. Today when I finished editing my footer.

“Notice: Undefined property: PLL_Cache_Compat::$options in /home/497763.cloudwaysapps.com/ubuyurgfbj/public_html/wp-content/plugins/polylang/integrations/cache/cache-compat.php on line 38”

This error message appeared in everyone single page below footer widget.

I tried to cleared Cache, but it did not fix my issue

I tried to deactivate Polylang, the error message disappeared, but then when I reactivate again, the message is also there.

Please guide me on how to fix this error.

Thanks

Compatible with Polylang

$
0
0

Hi,

I need to be able to crate Romanian and French versions for each brand page using Polylang. At the moment, there’s no translation option like for categories, tags, products…

Please help.

Custom taxonomy and custom post does not work with Polylang

$
0
0

I am using Polylang 2.9 with WordPress 5.5.3.
In the setup of polylang my custom taxonomies and custom post types are marked.
If the polylang plugin is activated, it is not possible to add a new custom taxonomy in the editor page of my custom post. It will not appear on the site of the post. In the list of the custom taxonomies does it appear, if I try to enter it 2 times, but it cannot be translated.
If I try to enter a new taxonomy in the custom taxonomy list, it works, but cannot be translated and will not appear as a taxonomy in the post editor.
If I deactivate polylang, all new taxonomies can be entered without any problem and can be assigned to posts.
As my custom taxonomies and custom posts are marked in the setup dialogue, I have no idea what I can do … I think, it is an error of polylang. Please help

Viewing all 11471 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>