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
gravel 1b77e5ffe1
Incorporate unused language data
2 years ago
..
README.md Integrate languages submodule 2 years ago
language_flags.php Incorporate unused language data 2 years ago

README.md

https://sessioncommunities.online language associations

Contribute

To contribute, send your changes in the Web Development Community, or fork this repository and submit a pull request with your changes.

Language entries

Communities are identified by a string of the form token+pubkey[:4], where:

  • token is the internal name of the community room,
  • + is a plus sign,
  • pubkey[:4] are the first four characters of the server public key.

Example

Given the following invite link: http://open.getsession.org/session?public_key=a03c383cf63c3c4efe67acc52112a6dd734b3a946b9545f488aaa93da7991238

  • the token is session,
  • the first four characters of the public key are a03c,
  • so the unique identifier is session+a03c.

To add the language of this server, you would search for a03c and add or change the entry at session+a03c:

 // https://open.getsession.org/
 $server_languages[] = array(
    "crypto+a03c"                   => "🇬🇧",
    "lokinet+a03c"                  => "🇬🇧",
    "oxen+a03c"                     => "🇬🇧",
    "session-farsi+a03c"            => "🇮🇷",
    "session-updates+a03c"          => "🇬🇧",
    "session+a03c"                  => "🇬🇧"
 );

To add a new server, copy the block of an existing server and remove all its entries.

Language flags can be copied from https://www.alt-codes.net/flags.