Append the lines below to Localizable.strings (English)
// Undo Action Name - Add Person
"ADD_PERSON" = "Add Person";
// Undo Action Name - Remove Person
"REMOVE_PERSON" = "Remove Person";
Append the lines below to Localizable.strings (French)
// Undo Action Name - Add Person
"ADD_PERSON" = "(Add Person in French)";
// Undo Action Name - Remove Person
"REMOVE_PERSON" = "(Remove Person in French)";
Update Document.swift
func insertObject(_ employee: Employee, inEmployeesAtIndex index: Int) {
. . .
if !undo.isUndoing {
// undo.setActionName("Add Person")
undo.setActionName(NSLocalizedString("ADD_PERSON", comment: "Undo Action Name - Add Person"))
}
. . .
}
func removeObject(fromEmployeesAtIndex index: Int) {
. . .
if !undo.isUndoing {
// undo.setActionName("Remove Person")
undo.setActionName(NSLocalizedString("REMOVE_PERSON", comment: "Undo Action Name - Remove Person"))
}
. . .
}