Skip to content

Latest commit

 

History

History
89 lines (65 loc) · 3.13 KB

翻译.md

File metadata and controls

89 lines (65 loc) · 3.13 KB

Kibana翻译文档

1. Kibana 主页及其等待页面图标更换

等待页面文字更换:src\ui\views\ui_app.jade

主页Log更换:\src\ui\public\images\kibana.svg

主页css文件修改:\src\ui\public\chrome\directives\global_nav.less

主页左边栏文字:\src\core_plugins\kibana\index.js

2. Kibana Timepicker汉化(Dashboard页面)

Timepicker 相关内容更换:\src\ui\public\timepicker\timepicker.html

      <div class="localDropdownTitle">请选择时间范围</div>
      <div class="row">
        <div class="col-md-2">
          <ul class="nav nav-pills nav-stacked kbn-timepicker-modes">
            <li ng-class="{active: mode === 'quick' }">
              <a ng-click="setMode('quick')">快速查找</a>
            </li>
            <li ng-class="{active: mode === 'relative' }">
              <a ng-click="setMode('relative')">区间时间(至今日)</a>
            </li>
            <li ng-class="{active: mode === 'absolute' }">
              <a ng-click="setMode('absolute')">区间时间</a>
            </li>
          </ul>
        </div>

Timepicker 相关js内容更换: \src\ui\public\timepicker\quick_ranges.js

  { from: 'now/d',    to: 'now/d',    display: '今天',                 section: 0 },

Timepicker 顶部导航刷新:\src\ui\public\timepicker\kbn_gobal_timepicker.html

    <span ng-show="timefilter.refreshInterval.value === 0">
      <i class="fa fa-repeat"></i> 自动刷新
    </span>

Timepicker Refresh页面汉化:\src\ui\public\timepicker\refresh_interval.js

{ value : 5000, display: '5 秒', section: 1},

3. Kibana Dashboard汉化

Dashboard主页面汉化:\src\core_plugins\kibana\public\dashboard\index.html

	<div ng-show="!state.panels.length" class="text-center start-screen">
    	<h2>准备好开始了吗?</h2>
    	<p>点击 <a class="btn btn-xs navbtn-inverse" ng-click="kbnTopNav.open('add'); toggleAddVisualization = !toggleAddVisualization" aria-label="Add visualization">添加</a> 按钮添加到当前的仪表盘中 <br/>如果你没有配置相关的 <a href="#/visualize" title="Visualize">"可视化图表"</a> 请先创建你的可视化图表</p>
 	</div>

Dashboard各子页面:\src\core_plugins\kibana\public\dashboard\partials

Dashboard分享页面:\src\ui\public\share\views\share.html

4.Kibana Discover汉化

Discover各页面汉化:\src\core_plugins\kibana\public\discover

5.Kibana Visualization汉化

Visualization各页面汉化:\src\core_plugins\kibana\public\visualize

Visualization顶部导航栏:\src\core_plugins\kibana\public\visualize\editor\editor.js

Visualization Create New Visualization页面修改: src\core_plugins\kbn_vislib_vis_types\public

  • histogram

  • line

  • pie

  • area

  • tile_map

Visualization Data table汉化:\src\core_plugins\table_vis\public\table_vis.js

Visualization Markdown widget汉化:\src\core_plugins\markdown_vis\public\markdown_vis.js

Visualization Metric汉化:\src\core_plugins\metric_vis\public\metric_vis.js

Visualization Tag cloud汉化:\src\core_plugins\tagcloud\public\tag_cloud_vis.js

Visualization Timeseries汉化:\src\core_plugins\timelion\public\vis\index.js