hack around 26265/25571 mac profile wizard failing because of string bundle load failure, r=jst@citec.fi

This commit is contained in:
ben%netscape.com 2000-02-07 00:16:02 +00:00
Родитель f1b91f18df
Коммит ea5f04c164
2 изменённых файлов: 21 добавлений и 3 удалений

Просмотреть файл

@ -124,7 +124,13 @@ function processCreateProfileData( aProfName, aProfDir )
// dropout layery thing. yeah. something like that to tell them when
// it happens, not when the whole wizard is complete. blah.
if( profile.profileExists( aProfName ) ) {
try {
alert( bundle.GetStringFromName( "profileExists" ) );
}
catch(e) {
// mac stringbundle failure. put up a ridiculous hard coded message.
alert( "Oh Yah, the profile name you chose already exists, yah!");
}
// this is a bad but probably acceptable solution for now.
// when we add more panels, we will want a better solution.
window.frames["content"].document.getElementById("ProfileName").focus();

Просмотреть файл

@ -112,7 +112,13 @@ function getProfileDir(folder, showPopup)
folderText.setAttribute( "rootFolder", folder );
if(!detect) {
var useDefault = document.createElement("titledbutton");
try {
useDefault.setAttribute("value",bundle.GetStringFromName("useDefaultFolder"));
}
catch(e) {
// mac string bundle hack
useDefault.setAttribute("value", "Use default folder, yah");
}
useDefault.setAttribute("class","dialog push");
useDefault.setAttribute("id","useDefaultButton");
useDefault.setAttribute("onclick","UseDefaultFolder();");
@ -136,7 +142,13 @@ function UseDefaultFolder()
if(FolderButtons.childNodes.length > 1)
FolderButtons.removeChild(FolderButtons.lastChild);
var span = document.getElementById("deffoldername")
try {
var text = document.createTextNode(bundle.GetStringFromName("defaultString"));
}
catch(e) {
// mac string bundle hack
var text = document.createTextNode("the default folder, yah.");
}
span.appendChild(text);
detect = false;