Skip to content
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

translate InfraOps visualization component (Part 1 - folder pages) #25194

Merged
merged 14 commits into from
Nov 20, 2018

Conversation

tibmt
Copy link
Contributor

@tibmt tibmt commented Nov 6, 2018

translate InfraOps visualization component (Part 1 - folder pages)

Issue #25523

Guidline
Readme

You can also set up a pseudo-locale to see what labels are translated. Pseudo-locale adds diacritical mark to each [A-Za-z] character and duplicates every third character to increase messages length by approx. 33%. It's also used to check whether ui breaks with increased message length or not.

How to use:

Set i18n.locale to en-xa in ./config/kibana.yml
Restart yarn start.

@tibmt tibmt self-assigned this Nov 6, 2018
Copy link
Contributor

@pavel06081991 pavel06081991 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Here is the list of issues. Please through all files and fix by analogy in all files of this MR and in all files which you are going to create new MRs for.

x-pack/plugins/infra/public/pages/404.tsx Show resolved Hide resolved
x-pack/plugins/infra/public/pages/404.tsx Outdated Show resolved Hide resolved
x-pack/plugins/infra/public/pages/error.tsx Outdated Show resolved Hide resolved
x-pack/plugins/infra/public/pages/error.tsx Outdated Show resolved Hide resolved
x-pack/plugins/infra/public/pages/home/index.tsx Outdated Show resolved Hide resolved
x-pack/plugins/infra/public/pages/metrics/index.tsx Outdated Show resolved Hide resolved
x-pack/plugins/infra/public/pages/metrics/layouts/host.ts Outdated Show resolved Hide resolved
x-pack/plugins/infra/public/pages/metrics/layouts/host.ts Outdated Show resolved Hide resolved
@tibmt tibmt added the Feature:Metrics UI Metrics UI feature label Nov 6, 2018
@elasticmachine
Copy link
Contributor

💔 Build Failed

@elasticmachine
Copy link
Contributor

💔 Build Failed

@tibmt
Copy link
Contributor Author

tibmt commented Nov 8, 2018

retest

@elasticmachine
Copy link
Contributor

💔 Build Failed

@elasticmachine
Copy link
Contributor

💚 Build Succeeded

Copy link
Contributor

@maryia-lapata maryia-lapata left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please look at my comments.

.i18nrc.json Outdated Show resolved Hide resolved
x-pack/plugins/infra/public/pages/metrics/index.tsx Outdated Show resolved Hide resolved
x-pack/plugins/infra/public/pages/metrics/layouts/host.ts Outdated Show resolved Hide resolved
x-pack/plugins/infra/public/pages/metrics/layouts/nginx.ts Outdated Show resolved Hide resolved
x-pack/plugins/infra/public/pages/metrics/layouts/nginx.ts Outdated Show resolved Hide resolved
x-pack/plugins/infra/public/routes.tsx Outdated Show resolved Hide resolved
@elasticmachine
Copy link
Contributor

💚 Build Succeeded

@elasticmachine
Copy link
Contributor

💚 Build Succeeded

@elasticmachine
Copy link
Contributor

💚 Build Succeeded

@@ -25,6 +26,8 @@
"src/ui/ui_render/bootstrap/app_bootstrap.js",
"src/ui/ui_render/ui_render_mixin.js",
"x-pack/plugins/monitoring/public/components/cluster/overview/alerts_panel.js",
"x-pack/plugins/monitoring/public/directives/alerts/index.js"
"x-pack/plugins/monitoring/public/directives/alerts/index.js",
"x-pack/plugins/infra/public/utils/loading_state/loading_result.ts",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These files were excluded because i18n validation tool can not parse them due to an issue in babel parser which is used by the tool.

@elasticmachine
Copy link
Contributor

💚 Build Succeeded

@tibmt tibmt added the v6.6.0 label Nov 13, 2018
Copy link
Contributor

@maryia-lapata maryia-lapata left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Member

@weltenwort weltenwort left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for slogging through this long list of labels. ❤️

