فهرست منبع

Added localization and more darktheme

Toby Chui 1 سال پیش
والد
کامیت
fdc56a9ba4

تفاوت فایلی نمایش داده نمی شود زیرا این فایل بسیار بزرگ است
+ 0 - 14
web/SystemAO/file_system/defaultOpener.html


+ 6 - 3
web/SystemAO/file_system/file_explorer.html

@@ -469,7 +469,7 @@
                 <i class="trash icon"></i> <span locale="contextmenu/delete">Delete</span>
             </div>
             <div class="item folderonly singleObjectOnlyHide" onclick="createDesktopShortcut();">
-                <i class="external square icon"></i> <span locale="opr/shorcut/title">Create Shortcut on Desktop</span>
+                <i class="external square icon"></i> <span locale="opr/shortcut/title">Create Shortcut on Desktop</span>
             </div>
             <div class="divider vroothide"></div>
             <div class="item noSelectionOnly" onclick="refreshList();">
@@ -2803,9 +2803,12 @@
                     success: function(data){
                         if (data.error !== undefined){
                             console.log("[File Manager] Shortcut creation failed: ", data.error)
-                            msgbox("red remove",applocale.getString("opr/shorcut/error", "Shortcut creation failed. See console for more information.") , 3000);
+                            msgbox("red remove",applocale.getString("opr/shortcut/error", "Shortcut creation failed. See console for more information.") , 3000);
                         }else{
-                            msgbox("checkmark", applocale.getString("opr/shorcut/ok", "Shortcut created successfully"),  3000);
+                            msgbox("checkmark", applocale.getString("opr/shortcut/ok", "Shortcut created successfully"),  3000);
+                            if (ao_module_virtualDesktop){
+                                parent.refresh();
+                            }
                         }
                     }
                 })

+ 28 - 0
web/SystemAO/locale/authreq.json

@@ -40,6 +40,34 @@
                 "Username":"使用者名称",
                 "Password":"密码"
             }
+        },
+        "en-us": {
+            "fontFamily": "",
+            "strings": {
+                "page/title": "Admin Authentication",
+                "button/confirm": "Confirm",
+                "button/cancel": "Cancel",
+                "": ""
+            },
+            "placeholder": {
+                "Username": "Username",
+                "Password": "Password"
+            }
+        },
+        "ja-jp": {
+            "fontFamily": "\"Meiryo UI\", \"Arial Unicode MS\", \"Hiragino Kaku Gothic Pro\"",
+            "strings": {
+                "page/title": "管理者認証",
+                "button/confirm": "確認",
+                "button/cancel": "キャンセル",
+                "": ""
+            },
+            "placeholder": {
+                "Username": "ユーザー名",
+                "Password": "パスワード"
+            }
         }
+        
+        
     }
 }

+ 41 - 1
web/SystemAO/locale/defaultOpener.json

@@ -23,9 +23,17 @@
             }
         },
         "zh-hk": {
-            "fwtitle" : "",
+            "fwtitle" : "選擇預設網頁應用程式",
+            "fontFamily":"\"Microsoft JhengHei\",\"SimHei\", \"Apple LiGothic Medium\", \"STHeiti\"",
             "strings":{
+                "message/select":"請選擇用作開啟 ",
+                "message/files":" 檔案的預設網頁應用程式",
 
+                "button/showAll":"顯示全部應用程式",
+                "button/showRelevent":"顯示相關應用程式",
+                "button/cancel":"取消",
+                "button/confirm":"確認",
+                "":""
             },
             "titles":{
 
@@ -52,6 +60,38 @@
             "placeholder":{
 
             }
+        },
+        "en-us": {
+            "fwtitle": "Default Opening WebApp",
+            "fontFamily": "",
+            "strings": {
+                "message/select": "Please select the default WebApp to use for opening ",
+                "message/files": " files.",
+                "button/showAll": "Show All Applications",
+                "button/showRelevent": "Show Relevant Applications",
+                "button/cancel": "Cancel",
+                "button/confirm": "Confirm",
+                "": ""
+            },
+            "titles": {},
+            "placeholder": {}
+        },
+        "ja-jp": {
+            "fwtitle": "デフォルトのウェブアプリケーションを選択",
+            "fontFamily": "\"Yu Gothic\", Meiryo, sans-serif",
+            "strings": {
+                "message/select": "開くためのデフォルトのウェブアプリケーションを選択してください ",
+                "message/files": " ファイル。",
+                "button/showAll": "すべてのアプリケーションを表示",
+                "button/showRelevent": "関連するアプリケーションを表示",
+                "button/cancel": "キャンセル",
+                "button/confirm": "確認",
+                "": ""
+            },
+            "titles": {},
+            "placeholder": {}
         }
+        
+        
     }
 }

+ 1 - 1
web/SystemAO/locale/file_explorer.json

@@ -1283,7 +1283,7 @@
                 "opr/openwith/openInNewWindow": "ファイルを直接新しいウィンドウで開く",
                 "opr/openwith/cancel": "キャンセル",
 
-                "opr/shortcut/title": "デスクトップにショートカットを作成",
+                "opr/shortcut/title": "ショートカットを作成",
                 "opr/shortcut/ok": "ショートカットが正常に作成されました",
                 "opr/shorcut/error": "デスクトップにショートカットを作成できませんでした",
 

+ 80 - 0
web/SystemAO/locale/file_operation.json

@@ -124,6 +124,86 @@
             "placeholder":{
 
             } 
+        },
+        "en-us": {
+            "fwtitle": "File Operations",
+            "fontFamily": "",
+            "strings": {
+                "title": "File Operations",
+                "banner/title": "Calculating required time",
+                "info/from": "src:",
+                "info/to": "dest:",
+                "info/progress": "Progress:",
+                "info/calculating": "Calculating",
+                "dup/question": "There is at least one file with a duplicate name in the destination. <b>Which action should be taken for this file?</b>",
+                "dup/overwrite": "Overwrite",
+                "dup/skip": "Skip",
+                "dup/renameAndKeep": "Rename and Keep",
+                "title/moving": "Moving ",
+                "title/copying": "Copying",
+                "title/zipping": "Zipping ",
+                "title/downloading": "Downloading ",
+                "title/unzipping": "Unzipping ",
+                "title/file": " file",
+                "title/files": " files",
+                "button/pause": "Pause",
+                "button/resume": "Resume",
+                "button/cancel": "Cancel",
+                "error/Access Denied": "Access Denied",
+                "error/Source file not exists": "Source file does not exist",
+                "error/Source and destination paths are identical.": "Source and destination paths are identical",
+                "error/Storage Quota Full": "Storage Quota Full",
+                "error/Dest folder not found": "Destination folder not found",
+                "error/Undefined dest location": "Undefined destination location",
+                "error/This source file is Read Only": "This source file is Read-Only",
+                "error/File already exists": "File already exists",
+                "error/This directory is Read Only": "This directory is Read-Only",
+                "error/Operation cancelled by user": "Operation cancelled by user",
+                "": ""
+            },
+            "titles": {},
+            "placeholder": {}
+        },
+        "ja-jp": {
+            "fwtitle": "ファイル操作",
+            "fontFamily": "\"Meiryo UI\", \"Arial Unicode MS\", \"Hiragino Kaku Gothic Pro\"",
+            "strings": {
+                "title": "ファイル操作",
+                "banner/title": "ファイル操作にかかる時間を計算中",
+                "info/from": "ソース:",
+                "info/to": "宛先:",
+                "info/progress": "進捗:",
+                "info/calculating": "計算中",
+                "dup/question": "宛先には少なくとも1つの重複した名前のファイルが存在します。<b>このファイルに対してどのアクションを実行しますか?</b>",
+                "dup/overwrite": "上書き",
+                "dup/skip": "スキップ",
+                "dup/renameAndKeep": "名前を変更して保持",
+                "title/moving": "移動中 ",
+                "title/copying": "コピー中",
+                "title/zipping": "圧縮中 ",
+                "title/downloading": "ダウンロード中 ",
+                "title/unzipping": "解凍中 ",
+                "title/file": " ファイル",
+                "title/files": " ファイル",
+                "button/pause": "一時停止",
+                "button/resume": "再開",
+                "button/cancel": "キャンセル",
+                "error/Access Denied": "アクセスが拒否されました",
+                "error/Source file not exists": "ソースファイルが存在しません",
+                "error/Source and destination paths are identical.": "ソースと宛先のパスが同一です",
+                "error/Storage Quota Full": "ストレージクォータがいっぱいです",
+                "error/Dest folder not found": "宛先フォルダが見つかりません",
+                "error/Undefined dest location": "未定義の宛先ロケーション",
+                "error/This source file is Read Only": "このソースファイルは読み取り専用です",
+                "error/File already exists": "ファイルは既に存在しています",
+                "error/This directory is Read Only": "このディレクトリは読み取り専用です",
+                "error/Operation cancelled by user": "ユーザーによって操作がキャンセルされました",
+                "": ""
+            },
+            "titles": {},
+            "placeholder": {}
         }
