|
6 | 6 | int main(int argc, char** argv) { |
7 | 7 | // For future improvement we can make these localized strings actually have the translations |
8 | 8 | // like they do in the bash script |
9 | | - NSString *MSG_ERROR_LAUNCHING=NSLocalizedString(@"ERROR launching '%s'.", nil); |
10 | | - NSString *MSG_MISSING_MAINCLASS=NSLocalizedString(@"'MainClass' isn't specified!\nJava application cannot be started!", nil); |
11 | | - NSString *MSG_JVMVERSION_REQ_INVALID=@"The syntax of the required Java version is invalid: %@\nPlease contact the App developer."; |
12 | | - NSString *MSG_NO_SUITABLE_JAVA=NSLocalizedString(@"No suitable Java version found on your system!\nThis program requires Java %@", nil); |
13 | | - NSString *MSG_JAVA_VERSION_OR_LATER=@" or later"; |
14 | | - NSString *MSG_JAVA_VERSION_LATEST=@" (latest update)"; |
15 | | - NSString *MSG_JAVA_VERSION_MAX=@"up to %@"; |
16 | | - NSString *MSG_NO_SUITABLE_JAVA_CHECK=NSLocalizedString(@"Make sure you install the required Java version.", nil); |
17 | | - NSString *MSG_INSTALL_JAVA=NSLocalizedString(@"You need to have JAVA installed on your Mac!\nVisit java.com for installation instructions...", nil); |
18 | | - NSString *MSG_LATER=NSLocalizedString(@"Later", nil); |
19 | | - NSString *MSG_VISIT_JAVA_DOT_COM=NSLocalizedString(@"Java by Oracle", nil); |
20 | | - NSString *MSG_VISIT_ADOPTIUM=NSLocalizedString(@"Java by Adoptium", nil); |
| 9 | + NSString *MSG_ERROR_LAUNCHING=NSLocalizedStringWithDefaultValue(@"MSG_ERROR_LAUNCHING", @"javaApplicationStub", NSBundle.mainBundle, @"ERROR launching '%s'.", nil); |
| 10 | + NSString *MSG_MISSING_MAINCLASS=NSLocalizedStringWithDefaultValue(@"MSG_MISSING_MAINCLASS", @"javaApplicationStub", NSBundle.mainBundle, @"'MainClass' isn't specified!\nJava application cannot be started!", nil); |
| 11 | + NSString *MSG_JVMVERSION_REQ_INVALID=NSLocalizedStringWithDefaultValue(@"MSG_JVMVERSION_REQ_INVALID", @"javaApplicationStub", NSBundle.mainBundle, @"The syntax of the required Java version is invalid: %@\nPlease contact the App developer.", nil); |
| 12 | + NSString *MSG_NO_SUITABLE_JAVA=NSLocalizedStringWithDefaultValue(@"MSG_NO_SUITABLE_JAVA", @"javaApplicationStub", NSBundle.mainBundle, @"No suitable Java version found on your system!\nThis program requires Java %@", nil); |
| 13 | + NSString *MSG_JAVA_VERSION_OR_LATER=NSLocalizedStringWithDefaultValue(@"MSG_JAVA_VERSION_OR_LATER", @"javaApplicationStub", NSBundle.mainBundle, @" or later", nil); |
| 14 | + NSString *MSG_JAVA_VERSION_LATEST=NSLocalizedStringWithDefaultValue(@"MSG_JAVA_VERSION_LATEST", @"javaApplicationStub", NSBundle.mainBundle, @" (latest update)", nil); |
| 15 | + NSString *MSG_JAVA_VERSION_MAX=NSLocalizedStringWithDefaultValue(@"MSG_JAVA_VERSION_MAX", @"javaApplicationStub", NSBundle.mainBundle, @"up to %@", nil); |
| 16 | + NSString *MSG_NO_SUITABLE_JAVA_CHECK=NSLocalizedStringWithDefaultValue(@"MSG_NO_SUITABLE_JAVA_CHECK", @"javaApplicationStub", NSBundle.mainBundle, @"Make sure you install the required Java version.", nil); |
| 17 | + NSString *MSG_INSTALL_JAVA=NSLocalizedStringWithDefaultValue(@"MSG_INSTALL_JAVA", @"javaApplicationStub", NSBundle.mainBundle, @"You need to have JAVA installed on your Mac!\nVisit java.com for installation instructions...", nil); |
| 18 | + NSString *MSG_LATER=NSLocalizedStringWithDefaultValue(@"MSG_LATER", @"javaApplicationStub", NSBundle.mainBundle, @"Later", nil); |
| 19 | + NSString *MSG_VISIT_JAVA_DOT_COM=NSLocalizedStringWithDefaultValue(@"MSG_VISIT_JAVA_DOT_COM", @"javaApplicationStub", NSBundle.mainBundle, @"Java by Oracle", nil); |
| 20 | + NSString *MSG_VISIT_ADOPTIUM=NSLocalizedStringWithDefaultValue(@"MSG_VISIT_ADOPTIUM", @"javaApplicationStub", NSBundle.mainBundle, @"Java by Adoptium", nil); |
21 | 21 |
|
22 | 22 | NSBundle *main = [NSBundle mainBundle]; |
23 | 23 | NSDictionary *info = [main infoDictionary]; |
|
0 commit comments