Page 1 of 1

Problem with $this->translate() function?

Posted: 10 May 2018, 09:34
by IevIef
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.

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

Posted: 11 May 2018, 05:40
by aimeos
According to Transifex, "Latest" isn't translated yet: https://www.transifex.com/aimeos/aimeos ... t%3Alatest

Maybe you can translate the missing strings?

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

Posted: 12 May 2018, 17:32
by IevIef
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

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

Posted: 13 May 2018, 20:05
by aimeos
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

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

Posted: 16 May 2018, 15:44
by IevIef
Ok, I understand, thank you