Reputation: 13
We want to add another language to the Cumulocity plattform. We received the *.po file for our UI Version from the support and generated a test translation to check how it works before ordering the translation. We got the info that we can just put the *.po file to an app or a widget and when deployed, the translation should be visible for the whole platform, but that does not seem to work, do we have to set a reference or something somewhere inside of the app or widget to the po file or is there another aspect we should take a look at?
Best Regards
Our Translationfile contains following header for now:
msgid ""
msgstr ""
"Project-Id-Version: \n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: \n"
"PO-Revision-Date: \n"
"Last-Translator: \n"
"Language-Team: \n"
"Language: zh_CN\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
"X-Poedit-Basepath: .\n"
"X-Generator: Poedit 2.2\n"
msgid "\"{{c8y_Dashboard.name}}\" - dashboard"
msgstr "\"{{c8y_Dashboard.name}}\"-往好处说是超脱豁达"
msgid "\"{{c8y_Kpi.label}}\" - data point"
msgstr "\"{{c8y_Kpi.label}}\"-北洋军阀从白走到黑"
[...]
Upvotes: 0
Views: 188
Reputation: 718
Try to put the po file into a folder "locales" into your plugin and run the build. Here's an example that worked for me: https://bitbucket.org/m2m/cumulocity-ui-plugin-examples/src/bac470cb8149/plugins/weather
Upvotes: 1