What's the deal with Deno? We talk with a major contributor to find out. Listen now.

Questions tagged [language]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
0answers
11 views

Translate a variable string [closed]

I have an array with languages codes. So I'm looping over this array and "translate" their language name: foreach ($guide_languages_decoded as $key => $value){ $language = ...
0
votes
0answers
18 views

Wordpress controlpanel does not offer the 5.5 update in my language?

The Wordpress control panel will usually offer me a new WP version in my language (Danish), as this was my choice when WP was initially installed. But this time (version 5.5) I am only offered the ...
0
votes
0answers
13 views

Create languages dropdown on registration form

My site is both English and Latvian. How to add frontend dropdown on registration form where users can choose their preferred language (the language they receive WP emails, etc.)? add_filter( 'locale',...
0
votes
0answers
23 views

Po/Pot file can not read from function.php

I have a pot file and I translated it as a po file, but it can't read from function.php and it's not working. What shpuld be changes in function file? This is panel-functions.php: <?php //...
1
vote
0answers
19 views

How can I set different html lang attribute for different countries?

My WordPress theme header.php html language attitude <!DOCTYPE html> <html <?php language_attributes(); ?>> All page html language attitude : <html lang="en-US"> ...
0
votes
0answers
19 views

I have English words in Kurdish pages

Good Day, I have a wordpress draft website with woocommerce plugin (https://landroveriraq.com/toto), I build this website with (3) languages (English, Arabic, Kurdish) the English is a default ...
0
votes
0answers
26 views

wordpress: %lang% in URL and Bad Request/400 errors

recently I've checked my wordpress installation (I'm running 5.4.1 on an old PHP version 7.1.x - yeah, that's an issue I'm about to solve too) health page status and noticed there are several problems ...
0
votes
1answer
25 views

How to translate wordpress blog to other languages?

I have a blog in wordpress security niche. It is currently in english and is quite popular with wordpress folks but i want to target other languages/countries as well. What would be the ideal way to ...
0
votes
0answers
24 views

__() function inside html tags

sprintf(<span style="display:block;margin:4px 0 0;line-height:1.25em;font-size:95%%"> Image credit: %$s</span> esc_html( $credit )); I would like to add __() function to translate Image ...
0
votes
1answer
15 views

Use country flag as user avatar based on comments IP address?

trying to find the way to allocate a country flags instead using MisteryMan icon, Gravatar or User Avatar. Any help or suggestion about where to start?
0
votes
1answer
10 views

The option to change site language isn't available

I have a Wordpress installation that's set to English by default, but I want to change it to Polish. From what I found, there's supposed to be an option in Settings -> General, right below "Week ...
0
votes
1answer
48 views

Display site language setting in source code

I manage a plugin. I have people often complain about translations and have found that sometimes they don't have their site set to their local language. Is it possible in site source code to display ...
0
votes
0answers
25 views

Polylang translation of header title ect

I'm using the Materialis theme: The theme And I have installed Polylang and translated a site in two different languages by creating new pages for each language, but some parts of the page dosn't ...
0
votes
1answer
53 views

How to change WordPress core language using Loco Translate?

I just want to change the text "Add Media" to another English text. I search the text under my theme but it didn't appear. But under Loco Translate > WordPress, there're so many translation files. ...
0
votes
5answers
92 views

What is the best option to convert my WordPress website to French Language?

I have my WordPress website in English language and now my client want to convert that website in the French Language also. So, how I can clone my website in French Language. Any help is much ...
0
votes
0answers
55 views

Woocommerce language isn't default language

I have a multilingual website (french and occitan) with Woocommerce. My default language (in settings - general) is french. But Woocommerce is displayed in occitan (e.g. the "turn to shop" or "add to ...
0
votes
0answers
27 views

How to reload wordpress textdomains at runtime

I'm currently using this to reload my theme and plugin textdomain in order to send e-mails (admin move, in admin language) in the user language. add_filter("theme_locale", array($this, "theme_locale")...
0
votes
1answer
41 views

where to add this filter? in which file should be added?

For wordpress language switcher, this post was helpful for others, but I don't know where to add the mentioned filter How to change language file used by _e function add_filter('locale', function($...
0
votes
1answer
24 views

Can't have a Persian website with a completely English admin panel!

I'm new to WordPress. there is a problem which really freaks me out. the WordPress(v5) which my host installed for me was all in Persian; I changed the user language to English, the main interface ...
0
votes
0answers
28 views

Move submenu in the fullscreen Divi menu in Wordpress

I need to move the language submenu, it's a secondary menu, but when i use the fullscreen menu, the main menu and the secondary menu merge together. Is there any method to aislate the language menu?
0
votes
0answers
7 views

Is it possible that WordPress keeps old plugins languages in wp-content/languages/plugins?

I just discovered that an updated WordPress install in which I deactivated plugins a long time ago has kept the old languages files in the folder wp-content/languages/plugins. According to the Query ...
0
votes
0answers
99 views

WPML - Hook when language is switched (change user language)

I would like to change the logged in user's language (if someone is logged in) when they change the language in front-end. I'm using the WPML Multilingual CMS plugin in my Wordpress website. I've ...
0
votes
1answer
21 views

how to change fonrs for Indian reqgional language?

Google and wordprees provides 100s of cool fonts for English. How do I add a new font in a language that is not English. (In my case Kannada). Are there any plugins to add fonts?
0
votes
1answer
55 views

Load custom translation in custom plugin fails

I'm working on a custom plugin and I try to add translations but without any success class MyClass { public function __construct() { add_action('plugins_loaded', [$this, ...
0
votes
1answer
64 views

Getting Turkish alphabet characters in the URL field in webbrowser

I want to make a WP website in Turkish that shows the proper Turkish alphabet characters in the URL fields in the webbrowser and in WP instead of the English alphabet ones. I tried it already but I ...
0
votes
1answer
31 views

Language file doesn't work (poeedit)

I'm trying to translate a WordPress template. I went to language files, then opened that copy with Poedit and started translating to my language (persian). After finishing the translation, I changed ...
0
votes
1answer
48 views

Print shortcode according to site language

I'm creating my website with "elementor plugin". So I used to customize the default WordPress search result page since I couldn't access it with elementor. Anyway, I tried to display my custom ...
0
votes
1answer
51 views

Wordpress in French Language [closed]

I am migrating a French wordpress website. After completion the website keeps displaying special characters, specially the black diamonds with white question mark inside �. I have installed the PO ...
0
votes
1answer
14 views

My website change automatically lenguage in wordpress [closed]

how are you? I don't know why when I change the page on my website automatically change the language. For example: I start on the home page (in English), when I go to another page as "Services ", the ...
0
votes
1answer
59 views

Mixed language in admin backend

I’m running WordPress in French and some words in admin backend are still showing in english ! Like “users” and “dashboard” and many more. What I did : – Switched to twenty seventeen theme – ...
0
votes
1answer
20 views

Facebook video on a post appears in a strange language [closed]

I don't know why it happens but, when I copy and paste a Facebook video URL inside my blog post, the language switch into Hindi or Indonesian (I don't really know) https://prnt.sc/mlu83q https://prnt....
0
votes
1answer
563 views

Qtranslate-X get raw post title value

How can I get a raw value of post title using Qtranslate-X plugin? I have 2 active languages - [:et] and [:ru] $posts = get_posts($args); if($posts){ foreach($posts as $post){ $title1 = ...
0
votes
1answer
137 views

How to change frontend language only

I'm new to WP with no development skills. I've created a shop which is about to finish. We now realised that we are only going to use one language, instead of two which was the first plan. So now, i ...
3
votes
0answers
39 views

Is it possible to set another language for debugging messages?

The site language is defined as Hebrew. So I get translated error messages. It's a terrible thing. It is difficult to understand, it is difficult to search on Google, the directions of the text are ...
0
votes
1answer
157 views

Unable to change default language in wordpress - it changes texts to my language, but default value remains en_US

first of all big thanks to anyone willing to help, now to my issue: When I change the wordpress language in general settings to anything but default (cs_CZ in my case) the texts are changed properly ...
0
votes
0answers
20 views

How to add language tags like “<html lang=es>” in just some certain pages?

How is it possible to add the language-tag like at a certain wordpress page? Background: I have some translated articles in my blog and want add to add this tag to the sites I translated. How is it ...
0
votes
0answers
17 views

Adding a different domain to existing Wordpress site

I haven't really found a question covering this topic and I'm sure that's because I don't know exactly how to word it. The problem is the following: My boss has recently overtaken the Swiss branch of ...
1
vote
2answers
367 views

How to override default Wordpress core language file

I am experiencing a small problem and I have tried several solutions, but none of them has worked unfortunately. Perhaps somebody has a clue why :-) I am using the Syntax theme from Automattic which ...
0
votes
1answer
1k views

How to Fix WordPress Not Saving Settings?

How Can I Manually Fix & What is The Root Cause? The Site Language setting in Settings > General for my site, will not update. It is stuck on English (United States). I have done all the ...
0
votes
0answers
21 views

How to deal with differently translated prepositions?

I'm maintaining a Wordpress site in both English and Portuguese. I'm using .po and .mo files. The site is related to elections. In English, you can always say "Candidates in {{state}}". In ...
1
vote
0answers
112 views

Woocommerce Cart Default Language Not Changing

Recently I was successful in changing my clients woocommerce default language to Spanish in the cart section and product section and had no issues. Because I didn't understand Spanish i deleted the ....
0
votes
1answer
176 views

How to Convert Date to Thai

The Thai text I want to end up with is: อาทิตย์ 03 มกราคม 2016 to อาทิตย์ ๐๓ มกราคม ๒๐๑๖ I don't think it should matter what language but in this case it is Thai. My function is: $strdate = ...
0
votes
1answer
77 views

Conditionally change Wordpress core language

I need to change the wordpress language conditionally. So I use the code: //Change Site Locale function wpsx89972_redefine_locale($locale) { if .....my condition exists... { $locale = 'en_US'; } ...
0
votes
1answer
2k views

POLYLANG: Hide current language

I used below codes to to add a shortcode, and the css to style. Both working fine in This Website: // PHP: Add this to your functions.php file function polylang_flags_shortcode() { ob_start(); ...
4
votes
2answers
845 views

Edit plugin without hooks in functions.php

<?php namespace wp_gdpr_wc\controller; use wp_gdpr\lib\Gdpr_Language; class Controller_Menu_Page_Wc { const PRIVACY_POLICY_TEXT_WOO_REQUEST = 'gdpr_priv_pov_text_woo_request'; const ...
0
votes
0answers
17 views

How can I specify the plugin language in WordPress?

I develop a plugin written in Portuguese, but WordPress repository "thinks" it's in english. I would like to inform WordPress that my plugin was written in pt-br, even though I have no intention to ...
0
votes
1answer
34 views

Recall translations made with Poedit

I designed a WordPress theme from scratch starting from my html site and in the conversion I used the functions _e() and __() to make the theme multilingual ready. Then I created the translation .po ...
1
vote
1answer
228 views

Wordpress change Language not working

My issue is, that I want to change the Language to German (de_CH) and BBPress etc. should change the language too. I know not all Plugins are available in German. However whatever I do, add them ...
0
votes
1answer
26 views

How do I add languages?

This may seem like a basic question but I’ve been using Drupal for almost 3 years now and moved to WordPress two weeks ago. I'm using Buddypress. I just want to add some kind of language tool that ...
1
vote
1answer
938 views

How can you locate the .po file used for translation of a page?

I'm trying to translate a plugin, Dokan Pro, but I can't seem to find the correct .po file that my Wordpress site is using to translate. Part of it is already translated in Italian, but other parts ...

1
2 3 4 5