1
0
Fork 0
mirror of https://github.com/betaflight/betaflight-configurator.git synced 2025-07-25 17:25:16 +03:00

Merge pull request #501 from Mistale/fix-syntax-errors-in-localization

Add missing ')'-characters in localization to make syntax valid
This commit is contained in:
Michael Keller 2017-05-10 09:11:05 +12:00 committed by GitHub
commit 02a1537009

View file

@ -9,28 +9,28 @@ function localize() {
return chrome.i18n.getMessage(messageID); return chrome.i18n.getMessage(messageID);
}; };
$('[i18n]:not(.i18n-replaced').each(function() { $('[i18n]:not(.i18n-replaced)').each(function() {
var element = $(this); var element = $(this);
element.html(translate(element.attr('i18n'))); element.html(translate(element.attr('i18n')));
element.addClass('i18n-replaced'); element.addClass('i18n-replaced');
}); });
$('[i18n_title]:not(.i18n_title-replaced').each(function() { $('[i18n_title]:not(.i18n_title-replaced)').each(function() {
var element = $(this); var element = $(this);
element.attr('title', translate(element.attr('i18n_title'))); element.attr('title', translate(element.attr('i18n_title')));
element.addClass('i18n_title-replaced'); element.addClass('i18n_title-replaced');
}); });
$('[i18n_value]:not(.i18n_value-replaced').each(function() { $('[i18n_value]:not(.i18n_value-replaced)').each(function() {
var element = $(this); var element = $(this);
element.val(translate(element.attr('i18n_value'))); element.val(translate(element.attr('i18n_value')));
element.addClass('i18n_value-replaced'); element.addClass('i18n_value-replaced');
}); });
$('[i18n_placeholder]:not(.i18n_placeholder-replaced').each(function() { $('[i18n_placeholder]:not(.i18n_placeholder-replaced)').each(function() {
var element = $(this); var element = $(this);
element.attr('placeholder', translate(element.attr('i18n_placeholder'))); element.attr('placeholder', translate(element.attr('i18n_placeholder')));