-
-
Notifications
You must be signed in to change notification settings - Fork 936
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Moving towards weblate #3: Tutorial transition #1256
Merged
samaaron
merged 24 commits into
sonic-pi-net:master
from
hzulla:weblate-tutorial-transition
May 24, 2016
Merged
Moving towards weblate #3: Tutorial transition #1256
samaaron
merged 24 commits into
sonic-pi-net:master
from
hzulla:weblate-tutorial-transition
May 24, 2016
Conversation
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
(Will be generated from translation files in the future.)
A more detailed look into the translation workflow:
|
Incredible work, thanks! |
11 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This makes the tutorial translation possible through Weblate.
The existing translated Markdown versions have been removed and imported to
.po
files, which is the format used by Weblate (and similar translation workflow services). I have tried to import the existing (partially incomplete) translations as faithfully as possible, but it still requires a proofreading afterwards. That proofreading only needs to be done once.The English Markdown files have been moved back into
doc/etc/tutorial
.The
i18n-tool.rb
script is used to generate the translated versions indoc/etc/generated/<lang>/tutorial/
during build.The
i18n-tool.rb
script also creates the.pot
translation template file from the English markdown, which is later used to merge the updated English tutorial texts with the existing translations. The language file update process is described as usually inTRANSLATION-WORKFLOW.md
.rmsgmerge
will complain about fuzzy (= guessed) translations during the merge, this is normal and intended behaviour.The developer experience to build Sonic Pi with this is currently still sub-par, as
i18n-tool.rb
adds another step to the build process and its source pretty hackish with some hardcoded file locations.I promise to clean this up, as @Factoid and I want to work on the build scripts together after this. But I wanted to get the tutorial into weblate quickly for the awesome and impatient translators. :-D
If you agree and merge this, I can then ask the Weblate admins to turn on the tutorial translation component on their site.