messages.po for block translation

Permalink 1 user found helpful
Hi there,

I' currently working on a block I would like to use translation for strings. Therefore I use the message.po file for the block. Created the folder /blocks/myblock/languages/xx_XX/LCMESSGAES/ Within the folder I placed the file messages.po generated with POEdit. Also the messages.mo is in this folder. Problem is that the translations are not appearing in my Block. Seams its a problem with the path within the messages.po file. How this path must look like? When I develop my site under localhost it should be different from what I have under my providers server right? I'm a bit confused because I was checking the messages.po from concrete5 translation. and in there the path of the files looks like this (just an example)

#: ../web/concrete//models/search/user.php:3
#: ../web/concrete//models/single_page.php:3
#: ../web/concrete//models/user.php:3

So can someone explain me how the right path must be within the messages.po file for a block translation.

I use Window apache server locally. Maybe thats the problem with the path syntax.

Thanks for help.

Regards

Daniel

 

This website stores cookies on your computer. These cookies are used to improve your website experience and provide more personalized services to you, both on this website and through other media. To find out more about the cookies we use, see our Privacy Policy.