You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am experiencing an issue with language association in Joomla using FLEXIContent. Specifically, the zh-TW language tag does not map correctly to the desired URL language code /tw/. Instead, it defaults to zh. This issue persists
With the latest language file - doesn't allow me to switch URLs.
The URLs for both en-GB and zh-TW are identical in SEF mode. In non-SEF mode, the URL for zh-TW incorrectly includes &lang=en instead of &lang=tw.
Suspected Cause:
It appears that the line $lang_code = substr($tag, 0, 2) is extracting zh as the language code for zh-TW. The following array output showing the language associations:
Hi,
I am experiencing an issue with language association in Joomla using FLEXIContent. Specifically, the
zh-TW
language tag does not map correctly to the desired URL language code/tw/
. Instead, it defaults tozh
. This issue persistsWith the latest language file - doesn't allow me to switch URLs.
The URLs for both
en-GB
andzh-TW
are identical in SEF mode. In non-SEF mode, the URL forzh-TW
incorrectly includes&lang=en
instead of&lang=tw
.Example:
index.php?option=com_flexicontent&view=item&cid=37&id=193&Itemid=1233&lang=en
The URL should be:
index.php?option=com_flexicontent&view=item&cid=37&id=193&Itemid=1233&lang=tw
OLDER VERSION
Reverting to an earlier version of the association helper partially resolves the issue; the URL works with
/zh/
but not with/tw/
.Suspected Cause:
It appears that the line
$lang_code = substr($tag, 0, 2)
is extractingzh
as the language code forzh-TW
. The following array output showing the language associations:Temporary Solution:
Implementing the following condition resolves the issue but is not ideal:
Any help or assistance would be wonderful.
The text was updated successfully, but these errors were encountered: