Make node/way/relation which is fed into the the 'browse.not_found.sorry' message translatable
This commit is contained in:
parent
e2cb38cd6e
commit
ae7f3f2786
3 changed files with 17 additions and 2 deletions
|
@ -1 +1,8 @@
|
|||
<p><%= t'browse.not_found.sorry', :type=> @type , :id => params[:id] %></p>
|
||||
<%
|
||||
browse_not_found_type = {
|
||||
'node' => I18n.t('browse.not_found.type.node'),
|
||||
'way' => I18n.t('browse.not_found.type.way'),
|
||||
'relation' => I18n.t('browse.not_found.type.relation'),
|
||||
};
|
||||
%>
|
||||
<p><%= t'browse.not_found.sorry', :type=> browse_not_found_type[@type] , :id => params[:id] %></p>
|
||||
|
|
|
@ -120,6 +120,10 @@ en:
|
|||
view_history: "view history"
|
||||
not_found:
|
||||
sorry: "Sorry, the {{type}} with the id {{id}}, could not be found."
|
||||
type:
|
||||
node: node
|
||||
way: way
|
||||
relation: relation
|
||||
paging_nav:
|
||||
showing_page: "Showing page"
|
||||
of: "of"
|
||||
|
|
|
@ -119,7 +119,11 @@ is:
|
|||
download_xml: "Hala niður á XML sniði"
|
||||
view_history: "sýna breytingarsögu"
|
||||
not_found:
|
||||
sorry: "Sorry, the {{type}} with the id {{id}}, could not be found."
|
||||
sorry: "Því miður {{type}} með kennitöluna {{id}}."
|
||||
type:
|
||||
node: fannst ekki hnútur
|
||||
way: fannst ekki vegur
|
||||
relation: fundust ekki vensli
|
||||
paging_nav:
|
||||
showing_page: "Sýni síðu"
|
||||
of: "af"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue