elastic / kibana

Your window into the Elastic Stack
https://www.elastic.co/products/kibana
Other
19.73k stars 8.14k forks source link

Kibana Globalization #6515

Closed srl295 closed 6 years ago

srl295 commented 8 years ago

Kibana Globalization

Note: These requirements were originally written up over a year ago. Take any specific implementation details with a grain of salt. Phases that were already implemented should be reevaluated to make sure they still make sense, especially in light of the new kibana platform work.

Purpose

Architecture Diagram

This was our original plan, but it might need to change dramatically for the new platform

Design

Phase 1

Note this phase was completed, but it's possible the implementation might need to change for the new platform. Most of the code lives here

Purpose

Decide Language for Translation Algorithm

I18n Class

en.json

    {
        "UI-WELCOME_MESSAGE": "Loading Kibana",
        "UI-WELCOME_ERROR": "Kibana did not load properly. Check the server output for more information."
    }

UiI18n Class

Tool for Verifying All Translations have Translatable Strings

Deliverable

Phase 2

Purpose

Translations Available Client Side

Translation Identifiers Added to Kibana UI

BEFORE (HTML)

    <div class="sidebar-list">
    …

    <div class="sidebar-list-header">
        <h5>Selected Fields</h5>
    </div>

AFTER (HTML)

    <div class="sidebar-list">
    …

    <div class="sidebar-list-header">
        <h5 translate="FIELDS_SELECTEDFIELDS"></h5>
    </div>

Tool for Verifying All Translations have Translatable Strings (Update)

Translation Plugin Generator

Deliverable

Phase 3

Purpose

Translation Identifiers Added to Kibana UI

Deliverables

Phase 4

Purpose

Handling Language Packs

Deliverables

Blockers

Open Questions/Issues

History

This section has links to prior versions of this issue text.

Authors

sunneyoy commented 6 years ago

Looking forward to the Chinese version.

udyr-f commented 6 years ago

Have you already supported Chinese? config/kibana.yml i18n.defaultLocale: "zh_CN" This configuration does not work, so I use this tool now. Kibana_Hanization

kimjoar commented 6 years ago

@sunmaolin Sorry, we currently only support English.

epixa commented 6 years ago

I'm going to close this issue out in favor of #17201. While that is a much newer issue than this one, it contains a lot of information about our current localization effort, and it's best if we don't fragment the discussion across multiple issues.

Many of the details in that other ticket are based on all the things we learned from this effort in particular, so thank you to the great folks at IBM and everyone else that has been involved in getting us to this point!