fix i18n.file upload failed
This commit is contained in:
		
							parent
							
								
									87904f8b8d
								
							
						
					
					
						commit
						dc8ca7e575
					
				| 
						 | 
					@ -55,7 +55,7 @@
 | 
				
			||||||
    <div style="position: absolute; width: 100%; bottom: 0;">
 | 
					    <div style="position: absolute; width: 100%; bottom: 0;">
 | 
				
			||||||
        <div class="modal-footer">
 | 
					        <div class="modal-footer">
 | 
				
			||||||
            <!-- <a id='ajax_form_submit' class="btn btn-primary"><#%= t(:create) %></a> -->
 | 
					            <!-- <a id='ajax_form_submit' class="btn btn-primary"><#%= t(:create) %></a> -->
 | 
				
			||||||
             <input type="submit" value="<%= t(:create) %>" class="btn btn-primary" />
 | 
					             <input type="submit" value="<%= t(:create_) %>" class="btn btn-primary" />
 | 
				
			||||||
        </div>
 | 
					        </div>
 | 
				
			||||||
    </div>
 | 
					    </div>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -212,7 +212,7 @@ zh_tw:
 | 
				
			||||||
    module_widget: 外掛模塊
 | 
					    module_widget: 外掛模塊
 | 
				
			||||||
    public_r_tag: 系統模塊
 | 
					    public_r_tag: 系統模塊
 | 
				
			||||||
    text: 文字區域
 | 
					    text: 文字區域
 | 
				
			||||||
  passed: 已認可
 | 
					  passed: 通過審核
 | 
				
			||||||
  password: 密碼
 | 
					  password: 密碼
 | 
				
			||||||
  pending: 待審核
 | 
					  pending: 待審核
 | 
				
			||||||
  picture: 圖片
 | 
					  picture: 圖片
 | 
				
			||||||
| 
						 | 
					@ -284,7 +284,7 @@ zh_tw:
 | 
				
			||||||
  tags: 標籤
 | 
					  tags: 標籤
 | 
				
			||||||
  template: 樣版
 | 
					  template: 樣版
 | 
				
			||||||
  template_name: 樣版名稱
 | 
					  template_name: 樣版名稱
 | 
				
			||||||
  text: 文字
 | 
					  text: 內文
 | 
				
			||||||
  theme: 主題
 | 
					  theme: 主題
 | 
				
			||||||
  themes: 主題
 | 
					  themes: 主題
 | 
				
			||||||
  title: 標題
 | 
					  title: 標題
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -152,7 +152,7 @@
 | 
				
			||||||
				<div class="<%= locale %> fade tab-pane <%= ( i == 0 ) ? "in active" : '' %>">
 | 
									<div class="<%= locale %> fade tab-pane <%= ( i == 0 ) ? "in active" : '' %>">
 | 
				
			||||||
 | 
					
 | 
				
			||||||
					<div class="title">
 | 
										<div class="title">
 | 
				
			||||||
						<%= f.label :title, t(:text)%>
 | 
											<%= f.label :title, t(:title)%>
 | 
				
			||||||
						<%= f.fields_for :title_translations do |f| %>
 | 
											<%= f.fields_for :title_translations do |f| %>
 | 
				
			||||||
							<%= I18nVariable.from_locale(locale) %>
 | 
												<%= I18nVariable.from_locale(locale) %>
 | 
				
			||||||
							<%= f.text_field locale, :class=>'post-title', :value => (@news_bulletin.title_translations[locale] rescue nil) %>
 | 
												<%= f.text_field locale, :class=>'post-title', :value => (@news_bulletin.title_translations[locale] rescue nil) %>
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -14,4 +14,4 @@ en:
 | 
				
			||||||
    search: Search for News
 | 
					    search: Search for News
 | 
				
			||||||
    update_news_bulletin_category_success: News category was successfully updated
 | 
					    update_news_bulletin_category_success: News category was successfully updated
 | 
				
			||||||
    update_news_bulletin_success: News was successfully updated
 | 
					    update_news_bulletin_success: News was successfully updated
 | 
				
			||||||
    ut_prompt: Please select UT
 | 
					    ut_prompt: Please select Unit
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -14,4 +14,4 @@ zh_tw:
 | 
				
			||||||
    search: 搜尋新聞
 | 
					    search: 搜尋新聞
 | 
				
			||||||
    update_news_bulletin_category_success: 新聞類別已成功建立
 | 
					    update_news_bulletin_category_success: 新聞類別已成功建立
 | 
				
			||||||
    update_news_bulletin_success: 新聞已成功更新
 | 
					    update_news_bulletin_success: 新聞已成功更新
 | 
				
			||||||
    ut_prompt: 請選擇 UT
 | 
					    ut_prompt: 請選擇單位
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Reference in New Issue