Localizing custom theme in Orchard 1.5

Topics: Localization, Writing themes
Jul 31, 2012 at 4:50 AM

I've a problem with localizing string in layout.cshtml of custom theme in Orchard 1.5.

I've followed the instruction in http://docs.orchardproject.net/Documentation/Creating-global-ready-applications

but it doesn't solve the problem.

The location of orchard.module.po:


The orchard.module.po file:

#: ~/Themes/ThemeName/Views/Layout.cshtml

#| msgid "name"

msgctxt "~/Themes/ThemeName/Views/Layout.cshtml"

msgid "name"

msgstr "аты"


Jul 31, 2012 at 4:56 AM

Ok, I've solved it.

The problem is in the name of the file.

The file name should be orchard.theme.po NOT orchard.module.po

Jul 31, 2012 at 9:55 AM


Thanks for the post, I had the same issue :).