+        
+        
     }
 }

+ 86 - 0
web/SystemAO/locale/file_properties.json

@@ -127,6 +127,92 @@
 
                 "":""
             }
+        },
+        "en-us": {
+            "fwtitle": "File Contents",
+            "fontFamily": "",
+            "strings": {
+                "title/title": "File Contents",
+                "title/desc": "Basic content and description of the file",
+        
+                "properties/key/Default WebApp": "Default Opening App",
+                "properties/key/Virtual Path": "Virtual Access Path",
+                "properties/key/Storage Path": "Disk Storage Path",
+                "properties/key/File Size": "File Size",
+                "properties/key/Folder Size": "Folder Size",
+                "properties/key/Permission": "Access Permission",
+                "properties/key/Last Modified": "Last Modified",
+                "properties/key/File Type": "File Type",
+                "properties/key/Owner": "Owner",
+                "properties/key/Total Size": "Total Size",
+                "properties/key/Virtual Directory": "Virtual Directory",
+                "properties/key/Storage Directory": "Disk Storage Directory",
+        
+                "lastmod/time/year": " year",
+                "lastmod/time/month": " month",
+                "lastmod/time/days": " days",
+                "lastmod/time/today": "Today",
+                "lastmod/time/s": "s",
+                "lastmod/time/ago": " ago",
+        
+                "button/changeDefault": "Change Default Opening App",
+                "button/versionHistory": "View File Version History",
+                "button/changeFilePermission": "Change File Access Permission",
+                "loader/loadingFileSize": "Calculating file size",
+                "selection/multi": "Multiple files selected",
+        
+                "counter/files": " files",
+                "counter/folders": " folders",
+        
+                "properties/error/Not available for network folders": "Not available for network folders",
+                "properties/error/No record": "No record",
+        
+                "": ""
+            }
+        },
+        "ja-jp": {
+            "fwtitle": "ファイル内容",
+            "fontFamily": "\"Meiryo UI\", \"Arial Unicode MS\", \"Hiragino Kaku Gothic Pro\"",
+            "strings": {
+                "title/title": "ファイル内容",
+                "title/desc": "ファイルの基本内容と説明",
+        
+                "properties/key/Default WebApp": "デフォルトの開くアプリ",
+                "properties/key/Virtual Path": "仮想アクセスパス",
+                "properties/key/Storage Path": "ディスクストレージパス",
+                "properties/key/File Size": "ファイルサイズ",
+                "properties/key/Folder Size": "フォルダサイズ",
+                "properties/key/Permission": "アクセス権限",
+                "properties/key/Last Modified": "最終変更",
+                "properties/key/File Type": "ファイルタイプ",
+                "properties/key/Owner": "所有者",
+                "properties/key/Total Size": "合計サイズ",
+                "properties/key/Virtual Directory": "仮想ディレクトリ",
+                "properties/key/Storage Directory": "ディスクストレージディレクトリ",
+        
+                "lastmod/time/year": " 年",
+                "lastmod/time/month": " 月",
+                "lastmod/time/days": " 日",
+                "lastmod/time/today": "今日",
+                "lastmod/time/s": "秒",
+                "lastmod/time/ago": "前",
+        
+                "button/changeDefault": "デフォルトの開くアプリを変更",
+                "button/versionHistory": "ファイルバージョン履歴を表示",
+                "button/changeFilePermission": "ファイルアクセス権限を変更",
+                "loader/loadingFileSize": "ファイルサイズを計算中",
+                "selection/multi": "複数のファイルが選択されました",
+        
+                "counter/files": " ファイル",
+                "counter/folders": " フォルダ",
+        
+                "properties/error/Not available for network folders": "ネットワークフォルダには適用されません",
+                "properties/error/No record": "記録なし",
+        
+                "": ""
+            }
         }
