How to localize alternates?

Topics: Localization, Writing themes
Mar 25, 2013 at 11:15 AM
Edited Mar 25, 2013 at 11:17 AM
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 6:24 AM
Where did you put the po?
Mar 26, 2013 at 8: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 7:27 AM