From 2c111525c3a8841d9fc8f8851cdc841d9d24f380 Mon Sep 17 00:00:00 2001 From: Dustin Falgout Date: Wed, 6 Jan 2016 23:03:11 -0600 Subject: [PATCH] add translations for auth-failed error message. --- themes/antergos/index.html | 1 - themes/antergos/js/greeter-compiled.js | 14 +-- themes/antergos/js/greeter-compiled.js.map | 2 +- themes/antergos/js/greeter.js | 14 +-- themes/antergos/js/greeting_translations.js | 54 ---------- themes/antergos/js/translations.js | 111 ++++++++++++++++++++ 6 files changed, 128 insertions(+), 68 deletions(-) delete mode 100644 themes/antergos/js/greeting_translations.js create mode 100644 themes/antergos/js/translations.js diff --git a/themes/antergos/index.html b/themes/antergos/index.html index 953e6fb..2ecb1ad 100644 --- a/themes/antergos/index.html +++ b/themes/antergos/index.html @@ -285,7 +285,6 @@
- Uh Oh!!Authentication failed. Please try again.
diff --git a/themes/antergos/js/greeter-compiled.js b/themes/antergos/js/greeter-compiled.js index 790af02..b889e6b 100644 --- a/themes/antergos/js/greeter-compiled.js +++ b/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(); } } diff --git a/themes/antergos/js/greeter-compiled.js.map b/themes/antergos/js/greeter-compiled.js.map index 1ef6617..0edd6ad 100644 --- a/themes/antergos/js/greeter-compiled.js.map +++ b/themes/antergos/js/greeter-compiled.js.map @@ -1 +1 @@ -{"version":3,"sources":["greeter.js"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAgCA,IAAI,KAAK,GAAG,IAAI;;;;;;;AAAC,AAQjB,MAAM,CAAC,SAAS,CAAC,UAAU,GAAG,YAAW;AACxC,QAAO,IAAI,CAAC,MAAM,CAAE,CAAC,CAAE,CAAC,WAAW,EAAE,GAAG,IAAI,CAAC,KAAK,CAAE,CAAC,CAAE,CAAC;CACxD;;;;;AAAC;IAMI,aAAa;AAElB,UAFK,aAAa,GAEJ;wBAFT,aAAa;;AAGjB,MAAI,IAAI,KAAK,KAAK,EAAE;AACnB,UAAO,KAAK,CAAC;GACb;AACD,MAAI,CAAC,KAAK,GAAG,IAAI,CAAC,SAAS,CAAE,OAAO,EAAE,SAAS,CAAE,CAAC;AAClD,MAAI,CAAC,iBAAiB,GAAG,KAAK,CAAC;AAC/B,MAAI,CAAC,YAAY,GAAG,KAAK,CAAC;AAC1B,MAAI,CAAC,aAAa,GAAG,IAAI,CAAC;AAC1B,MAAI,CAAC,UAAU,GAAG,CAAC,CAAE,aAAa,CAAE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AAG,CAAC,CAAC;AAC1F,UAAK,CAAC,GAAG,CAAE,MAAM,CAAE,CAAC;AACpB,WAAM;AAAA,AACP;AACC,WAAM;AAAA,IACP;GACD;;;;;;;;kCAKgB,MAAM,EAAG;AACzB,SAAM,CAAC,OAAO,GAAG,EAAE,CAAC;AACpB,SAAM,CAAC,GAAG,GAAG,4BAA4B,CAAC;AAC1C,UAAO,IAAI,CAAC;GACZ;;;;;;;;;;8BAOY,IAAI,EAAG;;AAEnB,IAAC,CAAE,gBAAgB,CAAE,CAAC,GAAG,CAAE,EAAE,CAAE,CAAC;AAChC,IAAC,CAAE,eAAe,CAAE,CAAC,IAAI,EAAE,CAAC;AAC5B,IAAC,CAAE,gBAAgB,CAAE,CAAC,KAAK,EAAE,CAAC;GAC9B;;;;;;;;;;+BAOa,GAAG,EAAG;AACnB,OAAK,GAAG,CAAC,MAAM,GAAG,CAAC,EAAG;AACrB,KAAC,CAAE,IAAI,CAAC,SAAS,CAAE,CAAC,IAAI,CAAE,GAAG,CAAE,CAAC;AAChC,KAAC,CAAE,eAAe,CAAE,CAAC,IAAI,EAAE,CAAC;AAC5B,KAAC,CAAE,IAAI,CAAC,mBAAmB,CAAE,CAAC,IAAI,EAAE,CAAC;IACrC;GACD;;;QA/ZI,aAAa;;;;;;;AAsanB,CAAC,CAAE,MAAM,CAAE,CAAC,IAAI,CAAE,YAAM;AACvB,MAAK,GAAG,IAAI,aAAa,EAAE,CAAC;CAC5B,CAAE,CAAC","file":"greeter-compiled.js","sourcesContent":["/*\n *\n * Copyright © 2015-2016 Antergos\n *\n * greeter.js\n *\n * This file is part of lightdm-webkit-theme-antergos\n *\n * lightdm-webkit-theme-antergos is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License,\n * or any later version.\n *\n * lightdm-webkit-theme-antergos is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU General Public License for more details.\n *\n * The following additional terms are in effect as per Section 7 of this license:\n *\n * The preservation of all legal notices and author attributions in\n * the material or in the Appropriate Legal Notices displayed\n * by works containing it is required.\n *\n * You should have received a copy of the GNU General Public License\n * along with this program. If not, see .\n */\n\n\n/**\n * This is used to access our main class from within jQuery callbacks.\n */\nvar _self = null;\n\n\n/**\n * Capitalize a string.\n *\n * @returns {string}\n */\nString.prototype.capitalize = function() {\n\treturn this.charAt( 0 ).toUpperCase() + this.slice( 1 );\n};\n\n\n/**\n * This is the theme's main class object. It contains almost all the theme's logic.\n */\nclass AntergosTheme {\n\n\tconstructor() {\n\t\tif (null !== _self) {\n\t\t\treturn _self;\n\t\t}\n\t\tthis.debug = this.cache_get( 'debug', 'enabled' );\n\t\tthis.user_list_visible = false;\n\t\tthis.auth_pending = false;\n\t\tthis.selected_user = null;\n\t\tthis.$user_list = $( '#user-list2' );\n\t\tthis.$session_list = $( '#sessions' );\n\t\tthis.$clock_container = $( '#collapseOne' );\n\t\tthis.$clock = $( \"#current_time\" );\n\t\tthis.$actions_container = $( \"#actionsArea\" );\n\t\tthis.$msg_area_container = $( '#statusArea' );\n\t\tthis.$msg_area = $( '#showMsg' );\n\t\tthis.lang = window.navigator.language.split( '-' )[ 0 ].toLowerCase();\n\t\tthis.translations = window.ant_translations;\n\n\t\tthis.initialize();\n\t}\n\n\tinitialize() {\n\t\tthis.initialize_clock();\n\t\tthis.prepare_login_panel_header();\n\t\tthis.prepare_user_list();\n\t\tthis.prepare_session_list();\n\t\tthis.prepare_system_action_buttons();\n\n\t\tthis.register_callbacks();\n\t}\n\n\t/**\n\t * Add text to the debug log element (accessible from the login screen).\n\t *\n\t * @param {string} text - To be added to the log.\n\t */\n\tlog( text ) {\n\t\tif ( 'true' === this.debug || true ) {\n\t\t\t$( '#logArea' ).append( `${text}
` );\n\t\t}\n\t}\n\n\t/**\n\t * Get a key's value from localStorage. Keys can have two or more parts.\n\t * For example: \"ant:user:john:session\".\n\t *\n\t * @param {...string} key_parts - Strings that are combined to form the key.\n\t */\n\tcache_get( ...key_parts ) {\n\t\tvar key = `ant`,\n\t\t\tindex = 0;\n\n\t\tfor ( var part of key_parts ) {\n\t\t\tkey += `:${part}`;\n\t\t\tindex += 1;\n\t\t}\n\t\treturn localStorage.getItem( key );\n\t}\n\n\t/**\n\t * Set a key's value in localStorage. Keys can have two or more parts.\n\t * For example: \"ant:user:john:session\".\n\t *\n\t * @param {string} value - The value to set.\n\t * @param {...string} key_parts - Strings that are combined to form the key.\n\t */\n\tcache_set( value, ...key_parts ) {\n\t\tvar key = `ant`,\n\t\t\tindex = 0;\n\n\t\tfor ( var part of key_parts ) {\n\t\t\tkey += `:${part}`;\n\t\t\tindex += 1;\n\t\t}\n\t\treturn localStorage.setItem( key, value );\n\t}\n\n\t/**\n\t * Register callbacks for the LDM Greeter as well as any others that haven't been registered\n\t * elsewhere.\n\t */\n\tregister_callbacks() {\n\t\t$( document ).keydown( this.key_press_handler );\n\t\t$( '.cancel_auth' ).click( this.cancel_authentication );\n\t\t$( '.submit_passwd' ).click( this.submit_password );\n\t\twindow.show_prompt = this.show_prompt;\n\t\twindow.show_message = this.show_message;\n\t\twindow.start_authentication = this.start_authentication;\n\t\twindow.cancel_authentication = this.cancel_authentication;\n\t\twindow.authentication_complete = this.authentication_complete;\n\t}\n\n\t/**\n\t * Initialize the user list.\n\t */\n\tprepare_user_list() {\n\t\tvar tux = 'img/antergos-logo-user.png',\n\t\t\ttemplate;\n\n\t\t// Loop through the array of LightDMUser objects to create our user list.\n\t\tfor ( var user of lightdm.users ) {\n\t\t\tvar last_session = this.cache_get( 'user', user.name, 'session' ),\n\t\t\t\timage_src = user.image.length ? user.image : tux;\n\n\t\t\tif ( null === last_session ) {\n\t\t\t\t// For backwards compatibility\n\t\t\t\tlast_session = localStorage.getItem( user.name );\n\t\t\t\tif ( null === last_session ) {\n\t\t\t\t\t// This user has never logged in before let's enable the system's default\n\t\t\t\t\t// session.\n\t\t\t\t\tlast_session = lightdm.default_session;\n\t\t\t\t}\n\t\t\t\tthis.cache_set( last_session, 'user', user.name, 'session' );\n\t\t\t}\n\n\t\t\tthis.log( `Last session for ${user.name} was: ${last_session}` );\n\n\t\t\ttemplate = `\n\t\t\t\t\n\t\t\t\t\t\"${user.display_name}\"\n\t\t\t\t\t${user.display_name}\n\t\t\t\t\t\n\t\t\t\t`;\n\n\t\t\t// Register event handler here so we don't have to iterate over the users again later.\n\t\t\t$( template ).appendTo( this.$user_list ).click( this.start_authentication ).children( 'img' ).on( 'error', this.image_not_found );\n\n\t\t} // END for ( var user of lightdm.users )\n\n\t\tif ( $( this.$user_list ).children().length > 3 ) {\n\t\t\t// Make the user list two columns instead of one.\n\t\t\t$( this.$user_list ).css( 'column-count', '2' ).parent().css( 'max-width', '85%' );\n\t\t}\n\n\t}\n\n\t/**\n\t * Initialize the session selection dropdown.\n\t */\n\tprepare_session_list() {\n\t\t// Loop through the array of LightDMSession objects to create our session list.\n\t\tfor ( var session of lightdm.sessions ) {\n\t\t\tvar css_class = session.name.replace( / /g, '' ),\n\t\t\t\ttemplate;\n\n\t\t\tthis.log( `Adding ${session.name} to the session list...` );\n\n\t\t\ttemplate = `\n\t\t\t\t
  • \n\t\t\t\t\t${session.name}\n\t\t\t\t
  • `;\n\n\t\t\t$( template ).appendTo( this.$session_list ).click( this.session_toggle_handler );\n\n\t\t} // END for (var session of lightdm.sessions)\n\n\t\t$( '.dropdown-toggle' ).dropdown();\n\t}\n\n\t/**\n\t * Initialize the system action buttons\n\t */\n\tprepare_system_action_buttons() {\n\t\tvar actions = {\n\t\t\t\tshutdown: \"power-off\",\n\t\t\t\thibernate: \"asterisk\",\n\t\t\t\tsuspend: \"arrow-down\",\n\t\t\t\trestart: \"refresh\"\n\t\t\t},\n\t\t\ttemplate;\n\n\t\tfor ( var action of Object.keys( actions ) ) {\n\t\t\tvar cmd = `can_${action}`;\n\n\t\t\ttemplate = `\n\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t`;\n\n\t\t\tif ( lightdm[ cmd ] ) {\n\t\t\t\t$( template ).appendTo( $( this.$actions_container ) ).click( action, ( event ) => {\n\t\t\t\t\tlightdm[ event.data ]();\n\t\t\t\t} );\n\t\t\t}\n\t\t} // END for (var [action, icon] of actions)\n\n\t\t$( '[data-toggle=tooltip]' ).tooltip();\n\t}\n\n\tinitialize_clock() {\n\t\tvar saved_format = this.cache_get( 'clock', 'time_format' ),\n\t\t\tformat = (null !== saved_format) ? saved_format : 'LT',\n\t\t\tdetected_language = 'en';\n\t\twindow.navigator.languages = (typeof window.navigator.languages !== 'undefined') ? window.navigator.languages : [ window.navigator.language ];\n\n\t\t// Workaround for moment.js bug: https://github.com/moment/moment/issues/2856\n\t\tfor ( var lang of window.navigator.languages ) {\n\t\t\ttry {\n\t\t\t\tdetected_language = lang.split( '-' )[ 0 ].toLowerCase();\n\t\t\t\tbreak;\n\t\t\t} catch ( err ) {\n\t\t\t\tthis.log( String( err ) );\n\t\t\t}\n\t\t}\n\n\t\tif ( null === detected_language ) {\n\t\t\tdetected_language = 'en';\n\t\t}\n\n\t\tmoment.locale( detected_language );\n\t\tthis.$clock.html( moment().format( format ) );\n\n\t\tsetInterval( () => {\n\t\t\tthis.$clock.html( moment().format( format ) );\n\t\t}, 60000 );\n\t}\n\n\n\t/**\n\t * Show the user list if its not already shown. This is used to allow the user to\n\t * display the user list by pressing Enter or Spacebar.\n\t */\n\tshow_user_list() {\n\t\tif ( $( this.$clock_container ).hasClass( 'in' ) ) {\n\t\t\t$( '#trigger' ).trigger( 'click' );\n\t\t\tthis.user_list_visible = true;\n\t\t}\n\t\tif ( $( this.$user_list ).length <= 1 ) {\n\t\t\t$( this.$user_list ).find( 'a' ).trigger( 'click', this );\n\t\t}\n\t}\n\n\tprepare_login_panel_header() {\n\t\tvar greeting = null;\n\n\t\tif ( this.translations.hasOwnProperty( this.lang ) ) {\n\t\t\tgreeting = this.translations[ this.lang ];\n\n\t\t} else {\n\n\t\t\tfor ( var lang of window.navigator.languages ) {\n\t\t\t\tif ( this.translations.hasOwnProperty( lang ) ) {\n\t\t\t\t\tgreeting = this.translations[ lang ];\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tgreeting = (null === greeting) ? 'Welcome!' : greeting;\n\n\t\t$( '.welcome' ).text( greeting );\n\t\t$( '#hostname' ).append( lightdm.hostname );\n\t}\n\n\n\t/**\n\t * Start the authentication process for the selected user.\n\t *\n\t * @param {object} event - jQuery.Event object from 'click' event.\n\t */\n\tstart_authentication( event ) {\n\t\tvar user_id = $( this ).attr( 'id' ),\n\t\t\tselector = `.${user_id}`,\n\t\t\tuser_session = _self.cache_get( 'user', user_id, 'session' );\n\n\t\tif ( _self.auth_pending || null !== _self.selected_user ) {\n\t\t\tlightdm.cancel_authentication();\n\t\t\t_self.log( `Authentication cancelled for ${_self.selected_user}` );\n\t\t\t_self.selected_user = null;\n\t\t}\n\n\t\t_self.log( `Starting authentication for ${user_id}.` );\n\t\t_self.selected_user = user_id;\n\n\t\t// CSS hack to workaround webkit bug\n\t\tif ( $( _self.$user_list ).children().length > 3 ) {\n\t\t\t$( _self.$user_list ).css( 'column-count', 'initial' ).parent().css( 'max-width', '50%' );\n\t\t}\n\t\t$( selector ).addClass( 'hovered' ).siblings().hide();\n\t\t$( '.fa-toggle-down' ).hide();\n\n\t\t_self.log( `Session for ${user_id} is ${user_session}` );\n\n\t\t$( `[data-session-id=\"${user_session}\"]` ).parent().trigger( 'click', this );\n\n\t\t$( '#session-list' ).removeClass( 'hidden' ).show();\n\t\t$( '#passwordArea' ).show();\n\t\t$( '.dropdown-toggle' ).dropdown();\n\n\t\t_self.auth_pending = true;\n\n\t\tlightdm.start_authentication( user_id );\n\t}\n\n\n\t/**\n\t * Cancel the pending authentication.\n\t *\n\t * @param {object} event - jQuery.Event object from 'click' event.\n\t */\n\tcancel_authentication( event ) {\n\t\tvar selectors = [ '#statusArea', '#timerArea', '#passwordArea', '#session-list' ];\n\n\t\tfor ( var selector of selectors ) {\n\t\t\t$( selector ).hide();\n\t\t}\n\n\t\tlightdm.cancel_authentication();\n\n\t\t_self.log( 'Cancelled authentication.' );\n\n\t\t// CSS hack to work-around webkit bug\n\t\tif ( $( _self.$user_list ).children().length > 3 ) {\n\t\t\t$( _self.$user_list ).css( 'column-count', '2' ).parent().css( 'max-width', '85%' );\n\t\t}\n\n\t\t$( '.hovered' ).removeClass( 'hovered' ).siblings().show();\n\t\t$( '.fa-toggle-down' ).show();\n\n\t\t_self.selected_user = null;\n\t\t_self.auth_pending = false;\n\n\t}\n\n\n\t/**\n\t * Called when the user attempts to authenticate (inputs password).\n\t * We check to see if the user successfully authenticated and if so tell the LDM\n\t * Greeter to log them in with the session they selected.\n\t */\n\tauthentication_complete() {\n\t\tvar selected_session = $( '.selected' ).attr( 'data-session-id' );\n\n\t\t_self.auth_pending = false;\n\t\t_self.cache_set( selected_session, 'user', lightdm.authentication_user, 'session' );\n\n\t\t$( '#timerArea' ).hide();\n\n\t\tif ( lightdm.is_authenticated ) {\n\t\t\t// The user entered the correct password. Let's log them in.\n\t\t\tlightdm.login( lightdm.authentication_user, selected_session );\n\t\t} else {\n\t\t\t// The user did not enter the correct password. Show error message.\n\t\t\t$( '#statusArea' ).show();\n\t\t}\n\t}\n\n\tsubmit_password( event ) {\n\t\tlightdm.provide_secret( $( '#passwordField' ).val() );\n\t\t$( '#passwordArea' ).hide();\n\t\t$( '#timerArea' ).show();\n\t}\n\n\tsession_toggle_handler( event ) {\n\t\tvar $session = $( this ).children( 'a' ),\n\t\t\tsession_name = $session.text(),\n\t\t\tsession_key = $session.attr( 'data-session-id' );\n\n\t\t$session.parents( '.btn-group' ).find( '.selected' ).attr( 'data-session-id', session_key ).html( session_name );\n\t}\n\n\tkey_press_handler( event ) {\n\t\tvar action;\n\t\tswitch ( event.which ) {\n\t\t\tcase 13:\n\t\t\t\taction = _self.auth_pending ? _self.submit_password() : ! _self.user_list_visible ? _self.show_user_list() : 0;\n\t\t\t\t_self.log( action );\n\t\t\t\tbreak;\n\t\t\tcase 27:\n\t\t\t\taction = _self.auth_pending ? _self.cancel_authentication() : 0;\n\t\t\t\t_self.log( action );\n\t\t\t\tbreak;\n\t\t\tcase 32:\n\t\t\t\taction = (! _self.user_list_visible && ! _self.auth_pending) ? _self.show_user_list() : 0;\n\t\t\t\t_self.log( action );\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tbreak;\n\t\t}\n\t}\n\n\t/**\n\t * User image on('error') handler.\n\t */\n\timage_not_found( source ) {\n\t\tsource.onerror = \"\";\n\t\tsource.src = 'img/antergos-logo-user.png';\n\t\treturn true;\n\t}\n\n\t/**\n\t * LightDM Callback - Show password prompt to user.\n\t *\n\t * @param text\n\t */\n\tshow_prompt( text ) {\n\n\t\t$( '#passwordField' ).val( \"\" );\n\t\t$( '#passwordArea' ).show();\n\t\t$( '#passwordField' ).focus();\n\t}\n\n\t/**\n\t * LightDM Callback - Show message to user.\n\t *\n\t * @param msg\n\t */\n\tshow_message( msg ) {\n\t\tif ( msg.length > 0 ) {\n\t\t\t$( this.$msg_area ).html( msg );\n\t\t\t$( '#passwordArea' ).hide();\n\t\t\t$( this.$msg_area_container ).show();\n\t\t}\n\t}\n}\n\n\n/**\n * Initialize the theme once the window has loaded.\n */\n$( window ).load( () => {\n\t_self = new AntergosTheme();\n} );\n\n"]} \ No newline at end of file +{"version":3,"sources":["greeter.js"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAgCA,IAAI,KAAK,GAAG,IAAI;;;;;;;AAAC,AAQjB,MAAM,CAAC,SAAS,CAAC,UAAU,GAAG,YAAW;AACxC,QAAO,IAAI,CAAC,MAAM,CAAE,CAAC,CAAE,CAAC,WAAW,EAAE,GAAG,IAAI,CAAC,KAAK,CAAE,CAAC,CAAE,CAAC;CACxD;;;;;AAAC;IAMI,aAAa;AAElB,UAFK,aAAa,GAEJ;wBAFT,aAAa;;AAGjB,MAAI,IAA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;GACD;;;QAjaI,aAAa;;;;;;;AAwanB,CAAC,CAAE,MAAM,CAAE,CAAC,IAAI,CAAE,YAAM;AACvB,MAAK,GAAG,IAAI,aAAa,EAAE,CAAC;CAC5B,CAAE,CAAC","file":"greeter-compiled.js","sourcesContent":["/*\n *\n * Copyright © 2015-2016 Antergos\n *\n * greeter.js\n *\n * This file is part of lightdm-webkit-theme-antergos\n *\n * lightdm-webkit-theme-antergos is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License,\n * or any later version.\n *\n * lightdm-webkit-theme-antergos is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU General Public License for more details.\n *\n * The following additional terms are in effect as per Section 7 of this license:\n *\n * The preservation of all legal notices and author attributions in\n * the material or in the Appropriate Legal Notices displayed\n * by works containing it is required.\n *\n * You should have received a copy of the GNU General Public License\n * along with this program. If not, see .\n */\n\n\n/**\n * This is used to access our main class from within jQuery callbacks.\n */\nvar _self = null;\n\n\n/**\n * Capitalize a string.\n *\n * @returns {string}\n */\nString.prototype.capitalize = function() {\n\treturn this.charAt( 0 ).toUpperCase() + this.slice( 1 );\n};\n\n\n/**\n * This is the theme's main class object. It contains almost all the theme's logic.\n */\nclass AntergosTheme {\n\n\tconstructor() {\n\t\tif (null !== _self) {\n\t\t\treturn _self;\n\t\t}\n\t\tthis.debug = this.cache_get( 'debug', 'enabled' );\n\t\tthis.user_list_visible = false;\n\t\tthis.auth_pending = false;\n\t\tthis.selected_user = null;\n\t\tthis.$user_list = $( '#user-list2' );\n\t\tthis.$session_list = $( '#sessions' );\n\t\tthis.$clock_container = $( '#collapseOne' );\n\t\tthis.$clock = $( \"#current_time\" );\n\t\tthis.$actions_container = $( \"#actionsArea\" );\n\t\tthis.$msg_area_container = $( '#statusArea' );\n\t\tthis.$msg_area = $( '#showMsg' );\n\t\tthis.lang = window.navigator.language.split( '-' )[ 0 ].toLowerCase();\n\t\tthis.translations = window.ant_translations;\n\n\t\tthis.initialize();\n\t}\n\n\tinitialize() {\n\t\tthis.initialize_clock();\n\t\tthis.prepare_login_panel_header();\n\t\tthis.prepare_user_list();\n\t\tthis.prepare_session_list();\n\t\tthis.prepare_system_action_buttons();\n\n\t\tthis.register_callbacks();\n\t}\n\n\t/**\n\t * Add text to the debug log element (accessible from the login screen).\n\t *\n\t * @param {string} text - To be added to the log.\n\t */\n\tlog( text ) {\n\t\tif ( 'true' === this.debug || true ) {\n\t\t\t$( '#logArea' ).append( `${text}
    ` );\n\t\t}\n\t}\n\n\t/**\n\t * Get a key's value from localStorage. Keys can have two or more parts.\n\t * For example: \"ant:user:john:session\".\n\t *\n\t * @param {...string} key_parts - Strings that are combined to form the key.\n\t */\n\tcache_get( ...key_parts ) {\n\t\tvar key = `ant`,\n\t\t\tindex = 0;\n\n\t\tfor ( var part of key_parts ) {\n\t\t\tkey += `:${part}`;\n\t\t\tindex += 1;\n\t\t}\n\t\treturn localStorage.getItem( key );\n\t}\n\n\t/**\n\t * Set a key's value in localStorage. Keys can have two or more parts.\n\t * For example: \"ant:user:john:session\".\n\t *\n\t * @param {string} value - The value to set.\n\t * @param {...string} key_parts - Strings that are combined to form the key.\n\t */\n\tcache_set( value, ...key_parts ) {\n\t\tvar key = `ant`,\n\t\t\tindex = 0;\n\n\t\tfor ( var part of key_parts ) {\n\t\t\tkey += `:${part}`;\n\t\t\tindex += 1;\n\t\t}\n\t\treturn localStorage.setItem( key, value );\n\t}\n\n\t/**\n\t * Register callbacks for the LDM Greeter as well as any others that haven't been registered\n\t * elsewhere.\n\t */\n\tregister_callbacks() {\n\t\t$( document ).keydown( this.key_press_handler );\n\t\t$( '.cancel_auth' ).click( this.cancel_authentication );\n\t\t$( '.submit_passwd' ).click( this.submit_password );\n\t\twindow.show_prompt = this.show_prompt;\n\t\twindow.show_message = this.show_message;\n\t\twindow.start_authentication = this.start_authentication;\n\t\twindow.cancel_authentication = this.cancel_authentication;\n\t\twindow.authentication_complete = this.authentication_complete;\n\t}\n\n\t/**\n\t * Initialize the user list.\n\t */\n\tprepare_user_list() {\n\t\tvar tux = 'img/antergos-logo-user.png',\n\t\t\ttemplate;\n\n\t\t// Loop through the array of LightDMUser objects to create our user list.\n\t\tfor ( var user of lightdm.users ) {\n\t\t\tvar last_session = this.cache_get( 'user', user.name, 'session' ),\n\t\t\t\timage_src = user.image.length ? user.image : tux;\n\n\t\t\tif ( null === last_session ) {\n\t\t\t\t// For backwards compatibility\n\t\t\t\tlast_session = localStorage.getItem( user.name );\n\t\t\t\tif ( null === last_session ) {\n\t\t\t\t\t// This user has never logged in before let's enable the system's default\n\t\t\t\t\t// session.\n\t\t\t\t\tlast_session = lightdm.default_session;\n\t\t\t\t}\n\t\t\t\tthis.cache_set( last_session, 'user', user.name, 'session' );\n\t\t\t}\n\n\t\t\tthis.log( `Last session for ${user.name} was: ${last_session}` );\n\n\t\t\ttemplate = `\n\t\t\t\t\n\t\t\t\t\t\"${user.display_name}\"\n\t\t\t\t\t${user.display_name}\n\t\t\t\t\t\n\t\t\t\t`;\n\n\t\t\t// Register event handler here so we don't have to iterate over the users again later.\n\t\t\t$( template ).appendTo( this.$user_list ).click( this.start_authentication ).children( 'img' ).on( 'error', this.image_not_found );\n\n\t\t} // END for ( var user of lightdm.users )\n\n\t\tif ( $( this.$user_list ).children().length > 3 ) {\n\t\t\t// Make the user list two columns instead of one.\n\t\t\t$( this.$user_list ).css( 'column-count', '2' ).parent().css( 'max-width', '85%' );\n\t\t}\n\n\t}\n\n\t/**\n\t * Initialize the session selection dropdown.\n\t */\n\tprepare_session_list() {\n\t\t// Loop through the array of LightDMSession objects to create our session list.\n\t\tfor ( var session of lightdm.sessions ) {\n\t\t\tvar css_class = session.name.replace( / /g, '' ),\n\t\t\t\ttemplate;\n\n\t\t\tthis.log( `Adding ${session.name} to the session list...` );\n\n\t\t\ttemplate = `\n\t\t\t\t
  • \n\t\t\t\t\t${session.name}\n\t\t\t\t
  • `;\n\n\t\t\t$( template ).appendTo( this.$session_list ).click( this.session_toggle_handler );\n\n\t\t} // END for (var session of lightdm.sessions)\n\n\t\t$( '.dropdown-toggle' ).dropdown();\n\t}\n\n\t/**\n\t * Initialize the system action buttons\n\t */\n\tprepare_system_action_buttons() {\n\t\tvar actions = {\n\t\t\t\tshutdown: \"power-off\",\n\t\t\t\thibernate: \"asterisk\",\n\t\t\t\tsuspend: \"arrow-down\",\n\t\t\t\trestart: \"refresh\"\n\t\t\t},\n\t\t\ttemplate;\n\n\t\tfor ( var action of Object.keys( actions ) ) {\n\t\t\tvar cmd = `can_${action}`;\n\n\t\t\ttemplate = `\n\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t`;\n\n\t\t\tif ( lightdm[ cmd ] ) {\n\t\t\t\t$( template ).appendTo( $( this.$actions_container ) ).click( action, ( event ) => {\n\t\t\t\t\tlightdm[ event.data ]();\n\t\t\t\t} );\n\t\t\t}\n\t\t} // END for (var [action, icon] of actions)\n\n\t\t$( '[data-toggle=tooltip]' ).tooltip();\n\t}\n\n\tinitialize_clock() {\n\t\tvar saved_format = this.cache_get( 'clock', 'time_format' ),\n\t\t\tformat = (null !== saved_format) ? saved_format : 'LT',\n\t\t\tdetected_language = this.lang;\n\t\twindow.navigator.languages = (typeof window.navigator.languages !== 'undefined') ? window.navigator.languages : [ window.navigator.language ];\n\n\t\t// Workaround for moment.js bug: https://github.com/moment/moment/issues/2856\n\t\tfor ( var lang of window.navigator.languages ) {\n\t\t\ttry {\n\t\t\t\tdetected_language = lang.split( '-' )[ 0 ].toLowerCase();\n\t\t\t\tbreak;\n\t\t\t} catch ( err ) {\n\t\t\t\tthis.log( String( err ) );\n\t\t\t}\n\t\t}\n\n\t\tif ( null === detected_language ) {\n\t\t\tdetected_language = 'en';\n\t\t}\n\n\t\tmoment.locale( detected_language );\n\t\tthis.$clock.html( moment().format( format ) );\n\n\t\tsetInterval( () => {\n\t\t\tthis.$clock.html( moment().format( format ) );\n\t\t}, 60000 );\n\t}\n\n\n\t/**\n\t * Show the user list if its not already shown. This is used to allow the user to\n\t * display the user list by pressing Enter or Spacebar.\n\t */\n\tshow_user_list() {\n\t\tif ( $( this.$clock_container ).hasClass( 'in' ) ) {\n\t\t\t$( '#trigger' ).trigger( 'click' );\n\t\t\tthis.user_list_visible = true;\n\t\t}\n\t\tif ( $( this.$user_list ).length <= 1 ) {\n\t\t\t$( this.$user_list ).find( 'a' ).trigger( 'click', this );\n\t\t}\n\t}\n\n\tprepare_login_panel_header() {\n\t\tvar greeting = null;\n\n\t\tif ( this.translations.greeting.hasOwnProperty( this.lang ) ) {\n\t\t\tgreeting = this.translations.greeting[ this.lang ];\n\n\t\t} else {\n\n\t\t\tfor ( var lang of window.navigator.languages ) {\n\t\t\t\tif ( this.translations.greeting.hasOwnProperty( lang ) ) {\n\t\t\t\t\tgreeting = this.translations.greeting[ lang ];\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tgreeting = (null === greeting) ? 'Welcome!' : greeting;\n\n\t\t$( '.welcome' ).text( greeting );\n\t\t$( '#hostname' ).append( lightdm.hostname );\n\t}\n\n\n\t/**\n\t * Start the authentication process for the selected user.\n\t *\n\t * @param {object} event - jQuery.Event object from 'click' event.\n\t */\n\tstart_authentication( event ) {\n\t\tvar user_id = $( this ).attr( 'id' ),\n\t\t\tselector = `.${user_id}`,\n\t\t\tuser_session = _self.cache_get( 'user', user_id, 'session' );\n\n\t\tif ( _self.auth_pending || null !== _self.selected_user ) {\n\t\t\tlightdm.cancel_authentication();\n\t\t\t_self.log( `Authentication cancelled for ${_self.selected_user}` );\n\t\t\t_self.selected_user = null;\n\t\t}\n\n\t\t_self.log( `Starting authentication for ${user_id}.` );\n\t\t_self.selected_user = user_id;\n\n\t\t// CSS hack to workaround webkit bug\n\t\tif ( $( _self.$user_list ).children().length > 3 ) {\n\t\t\t$( _self.$user_list ).css( 'column-count', 'initial' ).parent().css( 'max-width', '50%' );\n\t\t}\n\t\t$( selector ).addClass( 'hovered' ).siblings().hide();\n\t\t$( '.fa-toggle-down' ).hide();\n\n\t\t_self.log( `Session for ${user_id} is ${user_session}` );\n\n\t\t$( `[data-session-id=\"${user_session}\"]` ).parent().trigger( 'click', this );\n\n\t\t$( '#session-list' ).removeClass( 'hidden' ).show();\n\t\t$( '#passwordArea' ).show();\n\t\t$( '.dropdown-toggle' ).dropdown();\n\n\t\t_self.auth_pending = true;\n\n\t\tlightdm.start_authentication( user_id );\n\t}\n\n\n\t/**\n\t * Cancel the pending authentication.\n\t *\n\t * @param {object} event - jQuery.Event object from 'click' event.\n\t */\n\tcancel_authentication( event ) {\n\t\tvar selectors = [ '#statusArea', '#timerArea', '#passwordArea', '#session-list' ];\n\n\t\tfor ( var selector of selectors ) {\n\t\t\t$( selector ).hide();\n\t\t}\n\n\t\tlightdm.cancel_authentication();\n\n\t\t_self.log( 'Cancelled authentication.' );\n\n\t\t// CSS hack to work-around webkit bug\n\t\tif ( $( _self.$user_list ).children().length > 3 ) {\n\t\t\t$( _self.$user_list ).css( 'column-count', '2' ).parent().css( 'max-width', '85%' );\n\t\t}\n\n\t\t$( '.hovered' ).removeClass( 'hovered' ).siblings().show();\n\t\t$( '.fa-toggle-down' ).show();\n\n\t\t_self.selected_user = null;\n\t\t_self.auth_pending = false;\n\n\t}\n\n\n\t/**\n\t * Called when the user attempts to authenticate (inputs password).\n\t * We check to see if the user successfully authenticated and if so tell the LDM\n\t * Greeter to log them in with the session they selected.\n\t */\n\tauthentication_complete() {\n\t\tvar selected_session = $( '.selected' ).attr( 'data-session-id' ),\n\t\t\terr_msg = this.translations.auth_failed[ this.lang ];\n\n\t\t_self.auth_pending = false;\n\t\t_self.cache_set( selected_session, 'user', lightdm.authentication_user, 'session' );\n\n\t\t$( '#timerArea' ).hide();\n\n\t\tif ( lightdm.is_authenticated ) {\n\t\t\t// The user entered the correct password. Let's log them in.\n\t\t\tlightdm.login( lightdm.authentication_user, selected_session );\n\t\t} else {\n\t\t\t// The user did not enter the correct password. Show error message.\n\n\t\t\t$( '#statusArea' ).show();\n\t\t}\n\t}\n\n\tsubmit_password( event ) {\n\t\tlightdm.provide_secret( $( '#passwordField' ).val() );\n\t\t$( '#passwordArea' ).hide();\n\t\t$( '#timerArea' ).show();\n\t}\n\n\tsession_toggle_handler( event ) {\n\t\tvar $session = $( this ).children( 'a' ),\n\t\t\tsession_name = $session.text(),\n\t\t\tsession_key = $session.attr( 'data-session-id' );\n\n\t\t$session.parents( '.btn-group' ).find( '.selected' ).attr( 'data-session-id', session_key ).html( session_name );\n\t}\n\n\tkey_press_handler( event ) {\n\t\tvar action;\n\t\tswitch ( event.which ) {\n\t\t\tcase 13:\n\t\t\t\taction = _self.auth_pending ? _self.submit_password() : ! _self.user_list_visible ? _self.show_user_list() : 0;\n\t\t\t\t_self.log( action );\n\t\t\t\tbreak;\n\t\t\tcase 27:\n\t\t\t\taction = _self.auth_pending ? _self.cancel_authentication() : 0;\n\t\t\t\t_self.log( action );\n\t\t\t\tbreak;\n\t\t\tcase 32:\n\t\t\t\taction = (! _self.user_list_visible && ! _self.auth_pending) ? _self.show_user_list() : 0;\n\t\t\t\t_self.log( action );\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tbreak;\n\t\t}\n\t}\n\n\t/**\n\t * User image on('error') handler.\n\t */\n\timage_not_found( source ) {\n\t\tsource.onerror = \"\";\n\t\tsource.src = 'img/antergos-logo-user.png';\n\t\treturn true;\n\t}\n\n\t/**\n\t * LightDM Callback - Show password prompt to user.\n\t *\n\t * @param text\n\t */\n\tshow_prompt( text ) {\n\n\t\t$( '#passwordField' ).val( \"\" );\n\t\t$( '#passwordArea' ).show();\n\t\t$( '#passwordField' ).focus();\n\t}\n\n\t/**\n\t * LightDM Callback - Show message to user.\n\t *\n\t * @param msg\n\t */\n\tshow_message( msg ) {\n\t\tif ( msg.length > 0 ) {\n\t\t\t$( this.$msg_area ).html( msg );\n\t\t\t$( '#passwordArea' ).hide();\n\t\t\t$( this.$msg_area_container ).show();\n\t\t}\n\t}\n}\n\n\n/**\n * Initialize the theme once the window has loaded.\n */\n$( window ).load( () => {\n\t_self = new AntergosTheme();\n} );\n\n"]} \ No newline at end of file diff --git a/themes/antergos/js/greeter.js b/themes/antergos/js/greeter.js index 4be3656..dbf13bf 100644 --- a/themes/antergos/js/greeter.js +++ b/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(); } } diff --git a/themes/antergos/js/greeting_translations.js b/themes/antergos/js/greeting_translations.js deleted file mode 100644 index 9d7e3a2..0000000 --- a/themes/antergos/js/greeting_translations.js +++ /dev/null @@ -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!" -}; \ No newline at end of file diff --git a/themes/antergos/js/translations.js b/themes/antergos/js/translations.js new file mode 100644 index 0000000..064716e --- /dev/null +++ b/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." + } +}; \ No newline at end of file