- Timestamp:
- Aug 1, 2010, 4:35:00 PM (16 years ago)
- Location:
- ipk/source/system_autoresolution_1_25/usr/lib/enigma2/python/Plugins/SystemPlugins/AutoResolution
- Files:
-
- 4 added
- 2 edited
-
__init__.py (modified) (1 diff)
-
locale (added)
-
locale/de (added)
-
locale/de/LC_MESSAGES (added)
-
locale/de/LC_MESSAGES/AutoResolution.mo (added)
-
plugin.py (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
ipk/source/system_autoresolution_1_25/usr/lib/enigma2/python/Plugins/SystemPlugins/AutoResolution/__init__.py
r2035 r3691 1 from Components.Language import language 2 from Tools.Directories import resolveFilename, SCOPE_LANGUAGE, SCOPE_PLUGINS 3 import gettext, os 4 5 lang = language.getLanguage() 6 os.environ["LANGUAGE"] = lang[:2] 7 gettext.bindtextdomain("enigma2", resolveFilename(SCOPE_LANGUAGE)) 8 gettext.textdomain("enigma2") 9 gettext.bindtextdomain("AutoResolution", "%s%s" % (resolveFilename(SCOPE_PLUGINS), "SystemPlugins/AutoResolution/locale/")) 10 11 def _(txt): 12 t = gettext.dgettext("AutoResolution", txt) 13 if t == txt: 14 t = gettext.gettext(txt) 15 return t -
ipk/source/system_autoresolution_1_25/usr/lib/enigma2/python/Plugins/SystemPlugins/AutoResolution/plugin.py
r3227 r3691 11 11 from Plugins.Plugin import PluginDescriptor 12 12 from Plugins.SystemPlugins.Videomode.VideoHardware import video_hw # depends on Videomode Plugin 13 14 from __init__ import _ 13 15 14 16 usable = False … … 355 357 def Plugins(path, **kwargs): 356 358 return [PluginDescriptor(where = [PluginDescriptor.WHERE_SESSIONSTART], fnc = autostart), \ 357 PluginDescriptor(name= "Autoresolution", description=_("Autoresolution Switch"), where = PluginDescriptor.WHERE_MENU, fnc=startSetup) ]359 PluginDescriptor(name=_("Autoresolution"), description=_("Autoresolution Switch"), where = PluginDescriptor.WHERE_MENU, fnc=startSetup) ]
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/openaaf/chrome/common/titannit_trac_banner.png)