Skip to content

Commit 9a1da01

Browse files
committed
Change translations
1 parent d680fb2 commit 9a1da01

File tree

4 files changed

+10
-9
lines changed

4 files changed

+10
-9
lines changed

app/views/custom_message_settings/_messages.html.erb

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<% lang ||= 'en' %>
2-
<div>Add key: <%= select_tag 'select-key', options_for_select(available_message_options(lang)), id: 'key-selector' %></div>
2+
<div><%= l(:text_placeholder_choose_key) %><%= select_tag 'select-key', options_for_select(available_message_options(lang)), id: 'key-selector' %></div>
33
<br>
44
<div class='tabular'>
55
<%= normal_mode_input_fields(@setting, lang) %>
@@ -8,8 +8,7 @@
88
<%= javascript_tag do %>
99
$(document).ready(function() {
1010
$("#key-selector").select2({
11-
width: '100%',
12-
placeholder: '変更したい文字を検索してください',
11+
width: '100%'
1312
});
1413
});
1514

app/views/custom_message_settings/_yaml_tab.html.erb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
<div class='help-message wiki'>
33
<p><%= l(:text_help_for_input_format) %></p>
44
<p><%= l(:text_placeholder_template_case) %></p>
5-
<pre><%= l(:text_placeholder_template) %></pre>
5+
<pre><%= l(:text_placeholder_yaml_template) %></pre>
66
</div>
7-
<%= text_area_tag 'settings[custom_messages_yaml]', @setting.custom_messages_to_yaml, rows: '20', style: 'width: 100%', placeholder: l(:text_placeholder_template) %>
7+
<%= text_area_tag 'settings[custom_messages_yaml]', @setting.custom_messages_to_yaml, rows: '20', style: 'width: 100%', placeholder: l(:text_placeholder_yaml_template) %>
88
<%= submit_tag l(:button_save) %>
99
<% end %>

config/locales/en.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
en:
2-
label_custom_messages: Customize messages
2+
label_custom_messages: Message customize
33
text_help_for_input_format: Please input the keyword you want to change in YAML format.
44
text_placeholder_template_case: 'example: When changing "Home" to "Home2"'
5-
text_placeholder_template: |
5+
text_placeholder_yaml_template: |
66
en:
77
label_home: 'Home2'
8+
text_placeholder_choose_key: Please select the message you want to change.
89
error_unavailable_keys: The keys not present in Redmine are used.
910
label_normal_tab: Normal mode
1011
label_yaml_tab: YAML mode

config/locales/ja.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
ja:
2-
label_custom_messages: 画面の文言を上書きする
2+
label_custom_messages: メッセージをカスタマイズする
33
text_help_for_input_format: ※ YAML形式で変更したい文言を入力してください
44
text_placeholder_template_case: 例) 「ホーム」を「ホーム2」に変更したい場合
5-
text_placeholder_template: |
5+
text_placeholder_yaml_template: |
66
ja:
77
label_home: 'ホーム2'
8+
text_placeholder_choose_key: 変更したい文言を選択してください。
89
error_unavailable_keys: Redmineに存在しないキーが利用されています
910
label_normal_tab: 通常モード
1011
label_yaml_tab: YAMLモード

0 commit comments

Comments
 (0)