i18n: untranslated hardcoded strings and cross-package language keys #105
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
Several user-facing strings are hardcoded English instead of
Text::_()/ language constants, and the component edit form references language keys that aren't loaded in its context.Hardcoded English
TagTable::check()validation messages:'Content type is required.'(:48),'Content type contains invalid characters.'(:54),'Content ID is required.'(:60).forms/tag.xml: fieldsetlabel="SEO Meta Tags"(:81) and select option labels (Article,Website,Articles,Menu Items) intag.xmlandfilter_tags.xml.script.php:26,38echoes raw English HTML on install/update.MokoOG.php:985-991— the license-key admin warning is a hardcoded HTML string passed toenqueueMessage, not a language constant.Cross-package language keys
forms/tag.xml:85-110labels SEO fields withPLG_CONTENT_MOKOOG_FIELD_*keys that live in the content plugin language files and are not loaded in the component context — they'd render as raw keys if the edit form is shown (see the single-tag edit UI blocker). UseCOM_MOKOOG_*keys and add them to the component.ini.Fix
Replace all with
COM_MOKOOG_*/PKG_MOKOOG_*keys and add the strings to en-GB and en-US.inifiles.Branch created:
feature/105-i18n-untranslated-hardcoded-strings-and-