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!
tonyl09
Posts: 8
Joined: 01 Jan 1970, 00:00

Multiple translations in typoscript

Post by tonyl09 » 17 Dec 2016, 02:12

Hello,

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

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

Re: Multiple translations in typoscript

Post by aimeos » 17 Dec 2016, 13:02

tonyl09 wrote:

Code: Select all

plugin.tx_aimeos.settings.i18n.en {
  0 {
    domain = client/html
    string = Attributes
    trans = Filter
  }
}
First, you have to use "domin = client" if you are using a 16.x version because that changed between 24. and 16.x.
tonyl09 wrote:We also want to change a phrase in the hte customer payment email:
In that case, the TypoScript must be entered in the TS-Config field in the scheduler task, because it's not a frontend thing.
tonyl09 wrote:How do we include the multiple string/trans pairs without the second overwriting the first? Are we supposed to add a
2{
...
}
block?
Yes, you can add more translations to existing ones with

Code: Select all

plugin.tx_aimeos.settings.i18n.en {
  2 {
    domain = client
    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.
  }
}
The important thing is that the indexes aren't used twice.

Are there more strings that are not in correct English?
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

tonyl09
Posts: 8
Joined: 01 Jan 1970, 00:00

Re: Multiple translations in typoscript

Post by tonyl09 » 17 Dec 2016, 13:13

Thank you.

Is there a list of all the phrases available? I could take a quick review to see if there are any glaring English issues.

I am new to this client and did not develop the store, so I am unfamiliar with what the original developer had set up.

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

Re: Multiple translations in typoscript

Post by aimeos » 17 Dec 2016, 13:23

tonyl09 wrote: Is there a list of all the phrases available? I could take a quick review to see if there are any glaring English issues.
You can use this file as reference:
https://github.com/aimeos/ai-client-htm ... client.pot
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

tonyl09
Posts: 8
Joined: 01 Jan 1970, 00:00

Re: Multiple translations in typoscript

Post by tonyl09 » 19 Dec 2016, 18:10

I reviewed that file, and that was the only phrase that I think should be fixed.

Post Reply