From 080448af3a11a3a17d30915cbfe10673dfa71728 Mon Sep 17 00:00:00 2001 From: David Miguel Date: Sun, 25 Mar 2018 02:09:04 +0100 Subject: [PATCH] Add Spanish (es-ES) locale --- browser/lib/i18n.js | 2 +- browser/main/Main.js | 4 +- browser/main/lib/ConfigManager.js | 4 +- locales/es-ES.json | 153 ++++++++++++++++++++++++++++++ locales/es.json | 153 ------------------------------ 5 files changed, 158 insertions(+), 158 deletions(-) create mode 100644 locales/es-ES.json delete mode 100644 locales/es.json diff --git a/browser/lib/i18n.js b/browser/lib/i18n.js index b547d97c..fe339072 100644 --- a/browser/lib/i18n.js +++ b/browser/lib/i18n.js @@ -1,7 +1,7 @@ // load package for localization const i18n = new (require('i18n-2'))({ // setup some locales - other locales default to the first locale - locales: ['en', 'sq', 'zh-CN', 'zh-TW', 'da', 'fr', 'de', 'hu', 'ja', 'ko', 'no', 'pl', 'pt', 'es'], + locales: ['en', 'sq', 'zh-CN', 'zh-TW', 'da', 'fr', 'de', 'hu', 'ja', 'ko', 'no', 'pl', 'pt', 'es-ES'], extension: '.json', devMode: false }) diff --git a/browser/main/Main.js b/browser/main/Main.js index 35953aea..2f431374 100644 --- a/browser/main/Main.js +++ b/browser/main/Main.js @@ -175,8 +175,8 @@ class Main extends React.Component { i18n.setLocale('pt') } else if (config.ui.language === 'ru') { i18n.setLocale('ru') - } else if (config.ui.language === 'es') { - i18n.setLocale('es') + } else if (config.ui.language === 'es-ES') { + i18n.setLocale('es-ES') } else { i18n.setLocale('en') } diff --git a/browser/main/lib/ConfigManager.js b/browser/main/lib/ConfigManager.js index 4d67d4e7..157973ea 100644 --- a/browser/main/lib/ConfigManager.js +++ b/browser/main/lib/ConfigManager.js @@ -164,8 +164,8 @@ function set (updates) { i18n.setLocale('pt') } else if (newConfig.ui.language === 'ru') { i18n.setLocale('ru') - } else if (newConfig.ui.language === 'es') { - i18n.setLocale('es') + } else if (newConfig.ui.language === 'es-ES') { + i18n.setLocale('es-ES') } else { i18n.setLocale('en') } diff --git a/locales/es-ES.json b/locales/es-ES.json new file mode 100644 index 00000000..ea20641b --- /dev/null +++ b/locales/es-ES.json @@ -0,0 +1,153 @@ +{ + "Notes": "Notas", + "Tags": "Etiquetas", + "Preferences": "Preferencias", + "Make a note": "Tomar una nota", + "Ctrl": "Ctrl", + "Ctrl(^)": "Ctrl", + "to create a new note": "para crear una nueva nota", + "Toggle Mode": "Alternar modo", + "Trash": "Basura", + "MODIFICATION DATE": "FECHA DE MODIFICACIÓN", + "Words": "Palabras", + "Letters": "Letras", + "STORAGE": "ALMACENAMIENTO", + "FOLDER": "CARPETA", + "CREATION DATE": "FECHA DE CREACIÓN", + "NOTE LINK": "ENLACE A LA NOTA", + ".md": ".md", + ".txt": ".txt", + ".html": ".html", + "Print": "Imprimir", + "Your preferences for Boostnote": "Tus preferencias para Boostnote", + "Storages": "Almacenamientos", + "Add Storage Location": "Añadir ubicación de almacenamiento", + "Add Folder": "Añadir carpeta", + "Open Storage folder": "Añadir carpeta de almacenamiento", + "Unlink": "Desvincular", + "Edit": "Editar", + "Delete": "Eliminar", + "Interface": "Interfaz", + "Interface Theme": "Tema de la interfaz", + "Default": "Por defecto", + "White": "Blanco", + "Solarized Dark": "Solarizado oscuro", + "Dark": "Oscuro", + "Show a confirmation dialog when deleting notes": "Requerir confirmación al eliminar nota", + "Editor Theme": "Tema del editor", + "Editor Font Size": "Tamaño de fuente del editor", + "Editor Font Family": "Fuente del editor", + "Editor Indent Style": "Estilo de indentado del editor", + "Spaces": "Espacios", + "Tabs": "Tabulación", + "Switch to Preview": "Cambiar a Previsualización", + "When Editor Blurred": "Cuando el editor pierde el foco", + "When Editor Blurred, Edit On Double Click": "Cuando el editor pierde el foco, editar con doble clic", + "On Right Click": "Al hacer clic derecho", + "Editor Keymap": "Mapeo de teclas del editor", + "default": "por defecto", + "vim": "vim", + "emacs": "emacs", + "⚠️ Please restart boostnote after you change the keymap": "⚠️ Reinicie boostnote después de cambiar el mapeo de teclas", + "Show line numbers in the editor": "Mostrar números de línea en el editor", + "Allow editor to scroll past the last line": "Permitir al editor desplazarse más allá de la última línea", + "Bring in web page title when pasting URL on editor": "Al pegar una URL en el editor, insertar el título de la web automáticamente", + "Preview": "Previsualización", + "Preview Font Size": "Previsualizar tamaño de la fuente", + "Preview Font Family": "Previsualizar fuente", + "Code block Theme": "Tema de los bloques de código", + "Allow preview to scroll past the last line": "Permitir a la previsualización desplazarse más allá de la última línea", + "Show line numbers for preview code blocks": "Mostar números de línea al previsualizar bloques de código", + "LaTeX Inline Open Delimiter": "Delimitador de apertura LaTeX en línea", + "LaTeX Inline Close Delimiter": "Delimitador de cierre LaTeX en línea", + "LaTeX Block Open Delimiter": "Delimitado de apertura bloque LaTeX", + "LaTeX Block Close Delimiter": "Delimitador de cierre bloque LaTeX", + "Community": "Comunidad", + "Subscribe to Newsletter": "Suscribirse al boletín", + "GitHub": "GitHub", + "Blog": "Blog", + "Facebook Group": "Grupo de Facebook", + "Twitter": "Twitter", + "About": "Sobre", + "Boostnote": "Boostnote", + "An open source note-taking app made for programmers just like you.": "Una aplicación para tomar notas de código abieto para programadores como tú.", + "Website": "Página web", + "Development": "Desarrollo", + " : Development configurations for Boostnote.": " : Configuraciones de desarrollo para Boostnote.", + "Copyright (C) 2017 - 2018 BoostIO": "Copyright (C) 2017 - 2018 BoostIO", + "License: GPL v3": "Licencia: GPL v3", + "Analytics": "Analítica", + "Boostnote collects anonymous data for the sole purpose of improving the application, and strictly does not collect any personal information such the contents of your notes.": "Boostnote recopila datos anónimos con el único propósito de mejorar la aplicación. No recopila ninguna información personal, como puede ser el contenido de sus notas.", + "You can see how it works on ": "Puedes ver cómo funciona en ", + "You can choose to enable or disable this option.": "Puedes elegir activar o desactivar esta opción.", + "Enable analytics to help improve Boostnote": "Activa analítica para ayudar a mejorar Boostnote", + "Crowdfunding": "Crowdfunding", + "Dear everyone,": "Hola a todos,", + "Thank you for using Boostnote!": "Gracias por usar Boostnote!", + "Boostnote is used in about 200 different countries and regions by an awesome community of developers.": "Boostnote es utilizado en alrededor de 200 países y regiones diferentes por una increíble comunidad de desarrolladores.", + "To continue supporting this growth, and to satisfy community expectations,": "Para continuar apoyando este crecimiento y satisfacer las expectativas de la comunidad,", + "we would like to invest more time and resources in this project.": "nos gustaría invertir más tiempo y recursos en este proyecto.", + "If you like this project and see its potential, you can help by supporting us on OpenCollective!": "Si te gusta este proyecto y ves potencial en él, ¡puedes ayudar apoyándonos en OpenCollective!", + "Thanks,": "Gracias,", + "Boostnote maintainers": "Equipo de Boostnote", + "Support via OpenCollective": "Contribuir vía OpenCollective", + "Language": "Idioma", + "English": "Inglés", + "German": "Alemán", + "French": "Francés", + "Show \"Saved to Clipboard\" notification when copying": "Mostrar la notificaión \"Guardado en Portapapeles\" al copiar", + "All Notes": "Todas las notas", + "Starred": "Destacado", + "Are you sure to ": "Estás seguro de ", + " delete": " eliminar", + "this folder?": "esta carpeta?", + "Confirm": "Confirmar", + "Cancel": "Cancelar", + "Markdown Note": "Nota Markdown", + "This format is for creating text documents. Checklists, code blocks and Latex blocks are available.": "Formato para crear documentos de texto. Permite utilizar listas, bloques de código y LaTeX.", + "Snippet Note": "Nota Snippet", + "This format is for creating code snippets. Multiple snippets can be grouped into a single note.": "Formato para fragmentos de código. Múltiples fragmentos se pueden agrupar en una sola nota.", + "Tab to switch format": "Tabulador para cambiar formato", + "Updated": "Actualizado", + "Created": "Creado", + "Alphabetically": "Alfabéticamente", + "Default View": "Vista por defecto", + "Compressed View": "Vista comprimida", + "Search": "Buscar", + "Blog Type": "Tipo de blog", + "Blog Address": "Dirección del blog", + "Save": "Guardar", + "Auth": "Auth", + "Authentication Method": "Método de autentificación", + "JWT": "JWT", + "USER": "USUARIO", + "Token": "Token", + "Storage": "Almacenamiento", + "Hotkeys": "Atajos de teclado", + "Show/Hide Boostnote": "Mostrar/Ocultar Boostnote", + "Restore": "Restaurar", + "Permanent Delete": "Eliminar permanentemente", + "Confirm note deletion": "Confirmar eliminación de nota", + "This will permanently remove this note.": "La nota se eliminará permanentemente.", + "Successfully applied!": "Aplicado con éxito!", + "Albanian": "Albanés", + "Chinese (zh-CN)": "Chino - China", + "Chinese (zh-TW)": "Chino - Taiwan", + "Danish": "Danés", + "Japanese": "Japonés", + "Korean": "Coreano", + "Norwegian": "Noruego", + "Polish": "Polaco", + "Portuguese": "Portugues", + "Spanish": "Español", + "You have to save!": "Tienes que guardar!", + "Russian": "Ruso", + "Command(⌘)": "Command(⌘)", + "Editor Rulers": "Reglas del editor", + "Enable": "Activar", + "Disable": "Desactivar", + "Sanitization": "Saneamiento", + "Only allow secure html tags (recommended)": "Solo permitir etiquetas html seguras (recomendado)", + "Allow styles": "Permitir estilos", + "Allow dangerous html tags": "Permitir etiques html peligrosas" +} diff --git a/locales/es.json b/locales/es.json deleted file mode 100644 index 51f975d9..00000000 --- a/locales/es.json +++ /dev/null @@ -1,153 +0,0 @@ -{ - "Notes": "Notes", - "Tags": "Tags", - "Preferences": "Preferences", - "Make a note": "Make a note", - "Ctrl": "Ctrl", - "Ctrl(^)": "Ctrl", - "to create a new note": "to create a new note", - "Toggle Mode": "Toggle Mode", - "Trash": "Trash", - "MODIFICATION DATE": "MODIFICATION DATE", - "Words": "Words", - "Letters": "Letters", - "STORAGE": "STORAGE", - "FOLDER": "FOLDER", - "CREATION DATE": "CREATION DATE", - "NOTE LINK": "NOTE LINK", - ".md": ".md", - ".txt": ".txt", - ".html": ".html", - "Print": "Print", - "Your preferences for Boostnote": "Your preferences for Boostnote", - "Storages": "Storages", - "Add Storage Location": "Add Storage Location", - "Add Folder": "Add Folder", - "Open Storage folder": "Open Storage folder", - "Unlink": "Unlink", - "Edit": "Edit", - "Delete": "Delete", - "Interface": "Interface", - "Interface Theme": "Interface Theme", - "Default": "Default", - "White": "White", - "Solarized Dark": "Solarized Dark", - "Dark": "Dark", - "Show a confirmation dialog when deleting notes": "Show a confirmation dialog when deleting notes", - "Editor Theme": "Editor Theme", - "Editor Font Size": "Editor Font Size", - "Editor Font Family": "Editor Font Family", - "Editor Indent Style": "Editor Indent Style", - "Spaces": "Spaces", - "Tabs": "Tabs", - "Switch to Preview": "Switch to Preview", - "When Editor Blurred": "When Editor Blurred", - "When Editor Blurred, Edit On Double Click": "When Editor Blurred, Edit On Double Click", - "On Right Click": "On Right Click", - "Editor Keymap": "Editor Keymap", - "default": "default", - "vim": "vim", - "emacs": "emacs", - "⚠️ Please restart boostnote after you change the keymap": "⚠️ Please restart boostnote after you change the keymap", - "Show line numbers in the editor": "Show line numbers in the editor", - "Allow editor to scroll past the last line": "Allow editor to scroll past the last line", - "Bring in web page title when pasting URL on editor": "Bring in web page title when pasting URL on editor", - "Preview": "Preview", - "Preview Font Size": "Preview Font Size", - "Preview Font Family": "Preview Font Family", - "Code block Theme": "Code block Theme", - "Allow preview to scroll past the last line": "Allow preview to scroll past the last line", - "Show line numbers for preview code blocks": "Show line numbers for preview code blocks", - "LaTeX Inline Open Delimiter": "LaTeX Inline Open Delimiter", - "LaTeX Inline Close Delimiter": "LaTeX Inline Close Delimiter", - "LaTeX Block Open Delimiter": "LaTeX Block Open Delimiter", - "LaTeX Block Close Delimiter": "LaTeX Block Close Delimiter", - "Community": "Community", - "Subscribe to Newsletter": "Subscribe to Newsletter", - "GitHub": "GitHub", - "Blog": "Blog", - "Facebook Group": "Facebook Group", - "Twitter": "Twitter", - "About": "About", - "Boostnote": "Boostnote", - "An open source note-taking app made for programmers just like you.": "An open source note-taking app made for programmers just like you.", - "Website": "Website", - "Development": "Development", - " : Development configurations for Boostnote.": " : Development configurations for Boostnote.", - "Copyright (C) 2017 - 2018 BoostIO": "Copyright (C) 2017 - 2018 BoostIO", - "License: GPL v3": "License: GPL v3", - "Analytics": "Analytics", - "Boostnote collects anonymous data for the sole purpose of improving the application, and strictly does not collect any personal information such the contents of your notes.": "Boostnote collects anonymous data for the sole purpose of improving the application, and strictly does not collect any personal information such the contents of your notes.", - "You can see how it works on ": "You can see how it works on ", - "You can choose to enable or disable this option.": "You can choose to enable or disable this option.", - "Enable analytics to help improve Boostnote": "Enable analytics to help improve Boostnote", - "Crowdfunding": "Crowdfunding", - "Dear everyone,": "Dear everyone,", - "Thank you for using Boostnote!": "Thank you for using Boostnote!", - "Boostnote is used in about 200 different countries and regions by an awesome community of developers.": "Boostnote is used in about 200 different countries and regions by an awesome community of developers.", - "To continue supporting this growth, and to satisfy community expectations,": "To continue supporting this growth, and to satisfy community expectations,", - "we would like to invest more time and resources in this project.": "we would like to invest more time and resources in this project.", - "If you like this project and see its potential, you can help by supporting us on OpenCollective!": "If you like this project and see its potential, you can help by supporting us on OpenCollective!", - "Thanks,": "Thanks,", - "Boostnote maintainers": "Boostnote maintainers", - "Support via OpenCollective": "Support via OpenCollective", - "Language": "Language", - "English": "English", - "German": "German", - "French": "French", - "Show \"Saved to Clipboard\" notification when copying": "Show \"Saved to Clipboard\" notification when copying", - "All Notes": "All Notes", - "Starred": "Starred", - "Are you sure to ": "Are you sure to ", - " delete": " delete", - "this folder?": "this folder?", - "Confirm": "Confirm", - "Cancel": "Cancel", - "Markdown Note": "Markdown Note", - "This format is for creating text documents. Checklists, code blocks and Latex blocks are available.": "This format is for creating text documents. Checklists, code blocks and Latex blocks are available.", - "Snippet Note": "Snippet Note", - "This format is for creating code snippets. Multiple snippets can be grouped into a single note.": "This format is for creating code snippets. Multiple snippets can be grouped into a single note.", - "Tab to switch format": "Tab to switch format", - "Updated": "Updated", - "Created": "Created", - "Alphabetically": "Alphabetically", - "Default View": "Default View", - "Compressed View": "Compressed View", - "Search": "Search", - "Blog Type": "Blog Type", - "Blog Address": "Blog Address", - "Save": "Save", - "Auth": "Auth", - "Authentication Method": "Authentication Method", - "JWT": "JWT", - "USER": "USER", - "Token": "Token", - "Storage": "Storage", - "Hotkeys": "Hotkeys", - "Show/Hide Boostnote": "Show/Hide Boostnote", - "Restore": "Restore", - "Permanent Delete": "Permanent Delete", - "Confirm note deletion": "Confirm note deletion", - "This will permanently remove this note.": "This will permanently remove this note.", - "Successfully applied!": "Successfully applied!", - "Albanian": "Albanian", - "Chinese (zh-CN)": "Chinese (zh-CN)", - "Chinese (zh-TW)": "Chinese (zh-TW)", - "Danish": "Danish", - "Japanese": "Japanese", - "Korean": "Korean", - "Norwegian": "Norwegian", - "Polish": "Polish", - "Portuguese": "Portuguese", - "Spanish": "Spanish", - "You have to save!": "You have to save!", - "Russian": "Russian", - "Command(⌘)": "Command(⌘)", - "Editor Rulers": "Editor Rulers", - "Enable": "Enable", - "Disable": "Disable", - "Sanitization": "Sanitization", - "Only allow secure html tags (recommended)": "Only allow secure html tags (recommended)", - "Allow styles": "Allow styles", - "Allow dangerous html tags": "Allow dangerous html tags" -}