German Translation

#1

Hi there,

I'm in the process of creating German translations for the core UI and run-time elements.
a) Just wondering about potential tests before submitting a pull request ?
b) what additional nodes would be beneficial too ?
- dashboard
- ???

Cheers
Joerg

#2

The only real tests for translation we have are a) user feedback and b) i18n.nodered.org which is a visual inspection after publishing so yes please to the PR.

But note it should be targeted against the dev branch on github not master as dev is where new features need to go.

Dashboard would be good, and there are a few core nodes in node-red-nodes project (.like serialport twitter etc), but concentrate on the core first.

#3

Step one:
set the environment correctly: set LANG=de-DE
(it looks like npm does not catch my windows language settings correctly)

now it uses the messages from runtime/locales/de/runtime.json

Willkommen bei Node-RED

1 Dec 10:05:55 - [info] Node-RED Version: v0.19.5-git
1 Dec 10:05:55 - [info] Node.js Version: v6.10.3
1 Dec 10:05:55 - [info] Windows_NT 6.1.7601 x64 LE
1 Dec 10:06:00 - [info] Palettenknoten werden geladen
1 Dec 10:06:07 - [warn] rpi-gpio : Raspberry Pi-spezifischer Knotenset inaktiv
1 Dec 10:06:15 - [info] Dashboard version 2.10.0 started at /ui
1 Dec 10:06:15 - [warn] ------------------------------------------------------
1 Dec 10:06:15 - [warn] [node-red/tail] Wird derzeit unter Windows nicht unterstützt.
1 Dec 10:06:15 - [warn] ------------------------------------------------------
1 Dec 10:06:15 - [info] Einstellungsdatei: C:\Users\xx.node-red\settings.js
1 Dec 10:06:15 - [info] Kontextspeicher: 'default' [ module=memory]
1 Dec 10:06:15 - [info] Benutzerverzeichnis: C:\Users\xx.node-red
1 Dec 10:06:15 - [warn] Projekte inaktiviert: setze editorTheme.projects.enabled=true zum Aktivieren
1 Dec 10:06:15 - [info] Flow-Datei: C:\Users\xx.node-red\flows_xx.json
1 Dec 10:06:15 - [warn]

#4

ok - perfect.
Are there any best practices for following changes to one of the language relevant files (e.g. messages.json or the node.html files) ?

Thanks
Joerg

#5

Not really apart from being alert.. Which is why Nick created that i18n.nodered.org site to help make it easy..

#6

This tool is only usable after a PR ?

#7

I spent 33 years working in Germany, while I don't have the time for translations, I would be prepared to do some proof-reading if you need it Joerg.

1 Like
#8

got it ...

  1. clone https://github.com/node-red/i18n-viewer
  2. npm install
  3. create directory catalogs
  4. copy the locales directory (directories) to catalogs
  5. node index.js
  6. open your browser and connect to localhost:2880

Cool tool !!!
J.

#9

That tool was a quick hack to help us see the various translations next to each other. The hosted version still relies on me running a script on the server to pull in any updates to keep it in sync with git. There is a lot more it could do if anyone wanted to contribute.

I hadn't envisaged people running it locally, so well done for getting it going yourself!

1 Like
#10

so ... finished translation of the core nodes. Time for a PR ?
cheers
Joerg

2 Likes
#11

source is here: https://github.com/jwende/node-red (dev branch)
J.

Now I need to look at some core nodes that are not in the core package (email, twitter, rbe, file, tail, entiment, feedparser)

#13

Looks good @joerg_w, "Deploy" is a difficult one :slight_smile: . Well done, a lot of work!

#14

Thats right ... there are a number of IT terms without a nice German translation imho....
J.