override translations for Login Box

Questions around the TYPO3 integration and plugins
Forum rules
Always add your TYPO3, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
S0l
Posts: 8
Joined: 22 Nov 2020, 15:15

override translations for Login Box

Post by S0l » 02 Feb 2021, 15:02

Hello,
we have our default (= es) Login box show up like this:
Login
Username [...........]
Password [...........][
[Login]

but we want to adapt to our "default" language, which is "es" so it looks like

Iniciar Sesión
Usuario [...........]
Contraseña [...........][
[Login]

we tried to override with e.g.

Code: Select all

plugin.tx_felogin_pi1._LOCAL_LANG.default {
    username =Usuario
    password = Contraseña
}
but this does not work.

We have successfully adapted some of the necessary- texts regarding the LOGIN process/account page have su been changed in our es_CL.po file residing under

typo3conf/ext/aimeos/Resources/Private/Extensions/ai-client-html/client/i18n


but things like the "Forgot Password" Page and Emails sent to the customer still appear only in English or in a mixture of English and Spanish ( Confirmation Page of Lost Password Sent Email). Those msgids dont show up in the core-client.pot nor core-client-code.pot files...

Is there a way to override those default (en) texts so it appears in Spanish uniformly?

Do you have any ideas?
aimeos 20.10.4 with aimeos_dist 20.10.1 on Typo3 10.4.12 with php 7.3.19-1 ~ deb10u1

User avatar
aimeos
Administrator
Posts: 7866
Joined: 01 Jan 1970, 00:00

Re: override translations for Login Box

Post by aimeos » 05 Feb 2021, 06:53

The login is provided by another TYPO3 plugin (not by Aimeos) so you have to look whre you have to add the translations there (typically in a locallang.xml file).
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

S0l
Posts: 8
Joined: 22 Nov 2020, 15:15

Re: override translations for Login Box

Post by S0l » 09 Feb 2021, 21:06

Yes, thank you, this was the right idea. There where no language translation files for my language (es) for the felogin, so I copied existing German files over to a newly made Spanish directory branch:

Code: Select all

 cp ./typo3conf/l10n/de/felogin/Resources/Private/Language/de.locallang.xlf typo3conf/l10n/es/felogin/Resources/Private/Language/es.locallang.xlf
 
 cp ./typo3conf/l10n/de/felogin/Resources/Private/Language/de.Database.xlf typo3conf/l10n/es/felogin/Resources/Private/Language/es.Database.xlf
Just needed to change the German texts to Spanish texts, using the English source strings as a base. It is surely not the best way of doing it, but it works for now...
aimeos 20.10.4 with aimeos_dist 20.10.1 on Typo3 10.4.12 with php 7.3.19-1 ~ deb10u1

Post Reply