Browse Source

Merge pull request #1242 from gomezgoiri/master

Adding new Spanish locale
webworkersNetwork
Jos de Jong 9 years ago
parent
commit
e24861f40b
2 changed files with 21 additions and 3 deletions
  1. +3
    -3
      docs/network/index.html
  2. +18
    -0
      lib/network/locales.js

+ 3
- 3
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> and <code>'nl'</code> are supported. Take a look
<td>Locales object. By default only <code>'en'</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> and <code>'nl'</code> are supported. Take a look
<td>Locales object. By default only <code>'en'</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
@ -1557,4 +1557,4 @@ var network = new vis.Network(container, data, options);
<script src="../js/tipuesearch.config.js"></script>
<script src="../js/tipuesearch.js"></script>
<!-- controller -->
<script src="../js/main.js"></script>
<script src="../js/main.js"></script>

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

@ -17,6 +17,24 @@ exports['en'] = {
exports['en_EN'] = exports['en'];
exports['en_US'] = exports['en'];
// Spanish
exports['es'] = {
edit: 'Editar',
del: 'Eliminar selecci\u00f3n',
back: '\u00c1tras',
addNode: 'A\u00f1adir nodo',
addEdge: 'A\u00f1adir arista',
editNode: 'Editar nodo',
editEdge: 'Editar arista',
addDescription: 'Haga clic en un lugar vac\u00edo para colocar un nuevo nodo.',
edgeDescription: 'Haga clic en un nodo y arrastre la arista hacia otro nodo para conectarlos.',
editEdgeDescription: 'Haga clic en un punto de control y arrastrelo a un nodo para conectarlo.',
createEdgeError: 'No se puede conectar una arista a un grupo.',
deleteClusterError: 'No es posible eliminar grupos.',
editClusterError: 'No es posible editar grupos.'
};
exports['es_ES'] = exports['es'];
// Dutch
exports['nl'] = {
edit: 'Wijzigen',

Loading…
Cancel
Save