PageSourceSearch

https://gaudidecor.eu/scripts/translations.js

js gaudidecor.eu collected 2026-10-08 21:15:43 UTC 7,871 bytes, 178 lines download raw bytes

1// i18n.js — Модуль локализации сайта
2(function () {
3    var translations = {
4        en: {
5            yesSave: 'Yes, save',
6            dontSave: "Don't save",
7            authError: 'Incorrect login or password.',
8            loggingIn: 'Loading...',
9            login: 'Log In',
10            cartEmptyError: 'Your shopping cart is empty!',
11            saveBeforeClearPrompt: 'Would you like to save your current shopping cart before clearing\u00A0it?',
12            saving: 'Saving...',
13            confirm: 'Confirm',
14            bitrixError: 'Bitrix error: ',
15            unknownError: 'Unknown error',
16            serverError: 'Server error while saving the cart.',
17            productHash: 'Product\u00A0#',
18            pcs: '\u00A0pcs.'
19        },
20        ru: {
21            yesSave: 'Да, сохранить',
22            dontSave: 'Нет, затереть',
23            authError: 'Неверный логин или пароль.',
24            loggingIn: 'Вход...',
25            login: 'Войти',
26            cartEmptyError: 'Ваша корзина пуста!',
27            saveBeforeClearPrompt: 'Хотите ли вы сохранить текущую корзину перед её очисткой?',
28            saving: 'Сохранение...',
29            confirm: 'Подтвердить',
30            bitrixError: 'Ошибка Битрикса: ',
31            unknownError: 'Неизвестная ошибка',
32            serverError: 'Ошибка сервера при сохранении корзины.',
33            productHash: 'Товар\u00A0#',
34            pcs: '\u00A0шт.'
35        },
36        de: {
37            yesSave: 'Ja, speichern',
38            dontSave: 'Nicht speichern',
39            authError: 'Falscher Login oder falsches Passwort.',
40            loggingIn: 'Einloggen...',
41            login: 'Einloggen',
42            cartEmptyError: 'Ihr Warenkorb ist leer!',
43            saveBeforeClearPrompt: 'Möchten Sie Ihren aktuellen Warenkorb speichern, bevor Sie ihn leeren?',
44            saving: 'Wird gespeichert...',
45            confirm: 'Bestätigen',
46            bitrixError: 'Bitrix-Fehler: ',
47            unknownError: 'Unbekannter Fehler',
48            serverError: 'Serverfehler beim Speichern des Warenkorbs.',
49            productHash: 'Produkt\u00A0#',
50            pcs: '\u00A0Stk.'
51        },
52        fr: {
53            yesSave: 'Oui, enregistrer',
54            dontSave: 'Ne pas enregistrer',
55            authError: 'Identifiant ou mot de passe incorrect.',
56            loggingIn: 'Connexion...',
57            login: 'Connexion',
58            cartEmptyError: 'Votre panier est vide !',
59            saveBeforeClearPrompt: 'Souhaitez-vous enregistrer votre panier actuel avant de le vider ?',
60            saving: 'Enregistrement...',
61            confirm: 'Confirmer',
62            bitrixError: 'Erreur Bitrix : ',
63            unknownError: 'Erreur inconnue',
64            serverError: 'Erreur serveur lors de l\'enregistrement du panier.',
65            productHash: 'Produit\u00A0#',
66            pcs: '\u00A0pce.'
67        },
68        nl: {
69            yesSave: 'Ja, opslaan',
70            dontSave: 'Niet opslaan',
71            authError: 'Onjuiste login vagy wachtwoord.',
72            loggingIn: 'Inloggen...',
73            login: 'Inloggen',
74            cartEmptyError: 'Uw winkelwagen is leeg!',
75            saveBeforeClearPrompt: 'Wilt u uw huidige winkelwagen opslaan voordat u deze leegmaakt?',
76            saving: 'Opslaan...',
77            confirm: 'Bevestigen',
78            bitrixError: 'Bitrix-fout: ',
79            unknownError: 'Onbekende fout',
80            serverError: 'Serverfout bij het opslaan van de winkelwagen.',
81            productHash: 'Product\u00A0#',
82            pcs: '\u00A0st.'
83        },
84        ro: {
85            yesSave: 'Da, salvează',
86            dontSave: 'Nu salva',
87            authError: 'Login sau parolă incorectă.',
88            loggingIn: 'Se conectează...',
89            login: 'Autentificare',
90            cartEmptyError: 'Coșul dumneavoastră de cumpărături este gol!',
91            saveBeforeClearPrompt: 'Doriți să salvați coșul de cumpărături curent înainte de a-l goli?',
92            saving: 'Se salvează...',
93            confirm: 'Confirmă',
94            bitrixError: 'Eroare Bitrix: ',
95            unknownError: 'Eroare necunoscută',
96            serverError: 'Eroare de server la salvarea coșului.',
97            productHash: 'Produs\u00A0#',
98            pcs: '\u00A0buc.'
99        },
100        hu: {
101            yesSave: 'Igen, mentés',
102            dontSave: 'Ne mentse',
103            authError: 'Helytelen felhasználónév vagy jelszó.',
104            loggingIn: 'Bejelentkezés...',
105            login: 'Bejelentkezés',
106            cartEmptyError: 'A kosara üres!',
107            saveBeforeClearPrompt: 'Szeretné menteni a jelenlegi kosarát a törl
107és előtt?',
108            saving: 'Mentés...',
109            confirm: 'Megerősítés',
110            bitrixError: 'Bitrix hiba: ',
111            unknownError: 'Ismeretlen hiba',
112            serverError: 'Szerverhiba a kosár mentése közben.',
113            productHash: 'Termék\u00A0#',
114            pcs: '\u00A0db.'
115        },
116        it: {
117            yesSave: 'Sì, salva',
118            dontSave: 'Non salvare',
119            authError: 'Nome utente o password errati.',
120            loggingIn: 'Accesso in corso...',
121            login: 'Accedi',
122            cartEmptyError: 'Il tuo carrello è vuoto!',
123            saveBeforeClearPrompt: 'Vuoi salvare il tuo carrello attuale prima di svuotarlo?',
124            saving: 'Salvataggio...',
125            confirm: 'Conferma',
126            bitrixError: 'Errore Bitrix: ',
127            unknownError: 'Errore sconosciuto',
128            serverError: 'Errore del server durante il salvataggio del carrello.',
129            productHash: 'Prodotto\u00A0#',
130            pcs: '\u00A0pz.'
131        },
132        es: {
133            yesSave: 'Sí, guardar',
134            dontSave: 'No guardar',
135            authError: 'Usuario o contraseña incorrectos.',
136            loggingIn: 'Iniciando sesión...',
137            login: 'Iniciar sesión',
138            cartEmptyError: '¡Tu carrito de compras está vacío!',
139            saveBeforeClearPrompt: '¿Te gustaría guardar tu carrito de compras actual antes de vaciarlo?',
140            saving: 'Guardando...',
141            confirm: 'Confirmar',
142            bitrixError: 'Error de Bitrix: ',
143            unknownError: 'Error desconocido',
144            serverError: 'Error del servidor al guardar el carrito.',
145            productHash: 'Producto\u00A0#',
146            pcs: '\u00A0ud.'
147        },
148        pt: {
149            yesSave: 'Sim, guardar',
150            dontSave: 'Não guardar',
151            authError: 'Login ou palavra-passe incorreta.',
152            loggingIn: 'A iniciar sessão...',
153            login: 'Iniciar sessão',
154            cartEmptyError: 'O seu carrinho de compras está vazio!',
155            saveBeforeClearPrompt: 'Gostaria de guardar o seu carrinho de compras atual antes de o esvaziar?',
156            saving: 'A guardar...',
157            confirm: 'Confirmar',
158            bitrixError: 'Erro do Bitrix: ',
159            unknownError: 'Erro desconhecido',
160            serverError: 'Erro do servidor ao guardar o carrinho.',
161            productHash: 'Produto\u00A0#',
162            pcs: '\u00A0un.'
163        }
164    };
165
166
167    // Экспортируем функцию перевода в глобальную область видимости
168    window.t = function (key) {
169        // Проверяем наличие библиотеки jQuery Cookie
170        var lang = (typeof $.cookie === 'function') ? $.cookie('id_lang') : 'en';
171        lang = lang || 'en';
172
173        if (!translations[lang]) {
174            lang = 'en';
175        }
176        return translations[lang][key] || translations['en'][key] || key;
177    };
178})();

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.