Une astuce gratuite :
Si vous désirez écrire en #Kabyle, il paraît que la recherche sur Mastodon se fait uniquement sur les langues ayant un code ISO à deux caractères …
Vous savez ce qu'il vous reste à faire …
S'emparer du Géorgien [ka] 👏👀
Une astuce gratuite :
Si vous désirez écrire en #Kabyle, il paraît que la recherche sur Mastodon se fait uniquement sur les langues ayant un code ISO à deux caractères …
Vous savez ce qu'il vous reste à faire …
S'emparer du Géorgien [ka] 👏👀
I tried fra and it didn't work for french but fr did work?
@ButterflyOfFire OK, that's a bug in the description by @feditips because I just tested on my server and 3-letter codes are definitely working
@gunchleoc I don't know, I trust what fedi tips said 🤣
@ButterflyOfFire OK, that sounds like a bug to me - you should be able to search all languages that are available as a posting language.
@ButterflyOfFire Je comprends pas le problème. Peut-être mon français est trop mauvais 🤭
Georgian ISO code : ka [kartuli]
Kabyle code : kab
Mastodon search `language:xx` supports 2 letter language code only.
So, that messages in kabyle could be searchable, I know what to do 👀 : I'll toot in Georgian [but in kabyle], of course 🤗
Au fait, on aurait jamais dû standardiser le Kabyle en [kab] mais en [taq] pour Taqbaylit.
Mais à l'époque, on m'a signifié que j'étais fou.
Ah ben oui, faut bien se débrouiller dans la vie 🤭
I looked at the ISO lists, but there aren't any of them that mix 2 and 3 letters. Is Mastodon using a non-standard list?
@feditips @ButterflyOfFire Mastodon does not define alternative codes, so 3-letter codes are only available for languages that don't have a 3-letter code.
The code lists are in https://github.com/mastodon/mastodon/blob/main/app/helpers/languages_helper.rb
The codes listed in ISO_639_1, ISO_639_3 and ISO_639_1_REGIONAL are available as posting languages, the codes listed in REGIONAL_LOCALE_NAMES are not.
ISO_639_1 is 2-letter codes
ISO_639_3 is 3-letter codes for languages that aren't included in the ISO 639-1 standard
ISO_639_1_REGIONAL is 2-letter codes + country code - I added that for the Chinese languages that lack their ow language code and are all bunched under zh.
I understand, but ISO_639_3 includes the languages from ISO_639_1 but with three letter codes. It's not obvious to ordinary users which list they should be looking at.
Basically, I'm trying to find a single easy-to-read list where people can look up the correct code 😄
Yeah, that's a good tip, thanks!
I think to give people options, I'll publish a complete list over on the fedi.tips site based on the github link you sent 👍
@feditips @ButterflyOfFire I guess the easiest way to find the codes is to use the language selection in the posting box.
Here's the list!
@feditips @gunchleoc :blobheart:
@feditips @ButterflyOfFire Thanks!
Found a bug, sr-Latn is not available, just sr (Cyrillic)
Hm... I just copied info straight off the Mastodon file of language settings... maybe they haven't actually added all those to the release code?
Oh no. Okay. Do you have a link I can check this with? I was basing it on the previous link you had 😁
@feditips @ButterflyOfFire The REGIONAL_LOCALE_NAMES array is not included in SUPPORTED_LOCALES 😉
@feditips @ButterflyOfFire That's the exact same link. There are 4 arrays in it; only the first 3 arrays are included in the posting languages.
Ahhh ok, so these ones are not in postsing languages?
'en-GB': 'English (British)',
'es-AR': 'Español (Argentina)',
'es-MX': 'Español (México)',
'fr-QC': 'Français (Canadien)',
'pt-BR': 'Português (Brasil)',
'pt-PT': 'Português (Portugal)',
'sr-Latn': 'Srpski (latinica)',
@feditips @ButterflyOfFire I can't reproduce that - it reroutes to en for me. Maybe those osts are made with an older version of Mastodon or are coming from a different software?
Ahh, yeah, that's possible!
GNU social JP is a social network, courtesy of GNU social JP管理人. It runs on GNU social, version 2.0.2-dev, available under the GNU Affero General Public License.
All GNU social JP content and data are available under the Creative Commons Attribution 3.0 license.