]> code.delx.au - pymsnt/blobdiff - src/lang.py
Fixed md5 update routine to work if spooldir is not set.
[pymsnt] / src / lang.py
index f62d189f4a392ce9a6b87fdcbe93592e7ddc7e60..4674cbe7451a4a911f4a66d179db159cf6889599 100644 (file)
@@ -3,7 +3,7 @@
 import config
 
 def get(lang=config.lang):
-       if not (isinstance(lang, str) or isinstance(lang, unicode)):
+       if not isinstance(lang, basestring):
                lang = config.lang
        lang = lang.replace("-", "_")
        if hasattr(strings, lang):
@@ -40,14 +40,16 @@ class strings:
                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."
                command_ConnectUsers = u"Connect all registered users"
                command_Statistics = u"Statistics for PyMSNt"
                command_OnlineUsers = u"Online Users"
-               command_TotalUsers = u"Total Users"
+               command_TotalUsers = u"Total Connections"
                command_Uptime = u"Uptime"
                command_MessageCount = u"Message Count"
                command_FailedMessageCount = u"Failed Message Count"
@@ -86,13 +88,15 @@ class strings:
                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."
                command_ConnectUsers = u"Connect all registered users"
                command_Statistics = u"Statistics for PyMSNt"
                command_OnlineUsers = u"Online Users"
-               command_TotalUsers = u"Total Users"
+               command_TotalUsers = u"Total Connections"
                command_Uptime = u"Uptime"
                command_MessageCount = u"Message Count"
                command_AvatarCount = u"Avatar Count"
@@ -127,6 +131,8 @@ class strings:
                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."
@@ -153,7 +159,7 @@ class strings:
        
        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"
@@ -172,13 +178,15 @@ class strings:
                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."
                command_ConnectUsers = u"Connect all registered users"
                command_Statistics = u"Statistics for PyMSNt"
                command_OnlineUsers = u"Online Users"
-               command_TotalUsers = u"Total Users"
+               command_TotalUsers = u"Total Connections"
                command_Uptime = u"Uptime"
                command_MessageCount = u"Message Count"
                command_AvatarCount = u"Avatar Count"
@@ -214,6 +222,8 @@ class strings:
                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."
@@ -261,13 +271,15 @@ class strings:
                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."
                command_ConnectUsers = u"Connect all registered users"
                command_Statistics = u"Statistics for PyMSNt"
                command_OnlineUsers = u"Online Users"
-               command_TotalUsers = u"Total Users"
+               command_TotalUsers = u"Total Connections"
                command_Uptime = u"Uptime"
                command_MessageCount = u"Message Count"
                command_AvatarCount = u"Avatar Count"
@@ -321,6 +333,8 @@ class strings:
                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."