Update translations.

This commit is contained in:
bohung committed 2023-08-03 21:01:26 +08:00
1 parent 0311726412
commit 2d2cd79883
5 files changed
+27 -10

No files matched your search

+7 -2
View File
@@ -17,12 +17,12 @@ class AsiaDatabasesController < ApplicationController
selected_unit = params[:unit]
selected_academy = nil
if selected_unit == 'all'
choice_unit << {"choice_value"=> 'all', "choice_show"=> 'All', 'choice_select'=> 'selected'}
choice_unit << {"choice_value"=> 'all', "choice_show"=> I18n.t('asia_database.extend_translate.all'), 'choice_select'=> 'selected'}
AsiaAcademy.all.each do |academy|
choice_unit << {"choice_value"=> academy.uid, "choice_show"=> academy.academy_name, 'choice_select'=>''}
end
else
choice_unit << {"choice_value"=> 'all', "choice_show"=> 'All', 'choice_select'=> ''}
choice_unit << {"choice_value"=> 'all', "choice_show"=> I18n.t('asia_database.extend_translate.all'), 'choice_select'=> ''}
AsiaAcademy.all.each do |academy|
uid = academy.uid
if uid == selected_unit
@@ -164,6 +164,11 @@ class AsiaDatabasesController < ApplicationController
'search_text' => search_text,
'search_value' => params[:keywords].to_s.gsub(/\"/,''),
'search_trans' => t('asia_database.extend_translate.search'),
'keywords_trans' => t('asia_database.extend_translate.keywords'),
'clear_trans' => t('asia_database.extend_translate.clear'),
'export_trans' => t('asia_database.extend_translate.export'),
'preparing_trans' => t('asia_database.extend_translate.preparing'),
'download_trans' => t('asia_database.extend_translate.download'),
'unit_trans' => t('asia_database.extend_translate.unit'),
'csrf_value' => csrf_value,
'tmp_id' => tmp_id