Use unicode string to prevent non-ASCII ship names from causing error (#1317)
This commit is contained in:
@@ -23,7 +23,7 @@ class ChangeAmount(ContextMenu):
|
||||
return srcContext in ("cargoItem", "projectedFit", "fighterItem", "projectedFighter")
|
||||
|
||||
def getText(self, itmContext, selection):
|
||||
return "Change {0} Quantity".format(itmContext)
|
||||
return u"Change {0} Quantity".format(itmContext)
|
||||
|
||||
def activate(self, fullContext, selection, i):
|
||||
srcContext = fullContext[0]
|
||||
|
||||
@@ -25,7 +25,7 @@ class ItemRemove(ContextMenu):
|
||||
"commandFit")
|
||||
|
||||
def getText(self, itmContext, selection):
|
||||
return "Remove {0}".format(itmContext if itmContext is not None else "Item")
|
||||
return u"Remove {0}".format(itmContext if itmContext is not None else "Item")
|
||||
|
||||
def activate(self, fullContext, selection, i):
|
||||
|
||||
|
||||
Reference in New Issue
Block a user