Browse Source

changed hints display

Gerald 12 years ago
parent
commit
4a42f48054

+ 9 - 9
_locales/cs/messages.json

@@ -239,10 +239,6 @@
 		"message": "hledat URL: ", 
 		"description": "Label of URL for searching scripts for a site."
 	}, 
-	"labelSearchHint": {
-		"message": "<a title='Hledat URL musí být URL obsahující *. * má uplatnění pro klíčová slova generována Violentmonkey.'>(?)</a>", 
-		"description": "Hint for the search URL."
-	}, 
 	"buttonDefault": {
 		"message": "Výchozí", 
 		"description": "Button to replace search URL with the default one."
@@ -263,10 +259,6 @@
 		"message": "Vyprázdnit data", 
 		"description": "Button to vacuum extension data."
 	}, 
-	"labelVacuumHint": {
-		"message": "<a title='Zbavit se nadbytečného a zkusit znovu načíst chybějící zdroje v cache.'>(?)</a>", 
-		"description": "Hint for vacuuming data."
-	}, 
 	"anchorUpdate": {
 		"message": "Zkontrolovat aktualizace", 
 		"description": "Check a script for updates."
@@ -299,6 +291,10 @@
 		"message": "Modifikace není uložena! Klikni na OK pro zbavení se jí, nebo na zrušit pro zůstání zde.", 
 		"description": "Confirm message shown when there are unsaved script modifications."
 	}, 
+	"hintSearchLink": {
+		"message": "Hledat URL musí být URL obsahující *. * má uplatnění pro klíčová slova generována Violentmonkey.", 
+		"description": "Hint for the search URL."
+	}, 
 	"msgImported": {
 		"message": "$1 vec(i) jsou importovány.", 
 		"description": "Message shown after import. There is an argument referring to the count of scripts imported."
@@ -307,6 +303,10 @@
 		"message": "Čištení dat...", 
 		"description": "Message shown when data vacuum is in progress."
 	}, 
+	"hintVacuumData": {
+		"message": "Zbavit se nadbytečného a zkusit znovu načíst chybějící zdroje v cache.", 
+		"description": "Hint for vacuuming data."
+	}, 
 	"buttonExport": {
 		"message": "Exportovat", 
 		"description": "Button to confirm export."
@@ -339,4 +339,4 @@
 		"message": "Skriptové příkazy...", 
 		"description": "Menu item to list script commands."
 	}
-}
+}

+ 9 - 9
_locales/en/messages.json

@@ -239,10 +239,6 @@
 		"message": "Search URL: ", 
 		"description": "Label of URL for searching scripts for a site."
 	}, 
-	"labelSearchHint": {
-		"message": "<a title='Search URL must be a URL including *. * stands for the key words generated by Violentmonkey.'>(?)</a>", 
-		"description": "Hint for the search URL."
-	}, 
 	"buttonDefault": {
 		"message": "Default", 
 		"description": "Button to replace search URL with the default one."
@@ -263,10 +259,6 @@
 		"message": "Vacuum data", 
 		"description": "Button to vacuum extension data."
 	}, 
-	"labelVacuumHint": {
-		"message": "<a title='Discard the redundancy and try to reload the missing resources in cache.'>(?)</a>", 
-		"description": "Hint for vacuuming data."
-	}, 
 	"anchorUpdate": {
 		"message": "Check for updates", 
 		"description": "Check a script for updates."
@@ -299,6 +291,10 @@
 		"message": "Modifications are not saved!\nClick OK to discard them or cancel to stay.", 
 		"description": "Confirm message shown when there are unsaved script modifications."
 	}, 
+	"hintSearchLink": {
+		"message": "Search URL must be a URL including *. * stands for the key words generated by Violentmonkey.", 
+		"description": "Hint for the search URL."
+	}, 
 	"msgImported": {
 		"message": "$1 item(s) are imported.", 
 		"description": "Message shown after import. There is an argument referring to the count of scripts imported."
@@ -307,6 +303,10 @@
 		"message": "Vacuuming data...", 
 		"description": "Message shown when data vacuum is in progress."
 	}, 
+	"hintVacuumData": {
+		"message": "Discard the redundancy and try to reload the missing resources in cache.", 
+		"description": "Hint for vacuuming data."
+	}, 
 	"buttonExport": {
 		"message": "Export", 
 		"description": "Button to confirm export."
@@ -339,4 +339,4 @@
 		"message": "Script commands...", 
 		"description": "Menu item to list script commands."
 	}
