Fix some CCK only untranslatable strings

This commit is contained in:
mkaply%us.ibm.com 2006-05-01 15:41:51 +00:00
parent 2d706cafbe
commit e92f2832d2
7 changed files with 30 additions and 7 deletions

View File

@ -151,6 +151,7 @@
<!ENTITY prefName.label "Preference Name:">
<!ENTITY prefValue.label "Value: ">
<!ENTITY prefLock.label "Lock Preference">
<!ENTITY newButton.label "New">
<!ENTITY newButton.accesskey "W">

View File

@ -6,3 +6,6 @@ zipError=Unable to create JAR or XPI file. Please ensure that a command line ver
intError=The value must be an integer
lockError=You cannot set this value here, you can only lock it.
prefExistsError=This preference already exists in the list.
chooseFile=Choose File...
chooseDirectory=Choose Directory...
chooseImage=Choose Image...

View File

@ -49,7 +49,8 @@ function choosefile(labelname)
try {
var nsIFilePicker = Components.interfaces.nsIFilePicker;
var fp = Components.classes["@mozilla.org/filepicker;1"].createInstance(nsIFilePicker);
fp.init(window, "Choose File...", nsIFilePicker.modeOpen);
var bundle = document.getElementById("bundle_cckwizard");
fp.init(window, bundle.getString("chooseFile"), nsIFilePicker.modeOpen);
fp.appendFilters(nsIFilePicker.filterAll);
if (fp.show() == nsIFilePicker.returnOK && fp.fileURL.spec && fp.fileURL.spec.length > 0) {
@ -68,7 +69,8 @@ function choosedir(labelname)
while (keepgoing) {
var nsIFilePicker = Components.interfaces.nsIFilePicker;
var fp = Components.classes["@mozilla.org/filepicker;1"].createInstance(nsIFilePicker);
fp.init(window, "Choose File...", nsIFilePicker.modeGetFolder);
var bundle = document.getElementById("bundle_cckwizard");
fp.init(window, bundle.getString("chooseDirectory"), nsIFilePicker.modeGetFolder);
fp.appendFilters(nsIFilePicker.filterHTML | nsIFilePicker.filterText |
nsIFilePicker.filterAll | nsIFilePicker.filterImages | nsIFilePicker.filterXML);
@ -88,7 +90,8 @@ function chooseimage(labelname, imagename)
try {
var nsIFilePicker = Components.interfaces.nsIFilePicker;
var fp = Components.classes["@mozilla.org/filepicker;1"].createInstance(nsIFilePicker);
fp.init(window, "Choose File...", nsIFilePicker.modeOpen);
var bundle = document.getElementById("bundle_cckwizard");
fp.init(window, bundle.getString("chooseImage"), nsIFilePicker.modeOpen);
fp.appendFilters(nsIFilePicker.filterImages);
if (fp.show() == nsIFilePicker.returnOK && fp.fileURL.spec && fp.fileURL.spec.length > 0) {
@ -810,7 +813,8 @@ function onEditBundle()
try {
var nsIFilePicker = Components.interfaces.nsIFilePicker;
var fp = Components.classes["@mozilla.org/filepicker;1"].createInstance(nsIFilePicker);
fp.init(window, "Choose File...", nsIFilePicker.modeOpen);
var bundle = document.getElementById("bundle_cckwizard");
fp.init(window, bundle.getString("chooseFile"), nsIFilePicker.modeOpen);
fp.displayDirectory = sourcefile.parent;
fp.defaultString = sourcefile.leafName;
fp.appendFilters(nsIFilePicker.filterAll);

View File

@ -61,4 +61,9 @@
<checkbox id="trustEmail" label="&cert.trustEmail;"/>
<checkbox id="trustObjSign" label="&cert.trustObjSign;"/>
</vbox>
<stringbundleset id="stringbundleset">
<stringbundle id="bundle_cckwizard" src="chrome://cckwizard/locale/cckwizard.properties"/>
</stringbundleset>
</dialog>

View File

@ -64,6 +64,11 @@
<menuitem label="Macintosh (Intel)" value="Darwin_x86-gcc3"/>
</menupopup>
</menulist>
</hbox>
</hbox>
</vbox>
<stringbundleset id="stringbundleset">
<stringbundle id="bundle_cckwizard" src="chrome://cckwizard/locale/cckwizard.properties"/>
</stringbundleset>
</dialog>

View File

@ -64,6 +64,6 @@
<menuitem label="false" value="false"/>
</menupopup>
</menulist>
<checkbox id="lockPref" label="Lock Preference"/>
<checkbox id="lockPref" label="&prefLocal.label"/>
</vbox>
</dialog>

View File

@ -63,6 +63,11 @@
<textbox flex="1" id="searchengineicon" onchange="searchEngineCheckOKButton();" onkeyup="searchEngineCheckOKButton();"/>
<image id="icon" src='' width='16' height='16'/>
<button label="&chooseFile.label;" oncommand="chooseimage('searchengineicon','icon');searchEngineCheckOKButton();"/>
</hbox>
</hbox>
</vbox>
<stringbundleset id="stringbundleset">
<stringbundle id="bundle_cckwizard" src="chrome://cckwizard/locale/cckwizard.properties"/>
</stringbundleset>
</dialog>