Browse Source

add translations for auth-failed error message.

sisyphus
Dustin Falgout 9 years ago
parent
commit
2c111525c3
  1. 1
      themes/antergos/index.html
  2. 14
      themes/antergos/js/greeter-compiled.js
  3. 2
      themes/antergos/js/greeter-compiled.js.map
  4. 14
      themes/antergos/js/greeter.js
  5. 54
      themes/antergos/js/greeting_translations.js
  6. 111
      themes/antergos/js/translations.js

1
themes/antergos/index.html

@ -285,7 +285,6 @@
<div class="alert alert-danger fade in">
<button type="button" class="close cancel_auth" data-dismiss="alert" aria-hidden="true">&nbsp;&times;</button>
<span id="showMsg">
<strong>Uh Oh!!</strong>Authentication failed. Please try again.
</span>
</div>
</td>

14
themes/antergos/js/greeter-compiled.js

@ -372,7 +372,7 @@ var AntergosTheme = (function () {
var saved_format = this.cache_get('clock', 'time_format'),
format = null !== saved_format ? saved_format : 'LT',
detected_language = 'en';
detected_language = this.lang;
window.navigator.languages = typeof window.navigator.languages !== 'undefined' ? window.navigator.languages : [window.navigator.language];
// Workaround for moment.js bug: https://github.com/moment/moment/issues/2856
@ -439,8 +439,8 @@ var AntergosTheme = (function () {
value: function prepare_login_panel_header() {
var greeting = null;
if (this.translations.hasOwnProperty(this.lang)) {
greeting = this.translations[this.lang];
if (this.translations.greeting.hasOwnProperty(this.lang)) {
greeting = this.translations.greeting[this.lang];
} else {
var _iteratorNormalCompletion7 = true;
var _didIteratorError7 = false;
@ -451,8 +451,8 @@ var AntergosTheme = (function () {
for (var _iterator7 = window.navigator.languages[Symbol.iterator](), _step7; !(_iteratorNormalCompletion7 = (_step7 = _iterator7.next()).done); _iteratorNormalCompletion7 = true) {
var lang = _step7.value;
if (this.translations.hasOwnProperty(lang)) {
greeting = this.translations[lang];
if (this.translations.greeting.hasOwnProperty(lang)) {
greeting = this.translations.greeting[lang];
break;
}
}
@ -581,7 +581,8 @@ var AntergosTheme = (function () {
}, {
key: 'authentication_complete',
value: function authentication_complete() {
var selected_session = $('.selected').attr('data-session-id');
var selected_session = $('.selected').attr('data-session-id'),
err_msg = this.translations.auth_failed[this.lang];
_self.auth_pending = false;
_self.cache_set(selected_session, 'user', lightdm.authentication_user, 'session');
@ -593,6 +594,7 @@ var AntergosTheme = (function () {
lightdm.login(lightdm.authentication_user, selected_session);
} else {
// The user did not enter the correct password. Show error message.
$('#statusArea').show();
}
}

2
themes/antergos/js/greeter-compiled.js.map

File diff suppressed because one or more lines are too long

14
themes/antergos/js/greeter.js

@ -240,7 +240,7 @@ class AntergosTheme {
initialize_clock() {
var saved_format = this.cache_get( 'clock', 'time_format' ),
format = (null !== saved_format) ? saved_format : 'LT',
detected_language = 'en';
detected_language = this.lang;
window.navigator.languages = (typeof window.navigator.languages !== 'undefined') ? window.navigator.languages : [ window.navigator.language ];
// Workaround for moment.js bug: https://github.com/moment/moment/issues/2856
@ -283,14 +283,14 @@ class AntergosTheme {
prepare_login_panel_header() {
var greeting = null;
if ( this.translations.hasOwnProperty( this.lang ) ) {
greeting = this.translations[ this.lang ];
if ( this.translations.greeting.hasOwnProperty( this.lang ) ) {
greeting = this.translations.greeting[ this.lang ];
} else {
for ( var lang of window.navigator.languages ) {
if ( this.translations.hasOwnProperty( lang ) ) {
greeting = this.translations[ lang ];
if ( this.translations.greeting.hasOwnProperty( lang ) ) {
greeting = this.translations.greeting[ lang ];
break;
}
}
@ -379,7 +379,8 @@ class AntergosTheme {
* Greeter to log them in with the session they selected.
*/
authentication_complete() {
var selected_session = $( '.selected' ).attr( 'data-session-id' );
var selected_session = $( '.selected' ).attr( 'data-session-id' ),
err_msg = this.translations.auth_failed[ this.lang ];
_self.auth_pending = false;
_self.cache_set( selected_session, 'user', lightdm.authentication_user, 'session' );
@ -391,6 +392,7 @@ class AntergosTheme {
lightdm.login( lightdm.authentication_user, selected_session );
} else {
// The user did not enter the correct password. Show error message.
$( '#statusArea' ).show();
}
}

54
themes/antergos/js/greeting_translations.js

@ -1,54 +0,0 @@
window.ant_translations = {
"ca": "Benvingut!",
"ru": "Добро пожаловат!",
"gu": "આપનગત છ!",
"pa": "ਸਆਗਤ ਹ!",
"ta": "வரவி!",
"it": "Ben arrivata!",
"gl": "Benvido!",
"pl": "Zapraszamy!",
"tr": "Hoşgeldiniz!",
"sr": "Dobrodošao!",
"hi": "आपकगत ह!",
"mk": "Добредојдовте!",
"af": "Welkom!",
"pt": "Bem-vindo!",
"et": "Tere tulemast!",
"ko": "환영!",
"ro": "Bine ati venit!",
"el": "Καλωσόρισμα!",
"ja": "ようこそ!",
"lt": "Sveiki!",
"uk": "Ласкаво просимо!",
"de": "Herzlich willkommen!",
"fr": "Bienvenue!",
"tg": "Хуш омадед!",
"nb": "Velkommen!",
"mr": "आपलगत आह!",
"zh": "欢迎!",
"hu": "Fogadtatás!",
"cs": "Vítejte!",
"ms": "Selamat Datang!",
"ar": "!ﻚﺑ أهلا",
"az": "Xoş gəlmisiniz!",
"hr": "Dobrodošli!",
"da": "Velkomst!",
"fi": "Tervetuloa!",
"be": "Сардэчна запрашаем!",
"sk": "Vitajte!",
"nl": "Welkom!",
"sl": "Dobrodošli!",
"es": "¡Bienvenida!",
"eo": "Bonvenon!",
"ka": "გამარჯობა!",
"he": "!ךאוב ךורב",
"id": "Menyambut!",
"eu": "Ongi etorri!",
"en": "Welcome!",
"vi": "Chào mừng!",
"fa": "!ﯼﺪﻣﺁ ﺵﻮﺧ",
"sv": "Välkomna!",
"tl": "Maligayang pagdating!",
"bg": "Добре дошла!",
"zu": "Siyakwamukela!"
};

111
themes/antergos/js/translations.js

@ -0,0 +1,111 @@
window.ant_translations = {
"greeting": {
"ca": "Benvingut!",
"ru": "Добро пожаловат!",
"gu": "આપનગત છ!",
"pa": "ਸਆਗਤ ਹ!",
"ta": "வரவி!",
"it": "Ben arrivata!",
"gl": "Benvido!",
"pl": "Zapraszamy!",
"tr": "Hoşgeldiniz!",
"sr": "Dobrodošao!",
"hi": "आपकगत ह!",
"mk": "Добредојдовте!",
"af": "Welkom!",
"pt": "Bem-vindo!",
"et": "Tere tulemast!",
"ko": "환영!",
"ro": "Bine ati venit!",
"el": "Καλωσόρισμα!",
"ja": "ようこそ!",
"lt": "Sveiki!",
"uk": "Ласкаво просимо!",
"de": "Herzlich willkommen!",
"fr": "Bienvenue!",
"tg": "Хуш омадед!",
"nb": "Velkommen!",
"mr": "आपलगत आह!",
"zh": "欢迎!",
"hu": "Fogadtatás!",
"cs": "Vítejte!",
"ms": "Selamat Datang!",
"ar": "!ﻚﺑ أهلا",
"az": "Xoş gəlmisiniz!",
"hr": "Dobrodošli!",
"da": "Velkomst!",
"fi": "Tervetuloa!",
"be": "Сардэчна запрашаем!",
"sk": "Vitajte!",
"nl": "Welkom!",
"sl": "Dobrodošli!",
"es": "¡Bienvenida!",
"eo": "Bonvenon!",
"ka": "გამარჯობა!",
"he": "!ךאוב ךורב",
"id": "Menyambut!",
"eu": "Ongi etorri!",
"en": "Welcome!",
"vi": "Chào mừng!",
"fa": "!ﯼﺪﻣﺁ ﺵﻮﺧ",
"sv": "Välkomna!",
"tl": "Maligayang pagdating!",
"bg": "Добре дошла!",
"zu": "Siyakwamukela!"
},
"auth_failed": {
"pt": "Uh Oh! A autenticação falhou. Por favor, tente novamente.",
"zh": "呃哦! 验证失败。 请再试一次。",
"vi": "Uh Oh! Quá trình xác thực đã thất bại. Vui lòng thử lại.",
"tr": "Ah ah! Kimlik doğrulama başarısız oldu. Lütfen tekrar deneyin.",
"fi": "Voi ei! Todennus epäonnistui. Yritä uudelleen.",
"hr": "Uh oh! Provjera autentičnosti nije uspjela. Molim te pokušaj ponovno.",
"cs": "Uh Oh! Ověření se nezdařilo. Prosím zkuste to znovu.",
"nl": "Uh Oh! Verificatie is mislukt. Probeer opnieuw.",
"ms": "Uh Oh! Pengesahan gagal. Sila cuba lagi.",
"ta": "அட ட! அஙகரிிறத. தயவயறிகவ.",
"fr": "Uh Oh! L'authentification a échoué. S'il vous plaît essayer à nouveau.",
"et": "Uh Oh! Tuvastamine ebaõnnestus. Palun proovi uuesti.",
"da": "Uh Oh! Godkendelse mislykkedes. Prøv igen.",
"tg": "Uh Эй кош! Хатои. Лутфан, боз кӯшиш кунед.",
"it": "Uh Oh! Autenticazione fallita. Riprova.",
"nb": "UH oh! Autentisering mislyktes. Vær så snill, prøv på nytt.",
"id": "Uh oh! Otentikasi gagal. Silakan coba lagi.",
"ca": "UH oh! Autenticació fallida. Siusplau torna-ho a provar.",
"eo": "Uh Oh! Aŭtentigo malsukcesis. Bonvolu reprovi.",
"es": "¡UH oh! Error de autenticación. Por favor, vuelva a intentarlo.",
"hi": "उह ओह! परमकरण विफल ह। कपयन: परयस कर।",
"gl": "Uh Oh! Fallou a autenticación. Por favor, ténteo de novo.",
"sk": "Uh Oh! Overenie zlyhalo. Prosím skúste znova.",
"lt": "Uh Oh! Autentifikavimas nepavyko. Prašau, pabandykite dar kartą.",
"he": ".בוש הסנ השקבב .לשכנ תומיא !וה וא",
"eu": "Uh Oh! Egiaztapenak huts egin du. Mesedez, saiatu berriz.",
"ro": "Uh Oh! Autentificare esuata. Vă rugăm să încercați din nou.",
"fa": ".ﺪﯿﻨﮐ ﺵﻼ\ufeffﺗ ﻩﺭﺎﺑﻭﺩ ﺎﻔﻄﻟ .ﺖﺳﺍ ﻩﺩﺭﻮﺧ ﺖﺴﮑﺷ ﺖﯾﻮﻫ ﺯﺍﺮﺣﺍ !ﻩﻭﺍ ﻩﻭﺍ",
"pa": "ਓ uh! ਪਰਮਿਕਤ ਅਸਫਲ ਰਹ. ਮੜ ਕਿਸ ਕਰ.",
"af": "Uh Oh! Verifikasie misluk. Probeer asseblief weer.",
"ar": ".ﻯﺮﺧﺍ ﺓﺮﻣ ﻝﻭﺎﺣ .ﺔﻗﺩﺎﺼﻤﻟﺍ ﻞﺸﻓ !ﻩﻭﺍ ﻩﺍ",
"uk": "Ой-ой! Помилка аутентифікації. Будь ласка спробуйте ще раз.",
"el": "Ωχ! Η ταυτοποίηση απέτυχε. Παρακαλώ προσπάθησε ξανά.",
"sl": "Uh Oh! Preverjanje pristnosti ni uspelo. Prosim poskusi znova.",
"zu": "Uh Oh! Ukuqinisekisa kwehlulekile. Sicela uzame futhi.",
"sv": "Hoppsan! Autentisering misslyckades. Var god försök igen.",
"mr": "अर! परमकरण अयशस. कपयरयतन कर.",
"ja": "ええとああ! 認証に失敗しました。 もう一度やり直してください。",
"mk": "Ух О! Проверката за автентичност не успеа. Ве молиме обидете се повторно.",
"hu": "UH Oh! Sikertelen volt a hitelesítés. Kérlek próbáld újra.",
"bg": "Uh Oh! Неуспешна идентификация. Моля, опитайте отново.",
"be": "Uh Oh! Памылка аўтэнтыфікацыі. Калі ласка, паспрабуйце яшчэ раз.",
"sr": "Uh Oh! Аутхентицатион фаилед. Molim vas, pokušajte ponovo.",
"ko": "어 오! 인증 실패. 다시 시도하십시오.",
"tl": "Uh Oh! Nabigo ang pagpapatotoo. Pakisubukang muli.",
"ka": "Uh Oh! იდენტიფიკაცია ვერ მოხერხდა. გთხოვთ კიდევ სცადეთ.",
"gu": "ઓહ! પરમકરણ નિફળ થય. ફરરયતન કર.",
"ru": "Uh Oh! Ошибка аутентификации. Пожалуйста, попробуйте еще раз.",
"az": "Oh Uh! Authentication bilmədi. Zəhmət olmasa bir daha cəhd edin.",
"de": "Uh Oh! Authentifizierung fehlgeschlagen. Bitte versuche es erneut.",
"en": "Uh Oh! Authentication failed. Please try again.",
"pl": "O o! Uwierzytelnianie nie powiodło się. Proszę spróbuj ponownie."
}
};
Loading…
Cancel
Save