Added Names for Copy actions

This commit is contained in:
michael starke
2013-09-16 23:44:47 +02:00
parent d7f82bf88f
commit c2922d5ead
4 changed files with 7 additions and 0 deletions

View File

@@ -129,7 +129,11 @@
KPKGroup *targetGroup = (KPKGroup *)targetItem; KPKGroup *targetGroup = (KPKGroup *)targetItem;
if(draggedGroup) { if(draggedGroup) {
if(copyItem || (nil == self.localDraggedGroup) ) { if(copyItem || (nil == self.localDraggedGroup) ) {
/* Add Copy to title */
NSString *copyTemplate = NSLocalizedString(@"%@_COPY", "");
draggedGroup.name = [NSString stringWithFormat:copyTemplate, draggedGroup.name];
[targetGroup addGroup:draggedGroup atIndex:index]; [targetGroup addGroup:draggedGroup atIndex:index];
[targetGroup.undoManager setActionName:NSLocalizedString(@"COPY_GROUP", "")];
return YES; return YES;
} }
else if(self.localDraggedGroup) { else if(self.localDraggedGroup) {
@@ -143,7 +147,10 @@
} }
else if(draggedEntry) { else if(draggedEntry) {
if(copyItem || (nil == self.localDraggedEntry)) { if(copyItem || (nil == self.localDraggedEntry)) {
NSString *copyTemplate = NSLocalizedString(@"%@_COPY", "");
draggedEntry.title = [NSString stringWithFormat:copyTemplate, draggedEntry.title];
[targetGroup addEntry:draggedEntry atIndex:index]; [targetGroup addEntry:draggedEntry atIndex:index];
[targetGroup.undoManager setActionName:NSLocalizedString(@"COPY_ENTRY", "")];
return YES; return YES;
} }
else if(self.localDraggedEntry) { else if(self.localDraggedEntry) {

Binary file not shown.

Binary file not shown.

Binary file not shown.