* Replace hardcoded strings using translation json file This introduces a new "translations.json" file under app/static/settings that is loaded on app init and uses the user config value for interface language to determine the appropriate strings to use in Whoogle-specific elements of the UI (primarily only on the home page). * Verify interface lang can be used for localization Check the configured interface language against the available localization dict before attempting to use, otherwise fall back to english. Also expanded language names in the languages json file. * Add test for validating translation language keys Also adds Spanish translation to json (the only non-English language I can add and reasonably validate on my own). * Validate all translations against original keyset, update readme Readme has been updated to include basic contributing guidelines for both code and translations.
59 lines
2.9 KiB
JSON
59 lines
2.9 KiB
JSON
{
|
|
"lang_en": {
|
|
"search": "Search",
|
|
"config": "Configuration",
|
|
"config-country": "Filter Results by Country",
|
|
"config-country-help": "Note: If enabled, a website will only appear in the search results if it is *hosted* in the selected country.",
|
|
"config-lang": "Interface Language",
|
|
"config-lang-search": "Search Language",
|
|
"config-near": "Near",
|
|
"config-near-help": "City Name",
|
|
"config-block": "Block",
|
|
"config-block-help": "Comma-separated site list",
|
|
"config-nojs": "Show NoJS Links",
|
|
"config-dark": "Dark Mode",
|
|
"config-safe": "Safe Search",
|
|
"config-alts": "Replace Social Media Links",
|
|
"config-alts-help": "Replaces Twitter/YouTube/Instagram/etc links with privacy respecting alternatives.",
|
|
"config-new-tab": "Open Links in New Tab",
|
|
"config-images": "Full Size Image Search",
|
|
"config-images-help": "(Experimental) Adds the 'View Image' option to desktop image searches. This will cause image result thumbnails to be lower resolution.",
|
|
"config-tor": "Use Tor",
|
|
"config-get-only": "GET Requests Only",
|
|
"config-url": "Root URL",
|
|
"config-css": "Custom CSS",
|
|
"load": "Load",
|
|
"apply": "Apply",
|
|
"save-as": "Save As...",
|
|
"github-link": "View on GitHub"
|
|
},
|
|
"lang_es": {
|
|
"search": "Buscar",
|
|
"config": "Configuración",
|
|
"config-country": "Filtrar Resultados por País",
|
|
"config-country-help": "Nota: Si está habilitado, un sitio web solo aparecerá en los resultados de búsqueda si está alojado en ese país.",
|
|
"config-lang": "Idioma de Interfaz",
|
|
"config-lang-search": "Idioma de Búsqueda",
|
|
"config-near": "Cerca",
|
|
"config-near-help": "Nombre de la Ciudad",
|
|
"config-block": "Bloquear",
|
|
"config-block-help": "Lista de sitios separados por comas",
|
|
"config-nojs": "Mostrar Enlaces NoJS",
|
|
"config-dark": "Modo Oscuro",
|
|
"config-safe": "Búsqueda Segura",
|
|
"config-alts": "Reemplazar Enlaces de Redes Sociales",
|
|
"config-alts-help": "Reemplaza los enlaces de Twitter/YouTube/Instagram/etc con alternativas que respetan la privacidad.",
|
|
"config-new-tab": "Abrir enlaces en una pestaña nueva",
|
|
"config-images": "Búsqueda de imágenes a tamaño completo",
|
|
"config-images-help": "(Experimental) Agrega la opción 'Ver imagen' a las búsquedas de imágenes de escritorio. Esto hará que las miniaturas de los resultados de la imagen aparezcan con una resolución más baja.",
|
|
"config-tor": "Usa Tor",
|
|
"config-get-only": "GET solo solicitudes",
|
|
"config-url": "URL raíz",
|
|
"config-css": "CSS personalizado",
|
|
"load": "Cargar",
|
|
"apply": "Aplicar",
|
|
"save-as": "Guardar como...",
|
|
"github-link": "Ver en GitHub"
|
|
}
|
|
}
|