-
Notifications
You must be signed in to change notification settings - Fork 48
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
Allow the tour to be used from the a language directory - fixes #461 #470
Conversation
9f62b2c
to
42d8cce
Compare
42d8cce
to
ba33107
Compare
Seems like we shouldn't use squash commits GitHub if we want to avoid conflicts with PRs that contain/depend on the same commit. |
ba33107
to
9d36157
Compare
With more and more translations being started, I think this would be very nice to have. |
} | ||
language_[language] = langMeta; | ||
|
||
auto i = 0; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh it seems there is an indentation issue here :/
9d36157
to
abeead5
Compare
{ | ||
enforce(attr in root, "'" ~ attr ~ "' point required in language-specific yaml"); | ||
mixin("langMeta." ~ attr ~ " = root[attr].as!string;"); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this might not the best serialization solution, but as long as we don't have many parameters it should work for us.
@ZombineDev could you have a quick look at this? I would like to release 1.0.2 with this feature for our translators. FYI: @stonemaster is currently busy and I take the full blame for errors caused by this PR. |
Ok, I'll try to do a review later tonight. |
I will be busy over the next days & would like to release 1.0.2 before, so I will merge this now. Sorry about violating our review protocol here. |
This allows the following:
and more importantly:
-l
option is used, the prebundled languages will be ignoredThis is based on #469.
@stonemaster Could you release a 1.0.2 version after this has been merged because this allows with #469 the tour to be run offline and with this PR to be used conveniently for translators.