mirror of
https://github.com/PurpleI2P/i2pd
synced 2024-11-10 00:00:29 +03:00
a51ef0cfc6
* [webconsole] change error handling code to restart acceptor after any error * [webconsole] call shutdown vefore stopping acceptor on exit * update license headers for modified files, change year to file creation year, not 2013 (when project started) Signed-off-by: R4SAS <r4sas@i2pmail.org>
216 lines
9.3 KiB
C++
216 lines
9.3 KiB
C++
/*
|
||
* Copyright (c) 2021-2022, The PurpleI2P Project
|
||
*
|
||
* This file is part of Purple i2pd project and licensed under BSD3
|
||
*
|
||
* See full license text in LICENSE file at top of project tree
|
||
*/
|
||
|
||
#include <map>
|
||
#include <vector>
|
||
#include <string>
|
||
#include <memory>
|
||
#include "I18N.h"
|
||
|
||
// Ukrainian localization file
|
||
|
||
namespace i2p
|
||
{
|
||
namespace i18n
|
||
{
|
||
namespace uzbek // language namespace
|
||
{
|
||
// language name in lowercase
|
||
static std::string language = "uzbek";
|
||
|
||
// See for language plural forms here:
|
||
// https://localization-guide.readthedocs.io/en/latest/l10n/pluralforms.html
|
||
static int plural (int n) {
|
||
return n > 1 ? 1 : 0;
|
||
}
|
||
|
||
static std::map<std::string, std::string> strings
|
||
{
|
||
{"KiB", "KiB"},
|
||
{"MiB", "MiB"},
|
||
{"GiB", "GiB"},
|
||
{"building", "yaratilmoqda"},
|
||
{"failed", "muvaffaqiyatsiz"},
|
||
{"expiring", "muddati tugaydi"},
|
||
{"established", "aloqa o'rnatildi"},
|
||
{"unknown", "noma'lum"},
|
||
{"exploratory", "tadqiqiy"},
|
||
{"<b>i2pd</b> webconsole", "<b>i2pd</b> veb-konsoli"},
|
||
{"Main page", "Asosiy sahifa"},
|
||
{"Router commands", "Router buyruqlari"},
|
||
{"Local Destinations", "Mahalliy joylanishlar"},
|
||
{"LeaseSets", "LeaseSets"},
|
||
{"Tunnels", "Tunnellar"},
|
||
{"Transit Tunnels", "Tranzit Tunellari"},
|
||
{"Transports", "Transportlar"},
|
||
{"I2P tunnels", "I2P tunnellari"},
|
||
{"SAM sessions", "SAM sessiyalari"},
|
||
{"ERROR", "XATO"},
|
||
{"OK", "OK"},
|
||
{"Testing", "Testlash"},
|
||
{"Firewalled", "Xavfsizlik devori bilan himoyalangan"},
|
||
{"Unknown", "Notanish"},
|
||
{"Proxy", "Proksi"},
|
||
{"Mesh", "Mesh To'r"},
|
||
{"Error", "Xato"},
|
||
{"Clock skew", "Aniq vaqt emas"},
|
||
{"Offline", "Oflayn"},
|
||
{"Symmetric NAT", "Simmetrik NAT"},
|
||
{"Uptime", "Ish vaqti"},
|
||
{"Network status", "Tarmoq holati"},
|
||
{"Network status v6", "Tarmoq holati v6"},
|
||
{"Stopping in", "Ichida to'xtatish"},
|
||
{"Family", "Oila"},
|
||
{"Tunnel creation success rate", "Tunnel yaratish muvaffaqiyat darajasi"},
|
||
{"Received", "Qabul qilindi"},
|
||
{"KiB/s", "KiB/s"},
|
||
{"Sent", "Yuborilgan"},
|
||
{"Transit", "Tranzit"},
|
||
{"Data path", "Ma'lumotlar joylanishi"},
|
||
{"Hidden content. Press on text to see.", "Yashirin tarkib. Ko'rish uchun matn ustida bosing."},
|
||
{"Router Ident", "Router identifikatori"},
|
||
{"Router Family", "Router oilasi"},
|
||
{"Router Caps", "Router Bayroqlari"},
|
||
{"Version", "Versiya"},
|
||
{"Our external address", "Bizning tashqi manzilimiz"},
|
||
{"supported", "qo'llab-quvvatlanadi"},
|
||
{"Routers", "Routerlar"},
|
||
{"Floodfills", "Floodfills"},
|
||
{"Client Tunnels", "Mijoz Tunellari"},
|
||
{"Services", "Xizmatlar"},
|
||
{"Enabled", "Yoqilgan"},
|
||
{"Disabled", "O'chirilgan"},
|
||
{"Encrypted B33 address", "Shifrlangan B33 manzil"},
|
||
{"Address registration line", "Manzilni ro'yxatga olish liniyasi"},
|
||
{"Domain", "Domen"},
|
||
{"Generate", "Yaratish"},
|
||
{"<b>Note:</b> result string can be used only for registering 2LD domains (example.i2p). For registering subdomains please use i2pd-tools.", "<b>Eslatma:</b> natija satridan faqat 2LD domenlarini ro'yxatdan o'tkazish uchun foydalanish mumkin (example.i2p). Subdomenlarni ro'yxatdan o'tkazish uchun 'i2pd-tools'dan foydalaning."},
|
||
{"Address", "Manzil"},
|
||
{"Type", "Turi"},
|
||
{"EncType", "ShifrlashTuri"},
|
||
{"Inbound tunnels", "Kirish tunnellari"},
|
||
{"ms", "ms"},
|
||
{"Outbound tunnels", "Chiquvchi tunnellar"},
|
||
{"Tags", "Teglar"},
|
||
{"Incoming", "Kiruvchi"},
|
||
{"Outgoing", "Chiquvchi"},
|
||
{"Destination", "Manzilgoh"},
|
||
{"Amount", "Soni"},
|
||
{"Incoming Tags", "Kiruvchi teglar"},
|
||
{"Tags sessions", "Teglar sessiyalari"},
|
||
{"Status", "Holat"},
|
||
{"Local Destination", "Mahalliy joylanish"},
|
||
{"Streams", "Strim"},
|
||
{"Close stream", "Strimni o'chirish"},
|
||
{"I2CP session not found", "I2CP sessiyasi topilmadi"},
|
||
{"I2CP is not enabled", "I2CP yoqilmagan"},
|
||
{"Invalid", "Noto'g'ri"},
|
||
{"Store type", "Saqlash turi"},
|
||
{"Expires", "Muddati tugaydi"},
|
||
{"Non Expired Leases", "Muddati O'tmagan Leases"},
|
||
{"Gateway", "Kirish yo'li"},
|
||
{"TunnelID", "TunnelID"},
|
||
{"EndDate", "Tugash Sanasi"},
|
||
{"not floodfill", "floodfill emas"},
|
||
{"Queue size", "Navbat hajmi"},
|
||
{"Run peer test", "Sinovni boshlang"},
|
||
{"Decline transit tunnels", "Tranzit tunnellarini rad etish"},
|
||
{"Accept transit tunnels", "Tranzit tunnellarni qabul qilish"},
|
||
{"Cancel graceful shutdown", "Yumshoq to'xtashni bekor qilish"},
|
||
{"Start graceful shutdown", "Yumshoq to'xtashni boshlash"},
|
||
{"Force shutdown", "Majburiy to'xtatish"},
|
||
{"Reload external CSS styles", "Tashqi CSS uslublarini qayta yuklang"},
|
||
{"<b>Note:</b> any action done here are not persistent and not changes your config files.", "<b>Eslatma:</b> shu yerda qilingan har qanday harakat doimiy emas va konfiguratsiya fayllarini o'zgartirmaydi."},
|
||
{"Logging level", "Jurnal darajasi"},
|
||
{"Transit tunnels limit", "Tranzit tunellarning chegarasi"},
|
||
{"Change", "O'zgartirish"},
|
||
{"Change language", "Tilni o'zgartirish"},
|
||
{"no transit tunnels currently built", "qurilgan tranzit tunnellari yo'q"},
|
||
{"SAM disabled", "SAM o'chirilgan"},
|
||
{"no sessions currently running", "hech qanday ishlaydigan sessiyalar yo'q"},
|
||
{"SAM session not found", "SAM sessiyasi topilmadi"},
|
||
{"SAM Session", "SAM sessiyasi"},
|
||
{"Server Tunnels", "Server Tunellari"},
|
||
{"Client Forwards", "Mijozlarni Yo'naltirish"},
|
||
{"Server Forwards", "Serverni Yo'naltirish"},
|
||
{"Unknown page", "Noma'lum sahifa"},
|
||
{"Invalid token", "Noto‘g‘ri belgi"},
|
||
{"SUCCESS", "Muvaffaqiyat"},
|
||
{"Stream closed", "Strim yopiq"},
|
||
{"Stream not found or already was closed", "Strim topilmadi yoki allaqachon yopilgan"},
|
||
{"Destination not found", "Yo'nalish topilmadi"},
|
||
{"StreamID can't be null", "StreamID bo'sh bo'lishi mumkin emas"},
|
||
{"Return to destination page", "Manzilgoh sahifasiga qaytish"},
|
||
{"You will be redirected in 5 seconds", "Siz 5 soniya ichida qayta yo'naltirilasiz"},
|
||
{"Transit tunnels count must not exceed 65535", "Tranzit tunnellar soni 65535 dan oshmasligi kerak"},
|
||
{"Back to commands list", "Buyruqlar ro'yxatiga qaytish"},
|
||
{"Register at reg.i2p", "Reg.i2p-da ro'yxatdan o'ting"},
|
||
{"Description", "Tavsif"},
|
||
{"A bit information about service on domain", "Domen xizmatlari haqida bir oz ma'lumot"},
|
||
{"Submit", "Yuborish"},
|
||
{"Domain can't end with .b32.i2p", "Domen .b32.i2p bilan tugashi mumkin emas"},
|
||
{"Domain must end with .i2p", "Domen .i2p bilan tugashi kerak"},
|
||
{"Such destination is not found", "Bunday yo'nalish topilmadi"},
|
||
{"Unknown command", "Noma'lum buyruq"},
|
||
{"Command accepted", "Buyruq qabul qilindi"},
|
||
{"Proxy error", "Proksi xatosi"},
|
||
{"Proxy info", "Proksi ma'lumotlari"},
|
||
{"Proxy error: Host not found", "Proksi xatosi: Xost topilmadi"},
|
||
{"Remote host not found in router's addressbook", "Masofaviy xost yo'riqnoma manzillar kitobida topilmadi"},
|
||
{"You may try to find this host on jump services below", "Siz xost quyida o'tish xizmatlari orqali topishga harakat qilishingiz mumkin"},
|
||
{"Invalid request", "Noto‘g‘ri so‘rov"},
|
||
{"Proxy unable to parse your request", "Proksi sizning so'rovingizni aniqlab ololmayapti"},
|
||
{"addresshelper is not supported", "addresshelper qo'llab -quvvatlanmaydi"},
|
||
{"Host", "Xost"},
|
||
{"added to router's addressbook from helper", "'helper'dan routerning 'addressbook'ga qo'shildi"},
|
||
{"Click here to proceed:", "Davom etish uchun shu yerni bosing:"},
|
||
{"Continue", "Davom etish"},
|
||
{"Addresshelper found", "Addresshelper topildi"},
|
||
{"already in router's addressbook", "allaqachon 'addressbook'da yozilgan"},
|
||
{"Click here to update record:", "Yozuvni yangilash uchun shu yerni bosing:"},
|
||
{"invalid request uri", "noto'g'ri URI so'rovi"},
|
||
{"Can't detect destination host from request", "So‘rov orqali manzil xostini aniqlab bo'lmayapti"},
|
||
{"Outproxy failure", "Tashqi proksi muvaffaqiyatsizligi"},
|
||
{"bad outproxy settings", "noto'g'ri tashqi proksi-server sozlamalari"},
|
||
{"not inside I2P network, but outproxy is not enabled", "I2P tarmog'ida emas, lekin tashqi proksi yoqilmagan"},
|
||
{"unknown outproxy url", "noma'lum outproxy url"},
|
||
{"cannot resolve upstream proxy", "yuqoridagi 'proxy-server'ni aniqlab olib bolmayapti"},
|
||
{"hostname too long", "xost nomi juda uzun"},
|
||
{"cannot connect to upstream socks proxy", "yuqori 'socks proxy'ga ulanib bo'lmayapti"},
|
||
{"Cannot negotiate with socks proxy", "'Socks proxy' bilan muzokara olib bo'lmaydi"},
|
||
{"CONNECT error", "CONNECT xatosi"},
|
||
{"Failed to Connect", "Ulanib bo'lmayapti"},
|
||
{"socks proxy error", "'socks proxy' xatosi"},
|
||
{"failed to send request to upstream", "yuqori http proksi-serveriga so'rovni uborib bo'lmadi"},
|
||
{"No Reply From socks proxy", "'Socks proxy'dan javob yo'q"},
|
||
{"cannot connect", "ulanib bo'lmaydi"},
|
||
{"http out proxy not implemented", "tashqi HTTP proksi-serverni qo'llab-quvvatlash amalga oshirilmagan"},
|
||
{"cannot connect to upstream http proxy", "yuqori http 'proxy-server'iga ulanib bo'lmayapti"},
|
||
{"Host is down", "Xost ishlamayapti"},
|
||
{"Can't create connection to requested host, it may be down. Please try again later.", "Talab qilingan xost bilan aloqa o'rnatilmadi, u ishlamay qolishi mumkin. Iltimos keyinroq qayta urinib ko'ring."},
|
||
{"", ""},
|
||
};
|
||
|
||
static std::map<std::string, std::vector<std::string>> plurals
|
||
{
|
||
{"days", {"kun", "kun"}},
|
||
{"hours", {"soat", "soat"}},
|
||
{"minutes", {"daqiqa", "daqiqa"}},
|
||
{"seconds", {"soniya", "soniya"}},
|
||
{"", {"", ""}},
|
||
};
|
||
|
||
std::shared_ptr<const i2p::i18n::Locale> GetLocale()
|
||
{
|
||
return std::make_shared<i2p::i18n::Locale>(language, strings, plurals, [] (int n)->int { return plural(n); });
|
||
}
|
||
|
||
} // language
|
||
} // i18n
|
||
} // i2p
|