From eb9876c2deb9cfe3e1c0946c17683a00dfd7b1b8 Mon Sep 17 00:00:00 2001 From: John Firebaugh Date: Wed, 22 Oct 2014 11:16:26 -0700 Subject: [PATCH] Use interpolation rather than concatenation --- data/core.yaml | 2 +- dist/locales/en.json | 2 +- js/id/ui/commit.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/data/core.yaml b/data/core.yaml index 324c39ca5..1cc2feab8 100644 --- a/data/core.yaml +++ b/data/core.yaml @@ -184,7 +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 + changes: "{count} Changes" warnings: Warnings modified: Modified deleted: Deleted diff --git a/dist/locales/en.json b/dist/locales/en.json index a26e6bcf5..feabccf91 100644 --- a/dist/locales/en.json +++ b/dist/locales/en.json @@ -231,7 +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", + "changes": "{count} Changes", "warnings": "Warnings", "modified": "Modified", "deleted": "Deleted", diff --git a/js/id/ui/commit.js b/js/id/ui/commit.js index fb9ddaba0..6b4cb364a 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 + ' ' + t('commit.changes')); + .text(t('commit.changes', {count: summary.length})); var li = changeSection.append('ul') .attr('class', 'changeset-list')