MichaelChirico / potools

Tools for working with translations in R
https://michaelchirico.github.io/potools/
58 stars 3 forks source link

LANGUAGE: sv (Swedish) #239

Closed HenrikBengtsson closed 2 years ago

HenrikBengtsson commented 2 years ago

Here's the language info for https://l10n.gnome.org/teams/sv:

> potools::translate_package(languages = "sv")
Generating en@quot translations
'sv' is not a known language. Please help supply some metadata about it. You can check https://l10n.gnome.org/teams/<language>
How would you refer to this language in English?
Swedish
How would you refer to this language in the language itself?
Svenska
How many pluralizations are there for this language [nplurals]?
2
What is the rule for deciding which plural applies as a function of n [plural]?
(n!=1)
Thanks! Please file an issue on GitHub to get this language recognized permanently
MichaelChirico commented 2 years ago

Committed straight to master by accident... PTAL: ec0ff9bda7b6a605cc8aa9e93d7e357c379bbb50

Thanks!

HenrikBengtsson commented 2 years ago

Thanks, but there's a typo: Swedith

HenrikBengtsson commented 2 years ago

BTW, in Swedish, "Svenska" does not have to be capitalized, i.e. in Swedish we'd use "svenska". I'm sure it's the same in other languages too, e.g. Danish/dansk.

When I was prompted for this, that was not clear to me, so I had to peek into the code, and then I found potools:::.potools$KNOWN_LANGUAGES and followed the standard used there. Is proper capitalization important for the full_name_native field?

MichaelChirico commented 2 years ago

IIRC the goal of that field is to display that to translators so whichever capitalization is more natural should be used. editing now