the localize() code appears to be working on my machine. I insert the following code into inkex.py
def localize(): domain = 'inkscape' if sys.platform.startswith('win'): import locale floc = open('\Windows\Temp\save_locale.txt', 'wt') floc.write("'" + str(locale.getdefaultlocale()) + "'\n") floc.close() current_locale, encoding = locale.getdefaultlocale()
then I execute prepare_file_save_as.py, and I get a file with the entries:
'('en_US', 'cp1252')'
after that I get a crash
the localize() code appears to be working on my machine. I insert the following code into inkex.py
def localize(): startswith( 'win'): Windows\ Temp\save_ locale. txt', 'wt')
floc.write( "'" + str(locale. getdefaultlocal e()) + "'\n")
floc.close( )
current_ locale, encoding = locale. getdefaultlocal e()
domain = 'inkscape'
if sys.platform.
import locale
floc = open('\
then I execute prepare_ file_save_ as.py, and I get a file with the entries:
'('en_US', 'cp1252')'
after that I get a crash