This project is read-only.

How to localize alternates?

Topics: Localization, Writing themes
Mar 25, 2013 at 12:15 PM
Edited Mar 25, 2013 at 12:17 PM
I have translated 'Submit' button for Orchard.CustomForms, but if I create alternate in Theme folder for ~/Modules/Orchard.CustomForms/Views/Item/Create.cshtml it won't pick the PO. I guess it has to do with po file specifying path
#: ~/Modules/Orchard.CustomForms/Views/Item/Create.cshtml
#| msgid "Submit"
msgctxt "~/Modules/Orchard.CustomForms/Views/Item/Create.cshtml"
msgid "Submit"
msgstr "Odeslat"
So how do I make alternate in Theme to use original module po files?
Mar 26, 2013 at 7:24 AM
Where did you put the po?
Mar 26, 2013 at 9:30 AM
Po file: ~/Modules/Orchard.CustomForms/App_Data/Localization/cs-CZ/orchard.module.po
Alternate: ~/Themes/MyTheme/Views/Orchard.CustomForms/Item/Create.cshtml
If I remove or rename alternate the T("Submit") does get translated. Do I need to duplicate PO's inside theme folder too when I alternate?
Mar 27, 2013 at 8:27 AM