From 6d3d00e78d70deedac194361431818b3cd7165af Mon Sep 17 00:00:00 2001 From: John Firebaugh Date: Tue, 12 Feb 2013 20:02:35 -0800 Subject: [PATCH] inspector translation --- js/id/ui/inspector.js | 37 ++++++++++++++++++++++--------------- locale/da.js | 3 ++- locale/de.js | 3 ++- locale/en.js | 3 ++- locale/es.js | 3 ++- locale/fr.js | 3 ++- locale/ja.js | 3 ++- locale/lv.js | 3 ++- locale/tr.js | 3 ++- 9 files changed, 38 insertions(+), 23 deletions(-) diff --git a/js/id/ui/inspector.js b/js/id/ui/inspector.js index 1b1c78be6..bc15cdbb4 100644 --- a/js/id/ui/inspector.js +++ b/js/id/ui/inspector.js @@ -27,15 +27,19 @@ iD.ui.Inspector = function() { tagList = inspectorwrap.append('ul'); var newTag = inspectorwrap.append('button') - .attr('class', 'add-tag'); + .attr('class', 'add-tag'); - newTag.on('click', function() { - addTag(); - focusNewKey(); - }); + newTag.on('click', function () { + addTag(); + focusNewKey(); + }); - newTag.append('span').attr('class', 'icon icon-pre-text plus'); - newTag.append('span').attr('class','label').text(t('inspector.new_tag')); + newTag.append('span') + .attr('class', 'icon icon-pre-text plus'); + + newTag.append('span') + .attr('class', 'label') + .text(t('inspector.new_tag')); drawTags(entity.tags); @@ -62,17 +66,20 @@ iD.ui.Inspector = function() { var entity = selection.datum(); var inspectorButton = selection.append('button') - .attr('class', 'apply action') - .on('click', apply); + .attr('class', 'apply action') + .on('click', apply); - inspectorButton.append('span').attr('class','label').text(t('inspector.okay')); + inspectorButton.append('span') + .attr('class','label') + .text(t('inspector.okay')); - var minorButtons = selection.append('div').attr('class','minor-buttons fl'); + var minorButtons = selection.append('div') + .attr('class','minor-buttons fl'); - minorButtons.append('a') - .attr('href', 'http://www.openstreetmap.org/browse/' + entity.type + '/' + entity.osmId()) - .attr('target', '_blank') - .text('View on OSM'); + minorButtons.append('a') + .attr('href', 'http://www.openstreetmap.org/browse/' + entity.type + '/' + entity.osmId()) + .attr('target', '_blank') + .text(t('inspector.view_on_osm')); } function drawTags(tags) { diff --git a/locale/da.js b/locale/da.js index 199cc2f5d..6f7e85d0b 100644 --- a/locale/da.js +++ b/locale/da.js @@ -178,7 +178,8 @@ locale.da = { no_documentation_key: "Der er ingen dokumenation tilgængelig for denne nøgle", new_tag: "Nyt Tag", edit_tags: "Ret tags", - okay: "Ok" + okay: "Ok", + view_on_osm: "View on OSM" }, save: { diff --git a/locale/de.js b/locale/de.js index 71d94c9f3..5291fb3aa 100644 --- a/locale/de.js +++ b/locale/de.js @@ -170,7 +170,8 @@ locale.de = { no_documentation_key: "Für dises Schlüsselwort ist keine Dokumentation verfügbar", new_tag: "Neues Attribut", edit_tags: "Attribute bearbeiten", - okay: "OK" + okay: "OK", + view_on_osm: "View on OSM" }, layerswitcher: { diff --git a/locale/en.js b/locale/en.js index 7e3534f71..015e4193c 100644 --- a/locale/en.js +++ b/locale/en.js @@ -170,7 +170,8 @@ locale.en = { no_documentation_key: "There is no documentation available for this key", new_tag: "New Tag", edit_tags: "Edit tags", - okay: "Okay" + okay: "Okay", + view_on_osm: "View on OSM" }, layerswitcher: { diff --git a/locale/es.js b/locale/es.js index e82e4c465..adc2150c9 100644 --- a/locale/es.js +++ b/locale/es.js @@ -170,7 +170,8 @@ locale.es = { no_documentation_key: "No hay documentación disponible para esta tecla", //"This is no documentation available for this key", new_tag: "Nueve etiqueta", //"New Tag" edit_tags: "Editar etiquetas", //"Edit tags", - okay: "OK" //"Okay", + okay: "OK", + view_on_osm: "View on OSM" }, layerswitcher: { diff --git a/locale/fr.js b/locale/fr.js index da6e54cf3..f0ddce52c 100644 --- a/locale/fr.js +++ b/locale/fr.js @@ -170,7 +170,8 @@ locale.fr = { no_documentation_key: "Aucune documentation n'est disponible pour cette clé", new_tag: "Nouveau tag", edit_tags: "Editer les tags", - okay: "Okay" + okay: "Okay", + view_on_osm: "View on OSM" }, layerswitcher: { diff --git a/locale/ja.js b/locale/ja.js index fa4297828..f2c1839a5 100644 --- a/locale/ja.js +++ b/locale/ja.js @@ -170,7 +170,8 @@ locale.ja = { no_documentation_key: "このキーに対する説明文はありません", new_tag: "新規タグ", edit_tags: "タグを編集", - okay: "OK" + okay: "OK", + view_on_osm: "View on OSM" }, layerswitcher: { diff --git a/locale/lv.js b/locale/lv.js index 60f9136ff..36d93c4aa 100644 --- a/locale/lv.js +++ b/locale/lv.js @@ -170,7 +170,8 @@ locale.lv = { no_documentation_key: "There is no documentation available for this key", new_tag: "Jauns apzīmējums", edit_tags: "Rediģēt apzīmējumus", - okay: "Labi" + okay: "Labi", + view_on_osm: "View on OSM" }, layerswitcher: { diff --git a/locale/tr.js b/locale/tr.js index 1274cf221..a26542333 100644 --- a/locale/tr.js +++ b/locale/tr.js @@ -170,7 +170,8 @@ locale.tr = { no_documentation_key: "Bu anahtar için dökümantasyon bulunmamaktadır.", new_tag: "Yeni Etiket", edit_tags: "Etiketleri güncelle", - okay: "Tamam" + okay: "Tamam", + view_on_osm: "View on OSM" }, layerswitcher: {