Problem with $this->translate() function?

How to configure and adapt Aimeos based shops as developer
Forum rules
Always add your Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
IevIef
Posts: 17
Joined: 05 May 2018, 18:58

Problem with $this->translate() function?

Post by IevIef » 10 May 2018, 09:34

Hi

seems like for some unknown reason "Latest" are the one from the sort list which cannot be translated to russian (maybe to others too): "Упорядочить по: рейтингу Latest названию цене".
I see that it might be translated because it have the same as Relevance translation in ru.po file: msgid "Latest"
msgstr "последнему" and in \ext\ai-client-html\client\html\templat ... efault.php it has

Code: Select all

$this->translate( 'client', 'Latest' )
but instead of $this->translate( 'client', 'Relevance' ) it does not translated and return result in English - Latest.

Help with advice please.

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

Re: Problem with $this->translate() function?

Post by aimeos » 11 May 2018, 05:40

According to Transifex, "Latest" isn't translated yet: https://www.transifex.com/aimeos/aimeos ... t%3Alatest

Maybe you can translate the missing strings?
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

IevIef
Posts: 17
Joined: 05 May 2018, 18:58

Re: Problem with $this->translate() function?

Post by IevIef » 12 May 2018, 17:32

Shure, I can translate to Ukrainian. How I see it was not translated yet. But I alredy translated this "Latest" and write it to the file but continuing return english variant instead of translated russian.. thats what I mean

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

Re: Problem with $this->translate() function?

Post by aimeos » 13 May 2018, 20:05

The easiest way is by using Transifex so we can integrate your translations into the next release.
Adding something to the .po file is only the step but you have to generate the MO file from it too:
https://aimeos.org/docs/Developers/Add_ ... anslations
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

IevIef
Posts: 17
Joined: 05 May 2018, 18:58

Re: Problem with $this->translate() function?

Post by IevIef » 16 May 2018, 15:44

Ok, I understand, thank you

Post Reply