This repository has been archived by the owner on May 27, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
use po4a to make all docs translatable on Weblate and others
This uses po4a to convert Markdown documents into gettext .po files, while adding key metadata and hiding bits that the translators don't need to see. For the deep dive, see: https://guardianproject.info/2020/04/23/figuring-out-crowdsourced-translation-of-websites/ fsfe/reuse-website#26
- Loading branch information
Showing
5 changed files
with
4,658 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
|
||
# po4a auto-generated markdown files from translations | ||
[a-z][a-z]/*.md | ||
[a-z][a-z][a-z]/*.md | ||
[a-z][a-z][a-z]_[A-Z]*/*.md | ||
[a-z][a-z]_[A-Z]*/*.md |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
[po4a_langs] en | ||
[po4a_paths] po/reuse-docs.pot $lang:po/reuse-docs.$lang.po | ||
|
||
[options] opt:"--addendum-charset=UTF-8" opt:"--localized-charset=UTF-8" opt:"--master-charset=UTF-8" opt:"--master-language=en_US" opt:"--msgmerge-opt='--no-wrap'" opt:"--porefs=file" opt:"--wrap-po=newlines" | ||
|
||
[po4a_alias:markdown] text opt:"--option markdown" opt:"--option yfm_keys=title" opt:"--addendum-charset=UTF-8" opt:"--localized-charset=UTF-8" opt:"--master-charset=UTF-8" opt:"--keep=100" | ||
|
||
[type: markdown] CHANGELOG.md $lang:$lang/CHANGELOG.md | ||
[type: markdown] README.md $lang:$lang/README.md | ||
[type: markdown] faq.md $lang:$lang/faq.md | ||
[type: markdown] spec.md $lang:$lang/spec.md | ||
[type: markdown] tutorial.md $lang:$lang/tutorial.md |
Oops, something went wrong.