-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Language ≠ Country (Change the default language in the CMS from "en-GB" to "en") #28197
Comments
@infograf768 @richard67 What do you think of this if you use a language code without a country code? (but also retain the ability to install those languages that were available for Joomla 3.0) |
I know that there is a plugin |
There is not one English language. It would be totally wrong to rename the current en-GB and use it in the USA. |
See PR #12014 to see if it is applicable. |
Not true |
English is used in several countries ( Need the ability to install this language without a country code ( |
On my website I use the language code plugin so that I have language codes only. The browser then can select en if it’s language is en-US and so will get the British English and not the German version of my site. This is what the plugin is made for, and it is sufficient and correct, Google webmaster tools tell me all language tags on my site are correct. |
@sanek4life your suggestions in the description are definitely wrong! |
I am going to close this. As already stated there is more than one english language and it would be incorrect to just use one (although of course I would prefer it if the world spoke real english) |
Per the specification (see https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/lang as a reliable source), it is perfectly valid to set the lang attribute inside a HTML tag to either a language tag (i.e. "en") or a region tag (i.e. "en-GB"). There is no need to change how Joomla works in this regard. (Edit: Also, since you want to say Joomla is "wrong", please look at the https://downloads.joomla.org site where multiple region locales of a language are actively used, such as US and GB English, or French and its Canadian locale; so it is proper to use the region tags and not blindly strip them because you don't like them) |
ISO 639 Language Codes ISO 639-6:2009 Source: http://www.infoterm.info/standardization/ISO_639.php I do not want to divide users from different English-speaking countries. I do not know 10 variants of the English language, I know only one version of the English language (I am not from an English-speaking country). And my website is not regional, I do not sell anything in the UK or the USA, I provide information to users around the world who know English. It’s also good for SEO, which even Google says: https://support.google.com/webmasters/answer/189077 Supported language/region codes The value of the
Examples:
For language script variations, the proper script is derived from the country. For example, when using zh-TW for users in Taiwan, the language script is automatically derived (in this example: Chinese-Traditional). You can also specify the script itself explicitly using ISO 15924, like this:
Alternatively, you can also specify a combination of script and region—for example, use |
One way or another, even the documentation for The Open Graph protocol says the following: Optional Metadata The following properties are optional for any object and are generally recommended:
Source: https://ogp.me/ Joomla now uses language |
You cannot remove the default language as this is needed to provide text if your extension or language pack is not completed in your language. If you dont want the meta language to say en-GB then just change it to en in the plugin - that is exactly why the plugin is shipped. |
My settings: And users can still see the name of the country in the settings of their profile on the website: Is there any way that only the language can be seen everywhere, without the name of the country? |
Once and for all, Joomla will not deal with language tags without a Country Code. |
Is your feature request related to a problem? Please describe.
At the present time, when installing Joomla, the standard website language for the UK is also installed (not English language, but English language for the country - UK)
This creates a problem for anyone who wants to make a website for users who understand English but do not have a specific country.
For example, if the main audience of your website is in the USA, then you will need to install another English language (
en-US
), or change the language code through the plugin (System - Language Code
). This does not help much, since website users and editors will still see the code (en-GB
) in their user settings and in theControl Panel
, as well as third-party extensions will use this language.The same problem appears with other languages. For example, people know the Russian language not only in Russia (
ru-RU
), but in many other countries of the world (Ukraine, Belarus, Kazakhstan and other countries of the former USSR).Describe the solution you'd like
I suggest the following changes for language files starting with Joomla 4.0 (so far the CMS is not even beta yet):
en
), instead of the UK country (en-GB
).ru
instead ofru-RU
,de
instead ofde-DE
, etc.)en
(the user will be able to choose others if necessary).en-GB
etc.), and the main language will be installed -en
. After migration from Joomla 3.0 to Joomla 4.0, each website administrator will be able to delete the language (en-GB
), and instead the standard language will remain (en
). Currently, it is not possible to delete a language (en-GB
) if, for example installed (en-US
).Control Panel
. First, a field with a language will be selected, and after that, a field with the name of the country will be selected (for example:en-RU
- English langauge in the country of Russia). This will help websites such as the official embassy of the country, online stores with local points of sale, etc.All languages that have a country code will also be available for download and installation in Joomla 4.0 (
en-GB
,ru-RU
,de-DE
etc), but in addition languages without a country name (en
,ru
,de
) will also be available for installation. The default language isen
, without a country name.Since the beta version of Joomla 4.0 has not yet been released, I suggest making these changes.
Additional context
More info on this from Google Help:
Managing multi-regional and multilingual sites
If your site offers different content to users in different languages, countries, or regions, you can optimize Google Search results for your site.
Background:
Some sites are both multi-regional and multilingual: for example, a site might have different versions for the USA and for Canada, and both French and English versions of the Canadian content.
Example
Example Widgets, Inc has a website that serves users in the USA, Great Britain, and Germany. The following URLs contain substantially the same content, but with regional variations:
Note that the language-specific subdomains in these URLs (en, en-gb, en-us, de) are not used by Google to determine the target audience for the page; you must explicitly map the target audience.
Here is the HTML that should be pasted into the section of all the pages listed above. It would direct US, UK, generic English speakers, and German speakers to localized pages, and all others to a generic homepage. Google Search returns the appropriate result for the user, according to their browser settings.
The text was updated successfully, but these errors were encountered: