Update missing translation in Survey Module

This commit is contained in:
Bernie Chiu 2013-12-18 17:25:41 +08:00 committed by saurabhbhatia
parent 3c4247f538
commit 6eed4ac431
4 changed files with 33 additions and 25 deletions

View File

@ -23,7 +23,7 @@
<!-- Tiltle -->
<div class="control-group">
<label class="control-label muted" for="">Title</label>
<label class="control-label muted" for=""><%= t('survey.title') %></label>
<div class="controls">
<div class="input-append">
<div class="tab-content">
@ -45,7 +45,7 @@
</div>
<!-- Description -->
<div class="control-group">
<label class="control-label muted">Description</label>
<label class="control-label muted"><%= t('survey.description') %></label>
<div class="controls">
<div class="tab-content textarea-lang">
<div class="btn-group" data-toggle="buttons-radio">
@ -65,14 +65,14 @@
</div>
<!-- start date -->
<div class="control-group">
<label class="control-label muted" for="account">Start Date</label>
<label class="control-label muted" for="account"><%= t('survey.postdate') %></label>
<div class="controls">
<%= f.datetime_picker :postdate, :no_label => true %>
</div>
</div>
<!-- end date -->
<div class="control-group">
<label class="control-label muted" for="account">End Date</label>
<label class="control-label muted" for="account"><%= t('survey.deadline') %></label>
<div class="controls">
<%= f.datetime_picker :deadline, :no_label => true %>
</div>
@ -80,20 +80,20 @@
<!-- redirect mode -->
<div class="control-group">
<label class="control-label muted" for="redirectMode">Redirect Mode</label>
<label class="control-label muted" for="redirectMode"><%= t('survey.redirect_mode') %></label>
<div class="controls">
<label class="checkbox">
<!-- <input name="survey[redirect_mode]" type="hidden" value="0" />
<input id="survey_redirect_mode" name="survey[redirect_mode]" type="checkbox" value="1" /> -->
<%= f.check_box :redirect_mode %>
The surveys is an external link
<%= t('survey.is_external') %>
</label>
</div>
</div>
<!-- redirect url -->
<div class="control-group redirect-url hide">
<label class="control-label muted" for="survey_redirect_url">Redirect URL</label>
<label class="control-label muted" for="survey_redirect_url"><%= t('survey.extern_link') %></label>
<div class="controls">
<%= f.text_field :redirect_url, :class=>"input-xlarge", :placeholder=>"Redirect URL" %>
</div>
@ -108,7 +108,7 @@
</div>
<div class="form-actions">
<button type="button" class="btn btn-success add-question">Add Question</button>
<button type="button" class="btn btn-success add-question"><%= t('survey.add') %></button>
<%= f.submit t('save'), :class=>'btn btn-primary' %>
<%= link_to t('cancel'), get_go_back, :class=>"btn" %>
</div>

View File

