Kibana Globalization - Phase 2#8766
Conversation
|
Can one of the admins verify this patch? |
|
Dependent on #7545 |
21255b2 to
8fe6204
Compare
|
Can one of the admins verify this patch? |
3a33bff to
a6cd076
Compare
c6830ec to
cc72df8
Compare
|
@spalger PR ready for review. |
|
jenkins, test this |
webpackShims/ui-bootstrap.js
Outdated
There was a problem hiding this comment.
No need for the ['$translateProvider', ...] wrapper around this provider.
webpackShims/ui-bootstrap.js
Outdated
There was a problem hiding this comment.
IIRC the language is not variable at this point, so perhaps we could simplify this (and remove the translationLoader factory) by just using $translateProvider.translations('default', chrome.getTranslations())
There was a problem hiding this comment.
Good catch, thanks, Means I can now remove the custom loader.
src/ui/index.js
Outdated
There was a problem hiding this comment.
It may not be necessary, but if angular-translate requires the language code for the translations it's providing, perhaps we could update getTranslationsForRequest to return the resolved language code as well.
There was a problem hiding this comment.
Good point but unnecessary now.
webpackShims/ui-bootstrap.js
Outdated
There was a problem hiding this comment.
This file is specifically for the ui-bootstrap dependency. I think it would be better if we moved the new logic into src/ui/public/chrome/api/translations.js
There was a problem hiding this comment.
Due to loading the translations directly with angular-translate then the custom loader factory function is now obsolete.
webpackShims/angular.js
Outdated
There was a problem hiding this comment.
no need to override the default import. We minify the distributable and prefer non-minified code for development.
There was a problem hiding this comment.
Ok, sure. Removed.
TRANSLATION.md
Outdated
There was a problem hiding this comment.
Let's move this into docs/development/plugin/development-internationalization.asciidoc.
There was a problem hiding this comment.
I'll hold back my review of the docs until we move them there, since the transition will wipe out all comments anyway.
There was a problem hiding this comment.
Ok, moved and converted to an asciidoc.
There was a problem hiding this comment.
I love the intention here, but I'm not a fan of having an unused template as a part of the source. Fixtures are for tests, so if we wanted to make use of them that way I would feel better about it, but this would be best as a pull-request to generator-kibana-plugin
There was a problem hiding this comment.
We aim to amuse! :) I have made changes in the other repo as elastic/generator-kibana-plugin#45
cc72df8 to
4926fab
Compare
This commit is part og Kibana globalization and PR elastic/kibana#8766
|
@spalger Thanks for #8766 (review) . Comments updated and ready for review again. |
- use translate directive in HTML attribute instead of body for variable replacement
Updates after review comments: elastic#8766 (review)
* Otherwise, the '$http GET' to fetch translation resources shows up as a deferred task here. * Referenced from: srl295@5d9959c
Updates following review comments: elastic#8766 (review)
Update the following review comments: elastic#8766 (review) elastic#8766 (review)
|
lol @Bargs. Added strings to the translation file and then got distracted! Committed the changes now. |
|
jenkins, test this |
* Integrate angular-translate globalization framework with i18n engine * Provide template for enabling translations in an AngularJS view by translating a view * Verification tool for translation keys used in angular-translate * Documentation
…38daaefc30e21bdd18d1ce2263923cfe12a * Integrate angular-translate globalization framework with i18n engine * Provide template for enabling translations in an AngularJS view by translating a view * Verification tool for translation keys used in angular-translate * Documentation # Conflicts: # src/core_plugins/kibana/public/management/sections/indices/_create.html # src/ui/public/chrome/chrome.js # tasks/build/verify_translations.js # tasks/utils/i18n_verify_keys.js
Phase 2
Purpose
Translations Available Client Side
hose that want to enable translation in Kibana
those that want to contribute translations to Kibana
those that want to create a Kibana Plugin
Translation Identifiers Added to Kibana UI
BEFORE (HTML)
AFTER (HTML)
Tool for Verifying All Translations have Translatable Strings (Update)
Translation Plugin Generator
Deliverable