Questions tagged [language]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
1answer
24 views

Can I set is_rtl() to true?

I am adding a section to my site in Pashto, which is a custom Arabic RTL language. I can figure out how to inject "rtl" into the html tag and body tag using add_filter('language_attributes', ...
0
votes
0answers
21 views

Admin menu in different languages

My Wordpress admin language is partially in English and partially in Dutch. This causes some things (like events) to show in English on the site, which is not supposed to happen. I used 'admin menu ...
1
vote
0answers
31 views

Translate emails into the language of the user

The following scenario: An admin activates a function or similar for a user (in the WordPress frontend). Now the user should be informed about this by email. Therefore an AJAX call is sent to the ...
0
votes
0answers
22 views

How do I change the language of the login page to Arabic?

I have a website where the backend is english and the frontend is Arabic. My wordpress login is in English but i want to make it Arabic. I have tried the first solution listed here How do I change the ...
1
vote
0answers
32 views

Multisite: How can I have the admin bar (toolbar) use the language of the user instead of the language of the sub-site being viewed?

By default in a network install, when viewing a sub-site, the sub-site language is used for the admin bar (toolbar). How can I have the admin bar (toolbar) always use the language of the user?
0
votes
0answers
13 views

multilingual theme but no multilingual posts

I have a Wordpress page with a custom theme translated into 3 languages using load_theme_textdomain. I can change the site language by going to settings > site language and the theme strings change ...
0
votes
0answers
90 views

For Chinese language how to make WordPress post slug and permalink as like as the post title?

For the Chinese language, WordPress permalink and slug are not readable. It converted to ASCII. Is there a way to make permalink and slug as like as the post title?
0
votes
1answer
9 views

Language string not detecting used within the function

I am using Mpdf lib to generate PDF for the plugin I am developing. The PDF has much more tabular data that require localization. For that, I have created a function for TH and TD as below. function ...
1
vote
0answers
9 views

How to set different languages for front-end and back-end

I'm trying to set Russian language for my website but leave English for back-end. The WPLANG is set for ru_RU, but the site is shown still in English. Thanks for any advise.
0
votes
0answers
17 views

Change language in SiteOrigin Widgets

Hello I am trying to change the SiteOrigin widget to German, but I am not succeeding. The admin and user of the site I have already changed to German, but it does not change anything in the SiteOrigin ...
0
votes
0answers
13 views

Replace the page url with a menu link?

i want to make a multilangual site, where the secondary language is a copy of the site in a different folder. For example: Primary language url: example.com Secondary language url: example.com/en So ...
0
votes
2answers
41 views

What programming language should I study to know WordPress very well?

I want to know WordPress structure and functions very well. So what programming language should I study to know WordPress very well? PHP?
0
votes
1answer
58 views

How to Fix Mangled Thai Characters

I'm having font problems, or maybe character encoding on wordpress. I am building a Thai website, most of the articles are in the correct language and there is no problem. But there are a number of ...
0
votes
1answer
14 views

Plugin language always shows WP site language, not profile language

I wrote a plugin that I translated from English to German. The German translation only shows up, when I change the site's language to german. Once the site language is set to German, it will always ...
0
votes
1answer
35 views

Remember language choice on multisite website

I have a multisite website with 3 websites representing 3 languages. On my network website https://example.com I have a page with 3 language choices linking to https://example.com/nl?language=nl, ...
0
votes
0answers
51 views

Language per user role, how can I achieve this?

I have a multisite with Buddypress intended for two languages. Therefore I have translation files for each language, and this for the theme and for the plugins (nl_NL , fr_FR) in the folders ...
0
votes
1answer
19 views

Is hint for translator compulsory while internationalizing a string containing variables?

I am following this official guide to internationalise my plugin. But I am confused if the hints are must required incase of variables inside string? printf( /* translators: 1: Name of a city 2: ...
1
vote
1answer
1k views

`wp_set_script_translations` with `wp.i18n` does not return translated strings in simple plugin

Short description: I try to translate strings in JS file. To test it I decided to create a simple test plugin. I have PHP and JS strings there. Translated PHP strings work fine, JS strings don't work. ...
0
votes
0answers
451 views

How do I fix errors regarding the language markup of my webpage?

The language set or defined for my webpage is en-us. But unfortunately, the language detected for text on the page is sk. I have reset the language from setting to en-us on several times but it doesn'...
1
vote
0answers
123 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
43 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
1answer
32 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
35 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
59 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
17 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
110 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
1answer
231 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. ...
-1
votes
5answers
160 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
111 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 ...
1
vote
0answers
98 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
43 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($...
1
vote
1answer
72 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
186 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
22 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
63 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
153 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
36 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
73 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
92 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
15 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
83 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
886 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
250 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
47 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
381 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
26 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
645 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
2answers
2k 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 ...

1
2 3 4 5