Page 1 of 1

Multiple translations in typoscript

Posted: 17 Dec 2016, 02:12
by tonyl09
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

Re: Multiple translations in typoscript

Posted: 17 Dec 2016, 13:02
by aimeos
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?

Re: Multiple translations in typoscript

Posted: 17 Dec 2016, 13:13
by tonyl09
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.

Re: Multiple translations in typoscript

Posted: 17 Dec 2016, 13:23
by aimeos
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

Re: Multiple translations in typoscript

Posted: 19 Dec 2016, 18:10
by tonyl09
I reviewed that file, and that was the only phrase that I think should be fixed.