URL language code length in Joomla 2.5

I need to change the language url for the french part of the website to "suits" (found in the language manager under the "content" section). However, the box stops after 7 letters, so the last "s" is cut. I want to change this because websites that have categories set up before so that the French part is indexed by Google and others like that. Is there a way to allow 8 letters in this field?

+3


source to share


1 answer


Try changing the variable maxlength

from file:/administrator/components/com_languages/models/forms/language.xml

        <field name="lang_code" type="text"
            description="COM_LANGUAGES_FIELD_LANG_TAG_DESC"
            label="COM_LANGUAGES_FIELD_LANG_TAG_LABEL"
            maxlength="7"
            required="true"
            size="10"
        />    

            <field name="sef" type="text"
                description="COM_LANGUAGES_FIELD_LANG_CODE_DESC"
                label="COM_LANGUAGES_FIELD_LANG_CODE_LABEL"
                maxlength="7"
                required="true"
                size="10"
        />

      



This is a major change and every time you update your Joomla installation you should check if it is canceled. If you want to create an override, you need a third party plugin .

Good luck!

0


source







All Articles