+        
+        
     }
 }

+ 74 - 0
web/SystemAO/locale/file_selector.json

@@ -109,6 +109,80 @@
                 "New Filename":"新增文件",
                 "New Folder":"新增文件夹"
             } 
+        },
+        "en-us": {
+            "fwtitle": "Choose Files",
+            "fontFamily": "",
+            "strings": {
+                "title": "Choose Files",
+                "roots/user": "User",
+                "roots/storage": "Storage",
+                "message/loading": "Loading...",
+                "message/waitingResp": "Checking selection...",
+                "message/nofile": "No files",
+        
+                "sidebar/vroot/desktop": "Desktop",
+                "sidebar/vroot/document": "Documents",
+                "sidebar/vroot/music": "Music",
+                "sidebar/vroot/photo": "Photos",
+                "sidebar/vroot/video": "Videos",
+                "sidebar/vroot/trash": "Trash",
+                "sidebar/vroot/download": "Downloads",
+                "sidebar/vroot/web": "Web",
+                "sidebar/vroot/model": "Models",
+                "sidebar/vroot/appdata": "App Data",
+        
+                "": ""
+            },
+            "titles": {
+                "Back": "Back",
+                "Parent": "Parent Directory",
+                "Refresh": "Refresh",
+                "Create Folder": "Create Folder",
+                "New Folder": "New Folder"
+            },
+            "placeholder": {
+                "New Filename": "New File",
+                "New Folder": "New Folder"
+            }
+        },
+        "ja-jp": {
+            "fwtitle": "ファイル選択",
+            "fontFamily": "\"Meiryo UI\", \"Arial Unicode MS\", \"Hiragino Kaku Gothic Pro\"",
+            "strings": {
+                "title": "ファイル選択",
+                "roots/user": "ユーザー",
+                "roots/storage": "ストレージデバイス",
+                "message/loading": "読み込み中...",
+                "message/waitingResp": "選択の確認中...",
+                "message/nofile": "ファイルがありません",
+        
+                "sidebar/vroot/desktop": "デスクトップ",
+                "sidebar/vroot/document": "ドキュメント",
+                "sidebar/vroot/music": "音楽",
+                "sidebar/vroot/photo": "写真",
+                "sidebar/vroot/video": "動画",
+                "sidebar/vroot/trash": "ゴミ箱",
+                "sidebar/vroot/download": "ダウンロード",
+                "sidebar/vroot/web": "ウェブ",
+                "sidebar/vroot/model": "モデル",
+                "sidebar/vroot/appdata": "アプリデータ",
+        
+                "": ""
+            },
+            "titles": {
+                "Back": "戻る",
+                "Parent": "親ディレクトリに移動",
+                "Refresh": "更新",
+                "Create Folder": "フォルダ作成",
+                "New Folder": "新しいフォルダ"
+            },
+            "placeholder": {
+                "New Filename": "新しいファイル名",
+                "New Folder": "新しいフォルダ"
+            }
         }
+        
+        
     }
 }

+ 74 - 0
web/SystemAO/locale/file_share.json

@@ -121,6 +121,80 @@
             "placeholder":{
 
             }
