Fix translations.

This commit is contained in:
BoHung Chiu 2023-04-12 09:01:10 +08:00
parent 3c89748656
commit ddc9f0c256
4 changed files with 18 additions and 20 deletions

View File

@ -287,7 +287,7 @@
<div class="ad-banner-images-wrap-arrow"></div> <div class="ad-banner-images-wrap-arrow"></div>
<div class="ad-banner-images-wrap"> <div class="ad-banner-images-wrap">
<a href="<%= new_admin_ad_image_path(banner: banner.id.to_s) %>" class="ad-image-new-btn"> <a href="<%= new_admin_ad_image_path(banner: banner.id.to_s) %>" class="ad-image-new-btn">
<i class="icon-plus"></i> <%= t("ad.new_image") %> <i class="icon-plus"></i> <%= t("ad_banner.new_image") %>
</a> </a>
<% banner.ad_images.desc(:created_at).each_with_index do |image,idx| %> <% banner.ad_images.desc(:created_at).each_with_index do |image,idx| %>
<div class="ad-banner-image-wrap"> <div class="ad-banner-image-wrap">

View File

@ -31,11 +31,11 @@
<div class="tab-pane fade in active" id="basic"> <div class="tab-pane fade in active" id="basic">
<div class="control-group"> <div class="control-group">
<label class="control-label muted"><%= t(:type) %></label> <label class="control-label muted"><%= t("ad_banner.type") %></label>
<div class="controls"> <div class="controls">
<div><%= t("choose_type") %></div> <div><%= t("ad_banner.choose_type") %></div>
<%= <%=
select_tag "ad_image[exchange_item]", options_for_select(@item,@item_choose), prompt: t('select') select_tag "ad_image[exchange_item]", options_for_select(@item,@item_choose), prompt: t('ad_banner.select')
%> %>
</div> </div>
</div> </div>
@ -75,10 +75,10 @@
<div id="exchange_item_2" style="display:none"> <div id="exchange_item_2" style="display:none">
<div class="control-group input-title"> <div class="control-group input-title">
<label class="control-label muted"><%= t(:youtube) %></label> <label class="control-label muted"><%= t("ad_banner.youtube") %></label>
<div class="controls"> <div class="controls">
<div><%= 'ex. https://www.youtube.com/watch?v=UHF2e3lyPVU' %></div> <div><%= 'ex. https://www.youtube.com/watch?v=UHF2e3lyPVU' %></div>
<%= f.text_field :youtube, placeholder: t(:youtube), class: 'input-block-level' %> <%= f.text_field :youtube, placeholder: t("ad_banner.youtube"), class: 'input-block-level' %>
</div> </div>
</div> </div>
</div> </div>

View File

@ -1,5 +1,4 @@
en: en:
ad_banner: ad_banner:
video_snapshot: "Video Snapshot" video_snapshot: "Video Snapshot"
auto_convert_video: Auto Convert Video to webm(reduce usage for network traffic) auto_convert_video: Auto Convert Video to webm(reduce usage for network traffic)
@ -45,9 +44,9 @@ en:
next: Next next: Next
muted: Muted muted: Muted
unmuted: Unmuted unmuted: Unmuted
new_image: New Image or Video
youtube: youtube embed URL
type: Image or Video
choose_type: Please Select One Type First
select: Please Select One
video: Video video: Video
new_image: New Image or Video
youtube: youtube embed URL
type: Image or Video
choose_type: Please Select One Type First
select: Please Select One

View File

@ -1,5 +1,4 @@
zh_tw: zh_tw:
ad_banner: ad_banner:
video_snapshot: "影片縮圖" video_snapshot: "影片縮圖"
auto_convert_video: 自動轉換成webm格式(節省播放流量) auto_convert_video: 自動轉換成webm格式(節省播放流量)
@ -42,9 +41,9 @@ zh_tw:
next: 下一張 next: 下一張
muted: 靜音 muted: 靜音
unmuted: 取消靜音 unmuted: 取消靜音
new_image: 新增圖片 或 影片
youtube: youtube網址嵌入
type: 圖片 或 影片
choose_type: 請先選擇類型
select: 請選擇
video: 影片 video: 影片
new_image: 新增圖片 或 影片
youtube: youtube網址嵌入
type: 圖片 或 影片
choose_type: 請先選擇類型
select: 請選擇