From 4fe3cabab5fa04392187adabb8e40bea9950b285 Mon Sep 17 00:00:00 2001 From: "me@ow.nekobit.net" Date: Fri, 4 Feb 2022 03:53:32 +0000 Subject: [PATCH] =?UTF-8?q?l10n=20para=20espa=C3=B1ol?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit FossilOrigin-Name: 14fbc5a27803a412a221c4bd7dce664c078c5c9a4d79f6facb0803a62c94546d --- config.h | 4 ++-- src/l10n.h | 34 +++++++++++++++++++++++++++++++++- 2 files changed, 35 insertions(+), 3 deletions(-) diff --git a/config.h b/config.h index cc3ebba..007c084 100644 --- a/config.h +++ b/config.h @@ -20,7 +20,7 @@ * Example: "RatFE" */ -static const char* config_canonical_name = "RatFE"; +static char* const config_canonical_name = "RatFE"; /* * String: config_instance_url @@ -31,6 +31,6 @@ static const char* config_canonical_name = "RatFE"; * * Example: https://cum.desupost.soy/ */ -static char* config_instance_url = "https://desuposter.club/"; +static char* const config_instance_url = "https://desuposter.club/"; #endif // CONFIG_H diff --git a/src/l10n.h b/src/l10n.h index ba5ddda..ddcb7b1 100644 --- a/src/l10n.h +++ b/src/l10n.h @@ -22,6 +22,7 @@ enum l10n_locale { L10N_EN_US = 0, + L10N_ES_ES, }; enum l10n_string @@ -52,9 +53,10 @@ enum l10n_string L10N_LIGHT, L10N_DARK, L10N_SAVE, + _L10N_LEN, }; -static const char* L10N[][] = { +static const char* const L10N[][_L10N_LEN] = { // EN_US { /* GENERAL */ @@ -84,6 +86,36 @@ static const char* L10N[][] = { "Dark", "Save", }, + + // ES_ES + { + /* GENERAL */ + "RataFE :D", // L10N_APP_NAME + "Casa", + "Local", + "Federado", + "Notificaciones", + "Liza", + "Directo", + "Configuración", + "Búsqueda", + "Búsqueda", + + /* CONFIG */ + "General", + "JavaScript", + "Acciones rápidas - Me gusta, Impulsos, etc. hechos en segundo plano", + "Respuesta rápidas - Replies don't require redirects", + "Estados en vivo - los estados se obtienen sobre la marcha", + "Apariencia", + "Variante de tema", + "RatFE 2.0 - Tema simple predeterminado", + "RatFE 3.0 - Tema plano y moderno", + "Esquema de colores", + "Clara", + "Oscura", + "Guardar", + }, }; #endif // RATFE_L10N_H