From 8230e32637bdd22258e589f8b17e628634c1d3dc Mon Sep 17 00:00:00 2001 From: Fabio Ivona Date: Fri, 26 Apr 2024 12:08:41 +0200 Subject: [PATCH] translators credits --- README.md | 2 ++ docs/17.community/2.translating.md | 26 +++++++++++++++++++ .../{2.releases.md => 3.releases.md} | 0 .../{3.changelog.md => 4.changelog.md} | 0 4 files changed, 28 insertions(+) create mode 100644 docs/17.community/2.translating.md rename docs/17.community/{2.releases.md => 3.releases.md} (100%) rename docs/17.community/{3.changelog.md => 4.changelog.md} (100%) diff --git a/README.md b/README.md index 12203d5e..37b35b5d 100644 --- a/README.md +++ b/README.md @@ -81,6 +81,7 @@ Please review [our security policy](../../security/policy) on how to report secu ## Credits - [Fabio Ivona](https://github.com/defstudio) +- [def:studio team](https://github.com/defstudio) - [Andrea Marco Sartori](https://github.com/cerbero90) for his cool ideas - [Alberto Pieripolli](https://github.com/trippo) Pest badge - [Joris Drenth](https://github.com/jorisdrenth) Docs fix and upgrade @@ -92,6 +93,7 @@ Please review [our security policy](../../security/policy) on how to report secu - [Andrey Helldar](https://github.com/andrey-helldar) Russian - [Joris Drenth](https://github.com/jorisdrenth) Dutch - [Moayed Alhagy](https://github.com/moayedalhagy) Arabic +- [Rafael](https://github.com/rjmo) Portuguese ## License diff --git a/docs/17.community/2.translating.md b/docs/17.community/2.translating.md new file mode 100644 index 00000000..1be8b4be --- /dev/null +++ b/docs/17.community/2.translating.md @@ -0,0 +1,26 @@ +--- +title: 'Translating' +--- + +Telegraph interacts with Telegram users is multiple ways, in order to offer a better user experience, it's responses can be localized in the user's language: + +```php +//in webhook + +App::setLocale($this->message->from()->languageCode()); + +$this->reply(__('Hello')); // Ciao! + +``` + +Anyone can contribute to the supported languages by creating a folder in `resources/lang`, named after the translated language code and adding his own translation files (better if taken from the `resources/lang/en` folder) + +## Translation Credits + +- Italian [def:studio team](https://github.com/defstudio) +- Arabic [Moayed Alhagy](https://github.com/moayedalhagy) +- Dutch [Joris Drenth](https://github.com/jorisdrenth) +- Portuguese [Rafael](https://github.com/rjmo) +- Russian [Andrey Helldar](https://github.com/andrey-helldar) +- Spanish [Tievo](https://github.com/Tievodj) +- Ukrainian [ihorrudnix](https://github.com/ihorrudnix) diff --git a/docs/17.community/2.releases.md b/docs/17.community/3.releases.md similarity index 100% rename from docs/17.community/2.releases.md rename to docs/17.community/3.releases.md diff --git a/docs/17.community/3.changelog.md b/docs/17.community/4.changelog.md similarity index 100% rename from docs/17.community/3.changelog.md rename to docs/17.community/4.changelog.md