-
Notifications
You must be signed in to change notification settings - Fork 4
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
Provide all translation related functions #542
Conversation
* Provide both functions, code is mostly taken from server some minor cleanup * Added test cases * Added *not* exported `registry` module for loading translations (so this is not exposed to users) Signed-off-by: Ferdinand Thiessen <rpm@fthiessen.de>
405a2d4
to
fe15e77
Compare
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.
See comments!
Thank you so much for tackling this @susnux !!!!!!
😊 About tabs instead of spaces: All current souces in this library use spaces (see unchanged |
I have no preferences, as long as we're consistent. |
eea174b
to
449ce12
Compare
@skjnldsv I now unified the indention style in all changed files, but I would prefer to change all other files after this PR is merged to keep the changes small / clear. I think I resolved all comments, except the |
449ce12
to
291c4f1
Compare
* This provides all functions previously available within the `OC.L10N` namespace * Including translation regestry functions and translation bundle loading * Restructured the source files for better comprehensibility Signed-off-by: Ferdinand Thiessen <rpm@fthiessen.de>
291c4f1
to
6d66daf
Compare
This moves all translation related functions from nextcloud server (
OC.L10N
) into this library, this allows apps using this library to run tests without mocking those functions.We the could use this library within server instead.