From d310d2c03b8fb35ff9ade4bcb097336de62b75fe Mon Sep 17 00:00:00 2001 From: Xuan Sang LE Date: Mon, 12 Mar 2018 18:55:40 +0100 Subject: [PATCH] Finish package setting & add FR language --- src/core/BaseDialog.coffee | 4 +- src/core/BaseModel.coffee | 11 +- src/core/api.coffee | 3 +- src/core/core.coffee | 2 +- src/core/gui.coffee | 8 +- src/core/handlers/RemoteHandler.coffee | 7 +- src/core/languages/fr_FR.json | 435 ++++++++++-------- src/core/languages/fr_FR.json.old | 219 +++++++++ src/core/languages/vi_VN.json | 37 +- src/core/languages/vi_VN.json.old | 32 ++ src/core/settings.coffee | 1 + src/core/tags/afx-list-view.tag | 3 +- src/core/tags/afx-tree-view.tag | 3 - src/packages/Setting/AppearanceHandler.coffee | 44 +- src/packages/Setting/LocaleHandler.coffee | 21 + src/packages/Setting/Makefile | 2 +- src/packages/Setting/StartupHandler.coffee | 76 +++ src/packages/Setting/VFSHandler.coffee | 99 ++++ src/packages/Setting/main.coffee | 29 +- src/packages/Setting/main.css | 25 +- src/packages/Setting/scheme.html | 7 + src/packages/Setting/schemes/appearance.html | 7 +- src/packages/Setting/schemes/locale.html | 12 + src/packages/Setting/schemes/startup.html | 15 + src/packages/Setting/schemes/vfs.html | 27 +- src/themes/antos/afx-list-view.css | 8 +- 26 files changed, 888 insertions(+), 249 deletions(-) create mode 100644 src/core/languages/fr_FR.json.old create mode 100644 src/packages/Setting/LocaleHandler.coffee create mode 100644 src/packages/Setting/StartupHandler.coffee create mode 100644 src/packages/Setting/VFSHandler.coffee create mode 100644 src/packages/Setting/schemes/locale.html create mode 100644 src/packages/Setting/schemes/startup.html diff --git a/src/core/BaseDialog.coffee b/src/core/BaseDialog.coffee index 6863833..33efd94 100644 --- a/src/core/BaseDialog.coffee +++ b/src/core/BaseDialog.coffee @@ -59,7 +59,7 @@ class BasicDialog extends BaseDialog html += "<#{v.tag} #{v.att} style = 'margin-left:5px; margin-right:5px;' data-id = 'content#{k}'>" for k,v of @conf.tags html += "
" html += "" for k,v of @conf.buttons - html += "
" + html += "
" #render the html _GUI.htmlToScheme html, @, @host @@ -283,7 +283,6 @@ class FileDiaLog extends BaseDialog location.set "items", ( i for i in @systemsetting.VFS.mountpoints when i.type isnt "app" ) location.set "selected", 0 unless location.get "selected" fileview.set "onfileselect", (f) -> - ($ filename).val f.filename if f.type is "file" (@find "bt-ok").set "onbtclick", (e) -> f = fileview.get "selectedFile" @@ -308,5 +307,6 @@ class FileDiaLog extends BaseDialog if @data and @data.file ($ filename).css("display", "block").val @data.file.basename or "Untitled" @trigger "resize" + fileview.set "showhidden", @data.hidden if @data and @data.hidden this.OS.register "FileDiaLog", FileDiaLog \ No newline at end of file diff --git a/src/core/BaseModel.coffee b/src/core/BaseModel.coffee index ca8995c..b4f9a8b 100644 --- a/src/core/BaseModel.coffee +++ b/src/core/BaseModel.coffee @@ -44,10 +44,13 @@ class BaseModel if @dialog @dialog.show() return - if not _GUI.subwindows[d] - @error __("Dialog {0} not found", d) - return - @dialog = new _GUI.subwindows[d]() + if typeof d is "string" + if not _GUI.subwindows[d] + @error __("Dialog {0} not found", d) + return + @dialog = new _GUI.subwindows[d]() + else + @dialog = d #@dialog.observable = riot.observable() unless @dialog @dialog.parent = @ @dialog.handler = f diff --git a/src/core/api.coffee b/src/core/api.coffee index 33b6673..dd421c5 100644 --- a/src/core/api.coffee +++ b/src/core/api.coffee @@ -276,7 +276,8 @@ self.OS.API = _API.handler.packages { command: "cache", args: { paths: (v for k, v of _OS.setting.system.pkgpaths) } }, f - + setting: (f) -> + _API.handler.setting f search: (text) -> r = [] diff --git a/src/core/core.coffee b/src/core/core.coffee index a0ff5a6..8ba8136 100644 --- a/src/core/core.coffee +++ b/src/core/core.coffee @@ -124,7 +124,7 @@ self.OS or= exit: -> #do clean up first f() for n, f of _OS.cleanupHandlers - _API.handler.setting () -> + _API.handler.setting (r) -> _API.handler.logout() onexit: (n, f) -> self.OS.cleanupHandlers[n] = f unless self.OS.cleanupHandlers[n] \ No newline at end of file diff --git a/src/core/gui.coffee b/src/core/gui.coffee index 4a6eb5a..37970d6 100644 --- a/src/core/gui.coffee +++ b/src/core/gui.coffee @@ -265,6 +265,7 @@ self.OS.GUI = fp = _OS.setting.desktop.path.asFileHandler() desktop[0].fetch = () -> fn = () -> + fp = _OS.setting.desktop.path.asFileHandler() fp.read (d) -> return _courrier.osfail d.error, (_API.throwe "OS.VFS"), d.error if d.error items = [] @@ -341,7 +342,8 @@ self.OS.GUI = , (e, s) -> alert __("System fail: Cannot init desktop manager") console.log s, e - + refreshDesktop: () -> + ($ "#desktop")[0].fetch() refreshSystemMenu: () -> _GUI.SYS_MENU.length = 1 _GUI.SYS_MENU[0].child.length = 0 @@ -369,7 +371,9 @@ self.OS.GUI = ($ "[data-id = 'os_menu']", "#syspanel")[0].set "items", menu #console.log menu - + + mkdialog: (conf) -> + return new _GUI.BasicDialog conf.name, conf.layout login: () -> _OS.cleanup() diff --git a/src/core/handlers/RemoteHandler.coffee b/src/core/handlers/RemoteHandler.coffee index c0d0685..12837dc 100644 --- a/src/core/handlers/RemoteHandler.coffee +++ b/src/core/handlers/RemoteHandler.coffee @@ -82,10 +82,11 @@ self.OS.API.handler = p = "#{_REST}/system/settings" _API.post p, _OS.setting, (d) -> _courrier.oserror __("Cannot save system setting"), d.error if d.error - f() if f + f(d) if f , (e, s) -> - _courrier.osfail __("Fail to make request: {0}", p), e, s - f() if f + m = __("Fail to make request: {0}", p) + _courrier.osfail m , e, s + f({ error: m }) if f dbquery: (cmd, d, c) -> path = "#{_REST}/db/#{cmd}" diff --git a/src/core/languages/fr_FR.json b/src/core/languages/fr_FR.json index 4709174..77150d9 100644 --- a/src/core/languages/fr_FR.json +++ b/src/core/languages/fr_FR.json @@ -1,219 +1,248 @@ { - "About":"About", - "About: {0}":"About: {0}", - "Add category":"Add category", - "Add repository":"Add repository", - "Address":"Address", - "Alive (ms)":"Alive (ms)", - "Application installed":"Application installed", - "Application {0} is not executable":"Application {0} is not executable", + "About":"À propos de", + "About: {0}":"À propos de: {0}", + "Add category":"Ajouter une catégorie", + "Add repository":"Ajouter un dépôt", + "Address":"Adresse", + "Alive (ms)":"Actif (ms)", + "Application installed":"Application installée", + "Application {0} is not executable":"L'application {0} n'est pas exécutable", "Application":"Application", "Applications":"Applications", - "Authentication":"Authentication", - "Cancel":"Cancel", - "Cannot Edit category":"Cannot Edit category", - "Cannot add new category":"Cannot add new category", - "Cannot create {0}":"Cannot create {0}", - "Cannot delete all content of: {0} [{1}]":"Cannot delete all content of: {0} [{1}]", - "Cannot delete the category: {0} [{1}]":"Cannot delete the category: {0} [{1}]", - "Cannot delete the section: {0}":"Cannot delete the section: {0}", - "Cannot delete: {0}":"Cannot delete: {0}", - "Cannot down load the app {0}":"Cannot down load the app {0}", - "Cannot export file for embedding to text":"Cannot export file for embedding to text", - "Cannot fetch CV categories":"Cannot fetch CV categories", - "Cannot fetch the entry content":"Cannot fetch the entry content", - "Cannot fetch user data":"Cannot fetch user data", - "Cannot install {0}":"Cannot install {0}", - "Cannot load 3rd library at: {0}":"Cannot load 3rd library at: {0}", - "Cannot move section":"Cannot move section", - "Cannot read service script: {0}":"Cannot read service script: {0}", - "Cannot render the PDF file":"Cannot render the PDF file", - "Cannot save blog: {0}":"Cannot save blog: {0}", - "Cannot save section: {0}":"Cannot save section: {0}", - "Cannot save system setting":"Cannot save system setting", - "Cannot save user data":"Cannot save user data", - "Cannot share file: {0}":"Cannot share file: {0}", - "Cannot uninstall package: {0}":"Cannot uninstall package: {0}", - "Categories":"Categories", - "Clear all":"Clear all", - "Close tab":"Close tab", - "Close without saving ?":"Close without saving ?", - "Close":"Close", - "Copy not yet implemented":"Copy not yet implemented", - "Copy":"Copy", - "Created: {0}":"Created: {0}", - "Cut":"Cut", - "Delete a post":"Delete a post", - "Delete category":"Delete category", - "Delete section":"Delete section", - "Delete":"Delete", - "Desktop":"Desktop", - "Dialog {0} not found":"Dialog {0} not found", - "Do you really want to delete this post ?":"Do you really want to delete this post ?", - "Do you really want to delete: {0}?":"Do you really want to delete: {0}?", - "Download":"Download", - "Edit category":"Edit category", - "Edit repository":"Edit repository", - "Edit":"Edit", + "Authentication":"Authentification", + "Cancel":"Annuler", + "Cannot Edit category":"Impossible d'éditer la catégorie", + "Cannot add new category":"Impossible d'ajouter une nouvelle catégorie", + "Cannot create {0}":"Impossible de créer {0}", + "Cannot delete all content of: {0} [{1}]":"Impossible de supprimer tout le contenu de: {0} [{1}]", + "Cannot delete the category: {0} [{1}]":"Impossible de supprimer la catégorie: {0} [{1}]", + "Cannot delete the section: {0}":"Impossible de supprimer la section: {0}", + "Cannot delete: {0}":"Impossible de supprimer: {0}", + "Cannot down load the app {0}":"Impossible de télécharger l'application {0}", + "Cannot export file for embedding to text":"Impossible d'exporter le fichier pour l'intégrer au texte", + "Cannot fetch CV categories":"Impossible d'extraire les catégories de CV", + "Cannot fetch the entry content":"Impossible d'extraire le contenu", + "Cannot fetch user data":"Impossible d'extraire les données utilisateur", + "Cannot install {0}":"Impossible d'installer {0}", + "Cannot load 3rd library at: {0}":"Impossible de charger la bibliothèque à: {0}", + "Cannot move section":"Impossible de déplacer la section", + "Cannot read service script: {0}":"Impossible de lire le script de service: {0}", + "Cannot render the PDF file":"Impossible de rendre le fichier PDF", + "Cannot save blog: {0}":"Impossible d'enregistrer le blog: {0}", + "Cannot save section: {0}":"Impossible d'enregistrer la section: {0}", + "Cannot save system setting":"Impossible d'enregistrer les paramètres du système", + "Cannot save user data":"Impossible d'enregistrer les données utilisateur", + "Cannot share file: {0}":"Impossible de partager le fichier: {0}", + "Cannot uninstall package: {0}":"Impossible de désinstaller le package: {0}", + "Categories":"Catégories", + "Clear all":"Tout effacer", + "Close tab":"Fermer l'onglet", + "Close without saving ?":"Fermer sans enregistrer?", + "Close":"Fermer", + "Copy not yet implemented":"Copie non encore implémentée", + "Copy":"Copier", + "Created: {0}":"Créé: {0}", + "Cut":"Couper", + "Delete a post":"Supprimer le text", + "Delete category":"Supprimer la catégorie", + "Delete section":"Supprimer la section", + "Delete":"Supprimer", + "Desktop":"Bureau", + "Dialog {0} not found":"La boîte de dialogue {0} n'a pas été trouvée", + "Do you really want to delete this post ?":"Voulez-vous vraiment supprimer ce texte ?", + "Do you really want to delete: {0}?":"Voulez-vous vraiment supprimer: {0}?", + "Download":"Télécharger", + "Edit category":"Modifier la catégorie", + "Edit repository":"Modifier le dépôt", + "Edit":"Modifier", "Email":"Email", - "Error find app by mimes {0}":"Error find app by mimes {0}", - "Error reading package meta data: {0}":"Error reading package meta data: {0}", - "Error saving file {0}":"Error saving file {0}", - "Exit":"Exit", - "Fail to create directory: {0}":"Fail to create directory: {0}", - "Fail to create {0}: {1}":"Fail to create {0}: {1}", - "Fail to delete {0}: {1}":"Fail to delete {0}: {1}", - "Fail to delete: {0}":"Fail to delete: {0}", - "Fail to fetch packages list from: {0}":"Fail to fetch packages list from: {0}", - "Fail to get file meta data: {0}":"Fail to get file meta data: {0}", - "Fail to make request: {0}":"Fail to make request: {0}", - "Fail to move file: {0} -> {1}":"Fail to move file: {0} -> {1}", - "Fail to paste: {0}":"Fail to paste: {0}", - "Fail to publish file: {0}":"Fail to publish file: {0}", - "Fail to query data from database: {0}":"Fail to query data from database: {0}", - "Fail to read file: {0}":"Fail to read file: {0}", - "Fail to rename to {0}: {1}":"Fail to rename to {0}: {1}", - "Fail to scan directory: {0}":"Fail to scan directory: {0}", - "Fail to upload file to: {0}":"Fail to upload file to: {0}", - "Fail to upload to {0}: {1}":"Fail to upload to {0}: {1}", - "Fail to write to file: {0}":"Fail to write to file: {0}", - "Fail to {0} package":"Fail to {0} package", - "File name":"File name", - "File not found {0}":"File not found {0}", - "File {0} copied":"File {0} copied", - "File {0} cut":"File {0} cut", - "File":"File", - "Folder name":"Folder name", - "Format : [name] url":"Format : [name] url", - "Found {0} sections":"Found {0} sections", - "From":"From", - "Full name must be entered":"Full name must be entered", - "Full name":"Full name", + "Error find app by mimes {0}":"Erreur lors de la recherche d'application par mimes {0}", + "Error reading package meta data: {0}":"Erreur lors de la lecture des métadonnées du package: {0}", + "Error saving file {0}":"Erreur lors de l'enregistrement du fichier {0}", + "Exit":"Quitter", + "Fail to create directory: {0}":"Impossible de créer le répertoire: {0}", + "Fail to create {0}: {1}":"Échec de la création de {0}: {1}", + "Fail to delete {0}: {1}":"Échec de la suppression de {0}: {1}", + "Fail to delete: {0}":"Échec de la suppression: {0}", + "Fail to fetch packages list from: {0}":"Impossible d'extraire la liste des paquets de: {0}", + "Fail to get file meta data: {0}":"Échec d'obtention des métadonnées de fichier: {0}", + "Fail to make request: {0}":"Echec de la demande: {0}", + "Fail to move file: {0} -> {1}":"Échec du déplacement du fichier: {0} -> {1}", + "Fail to paste: {0}":"Impossible de coller: {0}", + "Fail to publish file: {0}":"Échec de la publication du fichier: {0}", + "Fail to query data from database: {0}":"Impossible d'interroger les données de la base de données: {0}", + "Fail to read file: {0}":"Impossible de lire le fichier: {0}", + "Fail to rename to {0}: {1}":"Impossible de renommer en {0}: {1}", + "Fail to scan directory: {0}":"Échec de l'analyse du répertoire: {0}", + "Fail to upload file to: {0}":"Impossible de télécharger le fichier vers: {0}", + "Fail to upload to {0}: {1}":"Impossible de télécharger vers {0}: {1}", + "Fail to write to file: {0}":"Échec de l'écriture dans le fichier: {0}", + "Fail to {0} package":"Échec du {0} paquet", + "File name":"Nom de fichier", + "File not found {0}":"Fichier introuvable {0}", + "File {0} copied":"Fichier {0} copié", + "File {0} cut":"Fichier {0} coupé", + "File":"Fichier", + "Folder name":"Nom de dossier", + "Format : [name] url":"Format: [nom] url", + "Found {0} sections":"{0} sections trouvées", + "From":"De", + "Full name must be entered":"Le nom complet doit être entré", + "Full name":"Nom complet", "Google Drive":"Google Drive", - "Hidden files":"Hidden files", - "Home":"Home", - "Icon view":"Icon view", - "Ignore all {0} unsaved files ?":"Ignore all {0} unsaved files ?", - "Install":"Install", - "Invalid package: Meta data file not found":"Invalid package: Meta data file not found", - "Kill process":"Kill process", - "Language file {0} not found":"Language file {0} not found", - "Launch":"Launch", - "List view":"List view", - "Location":"Location", - "Log out":"Log out", - "Logout":"Logout", - "Mime type {0} is not supported":"Mime type {0} is not supported", - "Modify section entry":"Modify section entry", - "Move to":"Move to", - "Name":"Name", - "Navigation bar":"Navigation bar", - "New file":"New file", - "New folder":"New folder", - "New section entry for {0}":"New section entry for {0}", - "New":"New", - "No application available to open {0}":"No application available to open {0}", - "No post found: {0}":"No post found: {0}", - "No":"No", + "Hidden files":"Fichiers cachés", + "Home":"Accueil", + "Icon view":"Vue d'icône", + "Ignore all {0} unsaved files ?":"Ignorer tous les {0} fichiers non enregistrés?", + "Install":"Installer", + "Invalid package: Meta data file not found":"Paquet invalide: Fichier de métadonnées non trouvé", + "Kill process":"Tuer le processus", + "Language file {0} not found":"Fichier de langue {0} introuvable", + "Launch":"Lancer", + "List view":"Vue de liste", + "Location":"Localisation", + "Log out":"Déconnecter", + "Logout":"Déconnecter", + "Mime type {0} is not supported":"Le type MIME {0} n'est pas supporté", + "Modify section entry":"Modifier le texte", + "Move to":"Déplacer vers", + "Name":"Nom", + "Navigation bar":"Barre de navigation", + "New file":"Nouveau fichier", + "New folder":"Nouveau dossier", + "New section entry for {0}":"Nouvelle entrée de section pour {0}", + "New":"Nouveau", + "No application available to open {0}":"Aucune application disponible pour ouvrir {0}", + "No post found: {0}":"Aucun texte trouvé: {0}", + "No":"Non", "OS":"OS", - "Ok":"Ok", - "Only {0} could be selected":"Only {0} could be selected", - "Open file":"Open file", - "Open with":"Open with", - "Open":"Open", + "Ok":"Oui", + "Only {0} could be selected":"Seul {0} peut être sélectionné", + "Open file":"Ouvrir un fichier", + "Open with":"Ouvrir avec", + "Open":"Ouvrir", "Options":"Options", - "Package uninstalled":"Package uninstalled", - "Parent can not be the category itself":"Parent can not be the category itself", - "Paste":"Paste", + "Package uninstalled":"Package désinstallé", + "Parent can not be the category itself":"Parent ne peut pas être la catégorie elle-même", + "Paste":"Coller", "Phone":"Phone", "Pid":"Pid", - "Please enter category name":"Please enter category name", - "Please enter tags":"Please enter tags", - "Please insert a title in the text: beginning with heading":"Please insert a title in the text: beginning with heading", - "Please select a category":"Please select a category", - "Please select a date":"Please select a date", - "Please select a file":"Please select a file", - "Please select a parent category":"Please select a parent category", - "Please select a section to edit":"Please select a section to edit", - "Please select a section to move":"Please select a section to move", - "Preview":"Preview", - "Properties":"Properties", - "Quit without saving ?":"Quit without saving ?", - "Quit":"Quit", - "Read more":"Read more", - "Refresh":"Refresh", - "Rename":"Rename", - "Repositories":"Repositories", - "Resource not found {0}":"Resource not found {0}", - "Resource not found: {0}":"Resource not found: {0}", - "Row {0}, col {1}, lines: {2}":"Row {0}, col {1}, lines: {2}", - "Save as":"Save as", - "Save":"Save", - "Section list is empty, please add one":"Section list is empty, please add one", - "Select image file":"Select image file", + "Please enter category name":"Veuillez entrer le nom de la catégorie", + "Please enter tags":"Veuillez entrer les tags", + "Please insert a title in the text: beginning with heading":"Veuillez insérer un titre dans le texte: en commençant par le heading", + "Please select a category":"Veuillez sélectionner une catégorie", + "Please select a date":"Veuillez sélectionner une date", + "Please select a file":"Veuillez sélectionner un fichier", + "Please select a parent category":"Veuillez sélectionner une catégorie parente", + "Please select a section to edit":"Veuillez sélectionner une section à modifier", + "Please select a section to move":"Veuillez sélectionner une section à déplacer", + "Preview":"Aperçu", + "Properties":"Propriétés", + "Quit without saving ?":"Quitter sans sauvegarder ?", + "Quit":"Quitter", + "Read more":"Lire la suite", + "Refresh":"Rafraîchir", + "Rename":"Renommer", + "Repositories":"Dépôts", + "Resource not found {0}":"Ressource non trouvée {0}", + "Resource not found: {0}":"Ressource non trouvée: {0}", + "Row {0}, col {1}, lines: {2}":"Range {0}, col {1}, lignes: {2}", + "Save as":"Enregistrer sous", + "Save":"sauvegarder", + "Section list is empty, please add one":"La liste des sections est vide, veuillez en ajouter une", + "Select image file":"Sélectionnez le fichier image", "Service":"Service", - "Share file":"Share file", - "Shared url: {0}":"Shared url: {0}", - "Shared":"Shared", - "Short biblio":"Short biblio", - "Sidebar":"Sidebar", - "Subtitle":"Subtitle", - "System fail: Cannot init desktop manager":"System fail: Cannot init desktop manager", - "System fail: Cannot init login screen":"System fail: Cannot init login screen", + "Share file":"Partagez le fichier", + "Shared url: {0}":"URL partagée: {0}", + "Shared":"partagé", + "Short biblio":"Biblio court", + "Sidebar":"Barre latérale", + "Subtitle":"Sous-titre", + "System fail: Cannot init desktop manager":"Échec du système: impossible de démarrer le gestionnaire de bureau", + "System fail: Cannot init login screen":"Echec du système: Impossible de se connecter à l'écran de connexion", "Tags":"Tags", - "This feature is not implemented yet":"This feature is not implemented yet", - "Title or content must not be blank":"Title or content must not be blank", - "Title":"Title", - "Toggle Full screen":"Toggle Full screen", - "Tree view":"Tree view", + "This feature is not implemented yet":"Cette fonctionnalité n'est pas encore implémentée", + "Title or content must not be blank":"Le titre ou le contenu ne doit pas être vide", + "Title":"Titre", + "Toggle Full screen":"Basculer en plein écran", + "Tree view":"Vue de l'arbre", "Type":"Type", - "Uninstall : {0}?":"Uninstall : {0}?", - "Uninstall":"Uninstall", - "Unknown API setting for {0}":"Unknown API setting for {0}", - "Updated: {0}":"Updated: {0}", - "Upload":"Upload", + "Uninstall : {0}?":"Désinstaller: {0}?", + "Uninstall":"Désinstaller", + "Unknown API setting for {0}":"Paramètre d'API inconnu pour {0}", + "Updated: {0}":"Actualisé: {0}", + "Upload":"Télécharger", "Url":"Url", - "User abort the authentication":"User abort the authentication", - "User data updated":"User data updated", - "VDB Unknown condition for delete command":"VDB Unknown condition for delete command", - "VFS Cannot encode file: {0}":"VFS Cannot encode file: {0}", - "VFS cannot create : {0}":"VFS cannot create : {0}", - "VFS cannot delete : {0}":"VFS cannot delete : {0}", - "VFS cannot download file : {0}":"VFS cannot download file : {0}", - "VFS cannot get meta data for {0}":"VFS cannot get meta data for {0}", - "VFS cannot init {0}: {1}":"VFS cannot init {0}: {1}", - "VFS cannot move : {0}":"VFS cannot move : {0}", - "VFS cannot read : {0}":"VFS cannot read : {0}", - "VFS cannot save : {0}":"VFS cannot save : {0}", - "VFS cannot write : {0}":"VFS cannot write : {0}", - "VFS unknown action: {0}":"VFS unknown action: {0}", - "VFS unknown handler: {0}":"VFS unknown handler: {0}", - "View":"View", - "Would you like to login to {0}?":"Would you like to login to {0}?", - "Wrong format: it should be [name] url":"Wrong format: it should be [name] url", - "Yes":"Yes", - "{0} is not a directory":"{0} is not a directory" + "User abort the authentication":"L'utilisateur annule l'authentification", + "User data updated":"Données utilisateur mises à jour", + "VDB Unknown condition for delete command":"VDB Condition inconnue pour la commande de suppression", + "VFS Cannot encode file: {0}":"VFS Impossible de coder le fichier: {0}", + "VFS cannot create : {0}":"VFS ne peut pas créer: {0}", + "VFS cannot delete : {0}":"VFS ne peut pas supprimer: {0}", + "VFS cannot download file : {0}":"VFS ne peut pas télécharger le fichier: {0}", + "VFS cannot get meta data for {0}":"VFS ne peut pas obtenir de métadonnées pour {0}", + "VFS cannot init {0}: {1}":"VFS ne peut pas init {0}: {1}", + "VFS cannot move : {0}":"VFS ne peut pas déplacer: {0}", + "VFS cannot read : {0}":"VFS ne peut pas lire: {0}", + "VFS cannot save : {0}":"VFS ne peut pas enregistrer: {0}", + "VFS cannot write : {0}":"VFS ne peut pas écrire: {0}", + "VFS unknown action: {0}":"Action inconnue VFS: {0}", + "VFS unknown handler: {0}":"Gestionnaire inconnu VFS: {0}", + "View":"Vue", + "Would you like to login to {0}?":"Voulez-vous vous connecter à {0}?", + "Wrong format: it should be [name] url":"Mauvais format: il devrait être [nom] url", + "Yes":"Oui", + "{0} is not a directory":"{0} n'est pas un répertoire" , - "April":"April", - "August":"August", - "December":"December", - "February":"February", - "Fri":"Fri", - "January":"January", - "July":"July", - "June":"June", - "March":"March", - "May":"May", - "Mon":"Mon", - "November":"November", - "October":"October", - "Sat":"Sat", - "Selected: {0} ({1} bytes)":"Selected: {0} ({1} bytes)", - "September":"September", - "Size":"Size", - "Sun":"Sun", - "Thu":"Thu", - "Tue":"Tue", - "Wed":"Wed" + "April":"Avril", + "August":"août", + "December":"Décembre", + "February":"Février", + "Fri":"Ven", + "January":"Janvier", + "July":"Juillet", + "June":"Juin", + "March":"Mars", + "May":"Mai", + "Mon":"Lun", + "November":"Novembre", + "October":"Octobre", + "Sat":"Sam", + "Selected: {0} ({1} bytes)":"Sélectionné: {0} ({1} octets)", + "September":"Septembre", + "Size":"Taille", + "Sun":"Dim", + "Thu":"Jeu", + "Tue":"Mar", + "Wed":"Mer" + +, + "Add application":"Ajouter une application", + "Add mount point":"Ajouter un point de montage", + "Add service":"Ajouter un service", + "Appearance":"Apparence", + "Cannot fetch system locales: {0}":"Impossible d'extraire les paramètres régionaux du système: {0}", + "Cannot read wallpaper list from {0}":"Impossible de lire la liste des fonds d'écran à partir de {0}", + "Cannot save system setting: {0}":"Impossible d'enregistrer le paramètre système: {0}", + "Desktop path":"Chemin du bureau", + "Edit mount point":"Modifier le point de montage", + "Languages":"Langues", + "Local packages path":"Chemin d'accès aux packages locaux", + "Mount points":"Points de montage", + "Path":"Chemin", + "Please enter mount point name":"Veuillez entrer le nom du point de montage", + "Please select a directory":"Veuillez sélectionner un répertoire", + "Please select an entry":"Veuillez sélectionner une entrée", + "Remove: {0}?":"Supprimer: {0}?", + "Remove":"Supprimer", + "Select a directory":"Sélectionnez un répertoire", + "Startup applications":"Applications de démarrage", + "Startup services":"Services de démarrage", + "Startup":"Démarrage", + "System locale":"Paramètres régionaux du système", + "System setting saved":"Paramètre système enregistré", + "Theme":"Thème", + "VFS":"VFS", + "Wallpaper":"Fond d'écran" } diff --git a/src/core/languages/fr_FR.json.old b/src/core/languages/fr_FR.json.old new file mode 100644 index 0000000..4709174 --- /dev/null +++ b/src/core/languages/fr_FR.json.old @@ -0,0 +1,219 @@ +{ + "About":"About", + "About: {0}":"About: {0}", + "Add category":"Add category", + "Add repository":"Add repository", + "Address":"Address", + "Alive (ms)":"Alive (ms)", + "Application installed":"Application installed", + "Application {0} is not executable":"Application {0} is not executable", + "Application":"Application", + "Applications":"Applications", + "Authentication":"Authentication", + "Cancel":"Cancel", + "Cannot Edit category":"Cannot Edit category", + "Cannot add new category":"Cannot add new category", + "Cannot create {0}":"Cannot create {0}", + "Cannot delete all content of: {0} [{1}]":"Cannot delete all content of: {0} [{1}]", + "Cannot delete the category: {0} [{1}]":"Cannot delete the category: {0} [{1}]", + "Cannot delete the section: {0}":"Cannot delete the section: {0}", + "Cannot delete: {0}":"Cannot delete: {0}", + "Cannot down load the app {0}":"Cannot down load the app {0}", + "Cannot export file for embedding to text":"Cannot export file for embedding to text", + "Cannot fetch CV categories":"Cannot fetch CV categories", + "Cannot fetch the entry content":"Cannot fetch the entry content", + "Cannot fetch user data":"Cannot fetch user data", + "Cannot install {0}":"Cannot install {0}", + "Cannot load 3rd library at: {0}":"Cannot load 3rd library at: {0}", + "Cannot move section":"Cannot move section", + "Cannot read service script: {0}":"Cannot read service script: {0}", + "Cannot render the PDF file":"Cannot render the PDF file", + "Cannot save blog: {0}":"Cannot save blog: {0}", + "Cannot save section: {0}":"Cannot save section: {0}", + "Cannot save system setting":"Cannot save system setting", + "Cannot save user data":"Cannot save user data", + "Cannot share file: {0}":"Cannot share file: {0}", + "Cannot uninstall package: {0}":"Cannot uninstall package: {0}", + "Categories":"Categories", + "Clear all":"Clear all", + "Close tab":"Close tab", + "Close without saving ?":"Close without saving ?", + "Close":"Close", + "Copy not yet implemented":"Copy not yet implemented", + "Copy":"Copy", + "Created: {0}":"Created: {0}", + "Cut":"Cut", + "Delete a post":"Delete a post", + "Delete category":"Delete category", + "Delete section":"Delete section", + "Delete":"Delete", + "Desktop":"Desktop", + "Dialog {0} not found":"Dialog {0} not found", + "Do you really want to delete this post ?":"Do you really want to delete this post ?", + "Do you really want to delete: {0}?":"Do you really want to delete: {0}?", + "Download":"Download", + "Edit category":"Edit category", + "Edit repository":"Edit repository", + "Edit":"Edit", + "Email":"Email", + "Error find app by mimes {0}":"Error find app by mimes {0}", + "Error reading package meta data: {0}":"Error reading package meta data: {0}", + "Error saving file {0}":"Error saving file {0}", + "Exit":"Exit", + "Fail to create directory: {0}":"Fail to create directory: {0}", + "Fail to create {0}: {1}":"Fail to create {0}: {1}", + "Fail to delete {0}: {1}":"Fail to delete {0}: {1}", + "Fail to delete: {0}":"Fail to delete: {0}", + "Fail to fetch packages list from: {0}":"Fail to fetch packages list from: {0}", + "Fail to get file meta data: {0}":"Fail to get file meta data: {0}", + "Fail to make request: {0}":"Fail to make request: {0}", + "Fail to move file: {0} -> {1}":"Fail to move file: {0} -> {1}", + "Fail to paste: {0}":"Fail to paste: {0}", + "Fail to publish file: {0}":"Fail to publish file: {0}", + "Fail to query data from database: {0}":"Fail to query data from database: {0}", + "Fail to read file: {0}":"Fail to read file: {0}", + "Fail to rename to {0}: {1}":"Fail to rename to {0}: {1}", + "Fail to scan directory: {0}":"Fail to scan directory: {0}", + "Fail to upload file to: {0}":"Fail to upload file to: {0}", + "Fail to upload to {0}: {1}":"Fail to upload to {0}: {1}", + "Fail to write to file: {0}":"Fail to write to file: {0}", + "Fail to {0} package":"Fail to {0} package", + "File name":"File name", + "File not found {0}":"File not found {0}", + "File {0} copied":"File {0} copied", + "File {0} cut":"File {0} cut", + "File":"File", + "Folder name":"Folder name", + "Format : [name] url":"Format : [name] url", + "Found {0} sections":"Found {0} sections", + "From":"From", + "Full name must be entered":"Full name must be entered", + "Full name":"Full name", + "Google Drive":"Google Drive", + "Hidden files":"Hidden files", + "Home":"Home", + "Icon view":"Icon view", + "Ignore all {0} unsaved files ?":"Ignore all {0} unsaved files ?", + "Install":"Install", + "Invalid package: Meta data file not found":"Invalid package: Meta data file not found", + "Kill process":"Kill process", + "Language file {0} not found":"Language file {0} not found", + "Launch":"Launch", + "List view":"List view", + "Location":"Location", + "Log out":"Log out", + "Logout":"Logout", + "Mime type {0} is not supported":"Mime type {0} is not supported", + "Modify section entry":"Modify section entry", + "Move to":"Move to", + "Name":"Name", + "Navigation bar":"Navigation bar", + "New file":"New file", + "New folder":"New folder", + "New section entry for {0}":"New section entry for {0}", + "New":"New", + "No application available to open {0}":"No application available to open {0}", + "No post found: {0}":"No post found: {0}", + "No":"No", + "OS":"OS", + "Ok":"Ok", + "Only {0} could be selected":"Only {0} could be selected", + "Open file":"Open file", + "Open with":"Open with", + "Open":"Open", + "Options":"Options", + "Package uninstalled":"Package uninstalled", + "Parent can not be the category itself":"Parent can not be the category itself", + "Paste":"Paste", + "Phone":"Phone", + "Pid":"Pid", + "Please enter category name":"Please enter category name", + "Please enter tags":"Please enter tags", + "Please insert a title in the text: beginning with heading":"Please insert a title in the text: beginning with heading", + "Please select a category":"Please select a category", + "Please select a date":"Please select a date", + "Please select a file":"Please select a file", + "Please select a parent category":"Please select a parent category", + "Please select a section to edit":"Please select a section to edit", + "Please select a section to move":"Please select a section to move", + "Preview":"Preview", + "Properties":"Properties", + "Quit without saving ?":"Quit without saving ?", + "Quit":"Quit", + "Read more":"Read more", + "Refresh":"Refresh", + "Rename":"Rename", + "Repositories":"Repositories", + "Resource not found {0}":"Resource not found {0}", + "Resource not found: {0}":"Resource not found: {0}", + "Row {0}, col {1}, lines: {2}":"Row {0}, col {1}, lines: {2}", + "Save as":"Save as", + "Save":"Save", + "Section list is empty, please add one":"Section list is empty, please add one", + "Select image file":"Select image file", + "Service":"Service", + "Share file":"Share file", + "Shared url: {0}":"Shared url: {0}", + "Shared":"Shared", + "Short biblio":"Short biblio", + "Sidebar":"Sidebar", + "Subtitle":"Subtitle", + "System fail: Cannot init desktop manager":"System fail: Cannot init desktop manager", + "System fail: Cannot init login screen":"System fail: Cannot init login screen", + "Tags":"Tags", + "This feature is not implemented yet":"This feature is not implemented yet", + "Title or content must not be blank":"Title or content must not be blank", + "Title":"Title", + "Toggle Full screen":"Toggle Full screen", + "Tree view":"Tree view", + "Type":"Type", + "Uninstall : {0}?":"Uninstall : {0}?", + "Uninstall":"Uninstall", + "Unknown API setting for {0}":"Unknown API setting for {0}", + "Updated: {0}":"Updated: {0}", + "Upload":"Upload", + "Url":"Url", + "User abort the authentication":"User abort the authentication", + "User data updated":"User data updated", + "VDB Unknown condition for delete command":"VDB Unknown condition for delete command", + "VFS Cannot encode file: {0}":"VFS Cannot encode file: {0}", + "VFS cannot create : {0}":"VFS cannot create : {0}", + "VFS cannot delete : {0}":"VFS cannot delete : {0}", + "VFS cannot download file : {0}":"VFS cannot download file : {0}", + "VFS cannot get meta data for {0}":"VFS cannot get meta data for {0}", + "VFS cannot init {0}: {1}":"VFS cannot init {0}: {1}", + "VFS cannot move : {0}":"VFS cannot move : {0}", + "VFS cannot read : {0}":"VFS cannot read : {0}", + "VFS cannot save : {0}":"VFS cannot save : {0}", + "VFS cannot write : {0}":"VFS cannot write : {0}", + "VFS unknown action: {0}":"VFS unknown action: {0}", + "VFS unknown handler: {0}":"VFS unknown handler: {0}", + "View":"View", + "Would you like to login to {0}?":"Would you like to login to {0}?", + "Wrong format: it should be [name] url":"Wrong format: it should be [name] url", + "Yes":"Yes", + "{0} is not a directory":"{0} is not a directory" + +, + "April":"April", + "August":"August", + "December":"December", + "February":"February", + "Fri":"Fri", + "January":"January", + "July":"July", + "June":"June", + "March":"March", + "May":"May", + "Mon":"Mon", + "November":"November", + "October":"October", + "Sat":"Sat", + "Selected: {0} ({1} bytes)":"Selected: {0} ({1} bytes)", + "September":"September", + "Size":"Size", + "Sun":"Sun", + "Thu":"Thu", + "Tue":"Tue", + "Wed":"Wed" +} diff --git a/src/core/languages/vi_VN.json b/src/core/languages/vi_VN.json index d81306e..b0ff321 100644 --- a/src/core/languages/vi_VN.json +++ b/src/core/languages/vi_VN.json @@ -220,6 +220,39 @@ , "Add":"Thêm", "Cannot read wallpaper list from {0}":"Không thể truy vấn danh sách wallpaper {0}", - "Theme":"Theme", - "Wallpaper":"Wallpaper" + "Theme":"Chủ đề", + "Wallpaper":"Hình nền" + +, + "Appearance":"Giao diện", + "Cannot fetch system locales: {0}":"Không thể truy vấn danh sách ngôn ngữ: {0}", + "Cannot save system setting: {0}":"Không thể lưu cài đặt hệ thống: {0}", + "Desktop path":"Đường dẫn đến desktop", + "Languages":"Ngôn ngữ", + "Local packages path":"Đường dẫn đến ứng dụng riêng", + "Mount points":"Điểm truy cập nhanh", + "Path":"Đường dẫn", + "Please enter mount point name":"Vui lòng nhập điểm truy cập", + "Please select a directory":"Vui lòng chọn một thư mục", + "Remove: {0}?":"xoá: {0}?", + "Remove":"xoá", + "Select a directory":"Chọn một thư mục", + "System locale":"Ngôn ngữ", + "System setting saved":"Đã lưu cài đặt hệ thống", + "VFS":"VFS" + +, + "Add mount point":"Thêm điểm truy cập", + "Edit mount point":"Sửa điểm truy cập" + +, + "Services":"Dịch vụ", + "Startup":"Khởi chạy" + +, + "Add application":"Thêm ứng dụng", + "Add service":"Thêm dịch vụ", + "Please select an entry":"Vui lòng chọn 1 mục từ danh sách", + "Startup applications":"Ứng dụng khởi chạy", + "Startup services":"Dịch vụ khởi chạy" } diff --git a/src/core/languages/vi_VN.json.old b/src/core/languages/vi_VN.json.old index c49dda6..615f366 100644 --- a/src/core/languages/vi_VN.json.old +++ b/src/core/languages/vi_VN.json.old @@ -216,4 +216,36 @@ "Thu":"Năm", "Tue":"Ba", "Wed":"Tư" + +, + "Add":"Thêm", + "Cannot read wallpaper list from {0}":"Không thể truy vấn danh sách wallpaper {0}", + "Theme":"Chủ đề", + "Wallpaper":"Hình nền" + +, + "Appearance":"Giao diện", + "Cannot fetch system locales: {0}":"Không thể truy vấn danh sách ngôn ngữ: {0}", + "Cannot save system setting: {0}":"Không thể lưu cài đặt hệ thống: {0}", + "Desktop path":"Đường dẫn đến desktop", + "Languages":"Ngôn ngữ", + "Local packages path":"Đường dẫn đến ứng dụng riêng", + "Mount points":"Điểm truy cập nhanh", + "Path":"Đường dẫn", + "Please enter mount point name":"Vui lòng nhập điểm truy cập", + "Please select a directory":"Vui lòng chọn một thư mục", + "Remove: {0}?":"xoá: {0}?", + "Remove":"xoá", + "Select a directory":"Chọn một thư mục", + "System locale":"Ngôn ngữ", + "System setting saved":"Đã lưu cài đặt hệ thống", + "VFS":"VFS" + +, + "Add mount point":"Thêm điểm truy cập", + "Edit mount point":"Sửa điểm truy cập" + +, + "Services":"Services", + "Startup":"Startup" } diff --git a/src/core/settings.coffee b/src/core/settings.coffee index dad719d..f693a1f 100644 --- a/src/core/settings.coffee +++ b/src/core/settings.coffee @@ -7,6 +7,7 @@ size: "cover", repeat: "repeat" } unless _OS.setting.appearance.wp + _OS.setting.appearance.wps = [] unless _OS.setting.appearance.wps _OS.setting.user = conf.user _OS.setting.VFS = conf.VFS if conf.VFS _OS.setting.desktop.path = "home://.desktop" unless _OS.setting.desktop.path diff --git a/src/core/tags/afx-list-view.tag b/src/core/tags/afx-list-view.tag index d97b131..7cb7c7e 100644 --- a/src/core/tags/afx-list-view.tag +++ b/src/core/tags/afx-list-view.tag @@ -12,7 +12,7 @@
- +