Do not translate the samples themselves

Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
Joas Schilling 2016-09-26 10:30:08 +02:00
parent 73cb19ca0d
commit 968dc876b2
No known key found for this signature in database
GPG Key ID: E166FD8976B3BAC8
3 changed files with 6 additions and 6 deletions

View File

@ -41,9 +41,9 @@
return;
}
var placeholder = t('workflowengine', 'text/plain');
var placeholder = 'text/plain';
if (check['operator'] === 'matches' || check['operator'] === '!matches') {
placeholder = t('workflowengine', '/^text\\/(plain|html)$/i');
placeholder = '/^text\\/(plain|html)$/i';
if (this._validateRegex(check['value'])) {
$(element).removeClass('invalid-input');

View File

@ -42,10 +42,10 @@
return;
}
var placeholder = t('workflowengine', 'https://localhost/index.php');
var placeholder = 'https://localhost/index.php';
if (check['operator'] === 'matches' || check['operator'] === '!matches') {
placeholder = t('workflowengine', '/^https\\:\\/\\/localhost\\/index\\.php$/i');
placeholder = '/^https\\:\\/\\/localhost\\/index\\.php$/i';
}
$(element).css('width', '250px')

View File

@ -42,10 +42,10 @@
return;
}
var placeholder = t('workflowengine', 'Mozilla/5.0 User Agent');
var placeholder = 'Mozilla/5.0 User Agent';
if (check['operator'] === 'matches' || check['operator'] === '!matches') {
placeholder = t('workflowengine', '/^Mozilla\\/5\\.0 (.?)$/i');
placeholder = '/^Mozilla\\/5\\.0 (.?)$/i';
}
$(element).css('width', '250px')