Permalink
Browse files

[Language] tweaks translation code

  • Loading branch information...
1 parent 00fd38c commit 1fef2d0f63f58579760771c6567aa70483cac54f @andyblac andyblac committed Dec 6, 2012
Showing with 370 additions and 471 deletions.
  1. +5 −6 3dsettings/src/__init__.py
  2. +5 −6 advancedmovieselection/src/__init__.py
  3. +5 −6 aspectratioswitch/src/__init__.py
  4. +5 −6 audiorestart/src/__init__.py
  5. +0 −27 audiosync/po/de.po
  6. +5 −6 audiosync/src/__init__.py
  7. +5 −6 automaticcleanup/src/__init__.py
  8. +5 −6 automatictimerlistcleanup/src/__init__.py
  9. +5 −6 automaticvolumeadjustment/src/__init__.py
  10. +5 −6 autoresolution/src/__init__.py
  11. +5 −6 autotimer/src/__init__.py
  12. +5 −6 birthdayreminder/src/__init__.py
  13. +5 −6 bmediacenter/src/__init__.py
  14. +5 −6 curlytx/src/__init__.py
  15. +5 −6 dvdbackup/src/plugin.py
  16. +5 −6 easymedia/src/__init__.py
  17. +5 −6 eibox/src/plugin.py
  18. +5 −6 elektro/src/__init__.py
  19. +5 −6 emailclient/src/__init__.py
  20. +5 −6 epgrefresh/src/__init__.py
  21. +5 −6 epgsearch/src/__init__.py
  22. +5 −6 eurotictv/src/__init__.py
  23. +5 −6 fancontrol2/src/__init__.py
  24. +5 −6 flashexpander/src/locale.py
  25. +5 −6 fritzcall/src/__init__.py
  26. +5 −6 ftpbrowser/src/__init__.py
  27. +5 −6 imdb/src/__init__.py
  28. +5 −6 infobartunerstate/src/__init__.py
  29. +5 −6 internetradio/src/__init__.py
  30. +5 −6 kiddytimer/src/__init__.py
  31. +5 −6 lastfm/src/__init__.py
  32. +5 −6 mediadownloader/src/__init__.py
  33. +5 −6 merlinepgcenter/src/__init__.py
  34. +5 −6 mosaic/src/plugin.py
  35. +5 −6 moviecut/src_py/__init__.py
  36. +5 −6 movielistpreview/src/plugin.py
  37. +5 −6 movieretitle/src/__init__.py
  38. +5 −6 movieselectionquickbutton/src/__init__.py
  39. +5 −6 movietagger/src/__init__.py
  40. +5 −6 mphelp/src/__init__.py
  41. +5 −6 mytube/src/__init__.py
  42. +5 −6 namezap/src/__init__.py
  43. +5 −6 ncidclient/src/__init__.py
  44. +5 −6 networkbrowser/src/__init__.py
  45. +5 −6 ofdb/src/plugin.py
  46. +5 −6 oscaminfo/src/__init__.py
  47. +5 −6 partnerbox/src/__init__.py
  48. +5 −6 permanentclock/src/plugin.py
  49. +5 −6 permanenttimeshift/src/plugin.py
  50. +5 −6 pluginhider/src/__init__.py
  51. +5 −6 pluginsort/src/__init__.py
  52. +5 −6 podcast/src/plugin.py
  53. +5 −6 porncenter/src/plugin.py
  54. +5 −6 pushservice/src/__init__.py
  55. +5 −6 quickbutton/src/__init__.py
  56. +5 −6 rsdownloader/src/plugin.py
  57. +5 −6 seekbar/src/plugin.py
  58. +5 −6 serienfilm/src/__init__.py
  59. +5 −6 setpasswd/src/__init__.py
  60. +5 −6 shoutcast/src/__init__.py
  61. +5 −6 showclock/src/__init__.py
  62. +5 −6 simplerss/src/__init__.py
  63. +5 −6 startupservice/src/__init__.py
  64. +5 −6 tageditor/src/__init__.py
  65. +5 −6 teletext/src/__init__.py
  66. +5 −6 videocolorspace/src/__init__.py
  67. +5 −6 virtualzap/src/__init__.py
  68. +5 −6 vlcplayer/src/__init__.py
  69. +5 −6 vps/src_py/__init__.py
  70. +5 −6 weatherplugin/src/__init__.py
  71. +5 −6 werbezapper/src/__init__.py
  72. +5 −6 youtubeplayer/src/__init__.py
  73. +5 −6 yttrailer/src/__init__.py
  74. +5 −6 zaphistorybrowser/src/plugin.py
  75. +5 −6 zapstatistic/src/plugin.py
