Changeset 3691 for ipk/source


Ignore:
Timestamp:
Aug 1, 2010, 4:35:00 PM (16 years ago)
Author:
civer
Message:

[UFS 912 / AAFPanel]

  • hide oldaudiofw entry in autostart cconfig

[IPK]

  • added translation to AutoResolution Plugin
Location:
ipk/source/system_autoresolution_1_25/usr/lib/enigma2/python/Plugins/SystemPlugins/AutoResolution
Files:
4 added
2 edited

Legend:

Unmodified
Added
Removed
  • ipk/source/system_autoresolution_1_25/usr/lib/enigma2/python/Plugins/SystemPlugins/AutoResolution/__init__.py

    r2035 r3691  
     1from Components.Language import language
     2from Tools.Directories import resolveFilename, SCOPE_LANGUAGE, SCOPE_PLUGINS
     3import gettext, os
     4
     5lang = language.getLanguage()
     6os.environ["LANGUAGE"] = lang[:2]
     7gettext.bindtextdomain("enigma2", resolveFilename(SCOPE_LANGUAGE))
     8gettext.textdomain("enigma2")
     9gettext.bindtextdomain("AutoResolution", "%s%s" % (resolveFilename(SCOPE_PLUGINS), "SystemPlugins/AutoResolution/locale/"))
     10
     11def _(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  
    1111from Plugins.Plugin import PluginDescriptor
    1212from Plugins.SystemPlugins.Videomode.VideoHardware import video_hw # depends on Videomode Plugin
     13
     14from __init__ import _
    1315
    1416usable = False
     
    355357def Plugins(path, **kwargs):
    356358        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.