User tests: Successful: Unsuccessful:
Fix language declaration. Has to be the first 2 letters and not en-Gb, de-DE .... etc.
Pull Request for Issue # .
Status | New | ⇒ | Pending |
Category | ⇒ | Front End Plugins |
Please explain further what you want to achieve.
ckb-IQ
, prs-AF
, etcen-GB
AND en-US
AND en-AU
.Please close as this is breaking the hreflang for the cases above.
@infograf768 Globally in Joomla or just in the language filter? Seems a bit silly considering languages have different dialects
Not sure what you are trying to achieve here but it looks like @infograf768 is correct
Globally in Joomla or just in the language filter? Seems a bit silly considering languages have different dialects
Globally in Joomla and any CMS. Servers never consider regions (they may even not consider various country codes, depending on servers..)
We never consider dialects but languages and we do not use Extended Language Subtags.
It could be considered though in the future (for various variations of Chinese for example: zh-yue (Cantonese Chinese)).
I guess this would imply a few code changes. No one ever proposed such a pack until now.
See the mess here if we were for French (not taking into account that these provincial iso codes are never considered by any sotware...):
https://en.wikipedia.org/wiki/ISO_3166-2:FR
What you call a dialect may have a specific langage code:
Iraq country code may have
ar-IQ, ckb-IQ, kmr-IQ, sdh-IQ, etc.
Where the last 3 are variations of the Kurdish language.
https://en.wikipedia.org/wiki/Kurdish_languages
Let's close this. If someone is interested in implementing Extended Language Subtags, please submit a PR.
Status | Pending | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2019-03-06 09:48:36 |
Closed_By | ⇒ | infograf768 | |
Labels |
Added:
?
|
Servers never consider regions
The hreflang
tag is used by search engines to serve the right content to the right users. So I'm not sure how removing the dialect helps with that.
@infograf768 You say that Joomla never simplifies the lang and then said that Joomla doesn't use regions, but the -XX
is the region
I call this Country Codes, not regions.
regions are Extended Language Subtags and we do not use them in Joomla.
Edit: Example
zh-yue (Cantonese Chinese)
If you want to have 2 letter codes only, you can use the languagecode plugin.
Right thank you for taking care of this, I misunderstood the requirements.
It should be like that de and en for example is two letters only to be recognized by other countries that speak this language too - does not count for all languages. I will look into the languagecode plugin.
According to Google, the region is optional and doesn't have to be 2 characters only.