summaryrefslogtreecommitdiff
path: root/web
diff options
context:
space:
mode:
authorJochen Topf <jochen@topf.org>2012-01-24 18:19:39 +0100
committerJochen Topf <jochen@topf.org>2012-01-24 18:19:39 +0100
commit3dadc9377a0ecedec6ae9178da2815376ce97675 (patch)
tree9c9b138212e13b4e3414ab18113ccca481033c30 /web
parent18feb8dd534082fcee839548a137ae158076b841 (diff)
downloadtaginfo-3dadc9377a0ecedec6ae9178da2815376ce97675.tar
taginfo-3dadc9377a0ecedec6ae9178da2815376ce97675.tar.gz
Internationalization tag page
Diffstat (limited to 'web')
-rw-r--r--web/i18n/de.yml16
-rw-r--r--web/i18n/en.yml12
-rw-r--r--web/i18n/fr.yml2
-rw-r--r--web/views/tag.erb4
-rw-r--r--web/viewsjs/tag.js.erb47
5 files changed, 53 insertions, 28 deletions
diff --git a/web/i18n/de.yml b/web/i18n/de.yml
index 0491f57..97efbc2 100644
--- a/web/i18n/de.yml
+++ b/web/i18n/de.yml
@@ -146,8 +146,8 @@ pages:
title: Andere Keys, die mit diesem Key benutzt werden
other: Andere Keys
to_count_tooltip: Anzahl Objekte mit diesem Key, die auch den anderen Key haben.
- other_key_tooltip: Andere Keys, die zusammen mit diesem Key vorkommt.
- from_count_tooltip: Anzahle Objekte mit dem anderen Key, die auch diesen Key haben.
+ other_key_tooltip: Andere Keys, die zusammen mit diesem Key vorkommen.
+ from_count_tooltip: Anzahl Objekte mit dem anderen Key, die auch diesen Key haben.
geographic_distribution:
title: Geographische Verteilung dieses Keys
relations: Relations haben keinen geographischen Ort, daher kann keine Karte angezeigt werden.
@@ -167,9 +167,14 @@ pages:
tag:
description_from_wiki: Beschreibung dieses Tags aus dem Wiki (falls vorhanden in der gewählten Sprache, sonst auf englisch).
no_description_in_wiki: Keine Beschreibung dieses Tags im Wiki.
+ number_objects: Anzahl Objekte
other_tags_used:
title: Tags, die mit diesem Tag zusammen benutzt werden
other: Andere Tags
+ to_count_tooltip: Anzahl Objekte mit diesem Tag, die auch den anderen Tag/Key haben.
+ other_key_tooltip: Andere Tags/Keys, die zusammen mit diesem Tag vorkommen.
+ from_count_tooltip: Anzahl Objekte mit dem anderen Tag, die auch diesen Tag/Key haben.
+ none_found: Keine Kombinationen gefunden (nur die häufigsten Kombinationen wurden geprüft).
combinations:
title: Kombinationen
description: Diese Tabelle zeigt nur die häufigsten Kombinationen der häufigsten Tags.
@@ -178,10 +183,15 @@ pages:
none_found: Keine Wiki-Seiten für diesen Tag vorhanden.
create: Wiki-Seite für diesen Tag anlegen
suggest_key_wiki_page: Vielleicht gibt es auf der Wiki-Seite für den Key %1 mehr Informationen.
- josm_rules:
+ wiki_page: Wiki-Seite
+ implied_tags: Implizite Tags
+ combined_tags: Verbundene Tags
+ linked_tags: Ähnliche Tags
+ josm:
title: JOSM-Stil-Regeln mit diesem Tag
choice: |
Stil auswählen:
+ no_styles: Keine JOSM-Stilregeln für diesen Tag.
flexigrid:
pagetext: Seite
diff --git a/web/i18n/en.yml b/web/i18n/en.yml
index dcfaa93..e737e96 100644
--- a/web/i18n/en.yml
+++ b/web/i18n/en.yml
@@ -163,9 +163,14 @@ pages:
tag:
description_from_wiki: Description of this tag from the wiki (if available in your chosen language, otherwise in English).
no_description_in_wiki: No description for this tag in the wiki.
+ number_objects: Number of objects
other_tags_used:
title: Other tags used together with this tag
other: Other tags
+ to_count_tooltip: Number of objects with this tag that also have the other tag/key.
+ other_key_tooltip: Tags/Keys used together with this tag.
+ from_count_tooltip: Number of objects with other tag/key that also have this tag.
+ none_found: No combinations found (only checked the most common ones).
combinations:
title: Combinations
description: This table shows only the most common combinations of the most common tags.
@@ -174,10 +179,15 @@ pages:
none_found: No wiki page available for this tag.
create: Create wiki page for this tag
suggest_key_wiki_page: Maybe you can find some more information on the wiki page for the key %1.
- josm_rules:
+ wiki_page: Wiki page
+ implied_tags: Implied Tags
+ combined_tags: Combined Tags
+ linked_tags: Linked Tags
+ josm:
title: JOSM style rules with this tag
choice: |
Choose style:
+ no_styles: No JOSM styles for this tag.
flexigrid:
pagetext: Page
diff --git a/web/i18n/fr.yml b/web/i18n/fr.yml
index bb485bb..9a30827 100644
--- a/web/i18n/fr.yml
+++ b/web/i18n/fr.yml
@@ -99,7 +99,7 @@ pages:
no_description_in_wiki: Aucune description dans le wiki
wiki_pages:
title: Pages du wiki sur cette valeur
- josm_rules:
+ josm:
title: Régles de style JOSM sur cette valeur
choice: |
Choix du style :
diff --git a/web/views/tag.erb b/web/views/tag.erb
index cde0024..b113686 100644
--- a/web/views/tag.erb
+++ b/web/views/tag.erb
@@ -50,9 +50,9 @@
<% end %>
</div>
<div id="josm">
- <h2><%= t.pages.key.josm_rules.title %></h2>
+ <h2><%= t.pages.key.josm.title %></h2>
<!-- <form>
- <label for="josm-style"><%= t.pages.tag.josm_rules.choice %></label>
+ <label for="josm-style"><%= t.pages.tag.josm.choice %></label>
<select id="josm-style" name="josm-style">
<option>Standard</option>
</select>
diff --git a/web/viewsjs/tag.js.erb b/web/viewsjs/tag.js.erb
index 070912e..931e0b2 100644
--- a/web/viewsjs/tag.js.erb
+++ b/web/viewsjs/tag.js.erb
@@ -1,10 +1,15 @@
+<%
+ osm = @trans.t.osm
+ misc = @trans.t.misc
+ page = @trans.t.pages.tag
+ %>
var create_flexigrid_for = {
overview: function(key, value, filter_type) {
create_flexigrid('grid-overview', {
url: '/api/3/db/tags/overview?key=' + encodeURIComponent(key) + '&value=' + encodeURIComponent(value),
colModel: [
- { display: 'Type', name: 'type', width: 100, sortable: true },
- { display: 'Number of objects', name: 'count', width: 260, sortable: true, align: 'center' }
+ { display: '<%= misc.object_type %>', name: 'type', width: 100, sortable: true },
+ { display: '<%= page.number_objects %>', name: 'count', width: 260, sortable: true, align: 'center' }
],
usepager: false,
useRp: false,
@@ -26,16 +31,16 @@ var create_flexigrid_for = {
create_flexigrid('grid-combinations', {
url: '/api/2/db/tags/combinations?key=' + encodeURIComponent(key) + '&value=' + encodeURIComponent(value) + '&filter=' + encodeURIComponent(filter_type),
colModel: [
- { display: '<span title="Number of objects with this tag that also have the other tag">' + texts.misc.count + ' &rarr;</span>', name: 'to_count', width: 320, sortable: true, align: 'center' },
- { display: '<span title="Tag used together with this tag">' + texts.pages.tag.other_tags_used.other + '</span>', name: 'other_tag', width: 340, sortable: true },
- { display: '<span title="Number of objects with other tag that also have this tag">&rarr; ' + texts.misc.count + '</span>', name: 'from_count', width: 320, sortable: true, align: 'center' }
+ { display: '<span title="<%= page.other_tags_used.to_count_tooltip %>"><%= misc.count %> &rarr;</span>', name: 'to_count', width: 320, sortable: true, align: 'center' },
+ { display: '<span title="<%= page.other_tags_used.other_key_tooltip %>"><%= page.other_tags_used.other %></span>', name: 'other_tag', width: 340, sortable: true },
+ { display: '<span title="<%= page.other_tags_used.from_count_tooltip %>">&rarr; <%= misc.count %></span>', name: 'from_count', width: 320, sortable: true, align: 'center' }
],
searchitems: [
- { display: 'Other tag', name: 'other_tag' }
+ { display: '<%= page.other_tags_used.other %>', name: 'other_tag' }
],
sortname: 'to_count',
sortorder: 'desc',
- emptymsg: 'No combinations found (only checked the most common ones).',
+ emptymsg: '<%= page.other_tags_used.none_found %>',
preProcess: function(data) {
data.rows = jQuery.map(data.data, function(row, i) {
return { 'cell': [
@@ -52,14 +57,14 @@ var create_flexigrid_for = {
create_flexigrid('grid-wiki', {
url: '/api/2/wiki/tags?key=' + encodeURIComponent(key) + '&value=' + encodeURIComponent(value),
colModel: [
- { display: 'Language', name: 'lang', width: 150, sortable: false },
- { display: 'Wiki page', name: 'title', width: 200, sortable: false, align: 'right' },
- { display: 'Description', name: 'description', width: 400, sortable: false },
- { display: 'Image', name: 'image', width: 120, sortable: false },
- { display: 'Objects', name: 'objects', width: 80, sortable: false },
- { display: 'Implied Tags', name: 'tags_implied', width: 120, sortable: false },
- { display: 'Combined Tags', name: 'tags_combination', width: 120, sortable: false },
- { display: 'Linked Tags', name: 'tags_linked', width: 220, sortable: false }
+ { display: '<%= misc.language %>', name: 'lang', width: 150, sortable: false },
+ { display: '<%= page.wiki_pages.wiki_page %>', name: 'title', width: 200, sortable: false, align: 'right' },
+ { display: '<%= misc.description %>', name: 'description', width: 400, sortable: false },
+ { display: '<%= misc.image %>', name: 'image', width: 120, sortable: false },
+ { display: '<%= misc.objects %>', name: 'objects', width: 80, sortable: false },
+ { display: '<%= page.wiki_pages.implied_tags %>', name: 'tags_implied', width: 120, sortable: false },
+ { display: '<%= page.wiki_pages.combined_tags %>', name: 'tags_combination', width: 120, sortable: false },
+ { display: '<%= page.wiki_pages.linked_tags %>', name: 'tags_linked', width: 220, sortable: false }
],
usepager: false,
useRp: false,
@@ -72,7 +77,7 @@ var create_flexigrid_for = {
print_language(row.lang, row.language, row.language_en),
print_wiki_link(row.title),
row.description,
- row.image == '' ? empty(texts.misc.no_image) : hover_expand(print_wiki_link(row.image)),
+ row.image == '' ? empty('<%= misc.no_image %>') : hover_expand(print_wiki_link(row.image)),
(row.on_node ? '<img src="/img/types/node.16.png" alt="yes"/>' : '<img src="/img/types/none.16.png" alt="no"/>') + ' ' +
(row.on_way ? '<img src="/img/types/way.16.png" alt="yes"/>' : '<img src="/img/types/none.16.png" alt="no"/>') + ' ' +
(row.on_area ? '<img src="/img/types/area.16.png" alt="yes"/>' : '<img src="/img/types/none.16.png" alt="no"/>') + ' ' +
@@ -90,14 +95,14 @@ var create_flexigrid_for = {
create_flexigrid('grid-josm', {
url: '/api/2/josm/styles/standard/tags?key=' + encodeURIComponent(key) + '&value=' + encodeURIComponent(value),
colModel: [
- { display: texts.osm.value, name: 'v', width: 400, sortable: false },
- { display: 'Icon', name: 'icon', width: 30, sortable: false, align: 'center' },
- { display: 'Line', name: 'line', width: 30, sortable: false, align: 'center' },
- { display: 'Area', name: 'area', width: 30, sortable: false, align: 'center' }
+ { display: '<%= osm.value %>', name: 'v', width: 400, sortable: false },
+ { display: '<%= misc.icon %>', name: 'icon', width: 30, sortable: false, align: 'center' },
+ { display: '<%= misc.line %>', name: 'line', width: 30, sortable: false, align: 'center' },
+ { display: '<%= misc.area %>', name: 'area', width: 30, sortable: false, align: 'center' }
],
sortname: 'v',
sortorder: 'asc',
- emptymsg: 'No JOSM styles for this tag.',
+ emptymsg: '<%= page.josm.no_styles %>',
preProcess: function(data) {
data.rows = jQuery.map(data.data, function(row, i) {
return { 'cell': [