瀏覽代碼

added loading message

Gerald 12 年之前
父節點
當前提交
aaf3e059fa
共有 7 個文件被更改,包括 63 次插入42 次删除
  1. 13 9
      _locales/cs/messages.json
  2. 12 8
      _locales/en/messages.json
  3. 12 8
      _locales/pl/messages.json
  4. 12 8
      _locales/ru/messages.json
  5. 12 8
      _locales/zh/messages.json
  6. 1 1
      options.html
  7. 1 0
      style.css

+ 13 - 9
_locales/cs/messages.json

@@ -119,6 +119,10 @@
 		"message": "Zobrazit detaily", 
 		"description": "An option to show the details of scripts, such as author, description, etc."
 	}, 
+	"msgLoading": {
+		"message": "Nahrávám ...", 
+		"description": "Message shown in the options page before script list is loaded."
+	}, 
 	"labelScriptEditor": {
 		"message": "Editor skriptů", 
 		"description": "Shown in the title of the script editing page."
@@ -271,6 +275,14 @@
 		"message": "Editovat", 
 		"description": "Button to edit a script."
 	}, 
+	"buttonDisable": {
+		"message": "Vypnout", 
+		"description": "Button to disable a script."
+	}, 
+	"buttonEnable": {
+		"message": "Zapnout", 
+		"description": "Button to enable a script."
+	}, 
 	"buttonRemove": {
 		"message": "Odstranit", 
 		"description": "Button to remove a script."
@@ -283,14 +295,6 @@
 		"message": "Autor: ", 
 		"description": "Label of author shown in the details of a script."
 	}, 
-	"buttonDisable": {
-		"message": "Vypnout", 
-		"description": "Button to disable a script."
-	}, 
-	"buttonEnable": {
-		"message": "Zapnout", 
-		"description": "Button to enable a script."
-	}, 
 	"confirmNotSaved": {
 		"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."
@@ -335,4 +339,4 @@
 		"message": "Skriptové příkazy...", 
 		"description": "Menu item to list script commands."
 	}
-}
+}

+ 12 - 8
_locales/en/messages.json

@@ -119,6 +119,10 @@
 		"message": "Show details", 
 		"description": "An option to show the details of scripts, such as author, description, etc."
 	}, 
+	"msgLoading": {
+		"message": "Loading...", 
+		"description": "Message shown in the options page before script list is loaded."
+	}, 
 	"labelScriptEditor": {
 		"message": "Script Editor", 
 		"description": "Shown in the title of the script editing page."
@@ -271,6 +275,14 @@
 		"message": "Edit", 
 		"description": "Button to edit a script."
 	}, 
+	"buttonDisable": {
+		"message": "Disable", 
+		"description": "Button to disable a script."
+	}, 
+	"buttonEnable": {
+		"message": "Enable", 
+		"description": "Button to enable a script."
+	}, 
 	"buttonRemove": {
 		"message": "Remove", 
 		"description": "Button to remove a script."
@@ -283,14 +295,6 @@
 		"message": "Author: ", 
 		"description": "Label of author shown in the details of a script."
 	}, 
-	"buttonDisable": {
-		"message": "Disable", 
-		"description": "Button to disable a script."
-	}, 
-	"buttonEnable": {
-		"message": "Enable", 
-		"description": "Button to enable a script."
-	}, 
 	"confirmNotSaved": {
 		"message": "Modifications are not saved!\nClick OK to discard them or cancel to stay.", 
 		"description": "Confirm message shown when there are unsaved script modifications."

+ 12 - 8
_locales/pl/messages.json

@@ -119,6 +119,10 @@
 		"message": "Pokaż szczegóły", 
 		"description": "An option to show the details of scripts, such as author, description, etc."
 	}, 
+	"msgLoading": {
+		"message": "Loading...", 
+		"description": "Message shown in the options page before script list is loaded."
+	}, 
 	"labelScriptEditor": {
 		"message": "Edytor skryptów", 
 		"description": "Shown in the title of the script editing page."
@@ -271,6 +275,14 @@
 		"message": "Edytuj", 
 		"description": "Button to edit a script."
 	}, 
+	"buttonDisable": {
+		"message": "Wyłącz", 
+		"description": "Button to disable a script."
+	}, 
+	"buttonEnable": {
+		"message": "Włącz", 
+		"description": "Button to enable a script."
+	}, 
 	"buttonRemove": {
 		"message": "Usuń", 
 		"description": "Button to remove a script."
@@ -283,14 +295,6 @@
 		"message": "Autor: ", 
 		"description": "Label of author shown in the details of a script."
 	}, 
