msgid "Replace"
msgstr "Zamień"
-#: templates/wiki/tabs/search_view.html:13
+#: templates/wiki/tabs/search_view.html:12
+msgid "Replace all"
+msgstr "Zamień wszystko"
+
msgid "Options"
msgstr "Opcje"
<p>{% trans "Replace with" %}:<br/>
<input id='replace-input' /><br/>
<button id='replace-button'>{% trans "Replace" %}</button><br/>
+ <input type="checkbox" id="replace-all" />
+ <label for="replace-all">{% trans "Replace all" %}</label><br/>
</p>
<p>{% trans "Options" %}<br/>
else {}
self.searchCursor.select();
self.searchCursor.replace(query);
- self.search();
+ if(self.options['replace-all']) {
+ while(self.search())
+ self.replace();
+ }
};
SearchPerspective.prototype.onEnter = function(success, failure){