Author: duncan
Date: Sun Jan 7 18:35:53 2007
New Revision: 8946
Modified:
branches/rel-1/freevo/src/skins/main/info_area.py
Log:
[ 1630009 ] Small, fixed text elements in info areas are rendered wrongly
Patch from Andrew Flegg applied
Modified: branches/rel-1/freevo/src/skins/main/info_area.py
==============================================================================
--- branches/rel-1/freevo/src/skins/main/info_area.py (original)
+++ branches/rel-1/freevo/src/skins/main/info_area.py Sun Jan 7 18:35:53 2007
@@ -57,6 +57,7 @@
self.updated = 0
self.sellist = None
self.i18n_re = re.compile('^( ?)(.*?)([:,]?)( ?)$')
+ self.do_i18n_re = re.compile('\w{2}')
def update_content_needed( self ):
"""
@@ -274,9 +275,10 @@
if list[ i ].expression_analized == 0:
# not translated yet
list[ i ].expression_analized = 1
- m = self.i18n_re.match(list[i].text).groups()
- # translate
- list[i].text = m[0] + _(m[1]) + m[2] + m[3]
+ # translate if contains some alphanumerics
+ if self.do_i18n_re.match(list[i].text):
+ m = self.i18n_re.match(list[i].text).groups()
+ list[i].text = m[0] + _(m[1]) + m[2] + m[3]
# I add a tuple here to be able to compare lists and know if
we need to
# update, this is useful in the mp3 player
ret_list += [ index + [ ( i, list[ i ].text ) ] ]
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Freevo-cvslog mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog