X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/ba44660a1a87d1c385b3a9e101ce946672fed755..6a8dee56c68c3621f214a51cf2032176e66e6385:/wolnelektury/static/js/catalogue.js?ds=inline diff --git a/wolnelektury/static/js/catalogue.js b/wolnelektury/static/js/catalogue.js index b37c57734..7a7709de1 100644 --- a/wolnelektury/static/js/catalogue.js +++ b/wolnelektury/static/js/catalogue.js @@ -2,45 +2,51 @@ var LOCALE_TEXTS = { "pl": { "DELETE_SHELF": "Czy na pewno usunąć półkę", "HIDE_DESCRIPTION": "Zwiń opis", - "EXPAND DESCRIPTION": "Rozwiń opis", + "EXPAND_DESCRIPTION": "Rozwiń opis", "LOADING": "Ładowanie", }, + "de": { + "DELETE_SHELF": "Translate me!", + "HIDE_DESCRIPTION": "Translate me!", + "EXPAND_DESCRIPTION": "Translate me!", + "LOADING": "Translate me!", + }, "fr": { "DELETE_SHELF": "Translate me!", "HIDE_DESCRIPTION": "Translate me!", - "EXPAND DESCRIPTION": "Translate me!", - "LOADING": "Translate me!", - }, - "ru": { - "DELETE_SHELF": "Translate me!", - "HIDE_DESCRIPTION": "Translate me!", - "EXPAND DESCRIPTION": "Translate me!", + "EXPAND_DESCRIPTION": "Translate me!", "LOADING": "Translate me!", }, "en": { "DELETE_SHELF": "Translate me!", "HIDE_DESCRIPTION": "Translate me!", - "EXPAND DESCRIPTION": "Translate me!", + "EXPAND_DESCRIPTION": "Translate me!", "LOADING": "Translate me!", }, "ru": { "DELETE_SHELF": "Translate me!", "HIDE_DESCRIPTION": "Translate me!", - "EXPAND DESCRIPTION": "Translate me!", + "EXPAND_DESCRIPTION": "Translate me!", "LOADING": "Translate me!", }, "es": { "DELETE_SHELF": "Translate me!", "HIDE_DESCRIPTION": "Translate me!", - "EXPAND DESCRIPTION": "Translate me!", + "EXPAND_DESCRIPTION": "Translate me!", "LOADING": "Translate me!", }, - "lt":{ - "DELETE_SHELF": "Translate me!", - "HIDE_DESCRIPTION": "Translate me!", - "EXPAND DESCRIPTION": "Translate me!", - "LOADING": "Translate me!", - } + "lt":{ + "DELETE_SHELF": "Translate me!", + "HIDE_DESCRIPTION": "Translate me!", + "EXPAND_DESCRIPTION": "Translate me!", + "LOADING": "Translate me!", + }, + "uk":{ + "DELETE_SHELF": "Translate me!", + "HIDE_DESCRIPTION": "Translate me!", + "EXPAND_DESCRIPTION": "Translate me!", + "LOADING": "Translate me!", + } } var BANNER_TEXTS = [ 'Przekaż 1% żeby ukryć ten baner.', @@ -283,7 +289,7 @@ function serverTime() { } else { $('#description').slideUp('fast').addClass('hidden'); $.cookie('description-state', 'closed', {path: '/', expires: 30}); - $('p', this).html(LOCALE_TEXTS[LANGUAGE_CODE]['HIDE_DESCRIPTION'] + ' ▼'); + $('p', this).html(LOCALE_TEXTS[LANGUAGE_CODE]['EXPAND_DESCRIPTION'] + ' ▼'); } }); @@ -327,7 +333,7 @@ function serverTime() { if ($.cookie('description-state') == 'closed') { $('#description').hide().addClass('hidden'); - $('#toggle-description p').html(LOCALE_TEXTS[LANGUAGE_CODE]['EXPAND_SHELF']+' ▼'); + $('#toggle-description p').html(LOCALE_TEXTS[LANGUAGE_CODE]['EXPAND_DESCRIPTION']+' ▼'); } $('#share-shelf').hide().addClass('hidden');