Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/translation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,11 @@ jobs:
image: arduanovdanil/po4a-fork:v0.73
options: -v ${{ github.workspace }}:/src
run: |
cd guide
cd _translations/guide
po4a po4a.cfg

- name: Commit changed files
uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: Update translation
file_pattern: 'guide'
file_pattern: '_translations guide'
8 changes: 4 additions & 4 deletions 014-docs.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,11 @@ Translation algorithm:

- Install an application for working with `.po` translation files. For example, [Poedit](https://poedit.net/), [Lokalize](https://apps.kde.org/ru/lokalize/),
[Gtranslator](https://wiki.gnome.org/Apps/Gtranslator) or another.
- Find folder with the name of the file you want to translate in `/guide/po`. Note that if the source file
is in a subfolder, the subfolder name is appended to the folder and separated by an underscore, for example,
for translating `guide/en/concept/aliases.md` file find `guide/po/concept_aliases.md` folder.
- Find file what you want to translate in `_translations/guide/{lang}`. Note that if the source file
is in a subfolder, the subfolder name is appended to the file name and separated by an underscore, for example,
for translating `guide/en/concept/aliases.md` file find `_translations/guide/{lang}/concept_aliases.md.po` file.
- Open the file with the `.po` extension in `Poedit` from the folder with the desired localization,
for example `guide/po/intro_what-is-yii.md/ru/intro_what-is-yii.md.ru.po`. If there is no localization yet,
for example `_translations/guide/ru/intro_what-is-yii.md.po`. If there is no localization yet,
create an issue.
- Translate necessary strings and push the changes
- Open a pull request to the main repository
Expand Down
Loading
Loading