Dear Pascal,
I found this old topic that basically sums it up:
https://www.ads-software.com/support/topic/not-working-for-wpamlia-and-borlabs-cache/
Even with most recent versions of WP, Preferred Languages and Borlabs Cookie the issue persists.
I added German (formal) + German (informal) as site languages but Borlabs Cookie still seems to think the main site language is English.
Disabling your plugin is the only remedy afaik in order to make Borlabs work as expected.
But as Borlabs saves all the settings based on the current language, one needs to reconfigure all plugin settings again.
Regards,
Daniel
The plugin has begun throwing security warnings in my installations.
]]>Hi Pascal,
I’d like to make you aware of an issue we have when using your plugin combined with WP Deepl (https://www.ads-software.com/plugins/wpdeepl/)
Enabling your plugin will empty the select box labels found on the translation settings screen of this plugin:
https://jmp.sh/iWZx4K4l
Do you have an idea what might be causing this?
I also raised this issue on the “other side”:
https://www.ads-software.com/support/topic/conflict-w-preferred-languages-plugin/
The Woocommerce account endpoint link text “Address” / “Addresses” — output with _n
— is empty when using de_CH with fallback to de_DE_formal. If I swap the order of the languages, then the correct translation is displayed.
This is a feature request:
Some languages like Dutch and German know a formal variant of the locale, e.g. nl_NL_formal
Often there are plugins/themes which do not provide a formal translation. In that case, part of the site shows in Dutch, part shows in English.
It would be a great feature if this plug-in would automatically fall back on the non formal language if that is the case. So in the example of Dutch: nl_NL.
Of course you can configure it that way using this plug-in, but configuring this seems obsolete: if you have selected formal, the non formal variant is always the next best choice.
]]>Hello, the fallback does not work for the two plugins.
Both Plugins use english instead of the fallback language.
Any hints?
Hey,
Is it possible to update preferred-languages plugin options using wp-cli?
Where can I find docs or how can I add languages though wp-cli?
Regards
]]>Yes, the excellent idea you have shared with this plugin. I was searching for such type of plugin for my new affiliate website that was hosted on WordPress and this is looking very suitable for it.
I am in need of your help with it please visit and also check the site either it is suitable for this plugin or not, visit here
]]>When I use date_i18n
or get_the_date
when Polylang (Pro) is in use, and the languages are set to Deutsch (Schweiz) and fallback Deutsch (Sie), the date is always returned in the default site language. e.g. 17. Februar 2021 instead of 17. février 2021 for a Post translated to French.
Thanks for this plugin. But one issue.
After changing the preferred language, the admin dashboard and some widget will translate.
But the post (article) does not translate, it still stays in English.
Any help?
]]>Why is this still in beta for so many years. And whats the real function you want to achieve here? I see no switches, the plugins is outdated for 5.5 compatibility with clearing opcache, and that can lead to confusion settings are not saved even after several attempts.
]]>When I move a language item in the priority list and then save the settings page,
all the language items in the last are gone and default translation is used.
Hi,
The plugin does not seem to function with Woocommerce. I have set:
1st: Dutch formal
2nd: Dutch (the general one which is informal)
But untranslated Dutch formal strings within Woocommerce fallback to English.
Is this still under development? If so, I would like to make a donation to keep this going!
Looking forward to your reply. Thanks!
]]>Using a language plugin like Polylang it is possible to offer a site in multiple languages.
It would be nice if the Preferred Languages plugin allows specifying language preferences by active site language. E.g. when the user selects German (formal) site language (using Polylang language picker), the Prefered Languages plugin should first try German (formal) (de_DE_Formal
) and then fall back to German non-formal (de_DE
) (for which plugins are much more often translated first).
@swissspidy:
So the official WooCommerce PayPal gateway plugin uses a default (en_US
) locale when a _formal locale is used because it wouldn’t be in the list of locales supported by PayPal (see https://github.com/woocommerce/woocommerce-gateway-paypal-express-checkout/blob/1ef80595138d580c41b2deefe6f6d597196e3757/includes/class-wc-gateway-ppec-settings.php#L24 and https://developer.paypal.com/docs/api/reference/locale-codes/#supported-locale-codes).
The reason for this is that PayPal only has a de_DE
(which is formal).
Some kind of locale mapping could be added to plugin code, but then one can argue this kind of “locale-resolution” would rather fit into WordPress Core.
In the end, one may not actually want to have some locales automatically mapped to other ones.
So as one possible solution your plugin comes in very handy:
The user can already add locales in a preferred order using your plugin.
Using the woocommerce_paypal_express_checkout_paypal_locale
filter your plugin can easily use the next supported locale selected by the user. The only issue I see here is that _supported_locales
is a protected property of WC_Gateway_PPEC_Settings
class, so your plugin is not easily able to check whether the locale is actually supported by PayPal.
There may be other ways in the future, but using something like your plugin to define an order preferred locales seems to be a very elegant and simple approach.
The related issue on GitHub: https://github.com/woocommerce/woocommerce-gateway-paypal-express-checkout/issues/480#issuecomment-534773825
]]>Gutenberg uses JSON language files for the frontend (editor and blocks from official Gutenberg plugin and other Gutenberg blocks). Can this plugin also force a different fallback language than English when the language JSON files aren’t found?
E.g. when site locale is set to de_DE_formal but there is no de_DE_formal language file for Gutenberg yet, the locale would fall back to English instead. It would be great if fallback locale can be configured to non-formal de_DE as a much better alternative.
Will this plugin work on a website with WPML installed? I have a website with Portuguese as the main language and would like to add fall-backs (pt-pt, pt-br) but keep the multilingual functionality with English as a second language. Will this work?
]]>Hey there, i have a little issue and i hope, you can help me out.
The thing is, that you have been showing in the pictures, that you need to go the settings, than you should choose a languagues. But the only option, that i have here is my owm language Czech, but i cant add other languages, like english.
What should i do?
Thanks
preferred-languages/inc/functions.php on line 9
is the error i get when going tio the site
plz help
]]>(I posted this elsewhere too and got the advice to post it here as well)
Hello I’d like a little help from you guys if possible.
So, I own a webshop which recently gives me this error line (popped up today):
Fatal error: Call to undefined function register_setting() in /home4/enzim/public_html/deezgrillz.com/wp-content/plugins/preferred-languages/inc/functions.php on line 9
What I tried is to rename the preferred-languages plugin (which I did not even install!) folder in cPanel. The site came back but the whole thing was broken.
I’m no expert at coding unfortunately. I checked that file on line 9 but didn’t see anything wrong (Once again, I don’t know coding)
I’m kind of confused because I didn’t install this plugin but cPanel shows it had an update today, I guess that’s where the whole thing broke. I hope it doesn’t have anything to do with wordpress update (which I disabled because the older version is the one that is working perfectly with my theme)
Could someone please help me with fixing this problem?
]]>I’m working on Localhost, and I need a plugin which will help to translate all the website content in 2-3 languages. However as I add 2 languages in general settings the first one only shows up.
Hope that you can help me)))