Extended localization comments

This commit is contained in:
michael starke
2017-10-19 17:06:43 +02:00
parent e8573431cf
commit 09b9b5fbb6
3 changed files with 8 additions and 8 deletions

View File

@@ -1,4 +1,4 @@
/* Formatted Times */
/* Formatted Times */
"%ld_DAYS_AGO" = "%ld days ago";
"%ld_HOURS_AGO" = "about %ld hours ago";
"%ld_MINUTES_AGO" = "%ld minutes ago";

View File

@@ -42,20 +42,20 @@
[menu removeAllItems];
}
[menu removeAllItems];
[menu addItemWithTitle:NSLocalizedString(@"EDIT_TEMPLATE_GROUP", "") action:[MPActionHelper actionOfType:MPActionEditTemplateGroup] keyEquivalent:@""];
[menu addItemWithTitle:NSLocalizedString(@"EDIT_TEMPLATE_GROUP", "Menu item on the add entry context menu to edit template groups") action:[MPActionHelper actionOfType:MPActionEditTemplateGroup] keyEquivalent:@""];
[menu addItem:[NSMenuItem separatorItem]];
for(KPKEntry *entry in [document.templates childEntries]) {
NSString *templateMask = NSLocalizedString(@"NEW_ENTRY_WITH_TEMPLATE_%@", "");
NSString *templateMask = NSLocalizedString(@"NEW_ENTRY_WITH_TEMPLATE_%@", "Submenu to add an entry via template");
NSMenuItem *templateItem = [[NSMenuItem allocWithZone:[NSMenu menuZone]] initWithTitle:[NSString stringWithFormat:templateMask, entry.title]
action:@selector(createEntryFromTemplate:)
keyEquivalent:@""];
[templateItem setRepresentedObject:entry.uuid];
templateItem.representedObject = entry.uuid;
[menu addItem:templateItem];
}
/* If there are no entries, add a note as disabled menu item */
if([[menu itemArray] count] == 2) {
[menu addItemWithTitle:NSLocalizedString(@"NO_TEMPLATES", "") action:NULL keyEquivalent:@""];
if(menu.itemArray.count == 2) {
[menu addItemWithTitle:NSLocalizedString(@"NO_TEMPLATES", "Menu item added to show that no templates are defined") action:NULL keyEquivalent:@""];
}
}

View File

@@ -1,4 +1,4 @@
/* Formatted Times */
/* Formatted Times */
"%ld_DAYS_AGO" = "%ld days ago";
"%ld_HOURS_AGO" = "about %ld hours ago";
"%ld_MINUTES_AGO" = "%ld minutes ago";
@@ -111,7 +111,7 @@
"COPY_USERNAME" = "Copy Username";
/* Dock Badge */
"CLEARING_PASTEBOARD" = "";
"CLEARING_PASTEBOARD" = "Cleared";
/* Group Inspector */
/* Autotype Combobox */