OSDN Git Service

add translation for replace function
authorakira saito <akrst@users.osdn.me>
Sun, 26 Jul 2015 15:02:53 +0000 (00:02 +0900)
committerakira saito <akrst@users.osdn.me>
Sun, 26 Jul 2015 15:02:53 +0000 (00:02 +0900)
app/views/quick_edit_issues/_input_dialog.html.erb
config/locales/en.yml
config/locales/ja.yml

index adbcc94..82a4df0 100644 (file)
     <div id="replace-page" class="page" style="display: none;">
       <%= form_tag({:controller=>'quick_edit_issues', :action=>:replace}) do %>
       <div class="box">
-        <span>Find what:</span><br/>
+        <span><%= l(:label_find_with) %>:</span><br/>
         <input id="find"
                name="find"
                type="text"
                size="80"
                value=""></input><br/>
-        <span>Replace with:</span><br/>
+        <span><%= l(:label_replace_with) %>:</span><br/>
         <input id="replace"
                name="replace"
                type="text"
                size="80"
                value=""></input><br/>
-        <span>Preview:</span>
+        <span><%= l(:label_preview) %>:</span>
         <div id="preview_area" class="ui-corner-all box">&nbsp;</div>
       </div>
       <input id="target_specifier" name="target_specifier" type="hidden" value="<%= @dialog_params[:target_specifier] %>"></input>
index af2e079..7761ff1 100644 (file)
@@ -1,11 +1,15 @@
 # English strings go here for Rails i18n
 en:
   button_quick_edit: Quick Edit
+
   label_edit_subject: Subject
+  label_find_with: Find with
+  label_replace_with: Replace with
+  label_preview: Preview
+
   text_edit_confirm: Enter the new value.
   text_is_required: can't be empty.
   text_none_is_invalid: can't specify the 'none'.its a special value.
   text_invalid_format: invalid format.
   text_multiple_update_confirm: You selected many issues to be the non unique value.\nAre you sure you want to update?
 
-
index d23cf9d..0a69bdc 100644 (file)
@@ -1,7 +1,12 @@
 # Japanese strings go here for Rails i18n
 ja:
   button_quick_edit: Quick Edit
+
   label_edit_subject: 題名
+  label_find_with: 検索する文字列
+  label_replace_with: 置換後の文字列
+  label_preview: プレビュー
+
   text_edit_confirm: 新しい値を入力してください。
   text_is_required: 値の入力が必要です。
   text_none_is_invalid: noneは特別な意味を持つため指定できません。