mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-28 10:51:45 +02: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:
@@ -107,7 +107,7 @@ export function operationCircularize(context, selectedIDs) {
|
||||
|
||||
|
||||
operation.id = 'circularize';
|
||||
operation.keys = [t('operations.circularize.key', { html: false })];
|
||||
operation.keys = [t('operations.circularize.key')];
|
||||
operation.title = t('operations.circularize.title');
|
||||
operation.behavior = behaviorOperation(context).which(operation);
|
||||
|
||||
|
||||
@@ -65,7 +65,7 @@ export function operationContinue(context, selectedIDs) {
|
||||
|
||||
|
||||
operation.id = 'continue';
|
||||
operation.keys = [t('operations.continue.key', { html: false })];
|
||||
operation.keys = [t('operations.continue.key')];
|
||||
operation.title = t('operations.continue.title');
|
||||
operation.behavior = behaviorOperation(context).which(operation);
|
||||
|
||||
|
||||
@@ -183,7 +183,7 @@ export function operationDisconnect(context, selectedIDs) {
|
||||
|
||||
|
||||
operation.id = 'disconnect';
|
||||
operation.keys = [t('operations.disconnect.key', { html: false })];
|
||||
operation.keys = [t('operations.disconnect.key')];
|
||||
operation.title = t('operations.disconnect.title');
|
||||
operation.behavior = behaviorOperation(context).which(operation);
|
||||
|
||||
|
||||
@@ -84,7 +84,7 @@ export function operationExtract(context, selectedIDs) {
|
||||
|
||||
|
||||
operation.id = 'extract';
|
||||
operation.keys = [t('operations.extract.key', { html: false })];
|
||||
operation.keys = [t('operations.extract.key')];
|
||||
operation.title = t('operations.extract.title');
|
||||
operation.behavior = behaviorOperation(context).which(operation);
|
||||
|
||||
|
||||
@@ -88,7 +88,7 @@ export function operationMerge(context, selectedIDs) {
|
||||
};
|
||||
|
||||
operation.id = 'merge';
|
||||
operation.keys = [t('operations.merge.key', { html: false })];
|
||||
operation.keys = [t('operations.merge.key')];
|
||||
operation.title = t('operations.merge.title');
|
||||
operation.behavior = behaviorOperation(context).which(operation);
|
||||
|
||||
|
||||
@@ -72,7 +72,7 @@ export function operationMove(context, selectedIDs) {
|
||||
|
||||
|
||||
operation.id = 'move';
|
||||
operation.keys = [t('operations.move.key', { html: false })];
|
||||
operation.keys = [t('operations.move.key')];
|
||||
operation.title = t('operations.move.title');
|
||||
operation.behavior = behaviorOperation(context).which(operation);
|
||||
|
||||
|
||||
@@ -130,7 +130,7 @@ export function operationOrthogonalize(context, selectedIDs) {
|
||||
|
||||
|
||||
operation.id = 'orthogonalize';
|
||||
operation.keys = [t('operations.orthogonalize.key', { html: false })];
|
||||
operation.keys = [t('operations.orthogonalize.key')];
|
||||
operation.title = t('operations.orthogonalize.title');
|
||||
operation.behavior = behaviorOperation(context).which(operation);
|
||||
|
||||
|
||||
@@ -69,7 +69,7 @@ export function operationReverse(context, selectedIDs) {
|
||||
|
||||
|
||||
operation.id = 'reverse';
|
||||
operation.keys = [t('operations.reverse.key', { html: false })];
|
||||
operation.keys = [t('operations.reverse.key')];
|
||||
operation.title = t('operations.reverse.title');
|
||||
operation.behavior = behaviorOperation(context).which(operation);
|
||||
|
||||
|
||||
@@ -72,7 +72,7 @@ export function operationRotate(context, selectedIDs) {
|
||||
|
||||
|
||||
operation.id = 'rotate';
|
||||
operation.keys = [t('operations.rotate.key', { html: false })];
|
||||
operation.keys = [t('operations.rotate.key')];
|
||||
operation.title = t('operations.rotate.title');
|
||||
operation.behavior = behaviorOperation(context).which(operation);
|
||||
|
||||
|
||||
@@ -63,7 +63,7 @@ export function operationSplit(context, selectedIDs) {
|
||||
|
||||
|
||||
operation.id = 'split';
|
||||
operation.keys = [t('operations.split.key', { html: false })];
|
||||
operation.keys = [t('operations.split.key')];
|
||||
operation.title = t('operations.split.title');
|
||||
operation.behavior = behaviorOperation(context).which(operation);
|
||||
|
||||
|
||||
@@ -135,7 +135,7 @@ export function operationStraighten(context, selectedIDs) {
|
||||
|
||||
|
||||
operation.id = 'straighten';
|
||||
operation.keys = [t('operations.straighten.key', { html: false })];
|
||||
operation.keys = [t('operations.straighten.key')];
|
||||
operation.title = t('operations.straighten.title');
|
||||
operation.behavior = behaviorOperation(context).which(operation);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user