From 8882023e5b6029e335a3c32e9a51a14b75d9e6d1 Mon Sep 17 00:00:00 2001 From: John Firebaugh Date: Tue, 12 Feb 2013 19:59:32 -0800 Subject: [PATCH] tag_reference translations --- js/id/ui/tag_reference.js | 5 +++-- locale/da.js | 4 +++- locale/de.js | 4 +++- locale/en.js | 4 +++- locale/es.js | 4 +++- locale/fr.js | 4 +++- locale/ja.js | 4 +++- locale/lv.js | 4 +++- locale/tr.js | 4 +++- 9 files changed, 27 insertions(+), 10 deletions(-) diff --git a/js/id/ui/tag_reference.js b/js/id/ui/tag_reference.js index dc583b932..8a8ea2041 100644 --- a/js/id/ui/tag_reference.js +++ b/js/id/ui/tag_reference.js @@ -11,7 +11,7 @@ iD.ui.tagReference = function(selection) { .enter() .append('span') .attr('title', function(d) { - return 'used with ' + d; + return t('tag_reference.used_with', {type: d}); }) .attr('class', function(d) { return 'icon big icon-pre-text big-' + d; @@ -36,6 +36,7 @@ iD.ui.tagReference = function(selection) { referenceBody .append('p') .text(g('description')); + referenceBody .append('a') .attr('target', '_blank') @@ -43,7 +44,7 @@ iD.ui.tagReference = function(selection) { return 'http://wiki.openstreetmap.org/wiki/' + d.title; }) .text(function(d) { - return d.title + ' on wiki.osm.org'; + return t('tag_reference.on_wiki', {tag: d.title}); }); }); }; diff --git a/locale/da.js b/locale/da.js index 17b75c340..199cc2f5d 100644 --- a/locale/da.js +++ b/locale/da.js @@ -195,7 +195,9 @@ locale.da = { }, tag_reference: { - description: "Description" + description: "Description", + on_wiki: "{tag} on wiki.osm.org", + used_with: "used with {type}" }, zoom: { diff --git a/locale/de.js b/locale/de.js index 60f4c6155..71d94c9f3 100644 --- a/locale/de.js +++ b/locale/de.js @@ -195,7 +195,9 @@ locale.de = { }, tag_reference: { - description: "Beschreibung" + description: "Beschreibung", + on_wiki: "{tag} on wiki.osm.org", + used_with: "used with {type}" }, validations: { diff --git a/locale/en.js b/locale/en.js index 9060f7b66..7e3534f71 100644 --- a/locale/en.js +++ b/locale/en.js @@ -195,7 +195,9 @@ locale.en = { }, tag_reference: { - description: 'Description' + description: "Description", + on_wiki: "{tag} on wiki.osm.org", + used_with: "used with {type}" }, validations: { diff --git a/locale/es.js b/locale/es.js index c440429db..e82e4c465 100644 --- a/locale/es.js +++ b/locale/es.js @@ -195,7 +195,9 @@ locale.es = { }, tag_reference: { - description: "Descripción" //"Description", + description: "Descripción", + on_wiki: "{tag} on wiki.osm.org", + used_with: "used with {type}" }, validations: { diff --git a/locale/fr.js b/locale/fr.js index d6c36189a..da6e54cf3 100644 --- a/locale/fr.js +++ b/locale/fr.js @@ -195,7 +195,9 @@ locale.fr = { }, tag_reference: { - description: "Déscription" + description: "Déscription", + on_wiki: "{tag} on wiki.osm.org", + used_with: "used with {type}" }, validations: { diff --git a/locale/ja.js b/locale/ja.js index 61b76ace5..fa4297828 100644 --- a/locale/ja.js +++ b/locale/ja.js @@ -195,7 +195,9 @@ locale.ja = { }, tag_reference: { - description: "説明" + description: "説明", + on_wiki: "{tag} on wiki.osm.org", + used_with: "used with {type}" }, validations: { diff --git a/locale/lv.js b/locale/lv.js index 3a799c2a9..60f9136ff 100644 --- a/locale/lv.js +++ b/locale/lv.js @@ -195,7 +195,9 @@ locale.lv = { }, tag_reference: { - description: "Apraksts" + description: "Apraksts", + on_wiki: "{tag} on wiki.osm.org", + used_with: "used with {type}" }, validations: { diff --git a/locale/tr.js b/locale/tr.js index f212ca373..1274cf221 100644 --- a/locale/tr.js +++ b/locale/tr.js @@ -195,7 +195,9 @@ locale.tr = { }, tag_reference: { - description: "Açıklama" + description: "Açıklama", + on_wiki: "{tag} on wiki.osm.org", + used_with: "used with {type}" }, validations: {