package main // Default language is en_GB var loadedLocale = make(map[string]string) var enGB = map[string]string{ // British English // main.go "appName": "Lambda", "cancel": "Cancel", "submit": "Submit", "join": "Join", "send": "Send", "error": "Error", "close": "Close", "userRequested": "User requested", "configResourceEmptyWarning": "Config resource is empty! Generating a random one", "attention": "Attention", "disconnected": "Disconnected: ", "connecting": "Connecting...", "milliseconds": "ms", "KBPerSecond": "KB/s", "connectedAs": "Connected as ", "bindedJid": "Binded JID: ", "usingTLS": "Using TLS: ", "joinMUCMenu": "Join MUC", "joinMUCJIDEntry": "MUC JID:", "joinMUCNickEntry": "Nick:", "joinMUCDiscoCheck": "Check MUC features before joining", "joinMUCDiscoCheckTooltip": "If you are creating a MUC through this window then turn this off", "joinPreviewTitle": "Joining ", "joinPasswordRequired": "Password required", "muc_passwordprotected_description": "This MUC is password-protected", "muc_unsecured_description": "This MUC does not require a password", "muc_membersonly_description": "Only members can join this MUC", "muc_open_description": "Anyone can join this MUC", "muc_moderated_description": "Only members can speak in this MUC", "muc_unmoderated_description": "Anyone can speak in this MUC", "muc_nonanonymous_description": "This MUC is non-anonymous, your JID will be visible to other users", "muc_semianonymous_description": "This MUC is semi-anonymous, only moderators will see your full JID", "muc_persistent_description": "This MUC is persistent, it will not be deleted when the last user leaves", "muc_temporary_description": "This MUC is temporary, it will be deleted when the last user leaves", "muc_public_description": "This MUC can be found in directories and search engines", "muc_hidden_description": "This MUC is hidden and cannot be found in directories or search engines", "urn:xmpp:mam_description": "This MUC supports archiving via MAM", "urn:xmpp:message-moderate_description": "This MUC supports message moderation", "discoFail": "Failed to get Disco info", "startDMMenu": "Start DM", "destroyMUCMenu": "Destroy MUC", "aboutMenu": "About", "destroyMUCWarningOne": "Are you sure? This MUC will be gone forever! (a very long time)", "destroyMUCWarningTwo": "If you wish to continue, type 'I understand'", "destroyMUCPassword": "I understand", "destroyMUCActionButton": "Destroy", "destroyMUCNotOwnerWarning": "You are not an owner of this MUC and thus will most likely not be able to delete it", "pingBarTooltip": "Ping between you and your XMPP server\nRight-click to see graph", "pingGraphTitle": "Server latency", "pingGraphYAxis": "Ping (ms)", "throughputTooltip": "Throughput of your XMPP connection in KB/s", "messageEntryPlaceholder": "Say something, what else are you going to do here?", // gtk-message.go "unsupportedMessage": "Unsupported message.", "bannedWidget": " has been banned by ", "readWidget": " has read to this point", "isTyping": " is typing...", "whispers": " whispers", "noBodySet": "No body set", "affilChange": "'s affiliation has been changed to ", "linkPreviewWarning": "This link preview was generated by the client sending it and may not be accurate of the actual website content", // gtk-helpers.go "getPastMessages": "Get past messages...", "clickForMoreInfo": "Click for more information", "ban": "Ban", "kick": "Kick", "setAffil": "Set affiliation", "setAffilDescPartOne": "Set ", "setAffilDescPartTwo": "'s affiliation", "setRole": "Set role", "setRoleDescPartOne": "Set ", "setRoleDescPartTwo": "'s role", "setRoleWarning": "Important: if you want this to be permanent, set their affiliation instead", "gettingVersion": "Getting version...", "connectedWithRole": "Connected with role ", "affiliatedAs": "Affiliated as ", "participants": "participant(s)", "versionQueryEmpty": "Client responded with empty version", "versionQueryError": "Got error trying to get version", // gtk-signin.go "SIServerLabel": "Server: ", "SIUsernameLabel": "Username: ", "SIPasswordLabel": "Password: ", "SINicknameLabel": "Nickname: ", "SIInsecureLabel": "Insecure: (?)", "SIInsecureLabelTooltip": "Tick this if you need to connect without TLS, usually for connecting to Tor XMPP servers", } var kaGE = map[string]string { // Georgian (Georgia) } var roRo = map[string]string { // Romanian (Romania) "appName": "Lambda", "cancel": "Canselează", "submit": "A preda", "join": "Intră", "send": "Trimite", "error": "Eroare", "close": "închide", "userRequested": "Uzator cerut", "configResourceEmptyWarning": "Resursa configurată este goala! Creiez unu aleatoriu", "attention": "Atenție", "disconnected": "Deconectat", "connecting": "Conectat", "bindedJid": "Lipit JID", "joinMUCMenu": "Intră pe MUC", "joinMUCJIDEntry": "MUC JID:", "joinMUCNickEntry": "Poreclă:", "joinMUCDiscoCheck": "Verifica detalile de MUC înainte sa intri", "joinMUCDiscoCheckTooltip": "Dacă creiezi un MUC prin această oglindă închido", } var enUS = enGB // American English var locales = map[string]map[string]string { "en_GB": enGB, "ka_GE": kaGE, "en_US": enUS, } // TODO: Load locale according to user configuration func init() { loadedLocale = locales["en_GB"] }