How to translate wordpress backend to another language

Just so you know, a Sinhala translation is already in progress. https://si.wordpress.org/ http://wpcentral.io/internationalization/si/ Maybe it would be a good idea to join that team. First, you need to create .po files for the Sinhala translation of WordPress. You’re going to need four of these files. They will be called si_LK.po admin-si_LK.po admin-network-si_LK.po continents-cities-si_LK.po If all … Read more

POLYLANG: Hide current language

You need to add the hide_current parameter to this function. And when you use plugin function in your code, be sure to check if function exists. If the plugin get disabled, your website will continue to work 🙂 function polylang_flags_shortcode() { ob_start(); if(function_exists(‘pll_the_languages’)) { echo ‘<ul class=”polylang-flags”>’; pll_the_languages(array( ‘show_flags’ => 0, ‘show_names’ => 1, ‘hide_current’ … Read more

How can I redirect a request to the site root using htaccess, if there’s not a specific cookie set?

if the cookie “language_known” isn’t set to the value “yes”. RewriteCond %{HTTP_COOKIE} !language_known=true;? [NC] The condition is checking that the value is not “true” (string), not “yes”? However, the rule is also configured as a 301 (permanent) redirect, so this will be cached persistently by the browser. If the browser has redirected once, when the … Read more

My website change automatically lenguage in wordpress [closed]

The service links on your front page point to the spanish version of your site. For example Market Research has the link https://datrick.com/investigacion-de-mercado/. If you want it to direct to the english version, change the link accordingly (i.e. https://datrick.com/en/market-research/).

Display site language setting in source code

Is it possible to display <!– plugin version 123 (Fr) –> if the language is French? Yes, it is possible and you can use get_bloginfo( ‘language’ ) which returns a language tag like en-US for English (US). So if you just want to retrieve the first 2-or-3 character code (e.g. en for en-US and en-UK) … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)