[bug-13936]File names not working when saving files

I just looked into this, and it's a bug on our side caused by some old code to enable translation on the file opening dialogs - it looks like our old workaround ends up negatively affecting the file choosers. I've filed a ticket so we can investigate taking it out. For now, you could probably adjust the code I have here to make your own saveFile function:

Something like:

from com.inductiveautomation.ignition.client.script import ClientFileUtilities
from javax.swing import JFileChooser
from java.io import File

def saveFile(filename, extension, description):
	filechooser = ClientFileUtilities.getChooser(JFileChooser.SAVE_DIALOG, description, extension)

	filechooser.setSelectedFile(File(filename))

	ret = filechooser.showSaveDialog(None)
	if ret == JFileChooser.APPROVE_OPTION:
		return filechooser.getSelectedFile().getPath()