зеркало из https://github.com/mozilla/pjs.git
Localize text and buttons (bug 148556)
This commit is contained in:
Родитель
962d8c5292
Коммит
6a80eda2de
|
@ -137,9 +137,10 @@ app_getModuleInfo(nsStaticModuleInfo **info, PRUint32 *count);
|
|||
if (NS_FAILED(rv)) {
|
||||
if (rv == NS_ERROR_FILE_ACCESS_DENIED) {
|
||||
//horrible, horrible, bad, fixed strings. need localization string file.
|
||||
NSRunAlertPanel(@"Cannot Launch Navigator",
|
||||
@"Navigator is already running on this system. Only one version may be run at any time.",
|
||||
@"Quit",nil,nil);
|
||||
NSString *alert = NSLocalizedString(@"AlreadyRunningAlert",@"");
|
||||
NSString *message = NSLocalizedString(@"AlreadyRunningMsg",@"");
|
||||
NSString *quit = NSLocalizedString(@"AlreadyRunningButton",@"");
|
||||
NSRunAlertPanel(alert,message,quit,nil,nil);
|
||||
[NSApp terminate:self];
|
||||
}
|
||||
return NO;
|
||||
|
|
|
@ -218,6 +218,7 @@
|
|||
F564872E023B954E010001CA,
|
||||
F50EA33D02BAAAB701000103,
|
||||
089C165CFE840E0CC02AAC07,
|
||||
F52CE65C02BFA8B701026D5D,
|
||||
F51B70B4026EC8A601A80166,
|
||||
);
|
||||
isa = PBXGroup;
|
||||
|
@ -514,6 +515,7 @@
|
|||
F50EA34902BAAAB701000103,
|
||||
F50EA34A02BAAAB701000103,
|
||||
F50EA34B02BAAAB701000103,
|
||||
F52CE65D02BFA8B701026D5D,
|
||||
);
|
||||
isa = PBXResourcesBuildPhase;
|
||||
name = "Bundle Resources";
|
||||
|
@ -1872,6 +1874,33 @@
|
|||
settings = {
|
||||
};
|
||||
};
|
||||
F52CE65902BFA88701026D5D = {
|
||||
isa = PBXFileReference;
|
||||
name = English;
|
||||
path = English.lproj/Localizable.strings;
|
||||
refType = 4;
|
||||
};
|
||||
F52CE65C02BFA8B701026D5D = {
|
||||
children = (
|
||||
F52CE65902BFA88701026D5D,
|
||||
);
|
||||
isa = PBXVariantGroup;
|
||||
name = Localizable.strings;
|
||||
path = "";
|
||||
refType = 4;
|
||||
};
|
||||
F52CE65D02BFA8B701026D5D = {
|
||||
fileRef = F52CE65C02BFA8B701026D5D;
|
||||
isa = PBXBuildFile;
|
||||
settings = {
|
||||
};
|
||||
};
|
||||
F52CE65E02BFA8B701026D5D = {
|
||||
fileRef = F52CE65C02BFA8B701026D5D;
|
||||
isa = PBXBuildFile;
|
||||
settings = {
|
||||
};
|
||||
};
|
||||
F52D5CCF027A887001A80166 = {
|
||||
isa = PBXFileReference;
|
||||
path = CHAutoCompleteTextField.h;
|
||||
|
@ -4356,6 +4385,7 @@
|
|||
F50EA35002BAB1E401000103,
|
||||
F50EA35102BAB1E401000103,
|
||||
F50EA35202BAB1E401000103,
|
||||
F52CE65E02BFA8B701026D5D,
|
||||
);
|
||||
isa = PBXResourcesBuildPhase;
|
||||
name = "Bundle Resources";
|
||||
|
|
|
@ -218,6 +218,7 @@
|
|||
F564872E023B954E010001CA,
|
||||
F50EA33D02BAAAB701000103,
|
||||
089C165CFE840E0CC02AAC07,
|
||||
F52CE65C02BFA8B701026D5D,
|
||||
F51B70B4026EC8A601A80166,
|
||||
);
|
||||
isa = PBXGroup;
|
||||
|
@ -514,6 +515,7 @@
|
|||
F50EA34902BAAAB701000103,
|
||||
F50EA34A02BAAAB701000103,
|
||||
F50EA34B02BAAAB701000103,
|
||||
F52CE65D02BFA8B701026D5D,
|
||||
);
|
||||
isa = PBXResourcesBuildPhase;
|
||||
name = "Bundle Resources";
|
||||
|
@ -1872,6 +1874,33 @@
|
|||
settings = {
|
||||
};
|
||||
};
|
||||
F52CE65902BFA88701026D5D = {
|
||||
isa = PBXFileReference;
|
||||
name = English;
|
||||
path = English.lproj/Localizable.strings;
|
||||
refType = 4;
|
||||
};
|
||||
F52CE65C02BFA8B701026D5D = {
|
||||
children = (
|
||||
F52CE65902BFA88701026D5D,
|
||||
);
|
||||
isa = PBXVariantGroup;
|
||||
name = Localizable.strings;
|
||||
path = "";
|
||||
refType = 4;
|
||||
};
|
||||
F52CE65D02BFA8B701026D5D = {
|
||||
fileRef = F52CE65C02BFA8B701026D5D;
|
||||
isa = PBXBuildFile;
|
||||
settings = {
|
||||
};
|
||||
};
|
||||
F52CE65E02BFA8B701026D5D = {
|
||||
fileRef = F52CE65C02BFA8B701026D5D;
|
||||
isa = PBXBuildFile;
|
||||
settings = {
|
||||
};
|
||||
};
|
||||
F52D5CCF027A887001A80166 = {
|
||||
isa = PBXFileReference;
|
||||
path = CHAutoCompleteTextField.h;
|
||||
|
@ -4356,6 +4385,7 @@
|
|||
F50EA35002BAB1E401000103,
|
||||
F50EA35102BAB1E401000103,
|
||||
F50EA35202BAB1E401000103,
|
||||
F52CE65E02BFA8B701026D5D,
|
||||
);
|
||||
isa = PBXResourcesBuildPhase;
|
||||
name = "Bundle Resources";
|
||||
|
|
|
@ -137,9 +137,10 @@ app_getModuleInfo(nsStaticModuleInfo **info, PRUint32 *count);
|
|||
if (NS_FAILED(rv)) {
|
||||
if (rv == NS_ERROR_FILE_ACCESS_DENIED) {
|
||||
//horrible, horrible, bad, fixed strings. need localization string file.
|
||||
NSRunAlertPanel(@"Cannot Launch Navigator",
|
||||
@"Navigator is already running on this system. Only one version may be run at any time.",
|
||||
@"Quit",nil,nil);
|
||||
NSString *alert = NSLocalizedString(@"AlreadyRunningAlert",@"");
|
||||
NSString *message = NSLocalizedString(@"AlreadyRunningMsg",@"");
|
||||
NSString *quit = NSLocalizedString(@"AlreadyRunningButton",@"");
|
||||
NSRunAlertPanel(alert,message,quit,nil,nil);
|
||||
[NSApp terminate:self];
|
||||
}
|
||||
return NO;
|
||||
|
|
|
@ -137,9 +137,10 @@ app_getModuleInfo(nsStaticModuleInfo **info, PRUint32 *count);
|
|||
if (NS_FAILED(rv)) {
|
||||
if (rv == NS_ERROR_FILE_ACCESS_DENIED) {
|
||||
//horrible, horrible, bad, fixed strings. need localization string file.
|
||||
NSRunAlertPanel(@"Cannot Launch Navigator",
|
||||
@"Navigator is already running on this system. Only one version may be run at any time.",
|
||||
@"Quit",nil,nil);
|
||||
NSString *alert = NSLocalizedString(@"AlreadyRunningAlert",@"");
|
||||
NSString *message = NSLocalizedString(@"AlreadyRunningMsg",@"");
|
||||
NSString *quit = NSLocalizedString(@"AlreadyRunningButton",@"");
|
||||
NSRunAlertPanel(alert,message,quit,nil,nil);
|
||||
[NSApp terminate:self];
|
||||
}
|
||||
return NO;
|
||||
|
|
|
@ -218,6 +218,7 @@
|
|||
F564872E023B954E010001CA,
|
||||
F50EA33D02BAAAB701000103,
|
||||
089C165CFE840E0CC02AAC07,
|
||||
F52CE65C02BFA8B701026D5D,
|
||||
F51B70B4026EC8A601A80166,
|
||||
);
|
||||
isa = PBXGroup;
|
||||
|
@ -514,6 +515,7 @@
|
|||
F50EA34902BAAAB701000103,
|
||||
F50EA34A02BAAAB701000103,
|
||||
F50EA34B02BAAAB701000103,
|
||||
F52CE65D02BFA8B701026D5D,
|
||||
);
|
||||
isa = PBXResourcesBuildPhase;
|
||||
name = "Bundle Resources";
|
||||
|
@ -1872,6 +1874,33 @@
|
|||
settings = {
|
||||
};
|
||||
};
|
||||
F52CE65902BFA88701026D5D = {
|
||||
isa = PBXFileReference;
|
||||
name = English;
|
||||
path = English.lproj/Localizable.strings;
|
||||
refType = 4;
|
||||
};
|
||||
F52CE65C02BFA8B701026D5D = {
|
||||
children = (
|
||||
F52CE65902BFA88701026D5D,
|
||||
);
|
||||
isa = PBXVariantGroup;
|
||||
name = Localizable.strings;
|
||||
path = "";
|
||||
refType = 4;
|
||||
};
|
||||
F52CE65D02BFA8B701026D5D = {
|
||||
fileRef = F52CE65C02BFA8B701026D5D;
|
||||
isa = PBXBuildFile;
|
||||
settings = {
|
||||
};
|
||||
};
|
||||
F52CE65E02BFA8B701026D5D = {
|
||||
fileRef = F52CE65C02BFA8B701026D5D;
|
||||
isa = PBXBuildFile;
|
||||
settings = {
|
||||
};
|
||||
};
|
||||
F52D5CCF027A887001A80166 = {
|
||||
isa = PBXFileReference;
|
||||
path = CHAutoCompleteTextField.h;
|
||||
|
@ -4356,6 +4385,7 @@
|
|||
F50EA35002BAB1E401000103,
|
||||
F50EA35102BAB1E401000103,
|
||||
F50EA35202BAB1E401000103,
|
||||
F52CE65E02BFA8B701026D5D,
|
||||
);
|
||||
isa = PBXResourcesBuildPhase;
|
||||
name = "Bundle Resources";
|
||||
|
|
|
@ -218,6 +218,7 @@
|
|||
F564872E023B954E010001CA,
|
||||
F50EA33D02BAAAB701000103,
|
||||
089C165CFE840E0CC02AAC07,
|
||||
F52CE65C02BFA8B701026D5D,
|
||||
F51B70B4026EC8A601A80166,
|
||||
);
|
||||
isa = PBXGroup;
|
||||
|
@ -514,6 +515,7 @@
|
|||
F50EA34902BAAAB701000103,
|
||||
F50EA34A02BAAAB701000103,
|
||||
F50EA34B02BAAAB701000103,
|
||||
F52CE65D02BFA8B701026D5D,
|
||||
);
|
||||
isa = PBXResourcesBuildPhase;
|
||||
name = "Bundle Resources";
|
||||
|
@ -1872,6 +1874,33 @@
|
|||
settings = {
|
||||
};
|
||||
};
|
||||
F52CE65902BFA88701026D5D = {
|
||||
isa = PBXFileReference;
|
||||
name = English;
|
||||
path = English.lproj/Localizable.strings;
|
||||
refType = 4;
|
||||
};
|
||||
F52CE65C02BFA8B701026D5D = {
|
||||
children = (
|
||||
F52CE65902BFA88701026D5D,
|
||||
);
|
||||
isa = PBXVariantGroup;
|
||||
name = Localizable.strings;
|
||||
path = "";
|
||||
refType = 4;
|
||||
};
|
||||
F52CE65D02BFA8B701026D5D = {
|
||||
fileRef = F52CE65C02BFA8B701026D5D;
|
||||
isa = PBXBuildFile;
|
||||
settings = {
|
||||
};
|
||||
};
|
||||
F52CE65E02BFA8B701026D5D = {
|
||||
fileRef = F52CE65C02BFA8B701026D5D;
|
||||
isa = PBXBuildFile;
|
||||
settings = {
|
||||
};
|
||||
};
|
||||
F52D5CCF027A887001A80166 = {
|
||||
isa = PBXFileReference;
|
||||
path = CHAutoCompleteTextField.h;
|
||||
|
@ -4356,6 +4385,7 @@
|
|||
F50EA35002BAB1E401000103,
|
||||
F50EA35102BAB1E401000103,
|
||||
F50EA35202BAB1E401000103,
|
||||
F52CE65E02BFA8B701026D5D,
|
||||
);
|
||||
isa = PBXResourcesBuildPhase;
|
||||
name = "Bundle Resources";
|
||||
|
|
|
@ -137,9 +137,10 @@ app_getModuleInfo(nsStaticModuleInfo **info, PRUint32 *count);
|
|||
if (NS_FAILED(rv)) {
|
||||
if (rv == NS_ERROR_FILE_ACCESS_DENIED) {
|
||||
//horrible, horrible, bad, fixed strings. need localization string file.
|
||||
NSRunAlertPanel(@"Cannot Launch Navigator",
|
||||
@"Navigator is already running on this system. Only one version may be run at any time.",
|
||||
@"Quit",nil,nil);
|
||||
NSString *alert = NSLocalizedString(@"AlreadyRunningAlert",@"");
|
||||
NSString *message = NSLocalizedString(@"AlreadyRunningMsg",@"");
|
||||
NSString *quit = NSLocalizedString(@"AlreadyRunningButton",@"");
|
||||
NSRunAlertPanel(alert,message,quit,nil,nil);
|
||||
[NSApp terminate:self];
|
||||
}
|
||||
return NO;
|
||||
|
|
Загрузка…
Ссылка в новой задаче