منتديات دريم بوكس  

العودة   منتديات دريم بوكس > > >

Emus+Plugins+Keys+Skin جميع الملحقات والإضافات المساعدة لـ دريم بوكس و أجهزة VU+

  1  
ThE MaStEr

Hi,

I have made shell script which enables installing locale files which are needed for correct languge:

string comparison (LC_COLLATE)
lower & upper string conversion, isupper & islower testing (LC_CTYPE)
monetary formatting (LC_MONETARY)
decimal separator (LC_NUMERIC)
date & time formating (LC_TIME)

After installing locale files for your language you can use all "language critical" functions in your python scripts (converters, renderers, plugins, etc.)

All you need is to run locale_files.sh script, then you have to set proper language locale argument in the setlocale() function in some python files as you can see below:
كود PHP:
def __init__(selftype):

try:
    
setlocale(LC_ALLlanguage.getLanguage())
except:
    
pass 
For example, you can see my small modification of the ClockToText.py converter which enables to display date/time string according to user language localization.


أقرأ ايضا .. قد يعجبك :

من مواضيعى فى المنتدى

All Australians to get digital free-to-air TV
TSmedia enigma2 plugin by mfaraj57
LiveFootBall 3.8
ملف قنوات دريم بوكس 500 , Vhannibal settings E1 , بتاريخ 21/9/2012
Datenblatt Vu+ Duo II and Vu+ Solo II /// Specifications Vu+ Solo II and Duo II
v_keys 05-05-2011
DDD v2.6 dm800se OE 1.6 17-05-2012 #SSL87F
Experimental Image-dm7025 01-02-2011


أدوات الموضوع



الساعة الآن 07:12 AM.


Powered by vBulletin Version 3.8.7
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd
Support: منتديات دريم بوكس