Hi all,

Sorry to remove text which is not longer important for the "unit
switch" issue (see https://github.com/pytrainer/pytrainer/issues/16)

>> Ok, then, should this unit be attached to the string in first place, since
>> its wrong if you switch to non-metric systems? (not that I would... ;-)
>
> Yep, you are right, units shouldn't be hardcoded with labels but
> environment (locale) dependant. Good point, I will have a look.

I had a look and I have seen that text labels in glade/newrecord.glade
are replaced by logic in pytrainer/gui/windowrecord.py, so I decided
to split labels in two elements: text and unit which are localized in
a different way. Text localization is done in
pytrainer/gui/windowrecord.py and unit one in pytrainer/lib/uc.py.

I have made some tests locally and it looks fine, so I will submit the
code to our repository.

Please feel free to share your thoughts on this topic.

Thanks!

David

------------------------------------------------------------------------------
Symantec Endpoint Protection 12 positioned as A LEADER in The Forrester  
Wave(TM): Endpoint Security, Q1 2013 and "remains a good choice" in the  
endpoint security space. For insight on selecting the right partner to 
tackle endpoint security challenges, access the full report. 
http://p.sf.net/sfu/symantec-dev2dev
_______________________________________________
Pytrainer-devel mailing list
Pytrainer-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pytrainer-devel

Reply via email to