mirror of
https://github.com/FoggedLens/iD.git
synced 2026-03-13 14:46:01 +00:00
Revert t function to returning the plain string by default
Add `t.html` function for getting the string with the `lang` attribute
This commit is contained in:
@@ -223,7 +223,7 @@ export function uiCommit(context) {
|
||||
.append('div')
|
||||
.attr('class', 'header-block')
|
||||
.append('h3')
|
||||
.html(t('commit.title'));
|
||||
.html(t.html('commit.title'));
|
||||
|
||||
headerTitle
|
||||
.append('div')
|
||||
@@ -283,7 +283,7 @@ export function uiCommit(context) {
|
||||
prose = prose.enter()
|
||||
.append('p')
|
||||
.attr('class', 'commit-info')
|
||||
.html(t('commit.upload_explanation'))
|
||||
.html(t.html('commit.upload_explanation'))
|
||||
.merge(prose);
|
||||
|
||||
// always check if this has changed, but only update prose.html()
|
||||
@@ -311,7 +311,7 @@ export function uiCommit(context) {
|
||||
.attr('target', '_blank');
|
||||
|
||||
prose
|
||||
.html(t('commit.upload_explanation_with_user', { user: userLink.html() }));
|
||||
.html(t.html('commit.upload_explanation_with_user', { user: userLink.html() }));
|
||||
});
|
||||
|
||||
|
||||
@@ -337,7 +337,7 @@ export function uiCommit(context) {
|
||||
|
||||
labelEnter
|
||||
.append('span')
|
||||
.html(t('commit.request_review'));
|
||||
.html(t.html('commit.request_review'));
|
||||
|
||||
// Update
|
||||
requestReview = requestReview
|
||||
@@ -362,7 +362,7 @@ export function uiCommit(context) {
|
||||
.attr('class', 'secondary-action button cancel-button')
|
||||
.append('span')
|
||||
.attr('class', 'label')
|
||||
.html(t('commit.cancel'));
|
||||
.html(t.html('commit.cancel'));
|
||||
|
||||
var uploadButton = buttonEnter
|
||||
.append('button')
|
||||
@@ -370,7 +370,7 @@ export function uiCommit(context) {
|
||||
|
||||
uploadButton.append('span')
|
||||
.attr('class', 'label')
|
||||
.html(t('commit.save'));
|
||||
.html(t.html('commit.save'));
|
||||
|
||||
var uploadBlockerTooltipText = getUploadBlockerMessage();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user