More progress on ticket:1919
These messages now don't use JavaScript string concatenation but variable interpolation: * browse.start_rjs.history_for_feature * browse.start_rjs.edited_by_user_at_timestamp * browse.start_rjs.object_list.selected.type.node * browse.start_rjs.object_list.selected.type.way * browse.start_rjs.object_list.history.type.node * browse.start_rjs.object_list.history.type.way These previously extant messages have been deleted, merged, and given more descriptive names: * browse.start_rjs.history_for * browse.start_rjs.edited_by * browse.start_rjs.at_timestamp
This commit is contained in:
parent
f9e5cdbb93
commit
cc5694da1c
12 changed files with 37 additions and 48 deletions
|
@ -421,7 +421,7 @@ page << <<EOJ
|
|||
table.appendChild(tr);
|
||||
|
||||
var heading = document.createElement("td");
|
||||
heading.appendChild(document.createTextNode("#{I18n.t('browse.start_rjs.history_for')} " + featureNameHistory(this.feature)));
|
||||
heading.appendChild(document.createTextNode(i18n_js("#{I18n.t('browse.start_rjs.history_for_feature', :feature => '{{feature}}')}", { feature: featureNameHistory(this.feature) })));
|
||||
tr.appendChild(heading);
|
||||
|
||||
var td = document.createElement("td");
|
||||
|
@ -442,7 +442,7 @@ page << <<EOJ
|
|||
var user = nodes[i].getAttribute("user") || "#{I18n.t('browse.start_rjs.private_user')}";
|
||||
var timestamp = nodes[i].getAttribute("timestamp");
|
||||
var item = document.createElement("li");
|
||||
item.appendChild(document.createTextNode("#{I18n.t('browse.start_rjs.edited_by')} " + user + " #{I18n.t('browse.start_rjs.at_timestamp')} " + timestamp));
|
||||
item.appendChild(document.createTextNode(i18n_js("#{I18n.t('browse.start_rjs.edited_by_user_at_timestamp', :user => '{{user}}', :timestamp => '{{timestamp}}')}", { user: user, timestamp: timestamp })));
|
||||
history.appendChild(item);
|
||||
}
|
||||
div.appendChild(history);
|
||||
|
@ -470,9 +470,9 @@ page << <<EOJ
|
|||
if (feature.attributes.name) {
|
||||
return feature.attributes.name;
|
||||
} else if (featureType(feature) == "node") {
|
||||
return "#{I18n.t('browse.start_rjs.object_list.selected.type.node')} " + feature.osm_id;
|
||||
return i18n_js("#{I18n.t('browse.start_rjs.object_list.selected.type.node', :id => '{{id}}')}", { id: feature.osm_id });
|
||||
} else if (featureType(feature) == "way") {
|
||||
return "#{I18n.t('browse.start_rjs.object_list.selected.type.way')} " + feature.osm_id;
|
||||
return i18n_js("#{I18n.t('browse.start_rjs.object_list.selected.type.way', :id => '{{id}}')}", { id: feature.osm_id });
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -480,9 +480,9 @@ page << <<EOJ
|
|||
if (feature.attributes.name) {
|
||||
return feature.attributes.name;
|
||||
} else if (featureType(feature) == "node") {
|
||||
return "#{I18n.t('browse.start_rjs.object_list.history.type.node')} " + feature.osm_id;
|
||||
return i18n_js("#{I18n.t('browse.start_rjs.object_list.history.type.node', :id => '{{id}}')}", { id: feature.osm_id });
|
||||
} else if (featureType(feature) == "way") {
|
||||
return "#{I18n.t('browse.start_rjs.object_list.history.type.way')} " + feature.osm_id;
|
||||
return i18n_js("#{I18n.t('browse.start_rjs.object_list.history.type.way', :id => '{{id}}')}", { id: feature.osm_id });
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -155,11 +155,10 @@ de:
|
|||
loading: "Laden..."
|
||||
show_history: "Chronik"
|
||||
wait: "Verarbeiten..."
|
||||
history_for: "Chronik für"
|
||||
history_for_feature: "Chronik für {{feature}}"
|
||||
details: "Details"
|
||||
private_user: "Anonymer Benutzer"
|
||||
edited_by: "Bearbeitet von"
|
||||
at_timestamp: "am"
|
||||
edited_by_user_at_timestamp: "Bearbeitet von {{user}} am {{timestamp}}"
|
||||
tag_details:
|
||||
tags: "Tags:"
|
||||
way_details:
|
||||
|
|
|
@ -155,11 +155,10 @@ en:
|
|||
loading: "Loading..."
|
||||
show_history: "Show History"
|
||||
wait: "Wait..."
|
||||
history_for: "History for"
|
||||
history_for_feature: "History for {{feature}}"
|
||||
details: "Details"
|
||||
private_user: "private user"
|
||||
edited_by: "Edited by"
|
||||
at_timestamp: "at"
|
||||
edited_by_user_at_timestamp: "Edited by {{user}} at {{timestamp}}"
|
||||
object_list:
|
||||
heading: "Object list"
|
||||
back: "Display object list"
|
||||
|
@ -171,13 +170,13 @@ en:
|
|||
details: "Details"
|
||||
selected:
|
||||
type:
|
||||
node: "Node"
|
||||
way: "Way"
|
||||
node: "Node {{id}}"
|
||||
way: "Way {{id}}"
|
||||
# There's no 'relation' type because it isn't represented in OpenLayers
|
||||
history:
|
||||
type:
|
||||
node: "Node"
|
||||
way: "Way"
|
||||
node: "Node {{id}}"
|
||||
way: "Way {{id}}"
|
||||
# There's no 'relation' type because it isn't represented in OpenLayers
|
||||
tag_details:
|
||||
tags: "Tags:"
|
||||
|
|
|
@ -70,11 +70,10 @@ fr:
|
|||
loading: "Chargement..."
|
||||
show_history: "Montrer l'historique"
|
||||
wait: "Patienter..."
|
||||
history_for: "Historique pour"
|
||||
history_for_feature: "Historique pour {{feature}}"
|
||||
details: "Détails"
|
||||
private_user: "utilisateur privé"
|
||||
edited_by: "Édité par"
|
||||
at_timestamp: "le"
|
||||
edited_by_user_at_timestamp: "Édité par {{user}} le {{timestamp}}"
|
||||
diary_entry:
|
||||
new:
|
||||
title: "Nouvelle entrée du journal"
|
||||
|
|
|
@ -151,11 +151,10 @@ he:
|
|||
loading: "Loading..."
|
||||
show_history: "Show History"
|
||||
wait: "Wait..."
|
||||
history_for: "History for"
|
||||
history_for_feature: "History for {{feature}}"
|
||||
details: "Details"
|
||||
private_user: "private user"
|
||||
edited_by: "Edited by"
|
||||
at_timestamp: "at"
|
||||
edited_by_user_at_timestamp: "Edited by {{user}} at {{timestamp}}"
|
||||
tag_details:
|
||||
tags: "Tags:"
|
||||
way_details:
|
||||
|
|
|
@ -155,11 +155,10 @@ is:
|
|||
loading: "Hleð inn gögnum..."
|
||||
show_history: "Sýna breytingarsögu"
|
||||
wait: "Augnablik..."
|
||||
history_for: "Breytingarskrá fyrir"
|
||||
history_for_feature: "Breytingarskrá fyrir {{feature}}"
|
||||
details: "Nánar"
|
||||
private_user: "private user"
|
||||
edited_by: "Breytt af"
|
||||
at_timestamp: "klukkan"
|
||||
private_user: "ónafngreindum"
|
||||
edited_by_user_at_timestamp: "Breytt af {{user}} klukkan {{timestamp}}"
|
||||
object_list:
|
||||
heading: "Hlutir"
|
||||
back: "Aftur á listann yfir hluti á þessu svæði"
|
||||
|
@ -170,13 +169,13 @@ is:
|
|||
details: "Nánar"
|
||||
selected:
|
||||
type:
|
||||
node: "Hnútur"
|
||||
way: "Vegur"
|
||||
node: "Hnútur {{id}}"
|
||||
way: "Vegur {{id}}"
|
||||
# There's no 'relation' type because it isn't represented in OpenLayers
|
||||
history:
|
||||
type:
|
||||
node: "hnút"
|
||||
way: "veg"
|
||||
node: "hnút {{id}}"
|
||||
way: "veg {{id}}"
|
||||
# There's no 'relation' type because it isn't represented in OpenLayers
|
||||
tag_details:
|
||||
tags: "Eigindi:"
|
||||
|
|
|
@ -151,11 +151,10 @@ it:
|
|||
loading: "Caricamento in corso..."
|
||||
show_history: "Visualizza storico"
|
||||
wait: "Attendere..."
|
||||
history_for: "Storico per"
|
||||
history_for_feature: "Storico per {{feature}}"
|
||||
details: "Dettagli"
|
||||
private_user: "utente privato"
|
||||
edited_by: "Modificato da"
|
||||
at_timestamp: "il"
|
||||
edited_by_user_at_timestamp: "Modificato da {{user}} il {{timestamp}}"
|
||||
tag_details:
|
||||
tags: "Etichette:"
|
||||
way_details:
|
||||
|
|
|
@ -151,11 +151,10 @@ nl:
|
|||
loading: "Laden..."
|
||||
show_history: "Geschiedenis weergeven"
|
||||
wait: "Een ogenblik geduld a.u.b..."
|
||||
history_for: "Geschiedenis voor"
|
||||
history_for_feature: "Geschiedenis voor {{feature}}"
|
||||
details: "Details"
|
||||
private_user: "private user" #to be translated
|
||||
edited_by: "Bewerkt door"
|
||||
at_timestamp: "op"
|
||||
edited_by_user_at_timestamp: "Bewerkt door {{user}} op {{timestamp}}"
|
||||
tag_details:
|
||||
tags: "Tags:"
|
||||
way_details:
|
||||
|
|
|
@ -151,11 +151,10 @@ pl:
|
|||
loading: "Wczytywanie..."
|
||||
show_history: "Pokaż zmiany"
|
||||
wait: "Moment..."
|
||||
history_for: "Historia zmian dla"
|
||||
history_for_feature: "Historia zmian dla {{feature}}"
|
||||
details: "Szczegóły"
|
||||
private_user: "prywatny użytkownika"
|
||||
edited_by: "Edytowany przez"
|
||||
at_timestamp: "ostatni raz"
|
||||
edited_by_user_at_timestamp: "Edytowany przez {{user}} ostatni raz {{timestamp}}"
|
||||
tag_details:
|
||||
tags: "Tagi:"
|
||||
way_details:
|
||||
|
|
|
@ -151,11 +151,10 @@ ru:
|
|||
loading: "Загрузка..."
|
||||
show_history: "Показать историю"
|
||||
wait: "Подождите..."
|
||||
history_for: "История"
|
||||
history_for_feature: "История {{feature}}"
|
||||
details: "Детали"
|
||||
private_user: "частный пользователь"
|
||||
edited_by: "Изменен"
|
||||
at_timestamp: "в"
|
||||
edited_by_user_at_timestamp: "Изменен {{user}} в {{timestamp}}"
|
||||
tag_details:
|
||||
tags: "Теги:"
|
||||
way_details:
|
||||
|
|
|
@ -151,11 +151,10 @@ sl:
|
|||
loading: "Nalaganje..."
|
||||
show_history: "Prikaži zgodovino"
|
||||
wait: "Počakajte..."
|
||||
history_for: "Zgodovina"
|
||||
history_for_feature: "Zgodovina {{feature}}"
|
||||
details: "Podrobnosti"
|
||||
private_user: "anonimni uporabnik"
|
||||
edited_by: "Uredil"
|
||||
at_timestamp: "ob"
|
||||
edited_by_user_at_timestamp: "Uredil {{user}} ob {{timestamp}}"
|
||||
tag_details:
|
||||
tags: "Oznake:"
|
||||
way_details:
|
||||
|
|
|
@ -151,11 +151,10 @@
|
|||
loading: "读取中"
|
||||
show_history: "显示历史"
|
||||
wait: "等待中..."
|
||||
history_for: "历史"
|
||||
history_for_feature: "历史 {{feature}}"
|
||||
details: "细节"
|
||||
private_user: "个人用户"
|
||||
edited_by: "Edited by"
|
||||
at_timestamp: "at"
|
||||
edited_by_user_at_timestamp: "Edited by {{user}} at {{timestamp}}"
|
||||
tag_details:
|
||||
tags: "标签:"
|
||||
way_details:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue