Browse Source

update language files

Gerald 12 years ago
parent
commit
35b29f98b4
8 changed files with 158 additions and 162 deletions
  1. 26 26
      _locales/cs/messages.json
  2. 26 26
      _locales/en/messages.json
  3. 26 26
      _locales/fr/messages.json
  4. 26 26
      _locales/pl/messages.json
  5. 26 26
      _locales/ru/messages.json
  6. 26 26
      _locales/zh/messages.json
  7. 1 5
      common.js
  8. 1 1
      options.js

+ 26 - 26
_locales/cs/messages.json

@@ -11,6 +11,10 @@
 		"message": "ahoj1234", 
 		"description": "Information of the translator."
 	}, 
+	"defaultSearch": {
+		"message": "http://www.google.com/search?q=*", 
+		"description": "URL for searching scripts, * stands for the keywords."
+	}, 
 	"msgUpdated": {
 		"message": "Skript aktualizován.", 
 		"description": "Message shown when a script is updated/reinstalled."
@@ -55,6 +59,18 @@
 		"message": "Confirm installation", 
 		"description": "Button to confirm installation of a script."
 	}, 
+	"buttonClose": {
+		"message": "Zavřít", 
+		"description": "Button to close window."
+	}, 
+	"anchorSupportPage": {
+		"message": "<a href=https://github.com/gera2ld/Violentmonkey/wiki>Violentmonkey</a>", 
+		"description": "Link to the support page of Violentmonkey."
+	}, 
+	"anchorAuthor": {
+		"message": "Design od <a href=mailto:[email protected]>Gerald</a>, Přeložil: <a href=http://my.opera.com/ahoj1234>ahoj1234</a>", 
+		"description": "Author shown in the footer of options page, translator information may be added."
+	}, 
 	"msgNotJS": {
 		"message": "URL seems not to be Javascript. It will be loaded directly in 3 seconds.", 
 		"description": "Message shown in the confirm page when loading a URL ends with .user.js but seems not to be Javascript. It will then be loaded again directly in 3 seconds."
@@ -91,18 +107,14 @@
 		"message": "Pokročilé", 
 		"description": "Button to show the advanced options."
 	}, 
+	"labelInstalledScripts": {
+		"message": "Nainstalované skripty", 
+		"description": "Label of the list of installed scripts."
+	}, 
 	"labelShowDetails": {
 		"message": "Zobrazit detaily", 
 		"description": "An option to show the details of scripts, such as author, description, etc."
 	}, 
-	"anchorSupportPage": {
-		"message": "<a href=https://github.com/gera2ld/Violentmonkey/wiki>Violentmonkey</a>", 
-		"description": "Link to the support page of Violentmonkey."
-	}, 
-	"anchorAuthor": {
-		"message": "Design od <a href=mailto:[email protected]>Gerald</a>, Přeložil: <a href=http://my.opera.com/ahoj1234>ahoj1234</a>", 
-		"description": "Author shown in the footer of options page, translator information may be added."
-	}, 
 	"labelScriptEditor": {
 		"message": "Editor skriptů", 
 		"description": "Shown in the title of the script editing page."
@@ -195,10 +207,6 @@
 		"message": "Export dat", 
 		"description": "Label shown in the title of export dialog."
 	}, 
-	"labelInstalledScripts": {
-		"message": "Nainstalované skripty", 
-		"description": "Label of the list of installed scripts."
-	}, 
 	"anchorExportOptions": {
 		"message": "Možnosti", 
 		"description": "Options of export."
@@ -251,10 +259,6 @@
 		"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."
 	}, 
-	"buttonClose": {
-		"message": "Zavřít", 
-		"description": "Button to close the confirm window."
-	}, 
 	"anchorUpdate": {
 		"message": "Zkontrolovat aktualizace", 
 		"description": "Check a script for updates."
@@ -267,6 +271,10 @@
 		"message": "Odstranit", 
 		"description": "Button to remove a script."
 	}, 
+	"labelNoName": {
+		"message": "Jméno nebylo definováno", 
+		"description": "Text as the name of a script when no @name is assigned."
+	}, 
 	"labelAuthor": {
 		"message": "Autor: ", 
 		"description": "Label of author shown in the details of a script."
@@ -283,10 +291,6 @@
 		"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."
 	}, 
-	"defaultSearch": {
-		"message": "http://www.google.com/search?q=*", 
-		"description": "URL for searching scripts, * stands for the keywords."
-	}, 
 	"msgImported": {
 		"message": "$1 item(s) are imported.", 
 		"description": "Message shown after import. There is an argument referring to the count of scripts imported."
@@ -299,7 +303,7 @@
 		"message": "Exportovat", 
 		"description": "Button to confirm export."
 	}, 
-	"labelExporting": {
+	"buttonExporting": {
 		"message": "Exporting data...", 
 		"description": "Message shown when data export is in progress."
 	}, 
@@ -307,10 +311,6 @@
 		"message": "Data vyprázdněna", 
 		"description": "Message shown when data is vacuumed."
 	}, 
-	"labelNoName": {
-		"message": "Jméno nebylo definováno", 
-		"description": "Text as the name of a script when no @name is assigned."
-	}, 
 	"menuManageScripts": {
 		"message": "Řízení skriptů", 
 		"description": "Menu item to manage scripts, or to open the options page of the extension."
@@ -331,4 +331,4 @@
 		"message": "Skriptové příkazy...", 
 		"description": "Menu item to list script commands."
 	}
-}
+}

+ 26 - 26
_locales/en/messages.json

@@ -11,6 +11,10 @@
 		"message": "Gerald <[email protected]>", 
 		"description": "Information of the translator."
 	}, 
+	"defaultSearch": {
+		"message": "http://www.google.com/search?q=*", 
+		"description": "URL for searching scripts, * stands for the keywords."
+	}, 
 	"msgUpdated": {
 		"message": "Script updated.", 
 		"description": "Message shown when a script is updated/reinstalled."
@@ -55,6 +59,18 @@
 		"message": "Confirm installation", 
 		"description": "Button to confirm installation of a script."
 	}, 
+	"buttonClose": {
+		"message": "Close", 
+		"description": "Button to close window."
+	}, 
+	"anchorSupportPage": {
+		"message": "<a href=https://github.com/gera2ld/Violentmonkey/wiki>Violentmonkey</a>", 
+		"description": "Link to the support page of Violentmonkey."
+	}, 
+	"anchorAuthor": {
+		"message": "Designed by <a href=mailto:[email protected]>Gerald</a>", 
+		"description": "Author shown in the footer of options page, translator information may be added."
+	}, 
 	"msgNotJS": {
 		"message": "URL seems not to be Javascript. It will be loaded directly in 3 seconds.", 
 		"description": "Message shown in the confirm page when loading a URL ends with .user.js but seems not to be Javascript. It will then be loaded again directly in 3 seconds."
@@ -91,18 +107,14 @@
 		"message": "Advanced", 
 		"description": "Button to show the advanced options."
 	}, 
+	"labelInstalledScripts": {
+		"message": "Installed scripts", 
+		"description": "Label of the list of installed scripts."
+	}, 
 	"labelShowDetails": {
 		"message": "Show details", 
 		"description": "An option to show the details of scripts, such as author, description, etc."
 	}, 
-	"anchorSupportPage": {
-		"message": "<a href=https://github.com/gera2ld/Violentmonkey/wiki>Violentmonkey</a>", 
-		"description": "Link to the support page of Violentmonkey."
-	}, 
-	"anchorAuthor": {
-		"message": "Designed by <a href=mailto:[email protected]>Gerald</a>", 
-		"description": "Author shown in the footer of options page, translator information may be added."
-	}, 
 	"labelScriptEditor": {
 		"message": "Script Editor", 
 		"description": "Shown in the title of the script editing page."
@@ -195,10 +207,6 @@
 		"message": "Data Export", 
 		"description": "Label shown in the title of export dialog."
 	}, 
-	"labelInstalledScripts": {
-		"message": "Installed scripts", 
-		"description": "Label of the list of installed scripts."
-	}, 
 	"anchorExportOptions": {
 		"message": "Options", 
 		"description": "Options of export."
@@ -251,10 +259,6 @@
 		"message": "<a title='Discard the redundancy and try to reload the missing resources in cache.'>(?)</a>", 
 		"description": "Hint for vacuuming data."
 	}, 
-	"buttonClose": {
-		"message": "Close", 
-		"description": "Button to close the confirm window."
-	}, 
 	"anchorUpdate": {
 		"message": "Check for updates", 
 		"description": "Check a script for updates."
@@ -267,6 +271,10 @@
 		"message": "Remove", 
 		"description": "Button to remove a script."
 	}, 
+	"labelNoName": {
+		"message": "No Name", 
+		"description": "Text as the name of a script when no @name is assigned."
+	}, 
 	"labelAuthor": {
 		"message": "Author: ", 
 		"description": "Label of author shown in the details of a script."
@@ -283,10 +291,6 @@
 		"message": "Modifications are not saved!\nClick OK to discard them or cancel to stay.", 
 		"description": "Confirm message shown when there are unsaved script modifications."
 	}, 
-	"defaultSearch": {
-		"message": "http://www.google.com/search?q=*", 
-		"description": "URL for searching scripts, * stands for the keywords."
-	}, 
 	"msgImported": {
 		"message": "$1 item(s) are imported.", 
 		"description": "Message shown after import. There is an argument referring to the count of scripts imported."
@@ -299,7 +303,7 @@
 		"message": "Export", 
 		"description": "Button to confirm export."
 	}, 
-	"labelExporting": {
+	"buttonExporting": {
 		"message": "Exporting data...", 
 		"description": "Message shown when data export is in progress."
 	}, 
@@ -307,10 +311,6 @@
 		"message": "Data vacuumed", 
 		"description": "Message shown when data is vacuumed."
 	}, 
-	"labelNoName": {
-		"message": "No Name", 
-		"description": "Text as the name of a script when no @name is assigned."
-	}, 
 	"menuManageScripts": {
 		"message": "Manage scripts", 
 		"description": "Menu item to manage scripts, or to open the options page of the extension."
@@ -331,4 +331,4 @@
 		"message": "Script commands...", 
 		"description": "Menu item to list script commands."
 	}
-}
+}

+ 26 - 26
_locales/fr/messages.json

@@ -11,6 +11,10 @@
 		"message": "10ours", 
 		"description": "Information of the translator."
 	}, 
+	"defaultSearch": {
+		"message": "http://www.google.com/search?q=*", 
+		"description": "URL for searching scripts, * stands for the keywords."
+	}, 
 	"msgUpdated": {
 		"message": "Script mis &agrave; jour.", 
 		"description": "Message shown when a script is updated/reinstalled."
@@ -55,6 +59,18 @@
 		"message": "Confirm installation", 
 		"description": "Button to confirm installation of a script."
 	}, 
+	"buttonClose": {
+		"message": "Fermer", 
+		"description": "Button to close window."
+	}, 
+	"anchorSupportPage": {
+		"message": "<a href=https://github.com/gera2ld/Violentmonkey/wiki>Violentmonkey</a>", 
+		"description": "Link to the support page of Violentmonkey."
+	}, 
+	"anchorAuthor": {
+		"message": "Programm&eacute; par <a href=mailto:[email protected]>Gerald</a>  et traduit par 10ours", 
+		"description": "Author shown in the footer of options page, translator information may be added."
+	}, 
 	"msgNotJS": {
 		"message": "URL seems not to be Javascript. It will be loaded directly in 3 seconds.", 
 		"description": "Message shown in the confirm page when loading a URL ends with .user.js but seems not to be Javascript. It will then be loaded again directly in 3 seconds."
@@ -91,18 +107,14 @@
 		"message": "Avanc&eacute;", 
 		"description": "Button to show the advanced options."
 	}, 
+	"labelInstalledScripts": {
+		"message": "Scripts install&eacute;s", 
+		"description": "Label of the list of installed scripts."
+	}, 
 	"labelShowDetails": {
 		"message": "Montrer les d&eacute;tails", 
 		"description": "An option to show the details of scripts, such as author, description, etc."
 	}, 
-	"anchorSupportPage": {
-		"message": "<a href=https://github.com/gera2ld/Violentmonkey/wiki>Violentmonkey</a>", 
-		"description": "Link to the support page of Violentmonkey."
-	}, 
-	"anchorAuthor": {
-		"message": "Programm&eacute; par <a href=mailto:[email protected]>Gerald</a>  et traduit par 10ours", 
-		"description": "Author shown in the footer of options page, translator information may be added."
-	}, 
 	"labelScriptEditor": {
 		"message": "Editeur de script", 
 		"description": "Shown in the title of the script editing page."
@@ -195,10 +207,6 @@
 		"message": "Exporter les donn&eacute;es", 
 		"description": "Label shown in the title of export dialog."
 	}, 
-	"labelInstalledScripts": {
-		"message": "Scripts install&eacute;s", 
-		"description": "Label of the list of installed scripts."
-	}, 
 	"anchorExportOptions": {
 		"message": "Options", 
 		"description": "Options of export."
@@ -251,10 +259,6 @@
 		"message": "<a title=\"Recharger les ressources en cache.\">(?)</a>", 
 		"description": "Hint for vacuuming data."
 	}, 
-	"buttonClose": {
-		"message": "Fermer", 
-		"description": "Button to close the confirm window."
-	}, 
 	"anchorUpdate": {
 		"message": "V&eacute;rifier les mises &agrave; jour", 
 		"description": "Check a script for updates."
@@ -267,6 +271,10 @@
 		"message": "Supprimer", 
 		"description": "Button to remove a script."
 	}, 
+	"labelNoName": {
+		"message": "Null name", 
+		"description": "Text as the name of a script when no @name is assigned."
+	}, 
 	"labelAuthor": {
 		"message": "Auteur : ", 
 		"description": "Label of author shown in the details of a script."
@@ -283,10 +291,6 @@
 		"message": "Les modifications ne sont pas enregistr&eacute;es !\n OK pour continuer ou annuler pour revenir.", 
 		"description": "Confirm message shown when there are unsaved script modifications."
 	}, 
-	"defaultSearch": {
-		"message": "http://www.google.com/search?q=*", 
-		"description": "URL for searching scripts, * stands for the keywords."
-	}, 
 	"msgImported": {
 		"message": "$1 item(s) are imported.", 
 		"description": "Message shown after import. There is an argument referring to the count of scripts imported."
@@ -299,7 +303,7 @@
 		"message": "Exporter", 
 		"description": "Button to confirm export."
 	}, 
-	"labelExporting": {
+	"buttonExporting": {
 		"message": "Exporting data...", 
 		"description": "Message shown when data export is in progress."
 	}, 
@@ -307,10 +311,6 @@
 		"message": "Donn&eacute;es trait&eacute;es", 
 		"description": "Message shown when data is vacuumed."
 	}, 
-	"labelNoName": {
-		"message": "Null name", 
-		"description": "Text as the name of a script when no @name is assigned."
-	}, 
 	"menuManageScripts": {
 		"message": "G&eacute;rer les scripts", 
 		"description": "Menu item to manage scripts, or to open the options page of the extension."
@@ -331,4 +331,4 @@
 		"message": "Commandes de script...", 
 		"description": "Menu item to list script commands."
 	}
-}
+}

+ 26 - 26
_locales/pl/messages.json

@@ -11,6 +11,10 @@
 		"message": "MISI90 <[email protected]>", 
 		"description": "Information of the translator."
 	}, 
+	"defaultSearch": {
+		"message": "http://www.google.com/search?q=*", 
+		"description": "URL for searching scripts, * stands for the keywords."
+	}, 
 	"msgUpdated": {
 		"message": "Skrypt zaktualizowany.", 
 		"description": "Message shown when a script is updated/reinstalled."
@@ -55,6 +59,18 @@
 		"message": "Confirm installation", 
 		"description": "Button to confirm installation of a script."
 	}, 
+	"buttonClose": {
+		"message": "Zamknij", 
+		"description": "Button to close window."
+	}, 
+	"anchorSupportPage": {
+		"message": "<a href=https://github.com/gera2ld/Violentmonkey/wiki>Violentmonkey</a>", 
+		"description": "Link to the support page of Violentmonkey."
+	}, 
+	"anchorAuthor": {
+		"message": "Stworzone przez <a href=mailto:[email protected]>Gerald</a>", 
+		"description": "Author shown in the footer of options page, translator information may be added."
+	}, 
 	"msgNotJS": {
 		"message": "URL seems not to be Javascript. It will be loaded directly in 3 seconds.", 
 		"description": "Message shown in the confirm page when loading a URL ends with .user.js but seems not to be Javascript. It will then be loaded again directly in 3 seconds."
@@ -91,18 +107,14 @@
 		"message": "Zaawansowane", 
 		"description": "Button to show the advanced options."
 	}, 
+	"labelInstalledScripts": {
+		"message": "Zainstalowane skrypty", 
+		"description": "Label of the list of installed scripts."
+	}, 
 	"labelShowDetails": {
 		"message": "Pokaż szczegóły", 
 		"description": "An option to show the details of scripts, such as author, description, etc."
 	}, 
-	"anchorSupportPage": {
-		"message": "<a href=https://github.com/gera2ld/Violentmonkey/wiki>Violentmonkey</a>", 
-		"description": "Link to the support page of Violentmonkey."
-	}, 
-	"anchorAuthor": {
-		"message": "Stworzone przez <a href=mailto:[email protected]>Gerald</a>", 
-		"description": "Author shown in the footer of options page, translator information may be added."
-	}, 
 	"labelScriptEditor": {
 		"message": "Edytor skryptów", 
 		"description": "Shown in the title of the script editing page."
@@ -195,10 +207,6 @@
 		"message": "Eksport danych", 
 		"description": "Label shown in the title of export dialog."
 	}, 
-	"labelInstalledScripts": {
-		"message": "Zainstalowane skrypty", 
-		"description": "Label of the list of installed scripts."
-	}, 
 	"anchorExportOptions": {
 		"message": "Opcje", 
 		"description": "Options of export."
@@ -251,10 +259,6 @@
 		"message": "<a title=\"Usuń nadmiarowość i spróbuj przeładować brakujące dane w cache.\">(?)</a>", 
 		"description": "Hint for vacuuming data."
 	}, 
-	"buttonClose": {
-		"message": "Zamknij", 
-		"description": "Button to close the confirm window."
-	}, 
 	"anchorUpdate": {
 		"message": "Sprawdź aktualizacje", 
 		"description": "Check a script for updates."
@@ -267,6 +271,10 @@
 		"message": "Usuń", 
 		"description": "Button to remove a script."
 	}, 
+	"labelNoName": {
+		"message": "Pusta nazwa", 
+		"description": "Text as the name of a script when no @name is assigned."
+	}, 
 	"labelAuthor": {
 		"message": "Autor: ", 
 		"description": "Label of author shown in the details of a script."
@@ -283,10 +291,6 @@
 		"message": "Modyfikacje nie zostały zapisane! Kliknij OK aby wyjść lub Anuluj aby zostać.", 
 		"description": "Confirm message shown when there are unsaved script modifications."
 	}, 
-	"defaultSearch": {
-		"message": "http://www.google.com/search?q=*", 
-		"description": "URL for searching scripts, * stands for the keywords."
-	}, 
 	"msgImported": {
 		"message": "$1 pozycja(e) zaimportowana(e).", 
 		"description": "Message shown after import. There is an argument referring to the count of scripts imported."
@@ -299,7 +303,7 @@
 		"message": "Eksportuj", 
 		"description": "Button to confirm export."
 	}, 
-	"labelExporting": {
+	"buttonExporting": {
 		"message": "Exporting data...", 
 		"description": "Message shown when data export is in progress."
 	}, 
@@ -307,10 +311,6 @@
 		"message": "Dane wyczyszczone", 
 		"description": "Message shown when data is vacuumed."
 	}, 
-	"labelNoName": {
-		"message": "Pusta nazwa", 
-		"description": "Text as the name of a script when no @name is assigned."
-	}, 
 	"menuManageScripts": {
 		"message": "Zarządzaj skryptami", 
 		"description": "Menu item to manage scripts, or to open the options page of the extension."
@@ -331,4 +331,4 @@
 		"message": "Komendy skryptu...", 
 		"description": "Menu item to list script commands."
 	}
-}
+}

+ 26 - 26
_locales/ru/messages.json

@@ -11,6 +11,10 @@
 		"message": "softovikk", 
 		"description": "Information of the translator."
 	}, 
+	"defaultSearch": {
+		"message": "http://www.google.com/search?q=*", 
+		"description": "URL for searching scripts, * stands for the keywords."
+	}, 
 	"msgUpdated": {
 		"message": "Скрипт обновлен.", 
 		"description": "Message shown when a script is updated/reinstalled."
@@ -55,6 +59,18 @@
 		"message": "Confirm installation", 
 		"description": "Button to confirm installation of a script."
 	}, 
+	"buttonClose": {
+		"message": "Закрыть", 
+		"description": "Button to close window."
+	}, 
+	"anchorSupportPage": {
+		"message": "<a href=https://github.com/gera2ld/Violentmonkey/wiki>Violentmonkey</a>", 
+		"description": "Link to the support page of Violentmonkey."
+	}, 
+	"anchorAuthor": {
+		"message": "Разработано <a href=mailto:[email protected]>Gerald</a>", 
+		"description": "Author shown in the footer of options page, translator information may be added."
+	}, 
 	"msgNotJS": {
 		"message": "URL seems not to be Javascript. It will be loaded directly in 3 seconds.", 
 		"description": "Message shown in the confirm page when loading a URL ends with .user.js but seems not to be Javascript. It will then be loaded again directly in 3 seconds."
@@ -91,18 +107,14 @@
 		"message": "Дополнительные опции", 
 		"description": "Button to show the advanced options."
 	}, 
+	"labelInstalledScripts": {
+		"message": "Установленные скрипты", 
+		"description": "Label of the list of installed scripts."
+	}, 
 	"labelShowDetails": {
 		"message": "Показать детали", 
 		"description": "An option to show the details of scripts, such as author, description, etc."
 	}, 
-	"anchorSupportPage": {
-		"message": "<a href=https://github.com/gera2ld/Violentmonkey/wiki>Violentmonkey</a>", 
-		"description": "Link to the support page of Violentmonkey."
-	}, 
-	"anchorAuthor": {
-		"message": "Разработано <a href=mailto:[email protected]>Gerald</a>", 
-		"description": "Author shown in the footer of options page, translator information may be added."
-	}, 
 	"labelScriptEditor": {
 		"message": "Редактор скриптов", 
 		"description": "Shown in the title of the script editing page."
@@ -195,10 +207,6 @@
 		"message": "Экспорт данных", 
 		"description": "Label shown in the title of export dialog."
 	}, 
-	"labelInstalledScripts": {
-		"message": "Установленные скрипты", 
-		"description": "Label of the list of installed scripts."
-	}, 
 	"anchorExportOptions": {
 		"message": "Параметры экспорта", 
 		"description": "Options of export."
@@ -251,10 +259,6 @@
 		"message": "<a title=\"Сбросить избыточность и попробовать перезагрузить недостающие ресурсы в кэше\">(?)</a>", 
 		"description": "Hint for vacuuming data."
 	}, 
-	"buttonClose": {
-		"message": "Закрыть", 
-		"description": "Button to close the confirm window."
-	}, 
 	"anchorUpdate": {
 		"message": "Проверить обновления", 
 		"description": "Check a script for updates."
@@ -267,6 +271,10 @@
 		"message": "Удалить", 
 		"description": "Button to remove a script."
 	}, 
+	"labelNoName": {
+		"message": "Null name", 
+		"description": "Text as the name of a script when no @name is assigned."
+	}, 
 	"labelAuthor": {
 		"message": "Автор: ", 
 		"description": "Label of author shown in the details of a script."
@@ -283,10 +291,6 @@
 		"message": "Изменения не сохранены!\nНажмите OK, чтобы продолжить или Отменить, чтобы вернуться.", 
 		"description": "Confirm message shown when there are unsaved script modifications."
 	}, 
-	"defaultSearch": {
-		"message": "http://www.google.com/search?q=*", 
-		"description": "URL for searching scripts, * stands for the keywords."
-	}, 
 	"msgImported": {
 		"message": "$1 пункт(ов) импортировано.", 
 		"description": "Message shown after import. There is an argument referring to the count of scripts imported."
@@ -299,7 +303,7 @@
 		"message": "Экспорт", 
 		"description": "Button to confirm export."
 	}, 
-	"labelExporting": {
+	"buttonExporting": {
 		"message": "Exporting data...", 
 		"description": "Message shown when data export is in progress."
 	}, 
@@ -307,10 +311,6 @@
 		"message": "Сбросить кэш", 
 		"description": "Message shown when data is vacuumed."
 	}, 
-	"labelNoName": {
-		"message": "Null name", 
-		"description": "Text as the name of a script when no @name is assigned."
-	}, 
 	"menuManageScripts": {
 		"message": "Управление скриптами", 
 		"description": "Menu item to manage scripts, or to open the options page of the extension."
@@ -331,4 +331,4 @@
 		"message": "Команды сценария...", 
 		"description": "Menu item to list script commands."
 	}
-}
+}

+ 26 - 26
_locales/zh/messages.json

@@ -11,6 +11,10 @@
 		"message": "Gerald <[email protected]>", 
 		"description": "Information of the translator."
 	}, 
+	"defaultSearch": {
+		"message": "http://www.baidu.com/s?wd=*", 
+		"description": "URL for searching scripts, * stands for the keywords."
+	}, 
 	"msgUpdated": {
 		"message": "脚本已更新。", 
 		"description": "Message shown when a script is updated/reinstalled."
@@ -55,6 +59,18 @@
 		"message": "确认安装", 
 		"description": "Button to confirm installation of a script."
 	}, 
+	"buttonClose": {
+		"message": "关闭", 
+		"description": "Button to close window."
+	}, 
+	"anchorSupportPage": {
+		"message": "<a href=https://github.com/gera2ld/Violentmonkey/wiki>暴力猴</a>", 
+		"description": "Link to the support page of Violentmonkey."
+	}, 
+	"anchorAuthor": {
+		"message": "<a href=mailto:[email protected]>Gerald</a> 制作", 
+		"description": "Author shown in the footer of options page, translator information may be added."
+	}, 
 	"msgNotJS": {
 		"message": "链接似乎不是Javascript,将在3秒后直接打开。", 
 		"description": "Message shown in the confirm page when loading a URL ends with .user.js but seems not to be Javascript. It will then be loaded again directly in 3 seconds."
@@ -91,18 +107,14 @@
 		"message": "高级选项", 
 		"description": "Button to show the advanced options."
 	}, 
+	"labelInstalledScripts": {
+		"message": "已安装的脚本", 
+		"description": "Label of the list of installed scripts."
+	}, 
 	"labelShowDetails": {
 		"message": "显示详情", 
 		"description": "An option to show the details of scripts, such as author, description, etc."
 	}, 
-	"anchorSupportPage": {
-		"message": "<a href=https://github.com/gera2ld/Violentmonkey/wiki>暴力猴</a>", 
-		"description": "Link to the support page of Violentmonkey."
-	}, 
-	"anchorAuthor": {
-		"message": "<a href=mailto:[email protected]>Gerald</a> 制作", 
-		"description": "Author shown in the footer of options page, translator information may be added."
-	}, 
 	"labelScriptEditor": {
 		"message": "脚本编辑器", 
 		"description": "Shown in the title of the script editing page."
@@ -195,10 +207,6 @@
 		"message": "数据导出", 
 		"description": "Label shown in the title of export dialog."
 	}, 
-	"labelInstalledScripts": {
-		"message": "已安装的脚本", 
-		"description": "Label of the list of installed scripts."
-	}, 
 	"anchorExportOptions": {
 		"message": "选项", 
 		"description": "Options of export."
@@ -251,10 +259,6 @@
 		"message": "<a title='丢弃多余的数据,并尝试重新获取缺失的资源。'>(?)</a>", 
 		"description": "Hint for vacuuming data."
 	}, 
-	"buttonClose": {
-		"message": "关闭", 
-		"description": "Button to close the confirm window."
-	}, 
 	"anchorUpdate": {
 		"message": "查找更新", 
 		"description": "Check a script for updates."
@@ -267,6 +271,10 @@
 		"message": "移除", 
 		"description": "Button to remove a script."
 	}, 
+	"labelNoName": {
+		"message": "名字为空", 
+		"description": "Text as the name of a script when no @name is assigned."
+	}, 
 	"labelAuthor": {
 		"message": "作者:", 
 		"description": "Label of author shown in the details of a script."
@@ -283,10 +291,6 @@
 		"message": "修改尚未保存!\n点击确定放弃修改或点击取消停留此页面。", 
 		"description": "Confirm message shown when there are unsaved script modifications."
 	}, 
-	"defaultSearch": {
-		"message": "http://www.baidu.com/s?wd=*", 
-		"description": "URL for searching scripts, * stands for the keywords."
-	}, 
 	"msgImported": {
 		"message": "已导入$1个脚本。", 
 		"description": "Message shown after import. There is an argument referring to the count of scripts imported."
@@ -299,7 +303,7 @@
 		"message": "导出", 
 		"description": "Button to confirm export."
 	}, 
-	"labelExporting": {
+	"buttonExporting": {
 		"message": "正在导出...", 
 		"description": "Message shown when data export is in progress."
 	}, 
@@ -307,10 +311,6 @@
 		"message": "数据已整理", 
 		"description": "Message shown when data is vacuumed."
 	}, 
-	"labelNoName": {
-		"message": "名字为空", 
-		"description": "Text as the name of a script when no @name is assigned."
-	}, 
 	"menuManageScripts": {
 		"message": "管理脚本", 
 		"description": "Menu item to manage scripts, or to open the options page of the extension."
@@ -331,4 +331,4 @@
 		"message": "脚本命令...", 
 		"description": "Menu item to list script commands."
 	}
-}
+}

+ 1 - 5
common.js

@@ -11,14 +11,10 @@ function initCSS(){
 	s.innerHTML=_('css');
 	document.head.appendChild(s);
 }
-function _(){
-	var t=chrome.i18n.getMessage.apply(this,arguments);
-	if(!t) t=arguments[0];
-	return t;
-}
 function initI18n(){
 	window.addEventListener('DOMContentLoaded',function(){
 		var nodes=document.querySelectorAll('.i18n'),i,t;
 		for(i=0;i<nodes.length;i++) nodes[i].innerHTML=_(nodes[i].innerHTML);
 	},true);
 }
+var _=chrome.i18n.getMessage;

+ 1 - 1
options.js

@@ -280,7 +280,7 @@ function exported(o){
 }
 xE.onclick=function(e){
 	e.preventDefault();
-	this.disabled=true;this.innerHTML=_('labelExporting');
+	this.disabled=true;this.innerHTML=_('buttonExporting');
 	var i,c=[];
 	for(i=0;i<ids.length;i++)
 		if(xL.childNodes[i].classList.contains('selected')) c.push(ids[i]);