From 44c4130ab3bf3ccb8257be5fef46d8e307c06c9f Mon Sep 17 00:00:00 2001 From: skwyarspro15 Date: Sun, 21 Jan 2024 13:57:23 +0800 Subject: [PATCH] Added FIlipino translation --- assets/strings.js | 83 ++++++++++++++++++++++++++++++++++++++++ core.js | 9 ++++- pkgs/apps/DevEnv.js | 16 +++++++- pkgs/apps/Settings.js | 62 ++++++++++++++++++------------ pkgs/apps/TaskManager.js | 14 ++++++- pkgs/apps/Welcome.js | 20 ++++++++++ 6 files changed, 175 insertions(+), 29 deletions(-) diff --git a/assets/strings.js b/assets/strings.js index ea3a764..144ef7b 100644 --- a/assets/strings.js +++ b/assets/strings.js @@ -63,6 +63,7 @@ export default { lang_de_DE: "German (Germany)", lang_es_ES: "Spanish (Spain)", lang_pt_BR: "Portuguese (Brazil)", + lang_fil_PH: "Filipino (Philippines)", thankYou: "Thanks for using Pluto!", systemApp_TaskManager: "Task Manager", systemApp_FileManager: "File Manager", @@ -161,6 +162,7 @@ export default { lang_de_DE: "Deutsches (Deutschland)", lang_es_ES: "Spanisch (Spanien)", lang_pt_BR: "Portugiesisch (Brasilien)", + lang_fil_PH: "Filipino (Pilipinas)", thankYou: "Danke, dass du Pluto benutzt hast!", systemApp_TaskManager: "Systemmonitor", systemApp_FileManager: "Dateibrowser", @@ -232,6 +234,7 @@ export default { lang_de_DE: "Alemán (Alemania)", lang_es_ES: "Español (España)", lang_pt_BR: "Portugués (Brasil)", + lang_fil_PH: "Filipino (Pilipinas)", thankYou: "¡Gracias por usar Pluto!", systemApp_TaskManager: "Monitor del sistema", systemApp_FileManager: "Explorador de archivos", @@ -300,6 +303,7 @@ export default { lang_de_DE: "Alemanha (Alemã)", lang_es_ES: "Espanhol (Espanha)", lang_pt_BR: "Português (Brasil)", + lang_fil_PH: "Filipino (Pilipinas)", thankYou: "Obrigado por usar Pluto!", systemApp_TaskManager: "Monitor do sistema", systemApp_FileManager: "Navegador de arquivos", @@ -312,4 +316,83 @@ export default { systemApp_Weather: "Meteorológico", systemApp_Terminal: "terminal", }, + fil_PH: { + plutoName: "Pluto", + plutoVersionName: "Elysium", + ok: "OK", + cancel: "I-cancel", + yes: "Oo", + no: "Hindi", + allow: "Payagan", + deny: "Tanggihan", + back: "Balik", + next: "Sunod", + confirm: "Kumpirmahin", + finish: "Tapos", + close: "Isara", + notice: "Pansinin", + launchApp: "Buksan ang App", + system: "System", + account: "Account", + appearance: "Hitsura", + network: "Network", + applications: "Aplikasyon", + security: "Seguridad", + theme: "Theme", + favorite: "Paborito", + unfavorite: "Di paborito", + user: "User", + localAccount: "Local na Account", + zeonAccount: "Zeon na Account", + file: "File", + fileFolder: "File folder", + language: "Wika", + install: "I-install", + uninstall: "I-uninstall", + open: "Buksan", + error: "Error", + refresh: "Refresh", + action_newDocument: "Bagong Document", + action_openDocument: "Buksan ang Document", + action_save: "Isulat", + action_saveAs: "Isulat bilang", + appDocumentation: "Tignan ang dokumentasyon", + appDocumentationPopup: "Dokumentasyon", + appHelp: "Tulong ng Aplikasyon", + appHelp_intro: + "Gusto mo bang matuto kung paano gamitin ang aplikasyon na ito?", + core_appAccessControl_title: "App Privilege Request", + core_appAccessControl_description: + 'Ang aplikasyong "{appName}" ay gustong bumukas na mga pribilehiyo na ito:', + core_appAccessControl_privilege_startPkg: "Bumukas ng ibang aplikasyon", + core_appAccessControl_privilege_processList: + "Tumingin at i-control ang ibang processes", + core_appAccessControl_privilege_knownPackageList: + "Alamin ang mga naka-install na packages", + core_appAccessControl_privilege_services: "Mag-interact sa system services", + core_appAccessControl_privilege_setLanguage: "Baguhin ang wika", + core_appAccessControl_privilege_full: "Access sa kabuuan ng system", + core_appAccessControl_authorNote: "Note ng author: {note}", + core_appAccessControl_noAuthorNote: "Walang note ng author", + core_appLaunch_notification: + "{suspectedApp} ay may gustong i-bukas ang {targetApp}.\nPapayagan mo ba?", + lockScreen_tapAnywhere: "Mag-tap kahit saan para i-unlock", + lang_en_US: "Ingles (US)", + lang_en_GB: "Ingles (UK)", + lang_de_DE: "German (Germany)", + lang_es_ES: "Español (Spain)", + lang_pt_BR: "Portuguese (Brazil)", + lang_fil_PH: "Filipino (Pilipinas)", + thankYou: "Salamat sa pag-gamit ng Pluto!", + systemApp_TaskManager: "Task Manager", + systemApp_FileManager: "File Manager", + systemApp_AppStore: "App Store", + systemApp_Settings: "Mga Settings", + systemApp_Notepad: "Notepad", + systemApp_DevEnv: "DevEnv", + systemApp_ImageViewer: "Image Viewer", + systemApp_Browser: "Browser", + systemApp_Weather: "Weather", + systemApp_Terminal: "Terminal", + }, }; diff --git a/core.js b/core.js index 6632cd1..3f60322 100644 --- a/core.js +++ b/core.js @@ -534,7 +534,14 @@ }); } - const supportedLangs = ["en_US", "en_GB", "de_DE", "es_ES", "pt_BR"]; + const supportedLangs = [ + "en_US", + "en_GB", + "de_DE", + "es_ES", + "pt_BR", + "fil_PH", + ]; let language = "en_US"; diff --git a/pkgs/apps/DevEnv.js b/pkgs/apps/DevEnv.js index 2998513..c8cbb34 100644 --- a/pkgs/apps/DevEnv.js +++ b/pkgs/apps/DevEnv.js @@ -72,6 +72,19 @@ export default { appHelp_string3: "Você gostaria de aprender sobre os atalhos do teclado?", appHelp_string4: "Aqui estão os atalhos do teclado:", }, + fil_PH: { + action_zoomOut: "Liitan", + action_zoomIn: "Lakihan", + action_format: "Pagandahin", + action_runApp: "Buksan ang App", + appHelp_string1: + "Maligayang pagdating sa DevEnv. Ito ay isang developer environment para gumawa ng aplikasyon sa Pluto.", + appHelp_string2: + "Pwede mong gamitin ang mga buttons sa sidebar para mag-perform ng iba't ibang mga aksyon sa aplikasyon.\nMayroon itong iba't ibang keyboard shortcuts.", + appHelp_string3: + "Gusto mo bang matuto ng mga iba't ibang keyboard shortcuts?", + appHelp_string4: "Ito ay mga keyboard shortcuts:", + }, }, ver: 1, // Compatible with core v1 type: "process", @@ -253,7 +266,8 @@ export default { height: 360, }); - Root.Lib.html.from(docsWindow.window.querySelector(".win-content")) + Root.Lib.html + .from(docsWindow.window.querySelector(".win-content")) .classOn("iframe") .style({ padding: "0px" }); }, diff --git a/pkgs/apps/Settings.js b/pkgs/apps/Settings.js index 34a6bfb..947d2ec 100644 --- a/pkgs/apps/Settings.js +++ b/pkgs/apps/Settings.js @@ -76,6 +76,19 @@ export default { coreVersion: "Versão da core", supportedVersions: "Versãos suportado", }, + fil_PH: { + thisSystem: "Itong system", + yourDevice: "Iyong device", + operatingSystem: "Ang operating system", + webBrowser: "Ang web browser", + deviceType: "Uri ng device", + webProtocol: "Ang web protocol", + webHost: "Ang web host", + plutoInfo: "Tungkol sa Pluto", + storageUsed: "Storage na ginamit", + coreVersion: "Bersyon ng core", + supportedVersions: "Supported na mga bersyon", + }, }, exec: async function (Root) { let wrapper; // Lib.html | undefined @@ -93,10 +106,7 @@ export default { Root.Core.processList .filter((x) => x !== null) .find( - (x) => - x.name && - x.name === "apps:Settings" && - x.proc !== null + (x) => x.name && x.name === "apps:Settings" && x.proc !== null ) !== undefined) ) { Root.Lib.onEnd(); @@ -388,7 +398,7 @@ export default { for (let i = 0; i < allKeys.length; i++) { let value = await localforage.getItem(allKeys[i]); - if (typeof value === 'string') { + if (typeof value === "string") { totalStorage += value.length; } else if (value instanceof Blob) { totalStorage += value.size; @@ -637,23 +647,25 @@ export default { .filter((r) => r.type === "file" && r.item.endsWith(".theme")) .map((r) => r.item); - await Promise.all(themeFileList.map(async (itm) => { - const theme = await vfs.readFile( - `Root/Pluto/config/themes/${itm}` - ); - const result = themeLib.validateTheme(theme); - if (result.success === true) { - themes.push( - new Html("option").text(result.data.name).attr({ - value: themes.length, - selected: desktopConfig.theme === itm ? true : null, - }) + await Promise.all( + themeFileList.map(async (itm) => { + const theme = await vfs.readFile( + `Root/Pluto/config/themes/${itm}` ); - themeData.push(Object.assign({ fileName: itm }, result.data)); - } else { - alert("failed parsing theme data due to " + result.message); - } - })); + const result = themeLib.validateTheme(theme); + if (result.success === true) { + themes.push( + new Html("option").text(result.data.name).attr({ + value: themes.length, + selected: desktopConfig.theme === itm ? true : null, + }) + ); + themeData.push(Object.assign({ fileName: itm }, result.data)); + } else { + alert("failed parsing theme data due to " + result.message); + } + }) + ); } new Html("select") @@ -1036,15 +1048,15 @@ export default { setupSettingsApp(); - settingsWin.setTitle(Root.Lib.getString('systemApp_Settings')); - this.name = Root.Lib.getString('systemApp_Settings'); + settingsWin.setTitle(Root.Lib.getString("systemApp_Settings")); + this.name = Root.Lib.getString("systemApp_Settings"); return Root.Lib.setupReturns(async (m) => { if (m && m.type) { if (m.type === "refresh") { Root.Lib.getString = m.data; - settingsWin.setTitle(Root.Lib.getString('systemApp_Settings')); - Root.Lib.updateProcTitle(Root.Lib.getString('systemApp_Settings')); + settingsWin.setTitle(Root.Lib.getString("systemApp_Settings")); + Root.Lib.updateProcTitle(Root.Lib.getString("systemApp_Settings")); setupSettingsApp(); } if (m.type === "goPage") { diff --git a/pkgs/apps/TaskManager.js b/pkgs/apps/TaskManager.js index 6c6d524..c300b2a 100644 --- a/pkgs/apps/TaskManager.js +++ b/pkgs/apps/TaskManager.js @@ -53,6 +53,14 @@ export default { input_appId: "ID do aplicativo (apps:...)", endProcess: "Finalizar tarefa", }, + fil_PH: { + table_type: "Uri", + table_appId: "App ID", + table_details: "Detalye", + table_pid: "PID", + input_appId: "App ID (apps:...)", + endProcess: "I-tigil ang Task", + }, }, exec: async function (Root) { let wrapper; // Lib.html | undefined @@ -205,8 +213,10 @@ export default { if (m && m.type) { if (m.type === "refresh") { Root.Lib.getString = m.data; - TaskManagerWindow.setTitle(Root.Lib.getString('systemApp_TaskManager')); - Root.Lib.updateProcTitle(Root.Lib.getString('systemApp_TaskManager')); + TaskManagerWindow.setTitle( + Root.Lib.getString("systemApp_TaskManager") + ); + Root.Lib.updateProcTitle(Root.Lib.getString("systemApp_TaskManager")); } } }); diff --git a/pkgs/apps/Welcome.js b/pkgs/apps/Welcome.js index a91db4f..0635ce9 100644 --- a/pkgs/apps/Welcome.js +++ b/pkgs/apps/Welcome.js @@ -22,6 +22,7 @@ export default { welcome_page2_language_de_DE: "German (Germany)", welcome_page2_language_es_ES: "Spanish (Spain)", welcome_page2_language_pt_BR: "Portuguese (Brazil)", + welcome_page2_language_fil_PH: "Filipino (Pilipinas)", welcome_page3_header: "Personalize", welcome_page3_body: "Select your favorite theme.", welcome_page4_header: "You have now set up your system!", @@ -79,6 +80,25 @@ export default { welcome_page4_body: 'Pressione "Completa" para sair do aplicativo "Ben-vindo".', }, + fil_PH: { + welcome_window_title: "Kamusta!", + welcome_page1_header: "Maligayang pagdating sa Pluto", + welcome_page1_body: + "Kamusta! Maligayang pagdating sa Pluto, ang bagong 'desktop environment' para sa web.\n\nI-click ang 'Sunod' para sa setup.", + welcome_page2_header: "Baguhin ang wika", + welcome_page2_body: "Ang wikang pinili ay Filipino (Pilipinas).", + welcome_page2_language_en_US: "Ingles (US)", + welcome_page2_language_en_GB: "Ingles (UK)", + welcome_page2_language_de_DE: "German (Germany)", + welcome_page2_language_es_ES: "Español (Spain)", + welcome_page2_language_pt_BR: "Portuguese (Brazil)", + welcome_page2_language_fil_PH: "Filipino (Pilipinas)", + welcome_page3_header: "Baguhin ang hitsura ng Pluto", + welcome_page3_body: "Piliin ang iyong paboritong theme.", + welcome_page4_header: "Dito nagtatapos ang setup!", + welcome_page4_body: + "I-click ang 'Tapos' para i-quit ang setup at mag-save ng settings.", + }, }, exec: async function (Root) { let wrapper; // Lib.html | undefined