-	"buttonDisable": {
-		"message": "Wyłącz", 
-		"description": "Button to disable a script."
-	}, 
-	"buttonEnable": {
-		"message": "Włącz", 
-		"description": "Button to enable a script."
-	}, 
 	"confirmNotSaved": {
 		"message": "Modyfikacje nie zostały zapisane! Kliknij OK aby wyjść lub Anuluj aby zostać.", 
 		"description": "Confirm message shown when there are unsaved script modifications."

+ 12 - 8
_locales/ru/messages.json

@@ -119,6 +119,10 @@
 		"message": "Показать детали", 
 		"description": "An option to show the details of scripts, such as author, description, etc."
 	}, 
+	"msgLoading": {
+		"message": "Loading...", 
+		"description": "Message shown in the options page before script list is loaded."
+	}, 
 	"labelScriptEditor": {
 		"message": "Редактор скриптов", 
 		"description": "Shown in the title of the script editing page."
@@ -271,6 +275,14 @@
 		"message": "Изменить", 
 		"description": "Button to edit a script."
 	}, 
+	"buttonDisable": {
+		"message": "Выключить", 
+		"description": "Button to disable a script."
+	}, 
+	"buttonEnable": {
+		"message": "Включить", 
+		"description": "Button to enable a script."
+	}, 
 	"buttonRemove": {
 		"message": "Удалить", 
 		"description": "Button to remove a script."
@@ -283,14 +295,6 @@
 		"message": "Автор: ", 
 		"description": "Label of author shown in the details of a script."
 	}, 
-	"buttonDisable": {
-		"message": "Выключить", 
-		"description": "Button to disable a script."
-	}, 
-	"buttonEnable": {
-		"message": "Включить", 
-		"description": "Button to enable a script."
-	}, 
 	"confirmNotSaved": {
 		"message": "Изменения не сохранены!\nНажмите OK, чтобы продолжить или Отменить, чтобы вернуться.", 
 		"description": "Confirm message shown when there are unsaved script modifications."

+ 12 - 8
_locales/zh/messages.json

@@ -119,6 +119,10 @@
 		"message": "显示详情", 
 		"description": "An option to show the details of scripts, such as author, description, etc."
 	}, 
+	"msgLoading": {
+		"message": "加载中...", 
+		"description": "Message shown in the options page before script list is loaded."
+	}, 
 	"labelScriptEditor": {
 		"message": "脚本编辑器", 
 		"description": "Shown in the title of the script editing page."
@@ -271,6 +275,14 @@
 		"message": "编辑", 
 		"description": "Button to edit a script."
 	}, 
+	"buttonDisable": {
+		"message": "禁用", 
+		"description": "Button to disable a script."
+	}, 
+	"buttonEnable": {
+		"message": "启用", 
+		"description": "Button to enable a script."
+	}, 
 	"buttonRemove": {
 		"message": "移除", 
 		"description": "Button to remove a script."
@@ -283,14 +295,6 @@
 		"message": "作者:", 
 		"description": "Label of author shown in the details of a script."
 	}, 
-	"buttonDisable": {
-		"message": "禁用", 
-		"description": "Button to disable a script."
-	}, 
-	"buttonEnable": {
-		"message": "启用", 
-		"description": "Button to enable a script."
-	}, 
 	"confirmNotSaved": {
 		"message": "修改尚未保存!\n点击确定放弃修改或点击取消停留此页面。", 
 		"description": "Confirm message shown when there are unsaved script modifications."

+ 1 - 1
options.html

@@ -32,7 +32,7 @@
 								<span class=i18n>labelInstalledScripts</span>
 								<label><input type=checkbox id=cDetail><span class=i18n>labelShowDetails</span></label>
 							</legend>
-							<div id=sList></div>
+							<div id=sList><span class="hint i18n">msgLoading</span></div>
 						</fieldset>
 					</div>
 				</td>

+ 1 - 0
style.css

@@ -29,6 +29,7 @@ fieldset{border-radius:5px;}
 #meta td.expand{width:auto;padding-right:10px;}
 #meta td.expand>*{width:100%;}
 #sList{overflow-x:hidden;overflow-y:auto;position:absolute;top:22px;left:0;right:0;bottom:10px;}
+#sList>.hint{position:fixed;top:40%;left:40%;right:40%;border:2px solid silver;border-radius:5px;padding:20px;z-index:9999;box-shadow:5px 10px 15px rgba(0,0,0,0.4);text-align:center;}
 #sList>div{display:block;padding:10px;border-top:1px dashed gray;overflow:hidden;height:80px;position:relative;}
 #sList>div:last-child{border-bottom:1px dashed gray;}
 #sList>div.moving{background:#bb6;border:1px outset gray;cursor:move;}