aj3423 / SpamBlocker

Android Call/SMS blocker.
MIT License
469 stars 25 forks source link

Asking for new language support: Galician (gl, gl_ES) #132

Closed xmgz closed 1 month ago

xmgz commented 1 month ago

hi, as seen in README, please would you add galician language to the list? thank you.

galician language has ISO code «gl» or most likely in android «gl_ES»

thank you

aj3423 commented 1 month ago

The translating should be fine, but I can't find the emoji for Galician, can you show me the correct emoji? Please note that it's not an image or icon, it should be an emoji. If there isn't any, I can use a transparent emoji as a placeholder for gl. There's a post from other project, maybe helpful: https://github.com/rms-support-letter/rms-support-letter.github.io/pull/4703

aj3423 commented 1 month ago

supported in the action build: https://github.com/aj3423/SpamBlocker/actions/runs/10929511405

xmgz commented 1 month ago

thank you @aj3423

currently there is no official galician emoji flag

Transparent placeholder and name would be fine,

but please consider this alternative:

https://en.wikipedia.org/wiki/Regional_indicator_symbol#Emoji_flag_sequences

On some systems, two-letter country codes may appear instead of flags.[5]

A pair of regional indicator symbols is referred to as an emoji flag sequence (although it represents a specific region, not a specific flag for that region)

Galicia is not one of those official regions, but taking in consideration ISO 3166 alpha-2

ISO 3166-1 alpha-2 codes are two-letter country codes defined in ISO 3166-1, part of the ISO 3166 standard[1] published by the International Organization for Standardization (ISO), to represent countries, dependent territories, and special areas of geographical interest. They are the most widely used of the country codes published by ISO (the others being alpha-3 and numeric), and are used most prominently for the Internet's country code top-level domains (with a few exceptions).

and TDL for Galicia is .gal then you can use Unicode for gal (prefered, IMO) or gl (as in Android, but gl is for Greenland) so you will use two or three unicode characters (letters) instead of one (a flag)

example

🄶🄰🄻 (as in internet domains) or 🅶🅻 (as in Android's languages, shorter)

using three characters may break UI layout though. It's just a suggestion.

anyway, thank you for this app too.

aj3423 commented 1 month ago

Thanks for the information, I'll take the preferred TDL, how about this: image

Done in the action build: https://github.com/aj3423/SpamBlocker/actions/runs/10936901349