Browse Source

Add German locale to network

webworkersNetwork
Uli Fahrer 9 years ago
parent
commit
0a82942401
2 changed files with 20 additions and 2 deletions
  1. +2
    -2
      docs/network/index.html
  2. +18
    -0
      lib/network/locales.js

+ 2
- 2
docs/network/index.html View File

@ -323,7 +323,7 @@ network.setOptions(options);
<tr><td id="event_locales">locales</td>
<td>Object</td>
<td>defaultLocales</td>
<td>Locales object. By default only <code>'en'</code>, <code>'es'</code> and <code>'nl'</code> are supported. Take a look
<td>Locales object. By default only <code>'en'</code>, <code>'de'</code>, <code>'es'</code> and <code>'nl'</code> are supported. Take a look
at
the <a href="#locales" data-scroll=""
data-options="{ &quot;easing&quot;: &quot;easeInCubic&quot; }">locales
@ -333,7 +333,7 @@ network.setOptions(options);
<tr><td id="event_clickToUse">clickToUse</td>
<td>Boolean</td>
<td>false</td>
<td>Locales object. By default only <code>'en'</code>, <code>'es'</code> and <code>'nl'</code> are supported. Take a look
<td>Locales object. By default only <code>'en'</code>, <code>'de'</code>, <code>'es'</code> and <code>'nl'</code> are supported. Take a look
at
the <a href="#locales" data-scroll=""
data-options="{ &quot;easing&quot;: &quot;easeInCubic&quot; }">locales

+ 18
- 0
lib/network/locales.js View File

@ -17,6 +17,24 @@ exports['en'] = {
exports['en_EN'] = exports['en'];
exports['en_US'] = exports['en'];
// German
exports['de'] = {
edit: 'Editieren',
del: 'L\u00f6sche Auswahl',
back: 'Zur\u00fcck',
addNode: 'Knoten hinzuf\u00fcgen',
addEdge: 'Kante hinzuf\u00fcgen',
editNode: 'Knoten editieren',
editEdge: 'Kante editieren',
addDescription: 'Klicke auf eine freie Stelle, um einen neuen Knoten zu plazieren.',
edgeDescription: 'Klicke auf einen Knoten und ziehe die Kante zu einem anderen Knoten, um diese zu verbinden.',
editEdgeDescription: 'Klicke auf die Verbindungspunkte und ziehe diese auf einen Knoten, um sie zu verbinden.',
createEdgeError: 'Es ist nicht m\u00f6glich, Kanten mit Clustern zu verbinden.',
deleteClusterError: 'Cluster k\u00f6nnen nicht gel\u00f6scht werden.',
editClusterError: 'Cluster k\u00f6nnen nicht editiert werden.'
};
exports['de_DE'] = exports['de'];
// Spanish
exports['es'] = {
edit: 'Editar',

Loading…
Cancel
Save