HAYASHI Kentaro
null+****@clear*****
Wed Jul 16 21:36:53 JST 2014
HAYASHI Kentaro 2014-07-16 21:36:53 +0900 (Wed, 16 Jul 2014) New Revision: d9c1744fb149a4ddfcdee4e773fdb967d6dd45df https://github.com/groonga/groonga/commit/d9c1744fb149a4ddfcdee4e773fdb967d6dd45df Merged a4a867f: Merge pull request #182 from kenhys/use-english-as-default-lauguage Message: admin: use English as default language Modified files: data/html/admin/index.html data/html/admin/js/groonga-admin.js Modified: data/html/admin/index.html (+71 -75) =================================================================== --- data/html/admin/index.html 2014-07-14 21:30:59 +0900 (c49de2b) +++ data/html/admin/index.html 2014-07-16 21:36:53 +0900 (cede860) @@ -24,12 +24,12 @@ <tr> <td id="left-column"> <div id="side-menu"> - <h2>画面一覧</h2> + <h2>List of view</h2> <ul id="side-menu-view-list"> - <li><a href="#side-menu-summary" id="side-menu-summary">サマリー</a></li> - <li><a href="#side-menu-suggest" id="side-menu-suggest">サジェスト</a></li> + <li><a href="#side-menu-summary" id="side-menu-summary">Summary</a></li> + <li><a href="#side-menu-suggest" id="side-menu-suggest">Suggest</a></li> </ul> - <h2>テーブル一覧</h2> + <h2>List of table</h2> <ul id="side-menu-tablelist" /> </div> </td> @@ -38,19 +38,19 @@ <!-- database view --> <div id="database-tabs"> <ul> - <li><a href="#database-tab-summary">サマリー</a></li> - <li><a href="#database-tab-tablelist" id="tab-tablelist-link">テーブル一覧</a></li> - <li><a href="#database-tab-createtable">テーブル作成</a></li> + <li><a href="#database-tab-summary">Summary</a></li> + <li><a href="#database-tab-tablelist" id="tab-tablelist-link">List table</a></li> + <li><a href="#database-tab-createtable">Create table</a></li> </ul> <div id="database-tab-summary"> <p> - groongaの管理ツールです。 + Groonga administration tool. </p> <ul> - <li>開始時間: <span id="status-starttime"></span></li> - <li>uptime: <span id="status-uptime"></span></li> - <li>クエリ数: <span id="status-n-queries"></span></li> - <li>キャッシュヒット率: <span id="status-cache-hit-rate"></span></li> + <li>Start time: <span id="status-starttime"></span></li> + <li>Uptime: <span id="status-uptime"></span></li> + <li>Number of query: <span id="status-n-queries"></span></li> + <li>Cache hit rate: <span id="status-cache-hit-rate"></span></li> </ul> <div id="throughput-chart" style="height: 300px; max-width: 500px;"> </div> @@ -58,13 +58,13 @@ <div id="database-tab-tablelist"> <div id="tab-tablelist-table"> </div> - <input type="button" id="tablelist-remove-table" value="選択テーブル削除"> + <input type="button" id="tablelist-remove-table" value="Remove table"> </div> <div id="database-tab-createtable"> <table> <tr> <td> - <label for="createtable-name">テーブル名</label> + <label for="createtable-name">Table name</label> </td> <td> <input type="text" id="createtable-name"> @@ -72,81 +72,81 @@ </tr> <tr> <td> - 主キー + Primary key </td> <td> - <label for="createtable-key-type">keyの型:</label> + <label for="createtable-key-type">Key type:</label> <select id="createtable-key-type"> - <optgroup label="組み込み型" id="createtable-key-type-builtin"> + <optgroup label="Built-in types" id="createtable-key-type-builtin"> </optgroup> - <optgroup label="テーブル" id="createtable-key-type-table"> + <optgroup label="Key of Table" id="createtable-key-type-table"> </optgroup> </select> - <label for="createtable-key-index">keyのインデックス種類:</label> + <label for="createtable-key-index">Key index types:</label> <select id="createtable-key-index"> - <option value="GRN_OBJ_TABLE_PAT_KEY">パトリシア木</option> - <option value="GRN_OBJ_TABLE_HASH_KEY">ハッシュテーブル</option> - <option value="GRN_OBJ_TABLE_NO_KEY">キーなし</option> + <option value="GRN_OBJ_TABLE_PAT_KEY">Patricia trie</option> + <option value="GRN_OBJ_TABLE_HASH_KEY">Hash table</option> + <option value="GRN_OBJ_TABLE_NO_KEY">No key</option> </select> </td> </tr> <tr> <td> - フラグ + Flags </td> <td id="createtable-flags"> - <input type="checkbox" value="GRN_OBJ_PERSISTENT" checked>永続化</input> - <input type="checkbox" value="GRN_OBJ_KEY_NORMALIZE">key文字列の正規化</input> - <input type="checkbox" value="GRN_OBJ_KEY_WITH_SIS">key文字列のsuffix登録</input> + <input type="checkbox" value="GRN_OBJ_PERSISTENT" checked>Persistent</input> + <input type="checkbox" value="GRN_OBJ_KEY_NORMALIZE">Normalize key</input> + <input type="checkbox" value="GRN_OBJ_KEY_WITH_SIS">Key with suffix</input> </td> </tr> <tr> <td> - valueの型 + Value types </td> <td> <select id="createtable-value-type"> - <optgroup label="組み込み型" id="createtable-value-type-builtin"> + <optgroup label="Built-in types" id="createtable-value-type-builtin"> </optgroup> - <optgroup label="テーブル" id="createtable-value-type-table"> + <optgroup label="Use table as value type" id="createtable-value-type-table"> </optgroup> </select> </td> </tr> <tr> <td> - デフォルトトークナイザ + Default tokenizer </td> <td> <select id="createtable-default-tokenizer"> - <optgroup label="組み込み" id="createtable-default-tokenizer-builtin"> + <optgroup label="Built-in tokenizer" id="createtable-default-tokenizer-builtin"> </optgroup> </select> </td> </tr> </table> - <input type="button" id="createtable-add-table" value="テーブル追加"> + <input type="button" id="createtable-add-table" value="Create table"> </div> </div> <!-- table view --> <div id="table-tabs"> <ul> - <li><a href="#table-tab-recordlist" id="tab-recordlist-link">レコード一覧</a></li> - <li><a href="#table-tab-columnlist" id="tab-columnlist-link">カラム一覧</a></li> - <li><a href="#table-tab-createrecord" id="tab-createrecord-link">レコード作成</a></li> - <li><a href="#table-tab-createcolumn">カラム作成</a></li> + <li><a href="#table-tab-recordlist" id="tab-recordlist-link">List records</a></li> + <li><a href="#table-tab-columnlist" id="tab-columnlist-link">List columns</a></li> + <li><a href="#table-tab-createrecord" id="tab-createrecord-link">Create record</a></li> + <li><a href="#table-tab-createcolumn">Create columns</a></li> </ul> <div id="table-tab-recordlist"> - <input type="checkbox" id="table-tab-recordlist-full-checkbox" /><label for="table-tab-recordlist-full-checkbox">管理モード</label> + <input type="checkbox" id="table-tab-recordlist-full-checkbox" /><label for="table-tab-recordlist-full-checkbox">Advanced search</label> <form id="tab-recordlist-form"> <div id="table-tab-recordlist-form-simple"> - <label for="tab-recordlist-simplequery">検索クエリ: </label><input type="text" id="tab-recordlist-simplequery"> + <label for="tab-recordlist-simplequery">Query: </label><input type="text" id="tab-recordlist-simplequery"> <select id="tab-recordlist-simplequerytype"> - <option value="query" data-placeholder="例)column:@value">query</option> - <option value="filter" data-placeholder="例)column == "value"">filter</option> + <option value="query" data-placeholder="e.g.)column:@value">query</option> + <option value="filter" data-placeholder="e.g.)column == "value"">filter</option> </select> - <input type="checkbox" id="tab-recordlist-incremental" /><label for="tab-recordlist-incremental" id="tab-recordlist-incremental-label">インクリメンタル検索</label> + <input type="checkbox" id="tab-recordlist-incremental" /><label for="tab-recordlist-incremental" id="tab-recordlist-incremental-label">Incremental search</label> </div> <div id="table-tab-recordlist-form-full"> <table> @@ -165,27 +165,27 @@ <tr><td>drilldown_limit</td><td><input type="text" id="tab-recordlist-drilldown_limit" /></td></tr> </table> </div> - <input type="submit" id="tab-recordlist-submit" value="検索"/> + <input type="submit" id="tab-recordlist-submit" value="Search"/> </form> <div id="tab-recordlist-table"> </div> - <input type="button" id="recordlist-remove-record" value="選択レコード削除"> + <input type="button" id="recordlist-remove-record" value="Remove records"> </div> <div id="table-tab-columnlist"> <div id="tab-columnlist-table"> </div> - <input type="button" id="columnlist-remove-column" value="選択カラム削除"> + <input type="button" id="columnlist-remove-column" value="Remove columns"> </div> <div id="table-tab-createrecord"> <table id="table-createrecord"> </table> - <input type="button" id="createrecord-add-record" value="レコード追加"> + <input type="button" id="createrecord-add-record" value="Create record"> </div> <div id="table-tab-createcolumn"> <table> <tr> <td> - <label for="createcolumn-name">カラム名</label> + <label for="createcolumn-name">Column name</label> </td> <td> <input type="text" id="createcolumn-name"> @@ -193,31 +193,27 @@ </tr> <tr> <td> - 設定 + Column types </td> <td> - <label for="createcolumn-type">型:</label> + <label for="createcolumn-type">Types:</label> <select id="createcolumn-type"> - <optgroup label="組み込み型" id="createcolumn-type-builtin"> + <optgroup label="Built-in types" id="createcolumn-type-builtin"> </optgroup> - <optgroup label="テーブル" id="createcolumn-type-table"> + <optgroup label="Table" id="createcolumn-type-table"> </optgroup> </select> - <label for="createcolumn-source">テーブル型の場合カラム</label> - <select id="createcolumn-source" disabled> - </select> - - <label for="createcolumn-column-type">カラム種別:</label> + <label for="createcolumn-column-type">Column stores:</label> <select id="createcolumn-column-type"> - <option value="GRN_OBJ_COLUMN_SCALAR">スカラ</option> - <option value="GRN_OBJ_COLUMN_VECTOR">ベクタ</option> - <option value="GRN_OBJ_COLUMN_INDEX">転置インデックス</option> + <option value="GRN_OBJ_COLUMN_SCALAR">Scalar</option> + <option value="GRN_OBJ_COLUMN_VECTOR">Vector</option> + <option value="GRN_OBJ_COLUMN_INDEX">Inverted index</option> </select> - <label for="createcolumn-compress">圧縮:</label> - <select id="createcolumn-compress"> - <option value="GRN_OBJ_COMPRESS_NONE">圧縮なし</option> + <label for="createcolumn-compress">Compression:</label> + <select id="createcolumn-compress" disabled> + <option value="GRN_OBJ_COMPRESS_NONE">No compression</option> <option value="GRN_OBJ_COMPRESS_ZLIB">zlib</option> <option value="GRN_OBJ_COMPRESS_LZO">lzo</option> </select> @@ -225,47 +221,47 @@ </tr> <tr> <td> - フラグ + Flags </td> <td id="createcolumn-flags"> - <input type="checkbox" value="GRN_OBJ_PERSISTENT" checked>永続化</input> + <input type="checkbox" value="GRN_OBJ_PERSISTENT" checked>Persistent</input> </td> </tr> <tr> <td> - 転置インデックス用フラグ + Flags for inverted index </td> <td id="createcolumn-ii-flags"> - <input type="checkbox" value="GRN_OBJ_WITH_SECTION">段落情報を含める</input> - <input type="checkbox" value="GRN_OBJ_WITH_WEIGHT">重みを含める</input> - <input type="checkbox" value="GRN_OBJ_WITH_POSITION">位置情報を含める</input> + <input type="checkbox" value="GRN_OBJ_WITH_SECTION">With section information</input> + <input type="checkbox" value="GRN_OBJ_WITH_WEIGHT">With weight information</input> + <input type="checkbox" value="GRN_OBJ_WITH_POSITION">With position information</input> </td> </tr> </table> - <input type="button" id="createcolumn-add-column" value="カラム追加"> + <input type="button" id="createcolumn-add-column" value="Create column"> </div> </div> <!-- suggest view --> <div id="suggest-tabs"> <ul> - <li><a href="#suggest-tab-search">検索</a></li> + <li><a href="#suggest-tab-search">Search</a></li> </ul> <div id="suggest-tab-search"> <form id="suggest-tab-search-form"> <p> - <label for="suggest-dataset">データセット: </label> + <label for="suggest-dataset">Dataset: </label> <input type="text" id="suggest-dataset"> </p> - <label for="suggest-query">検索クエリ: </label> + <label for="suggest-query">Suggest query: </label> <input type="text" id="suggest-query"> - <input type="button" id="suggest-submit" value="検索" /> + <input type="button" id="suggest-submit" value="Search" /> </form> <div id="suggest-result-tabs"> <ul> - <li><a href="#suggest-result-tab-suggest">提案</a></li> - <li><a href="#suggest-result-tab-complete">補完</a></li> - <li><a href="#suggest-result-tab-correct">補正</a></li> + <li><a href="#suggest-result-tab-suggest">Suggestion</a></li> + <li><a href="#suggest-result-tab-complete">Completion</a></li> + <li><a href="#suggest-result-tab-correct">Correction</a></li> </ul> <div id="suggest-result-tab-suggest"> </div> Modified: data/html/admin/js/groonga-admin.js (+28 -28) =================================================================== --- data/html/admin/js/groonga-admin.js 2014-07-14 21:30:59 +0900 (c9d11f5) +++ data/html/admin/js/groonga-admin.js 2014-07-16 21:36:53 +0900 (8d07bea) @@ -205,13 +205,13 @@ function GroongaAdmin() { }); e1 = $('#createtable-value-type-builtin'); - e1.append($('<option />').val('').text('なし')); + e1.append($('<option />').val('').text('None')); $.each(Groonga.value_type_list, function(i, val) { e1.append($('<option />').val(val).text(val)); }); e1 = $('#createtable-default-tokenizer-builtin'); - e1.append($('<option />').val('').text('なし')); + e1.append($('<option />').val('').text('None')); $.each(Groonga.tokenizer_list, function(i, val) { e1.append($('<option />').val(val).text(val)); }); @@ -555,7 +555,7 @@ jQuery.extend(GroongaAdmin.prototype, { tr.append(td); td.append($('<input/>') .attr("type", "button") - .attr("value", "編集") + .attr("value", "Edit") .attr("data-record-id", line[0]) .click(function () { that.show_edit_record($(this).attr("data-record-id")); @@ -566,7 +566,7 @@ jQuery.extend(GroongaAdmin.prototype, { tr.append(td); td.append($('<input/>') .attr("type", "button") - .attr("value", "詳細") + .attr("value", "Detail") .attr("data-table-name", line[1]) .click(function () { var tableName = $(this).attr("data-table-name"); @@ -741,7 +741,7 @@ jQuery.extend(GroongaAdmin.prototype, { if (that.validateajax(d) < 0) { return; } var b = d[1]; var table = that._createResultTable(b, {check: 2, button: 2}); - $('#tab-tablelist-table').append($('<h1 />').text('テーブル一覧')).append(table); + $('#tab-tablelist-table').append($('<h1 />').text('List of table')).append(table); that.hideloading(); }, error: function(XMLHttpRequest, textStatus, errorThrown) { @@ -815,8 +815,8 @@ jQuery.extend(GroongaAdmin.prototype, { } $('#tab-recordlist-table') .empty() - .append($('<h1 />').text('レコード一覧: ' + params['table'])) - .append($('<p />').text('総件数: ' + all_count)) + .append($('<h1 />').text('List of records: ' + params['table'])) + .append($('<p />').text('Total count: ' + all_count)) .append(pager.clone(true)) .append($('<div />').append(that._createResultTable(recs, {check: 1, button: 1}))) .append(pager); @@ -841,7 +841,7 @@ jQuery.extend(GroongaAdmin.prototype, { var b = d[1]; var table = that._createResultTable(b, {check: 2}); $('#tab-columnlist-table') - .append($('<h1 />').text('カラム一覧: ' + table_name)) + .append($('<h1 />').text('List of columns: ' + table_name)) .append(table); that.hideloading(); }, @@ -955,7 +955,7 @@ jQuery.extend(GroongaAdmin.prototype, { } inputtd .append($('<span />') - .append("[値を追加]") + .append("[Add value]") .css('cursor', 'pointer') .click(function() { var target = $(this).parent(); @@ -1046,7 +1046,7 @@ jQuery.extend(GroongaAdmin.prototype, { success: function(d) { if (that.validateajax(d) < 0) { return; } that.hideloading(); - alert('テーブルを作成しました。'); + alert('Table is created.'); that.update_tablelist(); }, error: function(XMLHttpRequest, textStatus, errorThrown) { @@ -1083,7 +1083,7 @@ jQuery.extend(GroongaAdmin.prototype, { success: function(d) { if (that.validateajax(d) < 0) { return; } that.hideloading(); - alert('カラムを作成しました。'); + alert('Column is created.'); }, error: function(XMLHttpRequest, textStatus, errorThrown) { that.errorloading(XMLHttpRequest); @@ -1135,7 +1135,7 @@ jQuery.extend(GroongaAdmin.prototype, { success: function(d) { if (that.validateajax(d) < 0) { return; } that.hideloading(); - alert('レコードを作成しました。'); + alert('Record is created.'); }, error: function(XMLHttpRequest, textStatus, errorThrown) { that.errorloading(XMLHttpRequest); @@ -1149,14 +1149,14 @@ jQuery.extend(GroongaAdmin.prototype, { var completecount = checklist.length; if (completecount > 0) { $('<div />') - .append("選択した" + completecount + "件のレコードを削除しますか?") + .append("Delete selected " + completecount + " records?") .dialog({ modal: true, buttons: { - 'いいえ': function() { + 'No': function() { $(this).dialog('close'); }, - 'はい': function() { + 'Yes': function() { $(this).dialog('close'); checklist.each(function(i, val) { that.showloading( @@ -1170,7 +1170,7 @@ jQuery.extend(GroongaAdmin.prototype, { success: function() { if (--completecount == 0) { $('#tab-recordlist-form').submit(); - alert('レコードを削除しました。'); + alert('Records are deleted.'); } else if (completecount < 0){ that.hideloading(); } @@ -1193,14 +1193,14 @@ jQuery.extend(GroongaAdmin.prototype, { var completecount = checklist.length; if (completecount) { $('<div />') - .append("選択した" + completecount + "件のカラムを削除しますか?") + .append("Delete selected " + completecount + " columns?") .dialog({ modal: true, buttons: { - 'いいえ': function() { + 'No': function() { $(this).dialog('close'); }, - 'はい': function() { + 'Yes': function() { $(this).dialog('close'); checklist.each(function(i, val) { that.showloading( @@ -1214,7 +1214,7 @@ jQuery.extend(GroongaAdmin.prototype, { success: function() { if (!(--completecount)) { that.columnlist(that.current_table); - alert('カラムを削除しました。'); + alert('Columns are deleted.'); } else if (completecount < 0){ that.hideloading(); } @@ -1237,14 +1237,14 @@ jQuery.extend(GroongaAdmin.prototype, { var completecount = checklist.length; if (completecount > 0) { $('<div />') - .append("選択した" + completecount + "件のテーブルを削除しますか?") + .append("Delete selected " + completecount + " tables?") .dialog({ modal: true, buttons: { - 'いいえ': function() { + 'No': function() { $(this).dialog('close'); }, - 'はい': function() { + 'Yes': function() { $(this).dialog('close'); checklist.each(function(i, val) { that.showloading( @@ -1258,7 +1258,7 @@ jQuery.extend(GroongaAdmin.prototype, { if (--completecount == 0) { that.tablelist(); that.update_tablelist(); - alert('テーブルを削除しました。'); + alert('Table are deleted.'); } else if (completecount < 0){ that.hideloading(); } @@ -1296,7 +1296,7 @@ jQuery.extend(GroongaAdmin.prototype, { position: ["right", "bottom"], autoOpen: false, buttons: { - '中止': function() { + 'Abort': function() { if (obj) { obj.abort(); } that.hideloading(); } @@ -1334,13 +1334,13 @@ jQuery.extend(GroongaAdmin.prototype, { var error_label; var error_message; if (json){ - error_label = "groongaでエラーが発生しました。"; + error_label = "Groonga reports error."; error_message = json[0][3] + "(" + json[0][0] + ")"; } else if (ajax) { - error_label = "通信エラーが発生しました。"; + error_label = "Connection error is occured."; error_message = "" + ajax.status + ": " + ajax.statusText; } else { - error_label = "通信エラーが発生しました。"; + error_label = "Connection error is occured."; error_message = ""; } $("<div />") -------------- next part -------------- HTML����������������������������...Download