From 471a7c425e4f815fd5af74e8e4fbf42630b91b2e Mon Sep 17 00:00:00 2001 From: Luiz Marin <67489841+luizcmarin@users.noreply.github.com> Date: Wed, 22 May 2024 11:29:56 -0300 Subject: [PATCH] Fix docs (#140) Co-authored-by: Sergei Predvoditelev --- README.md | 12 ++++++------ composer.json | 14 ++++++++++++-- 2 files changed, 18 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index b2d9c76..9631582 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@

- + Yii

Yii Message Translator


@@ -37,9 +37,9 @@ PHP arrays or GNU gettext. Message formatters provide extra syntax that is recog #### Message sources -* [translator-message-php](https://github.com/yiisoft/translator-message-php) - PHP file message storage. -* [translator-message-db](https://github.com/yiisoft/translator-message-db) - Database message storage. -* [translator-message-gettext](https://github.com/yiisoft/translator-message-gettext) - gettext message storage. +- [translator-message-php](https://github.com/yiisoft/translator-message-php) - PHP file message storage. +- [translator-message-db](https://github.com/yiisoft/translator-message-db) - Database message storage. +- [translator-message-gettext](https://github.com/yiisoft/translator-message-gettext) - gettext message storage. ## Built-in message formatters @@ -277,14 +277,14 @@ $translator->setLocale($newDefaultLocale); echo $translator->getLocale(); ``` -### Get a new Translator instance with a locale to be used by default in case locale isn't specified explicitly. +### Get a new Translator instance with a locale to be used by default in case locale isn't specified explicitly ```php $newDefaultLocale = 'de-DE'; echo $translator->withLocale($newDefaultLocale); ``` -### Get a new Translator instance with a category to be used by default in case category isn't specified explicitly. +### Get a new Translator instance with a category to be used by default in case category isn't specified explicitly ```php $newDefaultCategoryId = 'module2'; diff --git a/composer.json b/composer.json index 59e885d..a751efa 100644 --- a/composer.json +++ b/composer.json @@ -11,12 +11,22 @@ "license": "BSD-3-Clause", "support": { "issues": "https://github.com/yiisoft/translator/issues?state=open", + "source": "https://github.com/yiisoft/translator", "forum": "https://www.yiiframework.com/forum/", "wiki": "https://www.yiiframework.com/wiki/", "irc": "ircs://irc.libera.chat:6697/yii", - "chat": "https://t.me/yii3en", - "source": "https://github.com/yiisoft/translator" + "chat": "https://t.me/yii3en" }, + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/yiisoft" + }, + { + "type": "github", + "url": "https://github.com/sponsors/yiisoft" + } + ], "require": { "php": "^8.0", "psr/event-dispatcher": "1.0.0",