Skip to content

Add Spanish translations - #12

Open
PedroFlores199 wants to merge 1 commit into
CVasilakis:betafrom
PedroFlores199:es-translation
Open

PedroFlores199 wants to merge 1 commit into
CVasilakis:betafrom
PedroFlores199:es-translation

Conversation

@PedroFlores199

Copy link
Copy Markdown

Adds complete Spanish (Spain) resources for beta: all 159 translatable strings and 17 plural groups, in values-es/strings.xml of :feature:home and :feature:settings. Spanish is added to LANGUAGES in TvDevice.kt, so the four layout tests check every screen in it, and to the languages PictureTextsTest checks for the megapixel unit (Spanish keeps the default unit, so it needs no integers.xml). docs/TRANSLATIONS.md lists the new language, its resource directories and the adb command that switches the app to it.

The files are laid out like the Greek and Arabic ones: the strings in the English order, without the comments, under a one-line header. Format arguments, the <xliff:g> parts, the U+2068/U+2069 isolates around app names and the D-pad arrows are unchanged. The wording follows the guide: titles, entries and count lines without a period, "fondo" for the background and never for anything else, one name for each thing ("las imágenes de Luncher" for Luncher's pictures, "mosaico" for a tile, "banner del mosaico" for its picture), Dim's levels in Blur's words, informal "tú". The remote's OK key stays "OK" in the hints, and a message's OK answer is "Aceptar", as Android says it in Spanish. Texts on a single line or sharing a row (the rename dialog's three buttons, the picture editors' options, the tile banner editor's title) are kept short.

Each plural has one, many and other, with many the same as other. With targetSdk 36, lint applies CLDR 42's rules, which give Spanish a many form, and MissingQuantity would otherwise fail the build.

The new files were checked with the SDK's standalone lint (9.2.1, minSdk 22, targetSdk 36, -Werror): MissingTranslation, ExtraTranslation, MissingQuantity, UnusedQuantity, ImpliedQuantity, the StringFormat checks, Typos and the Typography checks report no issues. The Gradle tasks (the layout tests in Spanish, :app:lintDebug) were not run locally.

@CVasilakis

Copy link
Copy Markdown
Owner

Thanks a lot for this addition. It will be included on the next release

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants