Skip to content

Commit 1e16077

Browse files
Use po4a for id and es langs and change directory structure (#251)
1 parent 04f90e6 commit 1e16077

File tree

259 files changed

+28630
-5492
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

259 files changed

+28630
-5492
lines changed

.github/workflows/translation.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,11 @@ jobs:
2424
image: arduanovdanil/po4a-fork:v0.73
2525
options: -v ${{ github.workspace }}:/src
2626
run: |
27-
cd guide
27+
cd _translations/guide
2828
po4a po4a.cfg
2929
3030
- name: Commit changed files
3131
uses: stefanzweifel/git-auto-commit-action@v5
3232
with:
3333
commit_message: Update translation
34-
file_pattern: 'guide'
34+
file_pattern: '_translations guide'

014-docs.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,11 @@ Translation algorithm:
3131

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

0 commit comments

Comments
 (0)