# Test variable name translations # # This script is a test case for patch 0003 # in http://bugs.scribus.net/view.php?id=12572 (1.5) # and http://bugs.scribus.net/view.php?id=12594 (1.4) # # You can run this script from the command line # (if you have applied the command line patches) # or from the Scripter menu item. # # This script runs OK with English strings: # scribus-1.4.4 -g -py errtest.py -l en # 0.0352777777778 # 0.352777777778 # # The script fails with Russian strings: # scribus-1.4.4 -g -py errtest.py -l ru # 0.0352777777778 # Traceback (most recent call last): # File "", line 8, in # File "errtest.py", line 3, in # print scribus.mm # AttributeError: 'module' object has no attribute 'mm' # # The script fails with a different error with Ukrainian strings: # scribus-1.4.4 -g -py errtest.py -l uk # Traceback (most recent call last): # File "", line 8, in # File "errtest.py", line 2, in # print scribus.cm # AttributeError: 'module' object has no attribute 'cm' import scribus print scribus.cm print scribus.mm