Since you couldn't derive the semantics of the layouts from just reading this code, I tried to add some samples of ids below, which I hope would be more stable in future iterations of these pages. Let me know if they make sense and provide enough detail to extrapolate to the other labels I didn't comment on.

x-pack/plugins/infra/public/pages/home/toolbar.tsx Outdated Show resolved Hide resolved
x-pack/plugins/infra/public/pages/home/toolbar.tsx Outdated Show resolved Hide resolved
x-pack/plugins/infra/public/pages/logs/toolbar.tsx Outdated Show resolved Hide resolved
x-pack/plugins/infra/public/pages/metrics/layouts/host.ts Outdated Show resolved Hide resolved
x-pack/plugins/infra/public/pages/metrics/layouts/nginx.ts Outdated Show resolved Hide resolved
x-pack/plugins/infra/public/pages/metrics/layouts/pod.ts Outdated Show resolved Hide resolved
x-pack/plugins/infra/public/pages/metrics/layouts/pod.ts Outdated Show resolved Hide resolved
x-pack/plugins/infra/public/pages/metrics/layouts/pod.ts Outdated Show resolved Hide resolved
… intl.formatMessage() and directly wrap some classes by injectI18n()
@elasticmachine
Copy link
Contributor

💔 Build Failed

@tibmt
Copy link
Contributor Author

tibmt commented Nov 15, 2018

retest

@elasticmachine
Copy link
Contributor

💔 Build Failed

@elasticmachine
Copy link
Contributor

💚 Build Succeeded

Copy link
Member

@weltenwort weltenwort left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for accommodating my previous requests. I left just a few suggestions for fixes below.

x-pack/plugins/infra/public/pages/home/index.tsx Outdated Show resolved Hide resolved
x-pack/plugins/infra/public/pages/metrics/layouts/nginx.ts Outdated Show resolved Hide resolved
x-pack/plugins/infra/public/pages/metrics/layouts/nginx.ts Outdated Show resolved Hide resolved
x-pack/plugins/infra/public/pages/metrics/layouts/nginx.ts Outdated Show resolved Hide resolved
x-pack/plugins/infra/public/pages/logs/logs.tsx Outdated Show resolved Hide resolved
x-pack/plugins/infra/public/pages/metrics/index.tsx Outdated Show resolved Hide resolved
@elasticmachine
Copy link
Contributor

💚 Build Succeeded

@elasticmachine
Copy link
Contributor

💚 Build Succeeded

@tibmt tibmt merged commit 8104a02 into elastic:master Nov 20, 2018
@tibmt tibmt deleted the feature/translations/infraOpsPartOne branch November 20, 2018 14:12
tibmt added a commit to tibmt/kibana that referenced this pull request Nov 20, 2018
…lastic#25194)

* translate InfraOps vizualization component (Part 1 - folder pages)

* update translation of Beats Management vizualization component (Part 1 - folder components)

* Update toolbar.tsx

* update translation of Beats Management vizualization component (Part 1 - folder components)

* update translation of Infra Ops vizualization component (Part 1)

* update translation of Infra Ops vizualization component (Part 1)

* update Infra Ops Part 1 - change some ids, change i18n.translate() to intl.formatMessage() and directly wrap some classes by injectI18n()

* update Infra-I - add static to displayName, update some ids
@elasticmachine
Copy link
Contributor

💚 Build Succeeded

tibmt added a commit that referenced this pull request Nov 21, 2018
…25194) (#25936)

* translate InfraOps vizualization component (Part 1 - folder pages)

* update translation of Beats Management vizualization component (Part 1 - folder components)

* Update toolbar.tsx

* update translation of Beats Management vizualization component (Part 1 - folder components)

* update translation of Infra Ops vizualization component (Part 1)

* update translation of Infra Ops vizualization component (Part 1)

* update Infra Ops Part 1 - change some ids, change i18n.translate() to intl.formatMessage() and directly wrap some classes by injectI18n()

* update Infra-I - add static to displayName, update some ids
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants