From e29b5f548269d8956d7b664ae32edc6d8a104b2c Mon Sep 17 00:00:00 2001 From: Teddy Wing Date: Wed, 23 Aug 2023 01:01:24 +0200 Subject: MainMenu: Use stringWithFormat for titles containing application name I get the sense that the word order, particularly for the "Help" menu item, may be different in other languages. Rather than force a certain word order by concatenating strings, include the application name in the localisation by making it a format string with an argument. --- Internationalization/en.lproj/Localizable.strings | 9 ++++++--- Internationalization/fr.lproj/Localizable.strings | 9 ++++++--- 2 files changed, 12 insertions(+), 6 deletions(-) (limited to 'Internationalization') diff --git a/Internationalization/en.lproj/Localizable.strings b/Internationalization/en.lproj/Localizable.strings index be3d2bf..a848c30 100644 --- a/Internationalization/en.lproj/Localizable.strings +++ b/Internationalization/en.lproj/Localizable.strings @@ -8,7 +8,7 @@ "\tRight to Left" = "\tRight to Left"; /* About menu item. */ -"About" = "About"; +"About %@" = "About %@"; /* Align Left menu item. */ "Align Left" = "Align Left"; @@ -94,8 +94,11 @@ /* Help menu title. */ "Help" = "Help"; +/* Help menu item. */ +"%@ Help" = "%@ Help"; + /* Hide menu item. */ -"Hide" = "Hide"; +"Hide %@" = "Hide %@"; /* Hide Others menu item. */ "Hide Others" = "Hide Others"; @@ -146,7 +149,7 @@ "Print…" = "Print…"; /* Quit menu item. */ -"Quit" = "Quit"; +"Quit %@" = "Quit %@"; /* Redo menu item. */ "Redo" = "Redo"; diff --git a/Internationalization/fr.lproj/Localizable.strings b/Internationalization/fr.lproj/Localizable.strings index 0f0f16d..e4507df 100644 --- a/Internationalization/fr.lproj/Localizable.strings +++ b/Internationalization/fr.lproj/Localizable.strings @@ -8,7 +8,7 @@ "\tRight to Left" = "\tDe droite à gauche"; /* About menu item. */ -"About" = "À propos de"; +"About %@" = "À propos de %@"; /* Align Left menu item. */ "Align Left" = "Aligner à gauche"; @@ -94,8 +94,11 @@ /* Help menu title. */ "Help" = "Aide"; +/* Help menu item. */ +"%@ Help" = "%@ Aide"; + /* Hide menu item. */ -"Hide" = "Masquer"; +"Hide %@" = "Masquer %@"; /* Hide Others menu item. */ "Hide Others" = "Masquer les autres"; @@ -146,7 +149,7 @@ "Print…" = "Imprimer…"; /* Quit menu item. */ -"Quit" = "Quitter"; +"Quit %@" = "Quitter %@"; /* Redo menu item. */ "Redo" = "Rétablir"; -- cgit v1.2.3