ANy idea? about code page?
Beiträge von tracer
-
-
-
I think this multilanguage doesn't work with moved text in the source. Like Plugin list
Listbox + png...
-
Screen <class 'test_menu.TEST'>((), {}): <type 'exceptions.TypeError'>
Traceback (most recent call last):
File "/usr/lib/enigma2/python/mytest.py", line 214, in create
return screen(self, *arguments, **kwargs)
File "/usr/lib/enigma2/python/Screens/test_menu.py", line 86, in __init__
list.append(TestEntry(__("Test", "test.png")))
TypeError: getText() takes exactly 1 argument (2 given)Error
in code:
list.append(TestEntry(__("Test", "test.png")))
-
Nice,
Thank You I will try it.
Your code can not work. Because there are missed a lot of imports.
regards
-
Zitat
Originally posted by AliAbdul1978
Hi gutemine.Das wäre auch ein Thema, das mich interessiert. Habs bei mir so gemacht...
Code
Alles anzeigenLTLanguage = None def loadLanguage(): global LTLanguage osdLanguage = language.getLanguage() LTLanguageFile = "/usr/LTMenu/language/" + str(osdLanguage) LTLanguage = {} if fileExists(LTLanguageFile): try: count = 0 f = open(LTLanguageFile, "r") for l in f.readlines(): if l.__contains__('" : "'): count += 1 pos = l.index('" : "') key = l[1:pos] value = l[pos+5:] value = value.replace('\n', '') value = value.replace('"', '') if not LTLanguage.has_key(key): LTLanguage[key] = value f.close() print "[LT-Language] Found " + str(count) + " lines in language-file: " + LTLanguageFile except: print "[LT-Language] Could not read the language-file: " + LTLanguageFile else: print "[LT-Language] Could not find the language-file: " + LTLanguageFile def getText(string): global LTLanguage if LTLanguage is None: loadLanguage() return LTLanguage.get(string, string)
Ich muss nun bei mir in den Sourcen die getText Funktion importieren...danach werden aus einer Datei mit dem Namen der OSD-Sprache (z.B. de_DE) einmalig die Texte gelesen. Nur muss ich hier alle zu übersetzenden Texte mit:
/usr/LTMenu/language/de_DE:
print getText("my friend")
>mein Freund
Und das ist sehr mühsam, alle Texte in den SOurcen anzupassen. Ich habe gerade deine Sourcen nicht zur Hand. Kannst du kurz beschreiben, wie du das machst?
Can you tell how this menu should start ?? Is it in Autostart mode ??
-
Code
File "/usr/lib/enigma2/python/Screens/myplugin_1.py", line 686, in entitlements self.session.open(Message, "Could not read informations.") File "/usr/lib/enigma2/python/mytest.py", line 278, in open raise "modal open are allowed only from a screen which is modal!" modal open are allowed only from a screen which is modal! (PyObject_CallObject(<bound method ActionMap.action of <Components.ActionMap.ActionMap instance at 0x2eee1238>>,('WizardActions', 'ok')) failed)
this bug i get when i update cvs to newer one. Could you helpe me ?
-
Where Can I find
Navigation.playService
?
Thank you for tips
-
enigma2 has got somethink strange...
Code#!/bin/ash SERVICE= wget "http://127.0.0.1/web/subservices" -O- | grep e2servicereference | cut -f8 -d"e" | cut -f1 -d"<" | cut -c2- wget "http://127.0.0.1/web/zap?sRef=$SERVICE" -O- exit 0
This Script Must works, but it doesn't Reset to current Channel - is it enigma2 bug ??
Or??
Mayby is there diffrent way to reset channel via connection to socket?
-
Ineed !
It work's !
Thank You
-
Seems it is not working well.
I was trying also to zap it via WebInterface, but i can not see output, as in enigma1 in www addres poll.
When I Kill enigma2 and rcS, enigma2 starts itslef, and i always run it twice..
-
Nothink...
I think, zap function in webinterface is mayby not fnished?
-
Code
Alles anzeigenroot@dm7025:~# wget http://127.0.0.1/web/subservices -O- <?xml version="1.0" encoding="UTF-8"?> <e2servicelist> <e2service> <e2servicereference>1:0:1:12C8:2E7C:13E:820000:0:0:0:</e2servicereference> <e2servicename>TVP 2</e2servicename> </e2service> </e2servicelist> root@dm7025:~# wget http://127.0.0.1/web/zap?ZapTo={1:0:1:12C8:2E7C:13E:820000:0:0:0:} -O- <rootElement></rootElement> root@dm7025:~#
And nothink...no ZAP
-
i discover one more thing...
http://192.168.0.125/web/zap?ZapTo=WHAT??
I don't know what value put to just zap on current channel ..
So question is, how to take Current Service Refernece...
-
ok HARD
thx
-
Cool Monolog...
Seems it is is impossiable in enigma2??
So hard to answer YES/NO ?
-
Please help me...
I have already did a Message via http
Codechar cmd[200]; sprintf(cmd,"wget -O - \"http://127.0.0.1/web/message?text=%s&type=1&timeout=%d\" 2>/dev/null&", preparestring(caption).c_str(),timeout); system(cmd); return;
How to Reset Channel - make ZAP ? via HTTP? or .listen.enigma.socket?
-
Noone from dev's know that?
-
Hi, is it possiable in enigma2 connect to socket and reset current channel in c++ ??
This way we can make it in enigma1
udsClient enigmasocket("/tmp/.listen.camd.socket");
if(enigmasocket.open_connection())
{
enigmasocket.send_data("CA_ZAP",sizeof("CA_ZAP"));
enigmasocket.close_connection();
}Any idea how to in enigma2?
-