define([
'json!locales/en.json',
'json!locales/de.json',
'json!locales/fr.json',
'json!locales/ru.json'
], function(
en,
de,
ru,
fr
) {
'use strict';
return [
'$translateProvider',
function(
$translateProvider
) {
// Simply register translation table as object hash
$translateProvider
.translations('en', en)
.translations('ru', ru)
// .translations('de', de)
// .translations('fr', fr)
.registerAvailableLanguageKeys([
'en',
'ru'
// 'de',
// 'fr'
])
// .preferredLanguage('en')
.preferredLanguage('ru')
// using the determinePreferredLanguage()
// would lead to use something like "en_US"
// .determinePreferredLanguage()
.fallbackLanguage('en')
;
}];
});
[exec] Running "localescompile:prod" (localescompile) task
[exec] Wrote "de" translations in dist/locales/de.json
[exec] Wrote "en" translations in dist/locales/en.json
[exec] Wrote "fr" translations in dist/locales/fr.json
[exec] Wrote "ru" translations in dist/locales/ru.json
define([
'json!locales/en.json',
'json!locales/de.json',
'json!locales/fr.json',
'json!locales/ru.json',
'json!locales/uk.json'
], function(
en,
uk,
ru,
de,
fr
) {
'use strict';
return [
'$translateProvider',
function(
$translateProvider
) {
// Simply register translation table as object hash
$translateProvider
.translations('en', en)
.translations('uk', uk)
.translations('ru', ru)
// .translations('de', de)
// .translations('fr', fr)
.registerAvailableLanguageKeys([
'en',
'uk',
'ru'
// 'de',
// 'fr'
])
// .preferredLanguage('en')
// .preferredLanguage('uk')
// using the determinePreferredLanguage()
// would lead to use something like "en_US"
.determinePreferredLanguage()
.fallbackLanguage('en')
;
}];
});
./camunda-commons-ui/resources/locales
./camunda-commons-ui/lib/auth/locales
./camunda-tasklist-ui/client/scripts/task/locales
./camunda-tasklist-ui/client/scripts/controls/locales
./camunda-tasklist-ui/client/scripts/variable/locales
./camunda-tasklist-ui/client/scripts/user/locales
./camunda-tasklist-ui/client/scripts/navigation/locales
./camunda-tasklist-ui/client/scripts/filter/locales
./camunda-tasklist-ui/client/scripts/process/locales
./camunda-tasklist-ui/dist/app/tasklist/locales
// .preferredLanguage('en')
.preferredLanguage('uk')
// using the determinePreferredLanguage()
// would lead to use something like "en_US"
// .determinePreferredLanguage()
.fallbackLanguage('ru')
.fallbackLanguage('en')
;
define([
'json!locales/en.json',
// 'json!locales/de.json',
// 'json!locales/fr.json',
'json!locales/ru.json',
'json!locales/uk.json'
], function(
en,
ru,
uk
// de,
// fr
) {
'use strict';
return [
'$translateProvider',
function(
$translateProvider
) {
// Simply register translation table as object hash
$translateProvider
.translations('en', en)
.translations('ru', ru)
.translations('uk', uk)
// .translations('de', de)
// .translations('fr', fr)
.registerAvailableLanguageKeys([
'en',
'ru',
'uk'
// 'de',
// 'fr'
])
// .preferredLanguage('en')
.preferredLanguage('uk')
// using the determinePreferredLanguage()
// would lead to use something like "en_US"
// .determinePreferredLanguage()
.fallbackLanguage('ru')
.fallbackLanguage('en')
;
}];
});
> Tasklist now speaks Ukrainian to me
That is really GREAT to here! That’s a good proof that it works. Awesome!
--
You received this message because you are subscribed to the Google Groups "camunda BPM users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to camunda-bpm-us...@googlegroups.com.
To post to this group, send email to camunda-...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/camunda-bpm-users/c5cea85a-d26b-4bc2-8061-f25c2f0b2141%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Hi,
Hello world,I'm a business process analyst (not a software developer) and I'm trying to adopt Camunda BPM for creation of executable sketches of my BPMN 2.0 models.What I need and I'll be glad to contribute is an addition of Ukrainian (and possibly russian) language to Camunda tasklist, cockpit and admin user interfaces.Can anyone suggest a correct way to do this?First of all I set up Linux, Java, mvn, Node.js, global npm, global grunt, global bower and Eclipse and learned how to build my own 7.2.0-SNAPSHOTS according to the GitHub instructions https://github.com/camunda/camunda-bpm-platform with plain `mvn clean install` from command line and no integration tests - it works! :)(Question: how can I set up build process which will be 1) limited to MySQL DB and Tomcat support, 2) omit welcome application, 3) run also from Eclipse with Run As => Maven Install not only from CLI?)Now Ok I thought - I'll learn how to build https://github.com/camunda/camunda-bpm-webapp project and start with it I'll make my changes step by step and rebuild and redeploy and so it goes. Here my story began.First of all, I tried the procedure with grunt https://github.com/camunda/camunda-bpm-webapp#setup-stepnpm install workedgrunt setup only worked when I did it with root permissions because /usr/lib/node_modules aren't available for linking otherwise - but grunt failed with diagnosticsnpm ERR! EEXIST, open '/home/stesin/.npm/098f898f-sin-npm-lodash-2-4-1-package-tgz.lock'File exists: /home/stesin/.npm/098f898f-sin-npm-lodash-2-4-1-package-tgz.lockMove it away, and try again.npm ERR! System Linux 3.13.0-37-genericnpm ERR! command "/usr/bin/node" "/usr/bin/npm" "link"npm ERR! cwd /home/stesin/eclipse-luna-workspace/camunda-bpm-sdk-jsnpm ERR! node -v v0.10.32npm ERR! npm -v 1.4.28npm ERR! path /home/stesin/.npm/098f898f-sin-npm-lodash-2-4-1-package-tgz.locknpm ERR! code EEXISTnpm ERR! errno 47npm ERR! not ok code 0npm ERR! EEXIST, open '/home/stesin/.npm/098f898f-sin-npm-lodash-2-4-1-package-tgz.lock'There wasn't a file 098f898f-sin-npm-lodash-2-4-1-package-tgz.lock anywhere near. After some struggling with grunt I gave up, cleaned everything and started from very scratch doing staff by hand according to https://github.com/camunda/camunda-bpm-webapp#by-handsFirst of all I was operating as root due to /usr/lib/node_modules access rights, and cleaned all camunda symlinks left in /usr/lib/node_modules from prefious failed attempts. A chain of npm link commands between component projects went Ok after that. I reverted workspace ownership back to mine than and left from root rights. Succeeded mvn clean install in camunda-cockpit-plugin-base made sure that port 8080 is free, went to ~/workspace/camunda-bpm-webapp/webapp and did mvn clean install jetty:run -Pdevelop,livereloadThis failed - jetty won't start, it didn't find a directory:[INFO] --- jetty-maven-plugin:8.1.14.v20131031:run (default-cli) @ camunda-webapp ---[INFO] ------------------------------------------------------------------------[INFO] BUILD FAILURE[INFO] ------------------------------------------------------------------------[INFO] Total time: 20.231s[INFO] Finished at: Mon Oct 13 16:21:15 EEST 2014[INFO] Final Memory: 39M/686M[INFO] ------------------------------------------------------------------------[ERROR] Failed to execute goal org.mortbay.jetty:jetty-maven-plugin:8.1.14.v20131031:run (default-cli) on project camunda-webapp: Unable to parse configuration of mojo org.mortbay.jetty:jetty-maven-plugin:8.1.14.v20131031:run for parameter webApp: Setter org.mortbay.jetty.plugin.JettyWebAppContext.setResourceBases( [Ljava.lang.String; ) threw exception when called with parameter '[Ljava.lang.String;@4549af55': file:/home/stesin/eclipse-luna-workspace/camunda-cockpit-ui/dist is not an existing directory. InvocationTargetException -> [Help 1]Ok I thought and I went through subprojects directories running mvn clean install in each. camunda-tasklist-ui built Ok, while camunda-cockpit-ui failed:...[exec] jquery.ui#1.10.4 client/bower_components/jquery.ui[exec] Loading "Gruntfile.js" tasks...ERROR[exec] >> Error: Cannot find module 'grunt-seleniuminstall/tasks/seleniuminstall'[exec] Warning: Task "build" not found. Use --force to continue.[exec][exec] Aborted due to warnings.[INFO] ------------------------------------------------------------------------[INFO] BUILD FAILURE[INFO] ------------------------------------------------------------------------[INFO] Total time: 20.589s[INFO] Finished at: Mon Oct 13 16:46:43 EEST 2014[INFO] Final Memory: 8M/303M[INFO] ------------------------------------------------------------------------[ERROR] Failed to execute goal org.apache.maven.plugins:maven-antrun-plugin:1.3:run (generate-zip) on project camunda-cockpit-ui: An Ant BuildException has occured: exec returned: 3 -> [Help 1]What's interesting is that selenium is already installed -gNext time there was different failure:[INFO] ------------------------------------------------------------------------[INFO] Building camunda-cockpit-ui 7.2.0-SNAPSHOT[INFO] ------------------------------------------------------------------------...[INFO] --- maven-antrun-plugin:1.3:run (generate-zip) @ camunda-cockpit-ui ---[INFO] Executing tasks[exec] requirejs-an...@1.1.0 node_modules/requirejs-angular-define[exec][exec] grunt-sele...@0.0.1 node_modules/grunt-seleniuminstall[exec] ├── under...@1.6.0[exec] ├── as...@0.9.0[exec] ├── un...@0.1.11 (setimm...@1.0.2, pulls...@0.4.1, match-...@0.0.2, readabl...@1.0.33-1, fst...@0.1.31, bin...@0.3.0)[exec] └── protr...@0.22.0 (sauc...@0.1.1, q...@1.0.0, minijas...@0.4.0, adm...@0.4.4, opti...@0.6.1, lod...@2.4.1, gl...@3.2.11, selenium-...@2.41.0)[exec] Loading "Gruntfile.js" tasks...ERROR[exec] >> Error: Cannot find module 'grunt-seleniuminstall/tasks/seleniuminstall'[exec] Warning: Task "build" not found. Use --force to continue.[exec][exec] Aborted due to warnings.[INFO] ------------------------------------------------------------------------[INFO] BUILD FAILURE[INFO] ------------------------------------------------------------------------[INFO] Total time: 11.500s[INFO] Finished at: Mon Oct 13 16:52:40 EEST 2014[INFO] Final Memory: 8M/303M[INFO] ------------------------------------------------------------------------[ERROR] Failed to execute goal org.apache.maven.plugins:maven-antrun-plugin:1.3:run (generate-zip) on project camunda-cockpit-ui: An Ant BuildException has occured: exec returned: 3 -> [Help 1]camunda-admin-ui also failed to build:[exec] jquery#2.1.1 client/bower_components/jquery[exec][exec] jquery.ui#1.10.4 client/bower_components/jquery.ui[exec][exec] bootstrap#3.1.1 client/bower_components/bootstrap[exec] └── jquery#2.1.1[exec] Loading "Gruntfile.js" tasks...ERROR[exec] >> Error: Cannot find module 'grunt-seleniuminstall/tasks/seleniuminstall'[exec] Warning: Task "build" not found. Use --force to continue.[exec][exec] Aborted due to warnings.[INFO] ------------------------------------------------------------------------[INFO] BUILD FAILURE[INFO] ------------------------------------------------------------------------[INFO] Total time: 21.032s[INFO] Finished at: Mon Oct 13 16:55:43 EEST 2014[INFO] Final Memory: 8M/303M[INFO] ------------------------------------------------------------------------[ERROR] Failed to execute goal org.apache.maven.plugins:maven-antrun-plugin:1.3:run (generate-zip) on project camunda-admin-ui: An Ant BuildException has occured: exec returned: 3 -> [Help 1]But what is interesting - after all those failures, build in ~/workspace/camunda-bpm-webapp/webapp went Ok and I got my long awaited personally built camunda-webapp.war inside ~/workspace/camunda-bpm-webapp/webapp/target directory!Now let's try to deploy it. Starting with clean (freshly built) Tomcat I put fresh new and hot camunda-webapp.war into ~/camunda-bpm-tomcat-7.2.0-SNAPSHOT/server/apache-tomcat-7.0.50/webapps and start Tomcat.All the stuff under http://localhost:8080/camunda/app/ works. So what with http://localhost:8080/camunda-webapp/ ?http://localhost:8080/camunda-webapp/app/cockpit/default/ does not even offer login/password form.http://localhost:8080/camunda-webapp/app/admin/default/#/login tells that Server Error: The server reported an internal error. Try to refresh the page or login and out of the application....login attempt...Not found: A resource you requested could not be found.Login Failed: Wrong credentials or missing access rights to applicationhttp://localhost:8080/camunda-webapp/app/tasklist/default/#/login asked for login but said that Can not log in with those credentials.So what is the correct way to start development of multilingual tasklist, admin and cockpit? What am I doing wrong?