diff options
Diffstat (limited to 'web')
-rw-r--r-- | web/i18n/en.yml | 21 | ||||
-rw-r--r-- | web/i18n/fr.yml | 21 | ||||
-rw-r--r-- | web/views/key.erb | 26 |
3 files changed, 54 insertions, 14 deletions
diff --git a/web/i18n/en.yml b/web/i18n/en.yml index f56b3ed..e53b31b 100644 --- a/web/i18n/en.yml +++ b/web/i18n/en.yml @@ -59,7 +59,7 @@ pages: href="http://www.sqlite.org/">Sqlite</a> databases. The database files are then packed with <img src="/img/link-extern.gif" alt=""/><a class="extlink" href="http://www.bzip.org/">bzip2</a>.</p> - <p>If you don't want to download these databases, but need automated access to + <p>If you don t want to download these databases, but need automated access to the data, you can also use the <a href="/about">API</a>.</p> file: File packed: Packed @@ -80,6 +80,25 @@ pages: you_were_searching_for: You were searching for key: no_description_in_wiki: No description in wiki + filter: + label: | + Filter: + none: No filter + nodes: Nodes only + ways: Ways only + relations: Relations only + values_used: Values used with this key + other_keys_used: Other keys used together with this key + geographic_distribution: + title: Geographical distribution of this key + relations: Relations do not have a geographical location, so no map can be shown. + wiki_pages: + title: Wiki pages about this key + none_found: No wiki page available for this key. + josm_rules: + title: JOSM style rules with this key + choice: | + Choose style: tag: no_description_in_wiki: No description in wiki diff --git a/web/i18n/fr.yml b/web/i18n/fr.yml index 6bd2e0f..3b08099 100644 --- a/web/i18n/fr.yml +++ b/web/i18n/fr.yml @@ -76,6 +76,27 @@ pages: you_were_searching_for: Vous recherchez key: no_description_in_wiki: Aucune description dans le wiki + filter: + label: | + Filtre : + none: Désactivé + nodes: Seulement les nodes + ways: Seulement les ways + relations: Seulement les relations + values_used: Valeurs utilisés par cette clé + other_keys_used: Autres clés utilisées avec cette clé + geographic_distribution: + title: Distribution géographique de cette clé + relations: | + Les relations n'ont pas de position géographique: elles ne peuvent donc + pas être affichées sur une carte. + wiki_pages: + title: Pages du wiki sur cette clé + none_found: Aucune page du wiki trouvée. + josm_rules: + title: Régles de style JOSM sur cette clé + choice: | + Choix du style : tag: no_description_in_wiki: Aucune description dans le wiki diff --git a/web/views/key.erb b/web/views/key.erb index 9052449..90c06da 100644 --- a/web/views/key.erb +++ b/web/views/key.erb @@ -17,12 +17,12 @@ </div> <form id="filter-form"> - <label for="filter">Filter:</label> + <label for="filter"><%= t.pages.key.filter.label %></label> <select id="filter" name="filter"> - <option value="all"<%= @sel['all'] %>>No filter</option> - <option value="nodes"<%= @sel['nodes'] %>>Nodes only</option> - <option value="ways"<%= @sel['ways'] %>>Ways only</option> - <option value="relations"<%= @sel['relations'] %>>Relations only</option> + <option value="all"<%= @sel['all'] %>><%= t.pages.key.filter.none %></option> + <option value="nodes"<%= @sel['nodes'] %>><%= t.pages.key.filter.nodes %></option> + <option value="ways"<%= @sel['ways'] %>><%= t.pages.key.filter.ways %></option> + <option value="relations"<%= @sel['relations'] %>><%= t.pages.key.filter.relations %></option> </select> </form> @@ -35,7 +35,7 @@ <li><a href="#josm"><%= t.sources.josm.name %></a></li> </ul> <div id="values"> - <h2>Values used with this key</h2> + <h2><%= t.pages.key.values_used %></h2> <div class="canvas" id="canvas-values" style="position: absolute;"></div> <div style="margin-left: 180px;"> <table id="grid-values"> @@ -43,12 +43,12 @@ </div> </div> <div id="keys"> - <h2>Other keys used together with this key</h2> + <h2><%= t.pages.key.other_keys_used %></h2> <table id="grid-keys"> </table> </div> <div id="map"> - <h2>Geographical distribution of this key</h2> + <h2><%= t.pages.key.geographic_distribution.title %></h2> <% if @filter_type == 'all' %> <div style="background-image: url(<%= TaginfoConfig.get('geodistribution.background_image') %>); background-repeat: no-repeat;"/> <img src="/api/3/db/keys/distribution/nodes?key=<%= @key_uri %>" alt="" width="<%= @img_width %>" height="<%= @img_height %>" style="position: absolute;"/> @@ -63,23 +63,23 @@ <img src="/api/3/db/keys/distribution/ways?key=<%= @key_uri %>" alt="" width="<%= @img_width %>" height="<%= @img_height %>"/> </div> <% elsif @filter_type == 'relations' %> - <p><i>Relations do not have a geographical location, so no map can be shown.</i></p> + <p><i><%= t.pages.key.geographic_distribution.relations %></i></p> <% end %> </div> <div id="wiki"> - <h2>Wiki pages about this key</h2> + <h2><%= t.pages.key.wiki_pages.title %></h2> <% if @wiki_count > 0 %> <table id="grid-wiki"> </table> <% else %> - <p><i>No wiki page available for this key.</i></p> + <p><i><%= t.pages.key.wiki_pages.none_found %>.</i></p> <p>[<a href="http://wiki.openstreetmap.org/w/index.php?action=edit&title=Key:<%= @key_uri %>">Create wiki page</a>]</p> <% end %> </div> <div id="josm"> - <h2>JOSM style rules with this key</h2> + <h2><%= t.pages.key.josm_rules.title %></h2> <form> - <label for="josm-style">Choose style:</label> + <label for="josm-style"><%= t.pages.key.josm_rules.choice %></label> <select id="josm-style" name="josm-style"> <option>Standard</option> </select> |