зеркало из https://github.com/mozilla/pjs.git
fix 347858 use .accesskey for properties to help localization automation tools, patch by giacomo.magnini@portalis.it, r/sr=bienvenu
This commit is contained in:
Родитель
3e569b6324
Коммит
7f5a2190c3
|
@ -82,7 +82,7 @@ function searchOnLoad()
|
|||
|
||||
gSearchBundle = document.getElementById("bundle_search");
|
||||
gSearchStopButton.setAttribute("label", gSearchBundle.getString("labelForSearchButton"));
|
||||
gSearchStopButton.setAttribute("accesskey", gSearchBundle.getString("accesskeyForSearchButton"));
|
||||
gSearchStopButton.setAttribute("accesskey", gSearchBundle.getString("labelForSearchButton.accesskey"));
|
||||
gAddressBookBundle = document.getElementById("bundle_addressBook");
|
||||
gSearchSession = Components.classes[searchSessionContractID].createInstance(Components.interfaces.nsIMsgSearchSession);
|
||||
|
||||
|
|
|
@ -21,8 +21,8 @@ searchSuccessMessages=%S matches found
|
|||
searchFailureMessage=No matches found
|
||||
labelForStopButton=Stop
|
||||
labelForSearchButton=Search
|
||||
accesskeyForStopButton=S
|
||||
accesskeyForSearchButton=S
|
||||
labelForStopButton.accesskey=S
|
||||
labelForSearchButton.accesskey=S
|
||||
|
||||
moreButtonTooltipText=Add a new rule
|
||||
lessButtonTooltipText=Remove this rule
|
||||
|
|
|
@ -84,7 +84,7 @@ function searchOnLoad()
|
|||
|
||||
gSearchBundle = document.getElementById("bundle_search");
|
||||
gSearchStopButton.setAttribute("label", gSearchBundle.getString("labelForSearchButton"));
|
||||
gSearchStopButton.setAttribute("accesskey", gSearchBundle.getString("accesskeyForSearchButton"));
|
||||
gSearchStopButton.setAttribute("accesskey", gSearchBundle.getString("labelForSearchButton.accesskey"));
|
||||
gAddressBookBundle = document.getElementById("bundle_addressBook");
|
||||
gSearchSession = Components.classes[searchSessionContractID].createInstance(Components.interfaces.nsIMsgSearchSession);
|
||||
|
||||
|
|
|
@ -198,7 +198,7 @@ var gSearchNotificationListener =
|
|||
onSearchDone: function(status)
|
||||
{
|
||||
gSearchStopButton.setAttribute("label", gSearchBundle.getString("labelForSearchButton"));
|
||||
gSearchStopButton.setAttribute("accesskey", gSearchBundle.getString("accesskeyForSearchButton"));
|
||||
gSearchStopButton.setAttribute("accesskey", gSearchBundle.getString("labelForSearchButton.accesskey"));
|
||||
gStatusFeedback._stopMeteors();
|
||||
SetAdvancedSearchStatusText(gSearchView.QueryInterface(Components.interfaces.nsITreeView).rowCount);
|
||||
},
|
||||
|
@ -206,7 +206,7 @@ var gSearchNotificationListener =
|
|||
onNewSearch: function()
|
||||
{
|
||||
gSearchStopButton.setAttribute("label", gSearchBundle.getString("labelForStopButton"));
|
||||
gSearchStopButton.setAttribute("accesskey", gSearchBundle.getString("accesskeyForStopButton"));
|
||||
gSearchStopButton.setAttribute("accesskey", gSearchBundle.getString("labelForStopButton.accesskey"));
|
||||
UpdateMailSearch("new-search");
|
||||
gStatusFeedback._startMeteors();
|
||||
gStatusFeedback.showStatusString(gSearchBundle.getString("searchingMessage"));
|
||||
|
@ -266,7 +266,7 @@ function searchOnLoad()
|
|||
|
||||
gSearchBundle = document.getElementById("bundle_search");
|
||||
gSearchStopButton.setAttribute("label", gSearchBundle.getString("labelForSearchButton"));
|
||||
gSearchStopButton.setAttribute("accesskey", gSearchBundle.getString("accesskeyForSearchButton"));
|
||||
gSearchStopButton.setAttribute("accesskey", gSearchBundle.getString("labelForSearchButton.accesskey"));
|
||||
gMessengerBundle = document.getElementById("bundle_messenger");
|
||||
setupDatasource();
|
||||
setupSearchListener();
|
||||
|
|
|
@ -1,28 +0,0 @@
|
|||
# search and filter strings
|
||||
|
||||
searchCustomize="Customize Headers.."
|
||||
|
||||
# these are the fields that get inserted in the search line
|
||||
# for "and" searches, this looks like:
|
||||
#
|
||||
# searchAnd0 <attribute> searchAnd1 <operator> searchAnd2 <value> searchAnd4
|
||||
#
|
||||
# for example, in english this looks like:
|
||||
# and the [Sender ] [doesn't contain] [John]
|
||||
#
|
||||
# TODO: need to special-case the first line (filterindex==0)
|
||||
#
|
||||
|
||||
# filter stuff
|
||||
|
||||
searchingMessage=Searching...
|
||||
searchSuccessMessage=1 match found
|
||||
searchSuccessMessages=%S matches found
|
||||
searchFailureMessage=No matches found
|
||||
labelForStopButton=Stop
|
||||
labelForSearchButton=Search
|
||||
accesskeyForStopButton=S
|
||||
accesskeyForSearchButton=S
|
||||
|
||||
moreButtonTooltipText=Add a new rule
|
||||
lessButtonTooltipText=Remove this rule
|
Загрузка…
Ссылка в новой задаче