Skip to content

[5.x] Kibana Globalization - Phase 2#10819

Merged
Bargs merged 1 commit into5.xfrom
jasper/backport/8766/5.x
Mar 20, 2017
Merged

[5.x] Kibana Globalization - Phase 2#10819
Bargs merged 1 commit into5.xfrom
jasper/backport/8766/5.x

Conversation

@elastic-jasper
Copy link
Contributor

Kibana Globalization - Phase 2

Backports PR #8766

Commit 1:
Add boilerplate plugin

Commit 2:
Load translations on the client side

Translations need to be loaded on the client side so that they can be used the
globalization frameworks like 'angular-translate'. This translations are made
available by embedding the translations in the initial HTML payload.

Commit 3:
Update translation plugin template for the change in how translations are published

Commit 4:
Add angular-translate as the Angular globalization framework

The angular-translate framework integrates with the Kibana i18n engine whereby it
consumes translations from the i18n engine and not the translations directly.
This is achieved by using a custom loader which calls the client side getTranslations()
method. This method return the translations loaded by the i18n engine during instantation
of Kibana server instance.

Commit 5:
Extract translation strings from the index pattern create page into translation file

This commit is where the strings are now localized for this page and therefore will be loaded by
the Angular globalization framework. It also associates a translation ID to each string block and
therefore enables translation of the strings into different languages. It also provides the
pattern for localizing other pages in the UI.

Commit 6:
Add Kibana translation documentation

Commit 7:
Update "translate" tag syntax

  • use translate directive in HTML attribute instead of body for variable replacement

Commit 8:
Add new translation key pattern to verify task

Commit 9:
Fix syntax error in create view

Commit 10:
Update the translation verification to handle separate translation patterns

Commit 11:
Update after review

Updates after review comments: #8766 (review)

Commit 12:
Update internationalization documentation

Commit 13:
[test] call $timeout.flush() before debounce tests

Commit 14:
Update after review

Updates following review comments:
#8766 (review)

Commit 15:
Merge extract and verify translation build tasks into one task

Commit 16:
Update document after new changes for js and info string translations

Commit 17:
Update after review

Update the following review comments:
#8766 (review)
#8766 (review)

Commit 18:
Replace the translation string with the translation IDs in index create pattern view

@elastic-jasper elastic-jasper added backport This PR is a backport of another PR has conflicts labels Mar 20, 2017
* 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
@Bargs Bargs force-pushed the jasper/backport/8766/5.x branch from 8955b7e to 9e05f4f Compare March 20, 2017 18:19
@Bargs
Copy link
Contributor

Bargs commented Mar 20, 2017

jenkins, test this

@Bargs Bargs merged commit a5871e8 into 5.x Mar 20, 2017
@epixa epixa deleted the jasper/backport/8766/5.x branch March 23, 2017 13:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport This PR is a backport of another PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants