1
0
Fork 0
mirror of https://github.com/iNavFlight/inav-configurator.git synced 2025-07-13 11:29:53 +03:00

localization can now replace placeholder attr

This commit is contained in:
cTn 2014-05-08 11:15:20 +02:00
parent ef2e8086d5
commit 20e2995fb4

View file

@ -28,5 +28,12 @@ function localize() {
element.addClass('i18n_value-replaced');
});
$('[i18n_placeholder]:not(.i18n_placeholder-replaced').each(function() {
var element = $(this);
element.attr('placeholder', translate(element.attr('i18n_placeholder')));
element.addClass('i18n_placeholder-replaced');
});
return localized;
}