Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Side by Side Diff: chrome/content/ui/filters.xul

Issue 11015083: Merge labels and access keys into one string in locales (Closed)
Patch Set: Created July 3, 2013, 9:11 a.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | Download patch
OLDNEW
1 <?xml version="1.0"?> 1 <?xml version="1.0"?>
2 2
3 <!-- 3 <!--
4 - This file is part of Adblock Plus <http://adblockplus.org/>, 4 - This file is part of Adblock Plus <http://adblockplus.org/>,
5 - Copyright (C) 2006-2013 Eyeo GmbH 5 - Copyright (C) 2006-2013 Eyeo GmbH
6 - 6 -
7 - Adblock Plus is free software: you can redistribute it and/or modify 7 - Adblock Plus is free software: you can redistribute it and/or modify
8 - it under the terms of the GNU General Public License version 3 as 8 - it under the terms of the GNU General Public License version 3 as
9 - published by the Free Software Foundation. 9 - published by the Free Software Foundation.
10 - 10 -
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 <command id="filters-copy-command" oncommand="FilterActions.copySelected(true) ;"/> 86 <command id="filters-copy-command" oncommand="FilterActions.copySelected(true) ;"/>
87 <command id="filters-cut-command" oncommand="FilterActions.copySelected(false) ;"/> 87 <command id="filters-cut-command" oncommand="FilterActions.copySelected(false) ;"/>
88 <command id="filters-paste-command" oncommand="FilterActions.paste();"/> 88 <command id="filters-paste-command" oncommand="FilterActions.paste();"/>
89 <command id="find-command" oncommand="E('findbar').startFind(E('findbar').FIND _NORMAL)"/> 89 <command id="find-command" oncommand="E('findbar').startFind(E('findbar').FIND _NORMAL)"/>
90 <command id="find-again-command" oncommand="E('findbar').onFindAgainCommand(fa lse)"/> 90 <command id="find-again-command" oncommand="E('findbar').onFindAgainCommand(fa lse)"/>
91 <command id="find-previous-command" oncommand="E('findbar').onFindAgainCommand (true)"/> 91 <command id="find-previous-command" oncommand="E('findbar').onFindAgainCommand (true)"/>
92 </commandset> 92 </commandset>
93 93
94 <popupset id="filtersPopupset"> 94 <popupset id="filtersPopupset">
95 <menupopup id="filters-view-menu1" onpopupshowing="FilterActions.fillColumnPop up(this);"> 95 <menupopup id="filters-view-menu1" onpopupshowing="FilterActions.fillColumnPop up(this);">
96 <menuitem id="filters-view-filter1" label="&filter.column;" accesskey="&filt er.accesskey;" type="checkbox" disabled="true"/> 96 <menuitem id="filters-view-filter1" label="&filter.column;" type="checkbox" disabled="true"/>
97 <menuitem id="filters-view-slow1" label="&slow.column;" accesskey="&slow.acc esskey;" type="checkbox" oncommand="FilterActions.toggleColumn('col-slow')"/> 97 <menuitem id="filters-view-slow1" label="&slow.column;" type="checkbox" onco mmand="FilterActions.toggleColumn('col-slow')"/>
98 <menuitem id="filters-view-enabled1" label="&enabled.column;" accesskey="&en abled.accesskey;" type="checkbox" oncommand="FilterActions.toggleColumn('col-ena bled')"/> 98 <menuitem id="filters-view-enabled1" label="&enabled.column;" type="checkbox " oncommand="FilterActions.toggleColumn('col-enabled')"/>
99 <menuitem id="filters-view-hitcount1" label="&hitcount.column;" accesskey="& hitcount.accesskey;" type="checkbox" oncommand="FilterActions.toggleColumn('col- hitcount')"/> 99 <menuitem id="filters-view-hitcount1" label="&hitcount.column;" type="checkb ox" oncommand="FilterActions.toggleColumn('col-hitcount')"/>
100 <menuitem id="filters-view-lasthit1" label="&lasthit.column;" accesskey="&la sthit.accesskey;" type="checkbox" oncommand="FilterActions.toggleColumn('col-las thit')"/> 100 <menuitem id="filters-view-lasthit1" label="&lasthit.column;" type="checkbox " oncommand="FilterActions.toggleColumn('col-lasthit')"/>
101 <menuseparator/> 101 <menuseparator/>
102 <menu id="filters-sort-menu1" label="&sort.label;" accesskey="&sort.accesske y;"> 102 <menu id="filters-sort-menu1" label="&sort.label;">
103 <menupopup id="filters-sort-popup1"> 103 <menupopup id="filters-sort-popup1">
104 <menuitem id="filters-sort-none1" label="&sort.none.label;" accesskey="& sort.none.accesskey;" type="radio" name="sortColumn" oncommand="FilterView.sortB y(null)"/> 104 <menuitem id="filters-sort-none1" label="&sort.none.label;" type="radio" name="sortColumn" oncommand="FilterView.sortBy(null)"/>
105 <menuitem id="filters-sort-filter1" label="&filter.column;" accesskey="& filter.accesskey;" type="radio" name="sortColumn" oncommand="FilterView.sortBy(' col-filter')"/> 105 <menuitem id="filters-sort-filter1" label="&filter.column;" type="radio" name="sortColumn" oncommand="FilterView.sortBy('col-filter')"/>
106 <menuitem id="filters-sort-slow1" label="&slow.column;" accesskey="&slow .accesskey;" type="radio" name="sortColumn" oncommand="FilterView.sortBy('col-sl ow')"/> 106 <menuitem id="filters-sort-slow1" label="&slow.column;" type="radio" nam e="sortColumn" oncommand="FilterView.sortBy('col-slow')"/>
107 <menuitem id="filters-sort-enabled1" label="&enabled.column;" accesskey= "&enabled.accesskey;" type="radio" name="sortColumn" oncommand="FilterView.sortB y('col-enabled')"/> 107 <menuitem id="filters-sort-enabled1" label="&enabled.column;" type="radi o" name="sortColumn" oncommand="FilterView.sortBy('col-enabled')"/>
108 <menuitem id="filters-sort-hitcount1" label="&hitcount.column;" accesske y="&hitcount.accesskey;" type="radio" name="sortColumn" oncommand="FilterView.so rtBy('col-hitcount')"/> 108 <menuitem id="filters-sort-hitcount1" label="&hitcount.column;" type="ra dio" name="sortColumn" oncommand="FilterView.sortBy('col-hitcount')"/>
109 <menuitem id="filters-sort-lasthit1" label="&lasthit.column;" accesskey= "&lasthit.accesskey;" type="radio" name="sortColumn" oncommand="FilterView.sortB y('col-lasthit')"/> 109 <menuitem id="filters-sort-lasthit1" label="&lasthit.column;" type="radi o" name="sortColumn" oncommand="FilterView.sortBy('col-lasthit')"/>
110 <menuseparator/> 110 <menuseparator/>
111 <menuitem id="filters-sort-asc1" label="&sort.ascending.label;" accesske y="&sort.ascending.accesskey;" type="radio" name="sortOrder" oncommand="FilterAc tions.setSortOrder('ascending')"/> 111 <menuitem id="filters-sort-asc1" label="&sort.ascending.label;" type="ra dio" name="sortOrder" oncommand="FilterActions.setSortOrder('ascending')"/>
112 <menuitem id="filters-sort-desc1" label="&sort.descending.label;" access key="&sort.descending.accesskey;" type="radio" name="sortOrder" oncommand="Filte rActions.setSortOrder('descending')"/> 112 <menuitem id="filters-sort-desc1" label="&sort.descending.label;" type=" radio" name="sortOrder" oncommand="FilterActions.setSortOrder('descending')"/>
113 </menupopup> 113 </menupopup>
114 </menu> 114 </menu>
115 </menupopup> 115 </menupopup>
116 <tooltip id="filtersTooltip" onpopupshowing="FilterActions.fillTooltip(event); "> 116 <tooltip id="filtersTooltip" onpopupshowing="FilterActions.fillTooltip(event); ">
117 <grid> 117 <grid>
118 <columns> 118 <columns>
119 <column/> 119 <column/>
120 <column flex="1"/> 120 <column flex="1"/>
121 </columns> 121 </columns>
122 <rows> 122 <rows>
(...skipping 18 matching lines...) Expand all
141 141
142 <hbox id="content" flex="1"> 142 <hbox id="content" flex="1">
143 <tabbox id="tabs" flex="1" persist="selectedIndex"> 143 <tabbox id="tabs" flex="1" persist="selectedIndex">
144 <tabs onselect="onTabChange(this.parentNode);"> 144 <tabs onselect="onTabChange(this.parentNode);">
145 <tab label="&subscriptions.tab.label;"/> 145 <tab label="&subscriptions.tab.label;"/>
146 <tab label="&filters.tab.label;"/> 146 <tab label="&filters.tab.label;"/>
147 </tabs> 147 </tabs>
148 <tabpanels flex="1"> 148 <tabpanels flex="1">
149 <tabpanel id="subscriptionsTab" orient="vertical" flex="1"> 149 <tabpanel id="subscriptionsTab" orient="vertical" flex="1">
150 <hbox pack="end"> 150 <hbox pack="end">
151 <button id="selectSubscriptionButton" label="&addSubscription.label;…" accesskey="&addSubscription.accesskey;" command="subscription-add-command"/> 151 <button id="selectSubscriptionButton" label="&addSubscription.label;…" command="subscription-add-command"/>
152 </hbox> 152 </hbox>
153 153
154 <panel id="selectSubscriptionPanel" type="arrow" position="bottomcenter topleft" 154 <panel id="selectSubscriptionPanel" type="arrow" position="bottomcenter topleft"
155 orient="vertical" onkeypress="SelectSubscription.keyPress(event); "> 155 orient="vertical" onkeypress="SelectSubscription.keyPress(event); ">
156 <menuitem id="selectSubscriptionTemplate" hidden="true" 156 <menuitem id="selectSubscriptionTemplate" hidden="true"
157 class="{localePrefix ? 'localeMatch' : ''}" 157 class="{localePrefix ? 'localeMatch' : ''}"
158 label="{node.getAttribute('title')}" 158 label="{node.getAttribute('title')}"
159 value="{node.getAttribute('url')}"> 159 value="{node.getAttribute('url')}">
160 <label class="selectSubscriptionItem" value="{node.getAttribute('tit le') + ' (' + node.getAttribute('specialization') + ')'}"/> 160 <label class="selectSubscriptionItem" value="{node.getAttribute('tit le') + ' (' + node.getAttribute('specialization') + ')'}"/>
161 </menuitem> 161 </menuitem>
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
258 <description flex="1">&noSubscriptions.text;</description> 258 <description flex="1">&noSubscriptions.text;</description>
259 <richlistbox id="subscriptions" class="initialFocus" flex="1" 259 <richlistbox id="subscriptions" class="initialFocus" flex="1"
260 onselect="onSelectionChange(this);" 260 onselect="onSelectionChange(this);"
261 ondragover="SubscriptionActions.dragOver(event);" 261 ondragover="SubscriptionActions.dragOver(event);"
262 ondrop="SubscriptionActions.drop(event, null);" 262 ondrop="SubscriptionActions.drop(event, null);"
263 onkeypress="SubscriptionActions.keyPress(event);"> 263 onkeypress="SubscriptionActions.keyPress(event);">
264 </richlistbox> 264 </richlistbox>
265 </deck> 265 </deck>
266 266
267 <description> 267 <description>
268 <checkbox id="acceptableAds" label="&acceptableAds2.label;" accesskey= "&acceptableAds2.accesskey;" oncommand="ListManager.allowAcceptableAds(this.chec ked);"/> 268 <checkbox id="acceptableAds" label="&acceptableAds2.label;" oncommand= "ListManager.allowAcceptableAds(this.checked);"/>
269 <label class="text-link" value="&viewList.label;" onclick="UI.loadInBr owser(Prefs.subscriptions_exceptionsurl);"/> 269 <label class="text-link" value="&viewList.label;" onclick="UI.loadInBr owser(Prefs.subscriptions_exceptionsurl);"/>
270 <label class="text-link" value="&readMore.label;" onclick="UI.loadDocL ink('acceptable_ads');"/> 270 <label class="text-link" value="&readMore.label;" onclick="UI.loadDocL ink('acceptable_ads');"/>
271 </description> 271 </description>
272 </tabpanel> 272 </tabpanel>
273 <tabpanel id="filtersTab" orient="vertical" flex="1"> 273 <tabpanel id="filtersTab" orient="vertical" flex="1">
274 <hbox pack="end"> 274 <hbox pack="end">
275 <button id="addGroupButton" label="&addGroup.label;" accesskey="&addGr oup.accesskey;" command="group-add-command"/> 275 <button id="addGroupButton" label="&addGroup.label;" command="group-ad d-command"/>
276 </hbox> 276 </hbox>
277 277
278 <richlistitem id="groupTemplate" class="subscription" hidden="true" orie nt="vertical" 278 <richlistitem id="groupTemplate" class="subscription" hidden="true" orie nt="vertical"
279 onmousedown="this._wasSelected = (this.parentNode.selectedItem == th is);" 279 onmousedown="this._wasSelected = (this.parentNode.selectedItem == th is);"
280 ondragstart="SubscriptionActions.startDrag(event, this);" 280 ondragstart="SubscriptionActions.startDrag(event, this);"
281 ondragend="SubscriptionActions.endDrag();" 281 ondragend="SubscriptionActions.endDrag();"
282 ondragover="SubscriptionActions.dragOver(event);" 282 ondragover="SubscriptionActions.dragOver(event);"
283 ondrop="SubscriptionActions.drop(event, this);" 283 ondrop="SubscriptionActions.drop(event, this);"
284 oncontextmenu="SubscriptionActions.openMenu(event, this);"> 284 oncontextmenu="SubscriptionActions.openMenu(event, this);">
285 <hbox class="{subscription.disabled ? 'disabled' : ''}" align="center" > 285 <hbox class="{subscription.disabled ? 'disabled' : ''}" align="center" >
(...skipping 30 matching lines...) Expand all
316 </tabpanel> 316 </tabpanel>
317 </tabpanels> 317 </tabpanels>
318 </tabbox> 318 </tabbox>
319 319
320 <splitter id="filtersSplitter" persist="state" orient="horizontal" collapse="a fter" state="collapsed" oncommand="FilterView.refresh();onSplitterStateChange(th is);"> 320 <splitter id="filtersSplitter" persist="state" orient="horizontal" collapse="a fter" state="collapsed" oncommand="FilterView.refresh();onSplitterStateChange(th is);">
321 <grippy id="filtersGrippy"/> 321 <grippy id="filtersGrippy"/>
322 </splitter> 322 </splitter>
323 323
324 <vbox id="filtersContainer" persist="width height" width="500"> 324 <vbox id="filtersContainer" persist="width height" width="500">
325 <hbox pack="end"> 325 <hbox pack="end">
326 <button id="findButton" label="&find.label;" accesskey="&find.accesskey;" command="find-command"/> 326 <button id="findButton" label="&find.label;" command="find-command"/>
327 <button id="filterActionButton" type="menu" label="&filter.actions.label;" > 327 <button id="filterActionButton" type="menu" label="&filter.actions.label;" >
328 <menupopup id="filterActionMenu" onpopupshowing="FilterActions.fillActio nsPopup();"> 328 <menupopup id="filterActionMenu" onpopupshowing="FilterActions.fillActio nsPopup();">
329 <menuitem label="&filter.edit.label;" key="edit-key" command="filters- edit-command"/> 329 <menuitem label="&filter.edit.label;" key="edit-key" command="filters- edit-command"/>
330 <menuitem label="&filter.cut.label;" key="filters-cut-key" command="fi lters-cut-command"/> 330 <menuitem label="&filter.cut.label;" key="filters-cut-key" command="fi lters-cut-command"/>
331 <menuitem label="&filter.copy.label;" key="filters-copy-key" command=" filters-copy-command"/> 331 <menuitem label="&filter.copy.label;" key="filters-copy-key" command=" filters-copy-command"/>
332 <menuitem label="&filter.paste.label;" key="filters-paste-key" command ="filters-paste-command"/> 332 <menuitem label="&filter.paste.label;" key="filters-paste-key" command ="filters-paste-command"/>
333 <menuitem label="&filter.delete.label;" key="delete-key" command="filt ers-delete-command"/> 333 <menuitem label="&filter.delete.label;" key="delete-key" command="filt ers-delete-command"/>
334 <menuseparator/> 334 <menuseparator/>
335 <menuitem label="&filter.selectAll.label;" key="filters-selectAll-key" command="filters-selectAll-command"/> 335 <menuitem label="&filter.selectAll.label;" key="filters-selectAll-key" command="filters-selectAll-command"/>
336 <menuitem label="&filter.resetHitCounts.label;" command="filters-reset HitCounts-command"/> 336 <menuitem label="&filter.resetHitCounts.label;" command="filters-reset HitCounts-command"/>
337 <menuseparator/> 337 <menuseparator/>
338 <menuitem label="&filter.moveUp.label;" key="moveUp-key" command="filt ers-moveUp-command"/> 338 <menuitem label="&filter.moveUp.label;" key="moveUp-key" command="filt ers-moveUp-command"/>
339 <menuitem label="&filter.moveDown.label;" key="moveDown-key" command=" filters-moveDown-command"/> 339 <menuitem label="&filter.moveDown.label;" key="moveDown-key" command=" filters-moveDown-command"/>
340 <menuseparator/> 340 <menuseparator/>
341 <menu id="viewMenu" label="&viewMenu.label;"/> 341 <menu id="viewMenu" label="&viewMenu.label;"/>
342 </menupopup> 342 </menupopup>
343 </button> 343 </button>
344 <button id="addFilterButton" label="&addFilter.label;" accesskey="&addFilt er.accesskey;" command="filters-add-command"/> 344 <button id="addFilterButton" label="&addFilter.label;" command="filters-ad d-command"/>
345 </hbox> 345 </hbox>
346 <tree id="filtersTree" 346 <tree id="filtersTree"
347 flex="1" 347 flex="1"
348 editable="true" 348 editable="true"
349 seltype="multiple" 349 seltype="multiple"
350 enableColumnDrag="true" 350 enableColumnDrag="true"
351 hidecolumnpicker="true" 351 hidecolumnpicker="true"
352 _removewarning="&filters.remove.warning;"> 352 _removewarning="&filters.remove.warning;">
353 <treecols context="filters-view-menu1"> 353 <treecols context="filters-view-menu1">
354 <treecol id="col-enabled" label="&enabled.column;" cycler="true" flex="0 " persist="width ordinal sortDirection hidden"/> 354 <treecol id="col-enabled" label="&enabled.column;" cycler="true" flex="0 " persist="width ordinal sortDirection hidden"/>
(...skipping 15 matching lines...) Expand all
370 ondragstart="FilterActions.startDrag(event);" 370 ondragstart="FilterActions.startDrag(event);"
371 ondragend="FilterActions.endDrag(event);"/> 371 ondragend="FilterActions.endDrag(event);"/>
372 </tree> 372 </tree>
373 </vbox> 373 </vbox>
374 </hbox> 374 </hbox>
375 375
376 <findbar id="findbar"/> 376 <findbar id="findbar"/>
377 377
378 <hbox id="buttons"> 378 <hbox id="buttons">
379 <button id="backupButton" type="menu" 379 <button id="backupButton" type="menu"
380 label="&backupButton.label;" accesskey="&backupButton.accesskey;" 380 label="&backupButton.label;"
381 _backupDialogTitle="&backup.label;" _restoreDialogTitle="&restore.own.labe l;" 381 _backupDialogTitle="&backup.label;" _restoreDialogTitle="&restore.own.labe l;"
382 _fileFilterComplete="&backup.complete.title;" _fileFilterCustom="&backup.c ustom.title;" 382 _fileFilterComplete="&backup.complete.title;" _fileFilterCustom="&backup.c ustom.title;"
383 _backupError="&backup.error;" _restoreError="&restore.error;" 383 _backupError="&backup.error;" _restoreError="&restore.error;"
384 _restoreCompleteWarning="&restore.complete.warning;" _restoreCustomWarning ="&restore.custom.warning;" 384 _restoreCompleteWarning="&restore.complete.warning;" _restoreCustomWarning ="&restore.custom.warning;"
385 _restoreVersionWarning="&restore.minVersion.warning;" 385 _restoreVersionWarning="&restore.minVersion.warning;"
386 oncommand="if (event.target == this) Utils.runAsync(function() this.open = true, this);"> 386 oncommand="if (event.target == this) Utils.runAsync(function() this.open = true, this);">
387 <menupopup onpopupshowing="Backup.fillRestorePopup();"> 387 <menupopup onpopupshowing="Backup.fillRestorePopup();">
388 <menuitem id="backup" key="backup-key" label="&backup.label;…" oncommand=" Backup.backupToFile();"/> 388 <menuitem id="backup" key="backup-key" label="&backup.label;…" oncommand=" Backup.backupToFile();"/>
389 <menuseparator/> 389 <menuseparator/>
390 <menuitem id="restoreBackupTemplate" label="&restore.default.label;" hidde n="true"/> 390 <menuitem id="restoreBackupTemplate" label="&restore.default.label;" hidde n="true"/>
391 <menuitem id="restoreOwnBackup" key="restore-key" label="&restore.own.labe l;…" oncommand="Backup.restoreFromFile();"/> 391 <menuitem id="restoreOwnBackup" key="restore-key" label="&restore.own.labe l;…" oncommand="Backup.restoreFromFile();"/>
392 </menupopup> 392 </menupopup>
393 </button> 393 </button>
394 394
395 <spacer flex="1"/> 395 <spacer flex="1"/>
396 396
397 <button id="close" dlgtype="accept" label="&close.label;"/> 397 <button id="close" dlgtype="accept" label="&close.label;"/>
398 </hbox> 398 </hbox>
399 399
400 </dialog> 400 </dialog>
OLDNEW

Powered by Google App Engine
This is Rietveld