Translate currency in aimeos 17.4.1

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!
pheeb
Posts: 10
Joined: 19 May 2017, 16:21

Translate currency in aimeos 17.4.1

Post by pheeb » 01 Jun 2017, 11:48

After an update from aimeos 17.3.0 to 17.4.1 the translation for currency in typoscript doesn't do anymore:

Code: Select all

plugin.tx_aimeos.settings.i18n.de.0 {
	domain = client/currency
	string = CHF
	trans = CHF
}
Other translations work like:

Code: Select all

plugin.tx_aimeos.settings.i18n.de.0 {
	domain = client
	string = Your search result
	trans = Suchresultat
}
Did i miss something?

Thanks
Patrik


Typo3 7.6.10
PHP 5.6.30-0+deb8u1

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

Re: Translate currency in aimeos 17.4.1

Post by aimeos » 01 Jun 2017, 16:27

pheeb wrote:

Code: Select all

plugin.tx_aimeos.settings.i18n.de.0 {
	domain = client/currency
	string = CHF
	trans = CHF
}
That code translates the currency code to itself, so it won't change ;-)
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

pheeb
Posts: 10
Joined: 19 May 2017, 16:21

Re: Translate currency in aimeos 17.4.1

Post by pheeb » 02 Jun 2017, 07:37

I don't understand, in the de.po file the id is "CHF" and the string "Fr". Now i want to change "Fr" to "CHF".

Code: Select all

#. Fr
#. reference: https://en.wikipedia.org/wiki/Swiss_franc
#. code: CHF
#. sign: Fr, SFr
#. symbol: CHF
#. sequence: <amount><sign>
msgid "CHF"
msgstr "Fr"
In v. 17.3.0 the typoscript code changed it, but now i don't see my mistake. :?

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

Re: Translate currency in aimeos 17.4.1

Post by aimeos » 02 Jun 2017, 08:57

OK, I see. It works quite well in our test environment so I assume that the problem is somewhere else.
Please check if
- you've cleared the cache (TYPO3)
- the locale language is still "de" (TYPO3 and in the admin interface)
- the TS isn't overwritten by another translation block using the same index "0"
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

Post Reply