You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
sessioncommunities.online/languages/README.md

32 lines
1.4 KiB
Markdown

# Language information on sessioncommunities.online
## Contribute
To help label Communities by language, send your labelings to us ([see contact info](../README.md#contact-us)), or fork this repository and submit a pull request with your changes (account required).
To make language tags a native feature, support this issue on Oxen Github.
- <https://github.com/oxen-io/session-pysogs/issues/186>
## File format
Communities are each identified by a short string. You can copy this identifier using the "Copy Community ID" button from within Community details. It should be of the form `roomname+xxxx`.
Language labels for communities are grouped by server for easy navigation:
```php
// https://open.getsession.org/
$server_languages[] = array(
"crypto+a03c" => "🇬🇧",
"lokinet+a03c" => "🇬🇧",
"oxen+a03c" => "🇬🇧",
"session-farsi+a03c" => "🇮🇷",
"session-updates+a03c" => "🇬🇧",
"session+a03c" => "🇬🇧"
);
```
To label a Community, you would search for the `xxxx` suffix (in this case `a03c`) in the [flags file](./language-flags.php) and add the appropriate entry.
If you cannot any labels for this code, copy an existing block from another server & replace the entries with your own. If you have trouble entering language flags on your keyboard, you may find it helpful to copy them from <https://www.alt-codes.net/flags>.