зеркало из https://github.com/mozilla/gecko-dev.git
Bug #246563 --> "Choose Application..." dialog title is not localizeable.
This commit is contained in:
Родитель
cf53402fba
Коммит
1c25f7334a
|
@ -214,7 +214,10 @@ function changeApp()
|
|||
{
|
||||
const nsIFilePicker = Components.interfaces.nsIFilePicker;
|
||||
var fp = Components.classes["@mozilla.org/filepicker;1"].createInstance(nsIFilePicker);
|
||||
fp.init(window, "Choose Application...", nsIFilePicker.modeOpen);
|
||||
|
||||
// extract the window title
|
||||
var winTitle = document.getElementById('changeApp').getAttribute('filepickertitle');
|
||||
fp.init(window, winTitle, nsIFilePicker.modeOpen);
|
||||
|
||||
fp.appendFilters(nsIFilePicker.filterApps);
|
||||
if (fp.show() == nsIFilePicker.returnOK && fp.file) {
|
||||
|
|
|
@ -75,7 +75,7 @@
|
|||
<hbox align="center" class="biggerIndent">
|
||||
<textbox id="customAppPath" readonly="true" flex="1"/>
|
||||
<button id="changeApp" oncommand="changeApp();"
|
||||
label="&changeApp.label;" accesskey="&changeApp.accesskey;"/>
|
||||
label="&changeApp.label;" filepickertitle="&changeAppWindowTitle.label;" accesskey="&changeApp.accesskey;"/>
|
||||
</hbox>
|
||||
<separator class="thin"/>
|
||||
<radio id="saveToDisk" value="save" label="&saveToDisk.label;"/>
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
|
||||
|
||||
<!ENTITY changeAction.title "Change Action">
|
||||
|
||||
<!ENTITY whenDownloading.label "When downloading files of type:">
|
||||
|
@ -12,3 +10,4 @@
|
|||
<!ENTITY customAppPath.label "Click 'Change ...' to choose an application.">
|
||||
<!ENTITY saveToDisk.label "Save to Disk">
|
||||
|
||||
<!ENTITY changeAppWindowTitle.label "Choose Application...">
|
||||
|
|
Загрузка…
Ссылка в новой задаче