1
votes

I'm trying to translate my package going by the steps in this Howto: http://www.concrete5.org/documentation/how-tos/developers/translate-your-package/.

For example, I have this:

echo $form->label('name', t('Your Name'), array ('class'=>"required"));

then gone through all the steps creating my messages.po and messages.mo files - it didn't work, the text doesn't get translated. The po and mo files are in my application/packages/MY_PACKAGE/languages/ru_RU/LS_MESSAGES folder.

I tried another HowTo: http://www.concrete5.org/documentation/how-tos/developers/translating-site-specific-texts/. I've renamed my messages files to ru_RU.po and ru_RU.mo and moved them to application/languages/site - still doesn't work, I only see English.

Then I've uninstalled my package, installed it again. I go the an English page - ok. Then go to a Russian page and get this error:

Zend \ I18n \ Exception \ RuntimeException
Plural rule of merging text domain is not compatible with the current one 

What's wrong? I'm totally clueless now what to do. Could anyone help please?

1
Is Russian language installled on site level? - toesslab
The correct path for packages is:/packages/package_handle/languages/ru_RU/LC_MESSAGES/messages.mo. Exactly this way, incluuding capital letters - toesslab
Yes, of course Russian language is installed. And my path for package is exactly like that (I just called my package handle MY_PACKAGE) - linuxoid
Sry to ask again but its MY_PACKAGE or my_package? And its LC_MESSAGES or LS_MESSAGES? - toesslab
Yes, it's my_package and LC_MESSAGES - linuxoid

1 Answers

1
votes

I had the same issue, and seem like managed to solve it. I've answered to you on Concrete5 community forum. Here is the link.

Seems like it is some kind of a Concrete5 bug, Zend Internationalization Module throws this exception. Solution is to comment 3 lines of code, look at the screenshot I've provided for details