From 712f533212d9efadc520ae8b13d0ed81b178a077 Mon Sep 17 00:00:00 2001 From: Bryan Housel Date: Wed, 22 Oct 2014 10:27:59 -0400 Subject: [PATCH] Translate text in changes section on save panel. (fixes #2417) --- data/core.yaml | 1 + dist/locales/en.json | 1 + js/id/ui/commit.js | 4 ++-- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/data/core.yaml b/data/core.yaml index 1e5eb737e..324c39ca5 100644 --- a/data/core.yaml +++ b/data/core.yaml @@ -184,6 +184,7 @@ en: upload_explanation_with_user: "The changes you upload as {user} will be visible on all maps that use OpenStreetMap data." save: Save cancel: Cancel + changes: Changes warnings: Warnings modified: Modified deleted: Deleted diff --git a/dist/locales/en.json b/dist/locales/en.json index 35fed826b..a26e6bcf5 100644 --- a/dist/locales/en.json +++ b/dist/locales/en.json @@ -231,6 +231,7 @@ "upload_explanation_with_user": "The changes you upload as {user} will be visible on all maps that use OpenStreetMap data.", "save": "Save", "cancel": "Cancel", + "changes": "Changes", "warnings": "Warnings", "modified": "Modified", "deleted": "Deleted", diff --git a/js/id/ui/commit.js b/js/id/ui/commit.js index 11acb146d..fb9ddaba0 100644 --- a/js/id/ui/commit.js +++ b/js/id/ui/commit.js @@ -134,7 +134,7 @@ iD.ui.Commit = function(context) { .attr('class', 'commit-section modal-section fillL2'); changeSection.append('h3') - .text(summary.length + ' Changes'); + .text(summary.length + ' ' + t('commit.changes')); var li = changeSection.append('ul') .attr('class', 'changeset-list') @@ -154,7 +154,7 @@ iD.ui.Commit = function(context) { li.append('span') .attr('class', 'change-type') .text(function(d) { - return d.changeType + ' '; + return t('commit.' + d.changeType) + ' '; }); li.append('strong')