import config
def get(lang=config.lang):
- if not (lang.__class__ == str or lang.__class__ == unicode):
+ if not isinstance(lang, basestring):
lang = config.lang
- try:
- lang = lang.replace("-", "_")
- return strings.__dict__[lang]
- except KeyError:
- return strings.__dict__[config.lang]
+ lang = lang.replace("-", "_")
+ if hasattr(strings, lang):
+ return getattr(strings, lang)
+ if hasattr(strings, config.lang):
+ return getattr(strings, config.lang)
+ return strings.en
# If you change or add any strings in this file please contact the translators listed below
msnDroppedMessage = u"(Automated message)\nA message from this person did not get delivered to you. Please report this to your Jabber server administrator."
msnInitialMail = u"Hotmail notification\n\nUnread message in inbox: %s\nUnread messages in folders: %s"
msnRealtimeMail = u"Hotmail notification\n\nFrom: %s <%s>\n Subject: %s"
- msnDisconnected = u"Disconnection from MSN servers: %s"
+ msnDisconnected = u"Disconnected from MSN servers: %s"
+ msnConnectFailed = u"Failed to connect to MSN servers: %s"
+ msnFtSizeRejected = u"A file '%s' was rejected because it was over the size limit of %s bytes. To exchange larger files to this person, please use Jabber. See %s for details."
command_CommandList = u"PyMSNt Commands"
command_Done = "Command completed."
msnInitialMail = u"Hotmail notification\n\nUnread message in inbox: %s\nUnread messages in folders: %s"
msnRealtimeMail = u"Hotmail notification\n\nFrom: %s <%s>\n Subject: %s"
msnDisconnected = u"Desligado dos servidores MSN: %s"
+ msnConnectFailed = u"Failed to connect to MSN servers: %s"
+ msnFtSizeRejected = u"A file '%s' was rejected because it was over the size limit of %s bytes. To exchange larger files to this person, please use Jabber. See %s for details."
command_CommandList = u"PyMSNt Commands"
command_Done = "Command completed."
msnInitialMail = u"Hotmail-meldingen\n\nAantal ongelezen berichten in postvak in: %s\nAantal ongelezen berichten in mappen: %s"
msnRealtimeMail = u"Hotmail-meldingen\n\nVan: %s <%s>\n Onderwerp: %s"
msnDisconnected = u"De verbinding met de MSN-servers werd verbroken: %s"
+ msnConnectFailed = u"Verbinden met MSN-servers mislukte: %s"
+ msnFtSizeRejected = u"Het bestand '%s' werd geweigerd omdat het groter was dan %s. Als u grotere bestanden naar deze contactpersoon wilt verzenden, gebruik dan Jabber. Zie %s voor details."
command_CommandList = u"Commando's voor PyMSNt"
command_Done = "Commando beëindigd."
class de: # German - Florian Holzhauer <xmpp:fh@jabber.ccc.de>
registerText = u"Bitte trage Deine MSN-Passport-ID (user@hotmail.com) als User ein, sowie Dein Passwort und Deinen Nickname.\n Mehr Informationen zu diesem Gateway findest Du unter http://msn-transport.jabberstudio.org/docs/users"
- gatewayTranslator = u"Enter the user's MSN account." # FIXMELANG!!
+ gatewayTranslator = u"Enter the user's MSN account."
userMapping = u"The MSN contact %s has a Jabber ID %s. It is recommended to talk to this person through Jabber."
notLoggedIn = u"Fehler. Du musst beim Gateway eingeloggt sein bevor Du Nachrichten schicken kannst."
notRegistered = u"Sorry, Du scheinst Dich bei diesem Gateway noch nicht registriert zu haben. Bitte registriere Dich und versuche es noch einmal. Bei Problemen wendest Du Dich am besten an Deinen Jabber-Administrator"
msnInitialMail = u"Hotmail notification\n\nUngelesene Nachrichten in der Inbox: %s\nUngelesene Nachrichten in anderen Ordnern: %s"
msnRealtimeMail = u"Hotmail notification\n\nNeue Nachricht von %s <%s>\n Subject: %s"
msnDisconnected = u"Die Verbindung zum MSN-Server wurde getrennt: %s"
+ msnConnectFailed = u"Failed to connect to MSN servers: %s"
+ msnFtSizeRejected = u"A file '%s' was rejected because it was over the size limit of %s bytes. To exchange larger files to this person, please use Jabber. See %s for details."
command_CommandList = u"PyMSNt Commands"
command_Done = "Command completed."
msnInitialMail = u"Notification Hotmail\n\n Message(s) non lu(s) dans votre boîte de réception : %s\nMessage(s) non lu(s) dans le dossier : %s"
msnRealtimeMail = u"Notification Hotmail\n\nDe: %s <%s>\n Sujet: %s"
msnDisconnected = u"Déconnecté du serveur MSN: %s"
+ msnConnectFailed = u"Failed to connect to MSN servers: %s"
+ msnFtSizeRejected = u"A file '%s' was rejected because it was over the size limit of %s bytes. To exchange larger files to this person, please use Jabber. See %s for details."
command_CommandList = u"Commandes PyMSNt"
command_Done = "Command completed."
msnInitialMail = u"Notificación de Hotmail\n\nMensajes sin leer en la bandeja de entrada: %s\nMensajes sin leer en otras carpetas: %s"
msnRealtimeMail = u"Notificación de Hotmail\n\nDe: %s <%s>\nAsunto: %s"
msnDisconnected = u"Desconexión de los servidores MSN: %s"
+ msnConnectFailed = u"Failed to connect to MSN servers: %s"
+ msnFtSizeRejected = u"A file '%s' was rejected because it was over the size limit of %s bytes. To exchange larger files to this person, please use Jabber. See %s for details."
command_CommandList = u"PyMSNt Commands"
command_Done = "Command completed."
msnInitialMail = u"Powiadomienie Hotmail\n\nNieprzeczytane wiadomości w skrzynce odbiorczej: %s\nNieprzeczytane wiadomości w folderach: %s"
msnRealtimeMail = u"Powiadomienie Hotmail\n\nOd: %s <%s>\n Temat: %s"
msnDisconnected = u"Rozłączenie z sieci MSN: %s"
+ msnConnectFailed = u"Failed to connect to MSN servers: %s"
+ msnFtSizeRejected = u"A file '%s' was rejected because it was over the size limit of %s bytes. To exchange larger files to this person, please use Jabber. See %s for details."
command_CommandList = u"Polecenia PyMSNt"
command_Done = "Polecenie zakończone."