i18n-ed auto reload text

This commit is contained in:
uu59 2014-06-12 13:12:18 +09:00
parent b99132d67b
commit 0be4de84b7
4 changed files with 4 additions and 2 deletions

View File

@ -24,7 +24,7 @@
self.fetchLogs();
var $log = $(".log", self.$el);
$log.scrollTop($log[0].scrollHeight);
}, 1000);
}, 3000);
} else {
clearInterval(timer);
}

View File

@ -2,7 +2,7 @@
<div id="fluent-log" logUrl="<%= log_tail_fluentd_agent_path(fluentd) %>">
<pre>
<button class="btn btn-primary" v-on="click: fetchLogs"><%= t "terms.reload_log" %></button> <input type="text" v-model="limit" size="4" v-on="keyup: fetchLogs | key enter" />
<input type="checkbox" v-model="autoFetch" /> 自動更新
<label><input type="checkbox" v-model="autoFetch" /> <%= t "terms.auto_reload", seconds: 3 %> </label>
<div class="log"><span v-repeat="logs">{{ $value }}
</span></div></pre>

View File

@ -32,6 +32,7 @@ en:
confirm_body: |
Really %{action}?
reload_log: Reload fluend log
auto_reload: "Auto Reload(every %{seconds} seconds)"
plugins:
notice_restart_for_config_edit: "NOTICE: fluentd will restart after update config"

View File

@ -32,6 +32,7 @@ ja:
confirm_body: |
%{action}しますか?
reload_log: fluentdのログを更新
auto_reload: "自動更新(%{seconds}秒ごと)"
plugins:
notice_restart_for_config_edit: ※更新するとfluentdが再起動されます