How to expand felogin locallang?

How can I add line feeds to the felogin plugin? I am slowly starting to get agreement for templates (by directing changed templates to the typoscript plugin configuration), but this does not work with locallang. The source messages are in English in xlf format located in the plugin folder. I know that this can be done in TypoScript, but I do not like the fact that lines are defined so unstably. (I think modifying the source file is not the right way.)

+3
source share
3 answers

Overriding TypoScript labels is the way to go. Manually editing l10n files is a very bad idea - these files are overwritten when translations are updated. If the extension receives an update and new shortcuts are added, you will need to perform updates.

Changing the XML files to convert to XLIFF has not changed anything in the best practice that you should use to customize labels to suit your needs. This is just another format with a standardized translation server (Pootle), which (theoretically) allows you to use some special functions, for example, multiple forms.

Conclusion: Use TypoScript.

For the default language (without the config.language set) use:

plugin.tx_felogin_pi1._LOCAL_LANG.default {
   key = value
}

For a specific language, for example. German use

plugin.tx_felogin_pi1._LOCAL_LANG.de {
   key = value
}
+6
source

- :

ext_tables.php, .

   $GLOBALS['TYPO3_CONF_VARS']['SYS']['locallangXMLOverride']['EXT:felogin/Resources/Private/Language/locallang.xlf'][] = 'EXT:theme/Resources/Private/Language/locallang_felogin.xlf';

-

<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
<xliff version="1.0">
    <file source-language="en" datatype="plaintext" original="messages" date="2015-06-30T21:14:27Z">
        <header>
            <description>Language labels for felogin</description>
        </header>
        <body>
            <trans-unit id="permalogin">
                <source>An diesem Rechner angemeldet bleiben</source>
            </trans-unit>
            <trans-unit id="ll_forgot_header">
                <source>Passwort vergessen?</source>
            </trans-unit>
            <trans-unit id="ll_welcome_header">
                <source>Sie betreten den Händlerbereich</source>
            </trans-unit>
            <trans-unit id="ll_welcome_message">
                <source>Bitte loggen Sie sich ein.</source>
            </trans-unit>
        </body>
    </file>
</xliff>
0

You can use the BE language module to load pre-configured locallangs for each language you need. Files are stored, for example. typo3conf / l10n / de / fe_login.

You can edit these files manually in l10n to get your own lines inside or use an extension like snowbabal to edit inside the BE module.

-1
source

All Articles