Questions tagged [language]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
33
votes
9answers
47k views

Can't change language (only "English (United States)")

Wordpress should always allow me to change the language, anytime. However, sometimes I get stuck in these kind of situations, where I only get to choose "English (United States)". (Settings > General ...
28
votes
2answers
47k views

HTML inside __() or _e() language translation string

What is the proper approach to building translation strings? For example, echo __( 'Hello ' . $first . ' you owe me money.' ); echo __( '<div><p>Top: ' . $t_margin . '</p>' . '<...
22
votes
3answers
13k views

Change language by clicking a button

The goal is to offer a button/select drop-down or similar to switch the public interface1) language on the fly. What I'm searching for Plugin or Theme Code... ... or Ideas Using a work-around with ...
16
votes
3answers
11k views

Override default WordPress core translation

WordPress is set to Dutch language. When I use get_the_archive_title() my theme correctly outputs "Categorie: Category-name" on a category archive page. However I'd like that to read "Sectie: Category-...
11
votes
5answers
15k views

Change page template programmatically ?

I have two page templates and Qtranslate installed. I want to choose one or another depending the language selected. Can I do something like this ? if($q_config['lang'] == 'en'){ // load page-...
10
votes
6answers
12k views

How to change the language for the front-end only?

I have installed a wordpress theme, i can see the .mo and .po /public_html/wp-content/themes/themename/lang, the language I want to use is available. Could you please advise on how to use a specific ...
10
votes
2answers
5k views

How to get a translated string from a language other than the current one?

I was wandering... All the translation functions (__(), _e(), _x() and so on) use the current/active language. Is there a way to get a translation from another language than the current one? For ...
9
votes
1answer
5k views

Rewrite Rule for Multilingual Website, Like qTranslate?

I would like to write my own little plugin for language switching. For that, the very first thing would be to get the rewrite rules running. I have been looking around the web for 2 hours, but I ...
9
votes
4answers
7k views

How to keep plugin translations after updates?

bbPress' language folder (wp-content/plugins/bbpress/bbp-languages) has that warning: /** * Do not put custom translations here. They will be deleted on bbPress updates. * * Keep custom bbPress ...
8
votes
4answers
10k views

How can I uninstall a language?

I changed my site language a few times for testing purposes. The problem is that after changing it back, WordPress continues to update plugin language packs. How can I uninstall those languages that ...
7
votes
2answers
22k views

How do I change the value of lang=en-US

I have noticed that in the <html> tag on my WP site that the language is defined as US English. <html lang="en-US" prefix="og: http://ogp.me/ns#"> I would like to change it to British ...
6
votes
3answers
9k views

How do I change the language of only the login page?

My wordpress blog is set up as de_DE. This means that my login page is also displayed in de_DE. I would like to only have the login page in en_US. So, How would I programmatically change a single ...
6
votes
1answer
1k views

Different back-end language for different users?

I've been searching the internet for the last hour but I can't find anything up-to-date to do this (all the suggestions are about plugins that haven't been updated in ages, see this question). Is ...
5
votes
4answers
8k views

Changing the language of a single page

I have a wordpress site in a language that aligns RTL, but some pages are in English. These pages look terrible, however, because the English text is aligned with the RTL language, and punctuation, ...
5
votes
1answer
3k views

Uninstall languages

Hosting installed WordPress with like a gazillion languages. Can I just remove the language .mo and .po's for the languages I don't want or will that break something unintended?
4
votes
2answers
1k 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 ...
4
votes
2answers
3k views

How do I override a parent theme's language files with a child theme?

I have a parent theme and a child theme, I would like to override the spanish .mo and .po files in the parent theme (or add them if they are not present in the parent theme) with the es_ES ones in my ...
3
votes
2answers
5k views

Add language/country code to each possible URL

I've been trying to achieve a seemingly simple permalink structure customization without success. The goal is to always have /aa-bb/ in front of each possible permalink, where aa is a language code ...
3
votes
4answers
6k views

Can I change my language to English?

I created my account and first blog while waiting at the airport in Switzerland. Now my admin page and blog are in German! I can't understand what most of it means, so I can't seem to be able to ...
3
votes
1answer
5k views

Getting a blog language (site "lang_id" field vs the WPLANG setting)

There's a wp_blogs table which is very usefull when you want to get a list of blogs (and this is what I need to do). The problem is that I can't seem to be able to get the blog language from the ...
3
votes
1answer
2k views

How to set locale in ajax requests?

I'm developing a website that can use both Russian and English as front-end language. The theme has translated strings in both languages. Now my problem is, whenever i use a hook when i'm logged in (...
3
votes
1answer
782 views

URL to download latest version of WP for other languages than English

I'm considering he possibility of automating/scripting a basic WP install. Part of it will include downloading the latest WordPress version. The en-us version can be obtained by downloading http://...
3
votes
1answer
139 views

What is the difference between the Package Language and the Site Language?

What is the difference between the Package Language and the Site Language? If I run: wp core language list I get: en_AU | English (Australia) | English (Australia) | active | available If I run: ...
3
votes
1answer
66 views

Translate content, not instance, per-post

TL;DR: I'm looking for a way to translate only the content of a specific post in another language, not everything around said post (such as the 'meta' and the 'search' field like this solution seems ...
3
votes
1answer
1k views

Change content language for one page

I have one page witch has a different language then the rest of the site. I looked in to many plugins but I can't find a way to chance the content language <html lang="nl-NL" prefix="og: http://...
3
votes
0answers
49 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 ...
3
votes
0answers
206 views

allow arabic letters when register new account

How can allow arabic letters when register new account ? i don't need to lose any security. If any of us, Arabs, want to register in any wordpress blogs we have to use English letters in “username” ...
3
votes
0answers
29 views

How to have english digits in some posts with an rtl Wordpress theme

I have an RTL theme for Wordpress. When I want to have a post in which some digits should intentionally be in English, the theme tends to convert all the digits from English to Persian. Adding lang="...
3
votes
2answers
2k views

change only the theme language

My wordpress admin is in french. and my theme is in arabic. i have two files mo : arabic and french. i used this : add_filter( 'locale', 'change_locale' ); function change_locale(){ return 'pt_AR'; }...
2
votes
3answers
28k views

Theme's text domain & language.PO file not working

I can't get my translations to work in my theme. Here is what I have In functions.php, I have: load_theme_textdomain( 'transparent', get_template_directory_uri() .'/languages' ); I have .../...
2
votes
2answers
7k views

Filter the URL of next_posts_link & previous_posts_link

I am working with the qTranslate plugin to create a multi-lingual website. The plugin does a great job of translation except for on the next_posts_link & previous_posts_link template tags. When ...
2
votes
1answer
3k views

How to use load_plugin_textdomain from within a theme

I would like to perform a single word replacement for one of my plugins. From #: subscribe-and-connect-template.php:210 msgid "Subscribe" msgstr "Subscribe" To #: subscribe-and-connect-template....
2
votes
2answers
4k views

Multisite use language code as subdirectory

I installed WordPress in the subdiretory /de and activated multisite features. The main blog has the URL/path: mysite.de/de Now I want to add a second site for the English language with the following ...
2
votes
1answer
1k views

Setting the language of RSS feed

What is the simplest / easiest way to set up the language of the rss feed. Currently, that field in my feed xml is blank, it looks like this <language></language> and i would like it to ...
2
votes
1answer
3k views

Why load_textdomain work but not load_plugin_textdomain?

In my plugin's init function load_textdomain( 'myplugin', ABS_PATH_TO_MO_FILE ); // OK load_plugin_textdomain( 'myplugin', false, ABS_PATH_TO_LANGS_DIR); // No effect echo( __('Test', '...
2
votes
1answer
44 views

Language Translation is not working?

My wpconfig.php file: define('WPLANG', 'tr_TR'); My Code: echo '<div id="wtdCustomizButtonDetailsPage"><a href="'. $getCustomPage .'?type=wtd_sc_designer&wtd_id='. $id .'">'. __('...
2
votes
1answer
1k views

How to find a language direction?

The function is_rtl() checks the blog language direction if it is LTR or RTL. public function is_rtl() { return 'rtl' == $this->text_direction; } But I couldn't find where or who fills in ...
2
votes
1answer
228 views

Prevent WordPress updates from overriding custom language translations?

my site's language is persian and persian is a right-to-left language. Wordpress has a default installation package for this lang but for some cases like very bad translation for dashboard or default ...
2
votes
2answers
3k views

Is it possible to check is loaded language files correctly with WordPress plugin?

I have a plugin to be translated. I have done following tasks: 1. Loaded the TextDomain $my_td = 'mysignup'; function my_signup_textdomain_init() { load_plugin_textdomain( $my_td, false, dirname(...
2
votes
1answer
460 views

How to use both British and American English?

I've taken over a website targeting different markets using five language versions, each is setup as it's own site within a multisite network. The main website mainly targets a British audience and ...
2
votes
1answer
708 views

Install wordpress using composer in a specific language

I'm using composer to automatically deploy wordpress on a ubuntu-server. Additionally, I need to install the german language pack. I learned that there are some guys who create composer-packages from ...
2
votes
1answer
295 views

how to modify language in a child theme

I have purchased a theme, and have created a child theme. In the website's sidebar is a search form, with a default placeholder text I would like to change. The text for this placeholder is located ...
2
votes
2answers
3k views

How to change the language of the 'Reset Password' page

I have a WooCommerce powered WordPress website. In this website a user can login to order products, basic WooCommerce functionality. The site is translated using qTranslate. I can translate everything,...
2
votes
1answer
378 views

Wordpress language switcher

Is there an easy way I can switch between languages (perhaps with some flag icons) on a single Wordpress site? Can this be done with 2 content editors on the same page, or will I have to resort to a ...
2
votes
2answers
303 views

Wordpress native thickbox language

Is there any clean way (not overwriting wp-includes\js\thickbox\thickbox.js file) to translate english next/ prev/ image # of # and Close tooltip in Wordpress native Thickbox script?
2
votes
1answer
88 views

Make changes to translation?

I'm using finnish translation of wordpress. I found the fi.po file which contains all the translations, but for some reason, editing the contents wont edit the contents of the page. Can I make ...
2
votes
2answers
1k views

Overwrite default WordPress wording

I'm working on a plugin that changes the password requirements to be a bit stricter, however wherever there is a password field to create a password, WordPress' hints are now no longer accurate (e.g. ...
2
votes
1answer
316 views

Woocomerce language

I have no idea why woocomerce is not changing language. When I change language in wordpress everything is fine, but woocommerce language is not changing, but only in my language (Lithuanian lt_LT), in ...
2
votes
0answers
29 views

Is there any workaround to a core update still showing after core update if language set to anything other than US English

I build sites typically in UK English, however I typically leave them in US English because if I set system/general/site language to anything other than "English ( United States)" then when I do ...
2
votes
0answers
892 views

Prevent wordpress from updating language files

I would like to prevent wordpress from updating language files in languages folder. Not only in case of automatic updates, but also in case of manual ones. I have tried few solutions including change ...

1
2 3 4 5