Step towards fix of translation in Windows.

svn: r14268
This commit is contained in:
Peter Landgren
2010-02-07 18:01:17 +00:00
parent 22c4ec78cb
commit 34a910ec3a
4 changed files with 92 additions and 41 deletions

View File

@ -212,37 +212,6 @@ def family_upper_name(family, db):
name = mother.get_primary_name().get_upper_name()
return name
#-------------------------------------------------------------------------
#
# Platform determination functions
#
#-------------------------------------------------------------------------
def lin():
"""
Return True if a linux system
Note: Normally do as linux in else statement of a check !
"""
if platform.system() in LINUX:
return True
return False
def mac():
"""
Return True if a Macintosh system
"""
if platform.system() in MACOS:
return True
return False
def win():
"""
Return True if a windows system
"""
if platform.system() in WINDOWS:
return True
return False
#-------------------------------------------------------------------------
#
# String Encoding functions