mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2024-10-31 09:20:38 +00:00
a57ae4dc56
Translation author: corona@mail.i2p Signed-off-by: R4SAS <r4sas@i2pmail.org>
218 lines
9.1 KiB
C++
218 lines
9.1 KiB
C++
/*
|
|
* Copyright (c) 2023, 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"
|
|
|
|
// Swedish localization file
|
|
|
|
namespace i2p
|
|
{
|
|
namespace i18n
|
|
{
|
|
namespace swedish // language namespace
|
|
{
|
|
// language name in lowercase
|
|
static std::string language = "swedish";
|
|
|
|
// 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
|
|
{
|
|
{"%.2f KiB", "%.2f KiB"},
|
|
{"%.2f MiB", "%.2f MiB"},
|
|
{"%.2f GiB", "%.2f GiB"},
|
|
{"building", "bygger"},
|
|
{"failed", "misslyckad"},
|
|
{"expiring", "utgÄr"},
|
|
{"established", "upprÀttad"},
|
|
{"unknown", "okÀnt"},
|
|
{"exploratory", "utforskande"},
|
|
{"Purple I2P Webconsole", "Purple I2P Webbkonsoll"},
|
|
{"<b>i2pd</b> webbkonsoll", "<b>i2pd</b>-Webbkonsoll"},
|
|
{"Main page", "Huvudsida"},
|
|
{"Router commands", "Routerkommandon"},
|
|
{"Local Destinations", "Lokala Platser"},
|
|
{"LeaseSets", "HyresuppsÀttningar"},
|
|
{"Tunnels", "Tunnlar"},
|
|
{"Transit Tunnels", "Förmedlande Tunnlar"},
|
|
{"Transports", "Transporter"},
|
|
{"I2P tunnels", "I2P-tunnlar"},
|
|
{"SAM sessions", "SAM-perioder"},
|
|
{"ERROR", "FEL"},
|
|
{"OK", "OK"},
|
|
{"Testing", "Prövar"},
|
|
{"Firewalled", "Bakom BrandvÀgg"},
|
|
{"Unknown", "OkÀnt"},
|
|
{"Proxy", "Proxy"},
|
|
{"Mesh", "Mesh"},
|
|
{"Error", "Fel"},
|
|
{"Clock skew", "Tidsförskjutning"},
|
|
{"Offline", "Nedkopplad"},
|
|
{"Symmetric NAT", "Symmetrisk NAT"},
|
|
{"Uptime", "Upptid"},
|
|
{"Network status", "NÀtverkstillstÄnd"},
|
|
{"Network status v6", "NÀtverkstillstÄnd v6"},
|
|
{"Stopping in", "AvstÀngd om"},
|
|
{"Family", "Familj"},
|
|
{"Tunnel creation success rate", "Andel framgÄngsrika tunnlar"},
|
|
{"Received", "Mottaget"},
|
|
{"%.2f KiB/s", "%.2f KiB/s"},
|
|
{"Sent", "Skickat"},
|
|
{"Transit", "Förmedlat"},
|
|
{"Data path", "SökvÀg"},
|
|
{"Hidden content. Press on text to see.", "Dolt innehÄll. Tryck för att visa."},
|
|
{"Router Ident", "Routeridentitet"},
|
|
{"Router Family", "Routerfamilj"},
|
|
{"Router Caps", "RouterbegrÀnsningar"},
|
|
{"Version", "Version"},
|
|
{"Our external address", "VĂ„r externa adress"},
|
|
{"supported", "stöds"},
|
|
{"Routers", "Routrar"},
|
|
{"Floodfills", "ĂversvĂ€mningsfyllare"},
|
|
{"Client Tunnels", "Klienttunnlar"},
|
|
{"Services", "TjÀnster"},
|
|
{"Enabled", "PĂ„slaget"},
|
|
{"Disabled", "Avslaget"},
|
|
{"Encrypted B33 address", "Krypterad B33-Adress"},
|
|
{"Address registration line", "Adressregistreringsrad"},
|
|
{"Domain", "DomÀn"},
|
|
{"Generate", "Skapa"},
|
|
{"<b>Note:</b> result string can be used only for registering 2LD domains (example.i2p). For registering subdomains please use i2pd-tools.", "<b>UppmÀrksamma:</b> den resulterande strÀngen kan enbart anvÀndas för att registrera 2LD-domÀner (exempel.i2p). För att registrera underdomÀner, vÀnligen anvÀnd i2pd-tools."},
|
|
{"Address", "Adress"},
|
|
{"Type", "Typ"},
|
|
{"EncType", "EncTyp"},
|
|
{"Inbound tunnels", "IngÄende Tunnlar"},
|
|
{"%dms", "%dms"},
|
|
{"Outbound tunnels", "UtgÄende Tunnlar"},
|
|
{"Tags", "Taggar"},
|
|
{"Incoming", "IngÄende"},
|
|
{"Outgoing", "UtgÄende"},
|
|
{"Destination", "Plats"},
|
|
{"Amount", "MĂ€ngd"},
|
|
{"Incoming Tags", "IngÄende Taggar"},
|
|
{"Tags sessions", "Tagg-perioder"},
|
|
{"Status", "TillstÄnd"},
|
|
{"Local Destination", "Lokal Plats"},
|
|
{"Streams", "Strömmar"},
|
|
{"Close stream", "StÀng strömmen"},
|
|
{"I2CP session not found", "I2CP-period hittades inte"},
|
|
{"I2CP is not enabled", "I2CP Àr inte pÄslaget"},
|
|
{"Invalid", "Ogiltig"},
|
|
{"Store type", "Lagringstyp"},
|
|
{"Expires", "UtgÄngsdatum"},
|
|
{"Non Expired Leases", "IckeutgÄngna HyresuppsÀttningar"},
|
|
{"Gateway", "Gateway"},
|
|
{"TunnelID", "TunnelID"},
|
|
{"EndDate", "EndDate"},
|
|
{"not floodfill", "inte ĂversvĂ€mningsfyllare"},
|
|
{"Queue size", "Köstorlek"},
|
|
{"Run peer test", "Utför utsiktstest"},
|
|
{"Decline transit tunnels", "Avvisa förmedlande tunnlar"},
|
|
{"Accept transit tunnels", "TillÄt förmedlande tunnlar"},
|
|
{"Cancel graceful shutdown", "Avbryt vÀlvillig avstÀngning"},
|
|
{"Start graceful shutdown", "PÄbörja vÀlvillig avstÀngning"},
|
|
{"Force shutdown", "Tvingad avstÀngning"},
|
|
{"Reload external CSS styles", "Ladda om externa CSS-stilar"},
|
|
{"<b>Note:</b> any action done here are not persistent and not changes your config files.", "<b>UppmÀrksamma:</b> inga Àndringar hÀr Àr bestÀndiga eller pÄverkar dina instÀllningsfiler."},
|
|
{"Logging level", "ProtokollförningsnivÄ"},
|
|
{"Transit tunnels limit", "BegrÀnsa förmedlande tunnlar"},
|
|
{"Change", "Ăndra"},
|
|
{"Change language", "Ăndra sprĂ„k"},
|
|
{"no transit tunnels currently built", "inga förmedlande tunnlar har byggts"},
|
|
{"SAM disabled", "SAM avslaget"},
|
|
{"no sessions currently running", "inga perioder igÄng"},
|
|
{"SAM session not found", "SAM-perioder hittades ej"},
|
|
{"SAM Session", "SAM-period"},
|
|
{"Server Tunnels", "VĂ€rdtunnlar"},
|
|
{"Client Forwards", "Klientförpassningar"},
|
|
{"Server Forwards", "VÀrdförpassningar"},
|
|
{"Unknown page", "OkÀnd sida"},
|
|
{"Invalid token", "Ogiltig polett"},
|
|
{"SUCCESS", "FRAMGĂ
NG"},
|
|
{"Stream closed", "Ström stÀngd"},
|
|
{"Stream not found or already was closed", "Strömmen hittades inte eller var redan avslutad"},
|
|
{"Destination not found", "Plats hittades ej"},
|
|
{"StreamID can't be null", "Ström-ID kan inte vara null"},
|
|
{"Return to destination page", "Ă
tervÀnd till platssidan"},
|
|
{"You will be redirected in 5 seconds", "Du omdirigeras inom fem sekunder"},
|
|
{"Transit tunnels count must not exceed 65535", "Förmedlande tunnlar fÄr inte överstiga 65535"},
|
|
{"Back to commands list", "Tillbaka till kommandolistan"},
|
|
{"Register at reg.i2p", "Registrera vid reg.i2p"},
|
|
{"Description", "Beskrivning"},
|
|
{"A bit information about service on domain", "Ett stycke information om domÀnens tjÀnst"},
|
|
{"Submit", "Skicka"},
|
|
{"Domain can't end with .b32.i2p", "DomÀnen fÄr inte sluta med .b32.i2p"},
|
|
{"Domain must end with .i2p", "DomÀnen mÄste sluta med .i2p"},
|
|
{"Such destination is not found", "En sÄdan plats hittas ej"},
|
|
{"Unknown command", "OkÀnt kommando"},
|
|
{"Command accepted", "Kommando accepterades"},
|
|
{"Proxy error", "Proxyfel"},
|
|
{"Proxy info", "Proxyinfo"},
|
|
{"Proxy error: Host not found", "Proxyfel: VĂ€rden hittades ej"},
|
|
{"Remote host not found in router's addressbook", "FrÀmmande vÀrd hittades inte i routerns adressbok"},
|
|
{"You may try to find this host on jump services below", "Du kan försöka att hitta vÀrden genom hopptjÀnsterna nedan"},
|
|
{"Invalid request", "Ogiltig förfrÄgan"},
|
|
{"Proxy unable to parse your request", "Proxyt kan inte behandla din förfrÄgan"},
|
|
{"addresshelper is not supported", "adresshjÀlparen stöds ej"},
|
|
{"Host", "VĂ€rd"},
|
|
{"added to router's addressbook from helper", "tillagd i routerns adressbok frÄn adresshjÀlparen"},
|
|
{"Click here to proceed:", "Tryck hÀr för att fortsÀtta:"},
|
|
{"Continue", "FortsÀtt"},
|
|
{"Addresshelper found", "AdresshjÀlpare hittad"},
|
|
{"already in router's addressbook", "finns redan i routerns adressbok"},
|
|
{"Click here to update record:", "Tryck hÀr för att uppdatera:"},
|
|
{"invalid request uri", "ogiltig förfrÄgnings-URI"},
|
|
{"Can't detect destination host from request", "Kan inte upptÀcka platsvÀrden frÄn förfrÄgan"},
|
|
{"Outproxy failure", "Utproxyfel"},
|
|
{"bad outproxy settings", "ogiltig utproxyinstÀllning"},
|
|
{"not inside I2P network, but outproxy is not enabled", "adressen Àr inte inom I2P-nÀverket, men utproxy Àr inte pÄslaget"},
|
|
{"unknown outproxy url", "okÀnt Utproxy-URL"},
|
|
{"cannot resolve upstream proxy", "hittar inte uppströmsproxyt"},
|
|
{"hostname too long", "vÀrdnamnet Àr för lÄngt"},
|
|
{"cannot connect to upstream socks proxy", "kan inte ansluta till uppströmsproxyt"},
|
|
{"Cannot negotiate with socks proxy", "Kan inte förhandla med socksproxyt"},
|
|
{"CONNECT error", "CONNECT-fel"},
|
|
{"Failed to Connect", "Anslutningen misslyckades"},
|
|
{"socks proxy error", "Socksproxyfel"},
|
|
{"failed to send request to upstream", "förfrÄgan uppströms kunde ej skickas"},
|
|
{"No Reply From socks proxy", "Fick inget svar frÄn socksproxyt"},
|
|
{"cannot connect", "kan inte ansluta"},
|
|
{"http out proxy not implemented", "HTTP-Utproxy ej implementerat"},
|
|
{"cannot connect to upstream http proxy", "Kan inte ansluta till uppströms HTTP-proxy"},
|
|
{"Host is down", "VÀrden Àr nere"},
|
|
{"Can't create connection to requested host, it may be down. Please try again later.", "Kan inte ansluta till vÀrden, den kan vara nere. VÀnligen försök senare."},
|
|
{"", ""},
|
|
};
|
|
|
|
static std::map<std::string, std::vector<std::string>> plurals
|
|
{
|
|
{"%d days", {"%d Dag", "%d Dagar"}},
|
|
{"%d hours", {"%d Timme", "%d Timmar"}},
|
|
{"%d minutes", {"%d Minut", "%d Minuter"}},
|
|
{"%d seconds", {"%d Sekund", "%d Sekunder"}},
|
|
{"", {"", ""}},
|
|
};
|
|
|
|
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
|
|
|