-}
+}

+ 9 - 9
_locales/pl/messages.json

@@ -239,10 +239,6 @@
 		"message": "Adres wyszukiwarki:", 
 		"description": "Label of URL for searching scripts for a site."
 	}, 
-	"labelSearchHint": {
-		"message": "<a title='Adres wyszukiwarki musi zawierać *. * oznacza słowa kluczowe generowane przez Violentmonkey.'>(?)</a>", 
-		"description": "Hint for the search URL."
-	}, 
 	"buttonDefault": {
 		"message": "Domyślne", 
 		"description": "Button to replace search URL with the default one."
@@ -263,10 +259,6 @@
 		"message": "Wyczyść dane", 
 		"description": "Button to vacuum extension data."
 	}, 
-	"labelVacuumHint": {
-		"message": "<a title=\"Usuń nadmiarowość i spróbuj przeładować brakujące dane w cache.\">(?)</a>", 
-		"description": "Hint for vacuuming data."
-	}, 
 	"anchorUpdate": {
 		"message": "Sprawdź aktualizacje", 
 		"description": "Check a script for updates."
@@ -299,6 +291,10 @@
 		"message": "Modyfikacje nie zostały zapisane! Kliknij OK aby wyjść lub Anuluj aby zostać.", 
 		"description": "Confirm message shown when there are unsaved script modifications."
 	}, 
+	"hintSearchLink": {
+		"message": "Adres wyszukiwarki musi zawierać *. * oznacza słowa kluczowe generowane przez Violentmonkey.", 
+		"description": "Hint for the search URL."
+	}, 
 	"msgImported": {
 		"message": "$1 pozycja(e) zaimportowana(e).", 
 		"description": "Message shown after import. There is an argument referring to the count of scripts imported."
@@ -307,6 +303,10 @@
 		"message": "Czyszczenie danych...", 
 		"description": "Message shown when data vacuum is in progress."
 	}, 
+	"hintVacuumData": {
+		"message": "Usuń nadmiarowość i spróbuj przeładować brakujące dane w cache.", 
+		"description": "Hint for vacuuming data."
+	}, 
 	"buttonExport": {
 		"message": "Eksportuj", 
 		"description": "Button to confirm export."
@@ -339,4 +339,4 @@
 		"message": "Komendy skryptu...", 
 		"description": "Menu item to list script commands."
 	}
-}
+}

+ 9 - 9
_locales/ru/messages.json

@@ -239,10 +239,6 @@
 		"message": "Поисковый URL: ", 
 		"description": "Label of URL for searching scripts for a site."
 	}, 
-	"labelSearchHint": {
-		"message": "<a title='Поисковый URL должен включать *, где * - ключевые слова генерируемые Violentmonkey'>(?)</a>", 
-		"description": "Hint for the search URL."
-	}, 
 	"buttonDefault": {
 		"message": "По умолчанию", 
 		"description": "Button to replace search URL with the default one."
@@ -263,10 +259,6 @@
 		"message": "Сбросить кэш", 
 		"description": "Button to vacuum extension data."
 	}, 
-	"labelVacuumHint": {
-		"message": "<a title=\"Сбросить избыточность и попробовать перезагрузить недостающие ресурсы в кэше\">(?)</a>", 
-		"description": "Hint for vacuuming data."
-	}, 
 	"anchorUpdate": {
 		"message": "Проверить обновления", 
 		"description": "Check a script for updates."
@@ -299,6 +291,10 @@
 		"message": "Изменения не сохранены!\nНажмите OK, чтобы продолжить или Отменить, чтобы вернуться.", 
 		"description": "Confirm message shown when there are unsaved script modifications."
 	}, 
+	"hintSearchLink": {
+		"message": "Поисковый URL должен включать *, где * - ключевые слова генерируемые Violentmonkey", 
+		"description": "Hint for the search URL."
+	}, 
 	"msgImported": {
 		"message": "$1 пункт(ов) импортировано.", 
 		"description": "Message shown after import. There is an argument referring to the count of scripts imported."
@@ -307,6 +303,10 @@
 		"message": "Vacuuming data...", 
 		"description": "Message shown when data vacuum is in progress."
 	}, 
+	"hintVacuumData": {
+		"message": "Сбросить избыточность и попробовать перезагрузить недостающие ресурсы в кэше", 
+		"description": "Hint for vacuuming data."
+	}, 
 	"buttonExport": {
 		"message": "Экспорт", 
 		"description": "Button to confirm export."
@@ -339,4 +339,4 @@
 		"message": "Команды сценария...", 
 		"description": "Menu item to list script commands."
 	}
