MULTIPLE TRANSLATIONS IN TYPOSCRIPT

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!
Macgomes
Posts: 4
Joined: 11 Jun 2019, 10:00

MULTIPLE TRANSLATIONS IN TYPOSCRIPT

Post by Macgomes » 12 Jun 2019, 08:11

Hello everyone,,,

In SETUP we already have:

plugin.tx_aimeos.settings.i18n.en {
0 {
domain = client/html
string = Attributes
trans = Filter
}
1 {
domain = client/html
string = %1$d article
trans {
0 = %1$d
1 = %1$d
}
}
}

We also want to change a phrase in the hte customer payment email:

plugin.tx_aimeos.settings.i18n.en.1 {
domain = client/html
string = We received the payment and will care about your order immediately.
trans = We have received your payment, and will take care of your order immediately.
}

How do we include the multiple string/trans pairs without the second overwriting the first? Are we supposed to add a
2{
...
}
block?

Thank you
Last edited by Macgomes on 13 Jun 2019, 16:02, edited 1 time in total.

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

Re: MULTIPLE TRANSLATIONS IN TYPOSCRIPT

Post by aimeos » 12 Jun 2019, 17:39

The plugin.tx_aimeos.... prefix is for frontend only in TYPO3. The e-mails are sent by the scheduler tasks and you need to add your translations to the TSConfig field of the scheduler task.

Regarding new translations: Yes, each translation needs a unique index (0, 1, 2, etc.).

BTW: The "domain" for most HTML client related translations is "client", not "client/html" any more
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

Post Reply