+        },
+        "en-us": {
+            "fontFamily": "",
+            "fwtitle": "File Sharing",
+            "strings": {
+                "title/title": "File Sharing",
+                "button/copy": "Copy to Clipboard",
+                "button/remove": "Remove Sharing",
+                "button/copied": "Copied!",
+        
+                "share/setting/title": "Sharing Settings",
+                "share/setting/subtitle": "Specify who can access this file",
+                "share/setting/options": "Access Settings:",
+                "share/setting/anyoneWithLink": "Anyone with the link",
+                "share/setting/anyoneWithLink/desc": "Anyone with the shared link can download this file",
+                "share/setting/anyoneSignedIn": "Anyone signed in",
+                "share/setting/anyoneSignedIn/desc": "Anyone signed in and with the shared link can download this file",
+                "share/setting/sameGroup": "Users in the same permission group",
+                "share/setting/sameGroup/desc": "Anyone with the same user permission can download this file",
+                "share/setting/updated": "Access permission updated",
+        
+                "share/setting/advance/title": "Advanced Sharing Options",
+                "share/setting/advance/users": "Specified Users",
+                "share/setting/advance/usersDesc": "Specify logged-in user account names",
+                "share/setting/advance/usersInstruct": "Select specific users from the list below",
+                "share/setting/advance/addUserToSave": "Add at least one user to save changes",
+                "share/setting/advance/groups": "Specified Permission Groups",
+                "share/setting/advance/groupsDesc": "Users with any of the specified group permissions can access",
+                "share/setting/advance/groupsInstruct": "Select specified groups for sharing from the list below",
+                "share/setting/advance/addGroupToSave": "Add at least one permission group to save changes",
+        
+                "message/removed": "Sharing has been removed",
+                "qr/loading": "Loading"
+            },
+            "titles": {},
+            "placeholder": {}
+        },
+        "ja-jp": {
+            "fontFamily": "\"Meiryo UI\", \"Arial Unicode MS\", \"Hiragino Kaku Gothic Pro\"",
+            "fwtitle": "ファイル共有",
+            "strings": {
+                "title/title": "ファイル共有",
+                "button/copy": "クリップボードにコピー",
+                "button/remove": "共有を解除",
+                "button/copied": "コピー済み!",
+        
+                "share/setting/title": "共有設定",
+                "share/setting/subtitle": "誰がこのファイルにアクセスできるかを指定",
+                "share/setting/options": "アクセス設定:",
+                "share/setting/anyoneWithLink": "リンクを持つ全員",
+                "share/setting/anyoneWithLink/desc": "リンクを持つ全員がこのファイルをダウンロードできます",
+                "share/setting/anyoneSignedIn": "サインインしている全員",
+                "share/setting/anyoneSignedIn/desc": "サインインしていてリンクを持つ全員がこのファイルをダウンロードできます",
+                "share/setting/sameGroup": "同じ権限グループのユーザー",
+                "share/setting/sameGroup/desc": "同じユーザー権限を持つユーザーがこのファイルをダウンロードできます",
+                "share/setting/updated": "アクセス権限が更新されました",
+        
+                "share/setting/advance/title": "高度な共有オプション",
+                "share/setting/advance/users": "指定ユーザー",
+                "share/setting/advance/usersDesc": "ログインしているユーザーアカウント名を指定",
+                "share/setting/advance/usersInstruct": "以下のリストから特定のユーザーを選択",
+                "share/setting/advance/addUserToSave": "変更を保存するには少なくとも1人のユーザーを追加",
+                "share/setting/advance/groups": "指定権限グループ",
+                "share/setting/advance/groupsDesc": "指定されたグループ権限を持つユーザーはすべてアクセスできます",
+                "share/setting/advance/groupsInstruct": "以下のリストから共有するための特定のグループを選択",
+                "share/setting/advance/addGroupToSave": "変更を保存するには少なくとも1つの権限グループを追加",
+        
+                "message/removed": "共有が解除されました",
+                "qr/loading": "読み込み中"
+            },
+            "titles": {},
+            "placeholder": {}
         }
+        
+        
     }
 }

+ 10 - 2
web/script/ao.css

@@ -32,11 +32,19 @@ body.darkTheme{
 }
 
 /* darktheme overwrite */
-body.darkTheme .ui.basic.button{
+body.darkTheme .ui.basic.button:not(.blue):not(.yellow):not(.teal):not(.green){
     color: var(--text_color) !important;
     border: 1px solid var(--text_color_secondary);
 }
 
+body.darkTheme .ui.basic.blue.button{
+    border: 1px solid var(--theme_color) !important;
+}
+
+body.darkTheme .ui.horizontal.label{
+    color: var(--text_color_invert) !important;
+}
+
 body.darkTheme .ui.basic.button:hover{
     background-color: var(--body_background_active) !important;
 }
@@ -49,7 +57,7 @@ body.darkTheme i:not(.ui.message *):not(.ui.label *):not(.ui.dropdown *){
 }
 
 body.darkTheme .ui.header .sub.header{
-    color: var(--text_color_secondary);
+    color: var(--text_color_secondary) !important;
 }
 
 /* floatWindow CSS */

برخی فایل ها در این مقایسه diff نمایش داده نمی شوند زیرا تعداد فایل ها بسیار زیاد است