-}
+}

+ 9 - 9
_locales/zh/messages.json

@@ -239,10 +239,6 @@
 		"message": "搜索网址:", 
 		"description": "Label of URL for searching scripts for a site."
 	}, 
-	"labelSearchHint": {
-		"message": "<a title='搜索网址必须包含*,*将替换为由<暴力猴>生成的关键字。'>(?)</a>", 
-		"description": "Hint for the search URL."
-	}, 
 	"buttonDefault": {
 		"message": "默认", 
 		"description": "Button to replace search URL with the default one."
@@ -263,10 +259,6 @@
 		"message": "整理数据", 
 		"description": "Button to vacuum extension data."
 	}, 
-	"labelVacuumHint": {
-		"message": "<a title='丢弃多余的数据,并尝试重新获取缺失的资源。'>(?)</a>", 
-		"description": "Hint for vacuuming data."
-	}, 
 	"anchorUpdate": {
 		"message": "查找更新", 
 		"description": "Check a script for updates."
@@ -299,6 +291,10 @@
 		"message": "修改尚未保存!\n点击确定放弃修改或点击取消停留此页面。", 
 		"description": "Confirm message shown when there are unsaved script modifications."
 	}, 
+	"hintSearchLink": {
+		"message": "搜索网址必须包含*,*将替换为由<暴力猴>生成的关键字。", 
+		"description": "Hint for the search URL."
+	}, 
 	"msgImported": {
 		"message": "已导入$1个脚本。", 
 		"description": "Message shown after import. There is an argument referring to the count of scripts imported."
@@ -307,6 +303,10 @@
 		"message": "正在整理...", 
 		"description": "Message shown when data vacuum is in progress."
 	}, 
+	"hintVacuumData": {
+		"message": "丢弃多余的数据,并尝试重新获取缺失的资源。", 
+		"description": "Hint for vacuuming data."
+	}, 
 	"buttonExport": {
 		"message": "导出", 
 		"description": "Button to confirm export."
@@ -339,4 +339,4 @@
 		"message": "脚本命令...", 
 		"description": "Menu item to list script commands."
 	}
-}
+}

+ 2 - 2
options.html

@@ -116,14 +116,14 @@
 			<h2 class=i18n>labelAdvanced</h2>
 			<label><input type=checkbox id=cUpdate><span class=i18n>labelAutoUpdate</span></label>
 			<div>
-				<span class=i18n>labelSearchLink</span><span class=i18n>labelSearchHint</span> <button id=bDefSearch class=i18n>buttonDefault</button><br>
+				<span class=i18n>labelSearchLink</span> <button id=bDefSearch class=i18n>buttonDefault</button><br>
 				<textarea id=tSearch></textarea><br>
 			</div>
 			<fieldset>
 				<legend class=i18n>labelData</legend>
 				<button id=aExport class=i18n>buttonExportData</button>
 				<button id=aImport class=i18n>buttonImportData</button>
-				<button id=aVacuum class=i18n>buttonVacuumData</button><span class=i18n>labelVacuumHint</span>
+				<button id=aVacuum class=i18n>buttonVacuumData</button>
 			</fieldset>
 			<div class=right><button id=aClose class=i18n>buttonClose</button></div>
 		</div>

+ 2 - 0
options.js

@@ -157,6 +157,7 @@ var A=$('advanced');
 $('bAdvanced').onclick=function(){showDialog(A);};
 $('cUpdate').onchange=function(){chrome.runtime.sendMessage({cmd:'AutoUpdate',data:this.checked});};
 $('bDefSearch').onclick=function(){$('tSearch').value=_('defaultSearch');};
+$('tSearch').title=_('hintSearchLink');
 $('aExport').onclick=function(){showDialog(X);xLoad();};
 function importFile(e){
 	zip.createReader(new zip.BlobReader(e.target.files[0]),function(r){
@@ -203,6 +204,7 @@ $('aVacuum').onclick=function(){
 	this.innerHTML=_('buttonVacuuming');
 	chrome.runtime.sendMessage({cmd:'Vacuum'});
 };
+$('aVacuum').title=_('hintVacuumData');
 A.close=$('aClose').onclick=function(){
 	chrome.runtime.sendMessage({cmd:'SetOption',data:{key:'search',value:$('tSearch').value}});
 	closeDialog();