Questions tagged [language]
The language tag has no usage guidance.
222
questions
-2
votes
1
answer
99
views
How to retrieve blog language without any region (locale) attached?
How can you retrieve the language of a WordPress website, without the added region suffix attached to it? In other words, just get the language, without the entire locale.
E.g. <html lang="en&...
0
votes
0
answers
20
views
Distributed plugin - add support for Cyrillic
Our plugin creates a custom database table for storing text entered into a textarea.
$sql = "CREATE TABLE $table_name (
id MEDIUMINT UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY,
...
0
votes
0
answers
67
views
Wordpress uses en_US by default instead of en-US for html lang
Ahrefs marks this as an error. Why is WordPress using underscore? Is there someway to overwrite this, if for no other reason, than to remove the error, which the clients is worried about.
0
votes
1
answer
25
views
Spanish site, some words translation still in English
I have a Wordpress installation, with the Spanish language set as the main language.
But I still see texts like "We found 6 results for your search" or like "Published" or "...
1
vote
1
answer
216
views
How can I redirect a request to the site root using htaccess, if there's not a specific cookie set?
I'm using this code, versions of which I've seen referenced on various other sites, but it always redirects home page requests to /fr/ if the browser is set with French as a primary language ...
0
votes
0
answers
30
views
Change "published by"
https://i.stack.imgur.com/tHTdu.jpg
At my blogg / news is this line is coming at a new post.
I use norwegian as language and then I want to change the word I marked yellow.
In english is "...
0
votes
1
answer
32
views
Different Admin language
We are running our WP site in Hungarian but nobody in our team understands this language. We successfully changed admin backend language to our native language but not everything changed. We are still ...
0
votes
1
answer
113
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
0
answers
126
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
0
answers
172
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
0
answers
112
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
1
answer
286
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
1
answer
13
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
0
answers
35
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
0
answers
37
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
0
answers
20
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
2
answers
47
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
2
answers
393
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
1
answer
48
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
1
answer
156
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
0
answers
142
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
1
answer
40
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: ...
3
votes
1
answer
3k
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
0
answers
1k
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
0
answers
277
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
0
answers
59
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
1
answer
42
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
0
answers
145
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
1
answer
123
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
1
answer
68
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
1
answer
568
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
1
answer
468
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
5
answers
188
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
0
answers
136
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 ...
2
votes
0
answers
233
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
1
answer
51
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
1
answer
153
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
0
answers
402
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
1
answer
29
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
1
answer
82
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
1
answer
284
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
1
answer
50
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
1
answer
189
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
1
answer
137
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
1
answer
20
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
1
answer
145
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
1
answer
22
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
1
answer
1k
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
1
answer
455
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
0
answers
52
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 ...