View
@@ -10,11 +10,10 @@ def localeInit():
gettext.bindtextdomain(PluginLanguageDomain, resolveFilename(SCOPE_PLUGINS, PluginLanguagePath))
def _(txt):
- t = gettext.dgettext(PluginLanguageDomain, txt)
- if t == txt:
+ if gettext.dgettext(PluginLanguageDomain, txt):
+ return gettext.dgettext(PluginLanguageDomain, txt)
+ else:
print "[" + PluginLanguageDomain + "] fallback to default translation for " + txt
- t = gettext.gettext(txt)
- return t
+ return gettext.gettext(txt)
-localeInit()
-language.addCallback(localeInit)
+language.addCallback(localeInit())
@@ -13,11 +13,10 @@ def localeInit():
gettext.bindtextdomain(PluginLanguageDomain, resolveFilename(SCOPE_PLUGINS, PluginLanguagePath))
def _(txt):
- t = gettext.dgettext(PluginLanguageDomain, txt)
- if t == txt:
+ if gettext.dgettext(PluginLanguageDomain, txt):
+ return gettext.dgettext(PluginLanguageDomain, txt)
+ else:
print "[" + PluginLanguageDomain + "] fallback to default translation for " + txt
- t = gettext.gettext(txt)
- return t
+ return gettext.gettext(txt)
-localeInit()
-language.addCallback(localeInit)
+language.addCallback(localeInit())
@@ -10,11 +10,10 @@ def localeInit():
gettext.bindtextdomain(PluginLanguageDomain, resolveFilename(SCOPE_PLUGINS, PluginLanguagePath))
def _(txt):
- t = gettext.dgettext(PluginLanguageDomain, txt)
- if t == txt:
+ if gettext.dgettext(PluginLanguageDomain, txt):
+ return gettext.dgettext(PluginLanguageDomain, txt)
+ else:
print "[" + PluginLanguageDomain + "] fallback to default translation for " + txt
- t = gettext.gettext(txt)
- return t
+ return gettext.gettext(txt)
-localeInit()
-language.addCallback(localeInit)
+language.addCallback(localeInit())
@@ -10,11 +10,10 @@ def localeInit():
gettext.bindtextdomain(PluginLanguageDomain, resolveFilename(SCOPE_PLUGINS, PluginLanguagePath))
def _(txt):
- t = gettext.dgettext(PluginLanguageDomain, txt)
- if t == txt:
+ if gettext.dgettext(PluginLanguageDomain, txt):
+ return gettext.dgettext(PluginLanguageDomain, txt)
+ else:
print "[" + PluginLanguageDomain + "] fallback to default translation for " + txt
- t = gettext.gettext(txt)
- return t
+ return gettext.gettext(txt)
-localeInit()
-language.addCallback(localeInit)
+language.addCallback(localeInit())
View
@@ -173,30 +173,3 @@ msgstr "Wartezeit vor Aktivierung in ms"
msgid "sets the Audio Delay (LipSync)"
msgstr "Setzt die verschiedenen Audio- Verzögerungen (LipSync)"
-
-#~ msgid "%s:"
-#~ msgstr "%s:"
-
-#~ msgid "Delay:"
-#~ msgstr "Verzögerung:"
-
-#~ msgid "Global Passthr."
-#~ msgstr "Passthr. Global"
-
-#~ msgid "PCM"
-#~ msgstr "PCM"
-
-#~ msgid "Passthrough"
-#~ msgstr "Passthrough"
-
-#~ msgid "Save"
-#~ msgstr "Speichern"
-
-#~ msgid "Select channel audio"
-#~ msgstr "Kanal- Tonspur wählen"
-
-#~ msgid "Switch audio"
-#~ msgstr "Tonspur..."
-
-#~ msgid "sets the audio Delay (LipSync)"
-#~ msgstr "Setzt die verschiedenen Audio- Verzögerungen (LipSync)"
View
@@ -10,11 +10,10 @@ def localeInit():
gettext.bindtextdomain(PluginLanguageDomain, resolveFilename(SCOPE_PLUGINS, PluginLanguagePath))
def _(txt):
- t = gettext.dgettext(PluginLanguageDomain, txt)
- if t == txt:
+ if gettext.dgettext(PluginLanguageDomain, txt):
+ return gettext.dgettext(PluginLanguageDomain, txt)
+ else:
print "[" + PluginLanguageDomain + "] fallback to default translation for " + txt
- t = gettext.gettext(txt)
- return t
+ return gettext.gettext(txt)
-localeInit()
-language.addCallback(localeInit)
+language.addCallback(localeInit())
@@ -10,11 +10,10 @@ def localeInit():
gettext.bindtextdomain(PluginLanguageDomain, resolveFilename(SCOPE_PLUGINS, PluginLanguagePath))
def _(txt):
- t = gettext.dgettext(PluginLanguageDomain, txt)
- if t == txt:
+ if gettext.dgettext(PluginLanguageDomain, txt):
+ return gettext.dgettext(PluginLanguageDomain, txt)
+ else:
print "[" + PluginLanguageDomain + "] fallback to default translation for " + txt
- t = gettext.gettext(txt)
- return t
+ return gettext.gettext(txt)
-localeInit()
-language.addCallback(localeInit)
+language.addCallback(localeInit())
@@ -10,11 +10,10 @@ def localeInit():
gettext.bindtextdomain(PluginLanguageDomain, resolveFilename(SCOPE_PLUGINS, PluginLanguagePath))
def _(txt):
- t = gettext.dgettext(PluginLanguageDomain, txt)
- if t == txt:
+ if gettext.dgettext(PluginLanguageDomain, txt):
+ return gettext.dgettext(PluginLanguageDomain, txt)
+ else:
print "[" + PluginLanguageDomain + "] fallback to default translation for " + txt
- t = gettext.gettext(txt)
- return t
+ return gettext.gettext(txt)
-localeInit()
-language.addCallback(localeInit)
+language.addCallback(localeInit())
@@ -10,11 +10,10 @@ def localeInit():
gettext.bindtextdomain(PluginLanguageDomain, resolveFilename(SCOPE_PLUGINS, PluginLanguagePath))
def _(txt):
- t = gettext.dgettext(PluginLanguageDomain, txt)
- if t == txt:
+ if gettext.dgettext(PluginLanguageDomain, txt):
+ return gettext.dgettext(PluginLanguageDomain, txt)
+ else:
print "[" + PluginLanguageDomain + "] fallback to default translation for " + txt
- t = gettext.gettext(txt)
- return t
+ return gettext.gettext(txt)
-localeInit()
-language.addCallback(localeInit)
+language.addCallback(localeInit())
@@ -10,11 +10,10 @@ def localeInit():
gettext.bindtextdomain(PluginLanguageDomain, resolveFilename(SCOPE_PLUGINS, PluginLanguagePath))
def _(txt):
- t = gettext.dgettext(PluginLanguageDomain, txt)
- if t == txt:
+ if gettext.dgettext(PluginLanguageDomain, txt):
+ return gettext.dgettext(PluginLanguageDomain, txt)
+ else:
print "[" + PluginLanguageDomain + "] fallback to default translation for " + txt
- t = gettext.gettext(txt)
- return t
+ return gettext.gettext(txt)
-localeInit()
-language.addCallback(localeInit)
+language.addCallback(localeInit())
View
@@ -42,14 +42,13 @@ def localeInit():
gettext.bindtextdomain(PluginLanguageDomain, resolveFilename(SCOPE_PLUGINS, PluginLanguagePath))
def _(txt):
- t = gettext.dgettext(PluginLanguageDomain, txt)
- if t == txt:
+ if gettext.dgettext(PluginLanguageDomain, txt):
+ return gettext.dgettext(PluginLanguageDomain, txt)
+ else:
print "[" + PluginLanguageDomain + "] fallback to default translation for " + txt
- t = gettext.gettext(txt)
- return t
+ return gettext.gettext(txt)
-localeInit()
-language.addCallback(localeInit)
+language.addCallback(localeInit())
try:
xrange = xrange
@@ -10,11 +10,10 @@ def localeInit():
gettext.bindtextdomain(PluginLanguageDomain, resolveFilename(SCOPE_PLUGINS, PluginLanguagePath))
def _(txt):
- t = gettext.dgettext(PluginLanguageDomain, txt)
- if t == txt:
+ if gettext.dgettext(PluginLanguageDomain, txt):
+ return gettext.dgettext(PluginLanguageDomain, txt)
+ else:
print "[" + PluginLanguageDomain + "] fallback to default translation for " + txt
- t = gettext.gettext(txt)
- return t
+ return gettext.gettext(txt)
-localeInit()
-language.addCallback(localeInit)
+language.addCallback(localeInit())
@@ -41,14 +41,13 @@ def localeInit():
gettext.bindtextdomain(PluginLanguageDomain, resolveFilename(SCOPE_PLUGINS, PluginLanguagePath))
def _(txt):
- t = gettext.dgettext(PluginLanguageDomain, txt)
- if t == txt:
+ if gettext.dgettext(PluginLanguageDomain, txt):
+ return gettext.dgettext(PluginLanguageDomain, txt)
+ else:
print "[" + PluginLanguageDomain + "] fallback to default translation for " + txt
- t = gettext.gettext(txt)
- return t
+ return gettext.gettext(txt)
-localeInit()
-language.addCallback(localeInit)
+language.addCallback(localeInit())
# Favorite Folders
def addFavoriteFolders():
View
@@ -14,11 +14,10 @@ def localeInit():
gettext.bindtextdomain(PluginLanguageDomain, resolveFilename(SCOPE_PLUGINS, PluginLanguagePath))
def _(txt):
- t = gettext.dgettext(PluginLanguageDomain, txt)
- if t == txt:
+ if gettext.dgettext(PluginLanguageDomain, txt):
+ return gettext.dgettext(PluginLanguageDomain, txt)
+ else:
print "[" + PluginLanguageDomain + "] fallback to default translation for " + txt
- t = gettext.gettext(txt)
- return t
+ return gettext.gettext(txt)
-localeInit()
-language.addCallback(localeInit)
+language.addCallback(localeInit())
View
@@ -33,14 +33,13 @@ def localeInit():
gettext.bindtextdomain(PluginLanguageDomain, resolveFilename(SCOPE_PLUGINS, PluginLanguagePath))
def _(txt):
- t = gettext.dgettext(PluginLanguageDomain, txt)
- if t == txt:
+ if gettext.dgettext(PluginLanguageDomain, txt):
+ return gettext.dgettext(PluginLanguageDomain, txt)
+ else:
print "[" + PluginLanguageDomain + "] fallback to default translation for " + txt
- t = gettext.gettext(txt)
- return t
+ return gettext.gettext(txt)
-localeInit()
-language.addCallback(localeInit)
+language.addCallback(localeInit())
#################################################
View
@@ -10,11 +10,10 @@ def localeInit():
gettext.bindtextdomain(PluginLanguageDomain, resolveFilename(SCOPE_PLUGINS, PluginLanguagePath))
def _(txt):
- t = gettext.dgettext(PluginLanguageDomain, txt)
- if t == txt:
+ if gettext.dgettext(PluginLanguageDomain, txt):
+ return gettext.dgettext(PluginLanguageDomain, txt)
+ else:
print "[" + PluginLanguageDomain + "] fallback to default translation for " + txt
- t = gettext.gettext(txt)
- return t
+ return gettext.gettext(txt)
-localeInit()
-language.addCallback(localeInit)
+language.addCallback(localeInit())
View
@@ -30,14 +30,13 @@ def localeInit():
gettext.bindtextdomain(PluginLanguageDomain, resolveFilename(SCOPE_PLUGINS, PluginLanguagePath))
def _(txt):
- t = gettext.dgettext(PluginLanguageDomain, txt)
- if t == txt:
+ if gettext.dgettext(PluginLanguageDomain, txt):
+ return gettext.dgettext(PluginLanguageDomain, txt)
+ else:
print "[" + PluginLanguageDomain + "] fallback to default translation for " + txt
- t = gettext.gettext(txt)
- return t
+ return gettext.gettext(txt)
-localeInit()
-language.addCallback(localeInit)
+language.addCallback(localeInit())
config.eib = ConfigSubsection()
config.eib.xmlfile = ConfigText(default="design.xml")
View
@@ -10,11 +10,10 @@ def localeInit():
gettext.bindtextdomain(PluginLanguageDomain, resolveFilename(SCOPE_PLUGINS, PluginLanguagePath))
def _(txt):
- t = gettext.dgettext(PluginLanguageDomain, txt)
- if t == txt:
+ if gettext.dgettext(PluginLanguageDomain, txt):
+ return gettext.dgettext(PluginLanguageDomain, txt)
+ else:
print "[" + PluginLanguageDomain + "] fallback to default translation for " + txt
- t = gettext.gettext(txt)
- return t
+ return gettext.gettext(txt)
-localeInit()
-language.addCallback(localeInit)
+language.addCallback(localeInit())
@@ -14,14 +14,13 @@ def localeInit():
gettext.bindtextdomain(PluginLanguageDomain, resolveFilename(SCOPE_PLUGINS, PluginLanguagePath))
def _(txt):
- t = gettext.dgettext(PluginLanguageDomain, txt)
- if t == txt:
+ if gettext.dgettext(PluginLanguageDomain, txt):
+ return gettext.dgettext(PluginLanguageDomain, txt)
+ else:
print "[" + PluginLanguageDomain + "] fallback to default translation for " + txt
- t = gettext.gettext(txt)
- return t
+ return gettext.gettext(txt)
-localeInit()
-language.addCallback(localeInit)
+language.addCallback(localeInit())
def initLog():
try:
View
@@ -10,13 +10,12 @@ def localeInit():
gettext.bindtextdomain(PluginLanguageDomain, resolveFilename(SCOPE_PLUGINS, PluginLanguagePath))
def _(txt):
- t = gettext.dgettext(PluginLanguageDomain, txt)
- if t == txt:
+ if gettext.dgettext(PluginLanguageDomain, txt):
+ return gettext.dgettext(PluginLanguageDomain, txt)
+ else:
print "[" + PluginLanguageDomain + "] fallback to default translation for " + txt
- t = gettext.gettext(txt)
- return t
+ return gettext.gettext(txt)
-localeInit()
-language.addCallback(localeInit)
+language.addCallback(localeInit())
NOTIFICATIONID = 'EpgRefreshNotificationId'
View
@@ -21,11 +21,10 @@ def localeInit():
gettext.bindtextdomain(PluginLanguageDomain, resolveFilename(SCOPE_PLUGINS, PluginLanguagePath))
def _(txt):
- t = gettext.dgettext(PluginLanguageDomain, txt)
- if t == txt:
+ if gettext.dgettext(PluginLanguageDomain, txt):
+ return gettext.dgettext(PluginLanguageDomain, txt)
+ else:
print "[" + PluginLanguageDomain + "] fallback to default translation for " + txt
- t = gettext.gettext(txt)
- return t
+ return gettext.gettext(txt)
-localeInit()
-language.addCallback(localeInit)
+language.addCallback(localeInit())
Oops, something went wrong.

0 comments on commit 1fef2d0

Please sign in to comment.