@ -1,7 +1,7 @@
<script id="template-survery" type="text/x-tmpl">
<div class="attributes" data-index="${_l}" data-question="${_ques}">
<div class="attributes-header clearfix">
<a class="btn btn-mini pull-right btn-danger delete" href="#"><i class="icon-trash"></i> Delete</a>
<a class="btn btn-mini pull-right btn-danger delete" href="#"><i class="icon-trash"></i> <%= t('survey_question.delete') %></a>
<input class="should_destroy" id="${_destroy[0]}" name="${_destroy[1]}" type="hidden">
<input id="${_sequence[0]}" class="sequence" name="${_sequence[1]}" type="hidden" value="${_sequence[2]}">
{{if _id}}
@ -11,7 +11,7 @@
</div>
<div class="attributes-body">
<div class="control-group">
<label class="control-label muted" for="">Question Title</label>
<label class="control-label muted" for=""><%= t('survey_question.title') %></label>
<div class="controls">
<div class="input-append">
<div class="tab-content">
@ -30,7 +30,7 @@
</div>
</div>
<div class="control-group">
<label class="control-label muted">Description </label>
<label class="control-label muted"><%= t('survey_question.description') %></label>
<div class="controls">
<div class="tab-content textarea-lang">
<div class="btn-group" data-toggle="buttons-radio">
@ -47,15 +47,15 @@
</div>
</div>
<div class="control-group">
<label class="control-label muted" for="">Type </label>
<label class="control-label muted" for=""><%= t('survey_question.type') %> </label>
<div class="controls">
<select class="type-selector" id="${_type[0]}" name="${_type[1]}" >
<option value="0" {{if _type[2] == 0}}selected="selected"{{/if}}>Oneline</option>
<option value="1" {{if _type[2] == 1}}selected="selected"{{/if}}>Multi-line</option>
<option value="2" {{if _type[2] == 2}}selected="selected"{{/if}}>Radio</option>
<option value="3" {{if _type[2] == 3}}selected="selected"{{/if}}>Check</option>
<option value="4" {{if _type[2] == 4}}selected="selected"{{/if}}>Select</option>
<option value="5" {{if _type[2] == 5}}selected="selected"{{/if}}>Radio Group</option>
<option value="0" {{if _type[2] == 0}}selected="selected"{{/if}}><%= t('survey_question.oneline') %></option>
<option value="1" {{if _type[2] == 1}}selected="selected"{{/if}}><%= t('survey_question.multiline') %></option>
<option value="2" {{if _type[2] == 2}}selected="selected"{{/if}}><%= t('survey_question.radio') %></option>
<option value="3" {{if _type[2] == 3}}selected="selected"{{/if}}><%= t('survey_question.check') %></option>
<option value="4" {{if _type[2] == 4}}selected="selected"{{/if}}><%= t('survey_question.select') %></option>
<option value="5" {{if _type[2] == 5}}selected="selected"{{/if}}><%= t('survey_question.radiogroup') %></option>
</select>
</div>
</div>
@ -64,13 +64,13 @@
<div class="control-group rgl">
<label for="" class="control-label muted">Radio Group Label</label>
<label for="" class="control-label muted"><%= t('survey_question.radiogroup_label') %></label>
<div class="controls add-input">
<div class="add-target">
<p class="add-btn">
<a href="#" class="btn btn-mini btn-primary"><i class="icons-plus"></i> Add</a>
<a href="#" class="btn btn-mini btn-primary"><i class="icons-plus"></i> <%= t('survey_question.add') %></a>
</p>
</div>
</div>
@ -79,13 +79,13 @@
<hr />
<div class="control-group options">
<label for="" class="control-label muted">Options List</label>
<label for="" class="control-label muted"><%= t('survey_question.options_lists') %></label>
<div class="controls add-input">
<div class="add-target">
<p class="add-btn">
<a href="#" class="btn btn-mini btn-primary"><i class="icons-plus"></i> Add</a>
<a href="#" class="btn btn-mini btn-primary"><i class="icons-plus"></i> <%= t('survey_question.add') %></a>
</p>
</div>
</div>
@ -96,7 +96,7 @@
<label class="checkbox">
<input name="${_custom_option[1]}" type="hidden" value="${_custom_option[2] << 0}" />
<input id="${_custom_option[0]}" type="checkbox" {{if _custom_option[2]}} checked="checked" {{/if}} />
Allow Custom Option
<%= t('survey_question.custom_option') %>
</label>
</div>
</div>
@ -110,7 +110,7 @@
<label class="checkbox">
<input name="${_is_required[1]}" type="hidden" value="${_is_required[2] << 0}" />
<input id="${_is_required[0]}" type="checkbox" {{if _is_required[2]}} checked="checked" {{/if}} />
Is Required
<%= t('survey_question.is_required') %>
</label>
</div>
</div>

View File

@ -11,9 +11,11 @@ en:
results_count: Results Count
update_user: Update User
question: Question
is_external: The survey is an external link
add: Add Question
result_type: Result Type (Frontend)
extern_link: Extern Link
extern_link: External Link
upload_file: Uploaded File
remove_upload_file: Remove Uploaded File
@ -70,6 +72,8 @@ en:
option: Option
custom_option: Allow Custom Option
use_custom_option: Other
add: Add
delete: Delete
have_not_chart: This type of question havn't chart

View File

@ -12,6 +12,8 @@ zh_tw:
results_count: 填寫人數
update_user: 最後更新者
question: 問題
is_external: 這份問卷為外部連結
add: 新增題目
result_type: 前端結果表示方式
extern_link: 外部連結
@ -72,6 +74,8 @@ zh_tw:
option: 選項
custom_option: 允許自定回答選項
use_custom_option: 其他
add: 新增
delete: 刪除
have_not_chart: 此種類型問題不含結果圖表