Config value error

  • I' ve got some config values:



    which I put to config variable:

    Code
    OS_LANGS.update({"any":"any"})
    config.plugins.subsdownloader.OpenSubtitle1stLang = ConfigSelection(default ="any", choices = make_language_server_list(OS_LANGS))
    
    
    def make_language_server_list(language_list):
       list=[]
       for x in language_list:
       list.append(getConfigListEntry(_(x),language_list[x]))
       return list



    When I choose nor option in config (see picture):
    [Blockierte Grafik: http://img841.imageshack.us/img841/9159/pict1.png]


    And I try to make some operation (I put value as string to another function) I've got following error:


    Full error log.


    The error is because of nor option .value = no. I mnot sur but Enigma regards my string "no" an polish "Nie" and translates it (line 1 of error).


    But I don't know how to collect value "no" (string) and don't have mistake.

    "Reasonable people adapt themselves to the world.
    Unreasonable people attempt to adapt the world to themselves.
    All progress, therefore, depends on unreasonable people"


    ============
    SubsDownloader

  • I think that problem with "no" is that Enigma 2 makes automatically translation to polish "Nie".


    So my question: is there possibility to prohibit to Enigma2 translate some strings?

    "Reasonable people adapt themselves to the world.
    Unreasonable people attempt to adapt the world to themselves.
    All progress, therefore, depends on unreasonable people"


    ============
    SubsDownloader

  • that _(x) in your code is forcing e2 to translate that string x ... try it without the _ underscore, or without _(), just the X ... then nothing should get translated :winking_face:

    Theorie ist, wenn man alles weiß, aber nichts funktioniert.
    Praxis ist, wenn alles funktioniert aber niemand weiß warum.