mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-19 15:48:04 +01:00
Revert formatting back to backticks
This commit is contained in:
@@ -37,7 +37,7 @@ gulp.task('transifex:missingStrings', () => {
|
|||||||
|
|
||||||
eachTranslationString(ALL_LANGUAGES, (language, filename, key, englishString, translationString) => {
|
eachTranslationString(ALL_LANGUAGES, (language, filename, key, englishString, translationString) => {
|
||||||
if (!translationString) {
|
if (!translationString) {
|
||||||
let errorString = `${language} - ${filename} - ${key} - \`${englishString}\``;
|
let errorString = `${language} - ${filename} - ${key} - ${englishString}`;
|
||||||
missingStrings.push(errorString);
|
missingStrings.push(errorString);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
@@ -72,10 +72,10 @@ gulp.task('transifex:malformedStrings', () => {
|
|||||||
let translationOccurences = translationString.match(interpolationRegex);
|
let translationOccurences = translationString.match(interpolationRegex);
|
||||||
|
|
||||||
if (!translationOccurences) {
|
if (!translationOccurences) {
|
||||||
let malformedString = `${lang} - ${file} - ${key} - \`${translationString}\``;
|
let malformedString = `${lang} - ${file} - ${key} - ${translationString}`;
|
||||||
stringsWithMalformedInterpolations.push(malformedString);
|
stringsWithMalformedInterpolations.push(malformedString);
|
||||||
} else if (englishOccurences.length !== translationOccurences.length) {
|
} else if (englishOccurences.length !== translationOccurences.length) {
|
||||||
let missingInterploationString = `${lang} - ${file} - ${key} - \`${translationString}\``;
|
let missingInterploationString = `${lang} - ${file} - ${key} - ${translationString}`;
|
||||||
stringsWithIncorrectNumberOfInterpolations.push(missingInterploationString);
|
stringsWithIncorrectNumberOfInterpolations.push(missingInterploationString);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
@@ -160,8 +160,9 @@ function post(message, items) {
|
|||||||
|
|
||||||
function formatMessageForPosting(msg, items) {
|
function formatMessageForPosting(msg, items) {
|
||||||
let body = `*Warning:* ${msg}`;
|
let body = `*Warning:* ${msg}`;
|
||||||
body += '\n\n>>>\n';
|
body += '\n\n```\n';
|
||||||
body += items.join('\n');
|
body += items.join('\n');
|
||||||
|
body += '\n```';
|
||||||
|
|
||||||
return body;
|
return body;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user