Skip to content

Commit ef39bcc

Browse files
committed
Merge pull request #63 from ifyouseewendy/feature/enhance_locale
Feature/enhance locale
2 parents 10c3e1f + c716884 commit ef39bcc

File tree

3 files changed

+32
-3
lines changed

3 files changed

+32
-3
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ And then execute:
4040
<li> Replacements/Updates support</li>
4141
<li> Encoding handling</li>
4242
<li> CSV options</li>
43-
<li> Ability to descibe/change CSV headers</li>
43+
<li> Ability to describe/change CSV headers</li>
4444
<li> Bulk import (activerecord-import)</li>
4545
<li> Callbacks</li>
4646
<li> Zip files</li>
@@ -94,7 +94,7 @@ Tool | Description
9494
[activerecord-import] | Powerful library for bulk inserting data using ActiveRecord.
9595

9696
[rchardet]: https://github.com/jmhodges/rchardet
97-
[activerecord-import]: https://github.com/jmhodges/rchardet
97+
[activerecord-import]: https://github.com/zdennis/activerecord-import
9898

9999

100100
## Contributing

config/locales/en.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ en:
22
active_admin:
33
import: "Import"
44
active_admin_import:
5+
file: 'File'
56
file_error: "Error: %{message}"
67
file_format_error: "You can import only valid csv file"
78
file_empty_error: "You can't import empty file"
@@ -15,4 +16,8 @@ en:
1516
other: "Failed to import %{count} %{plural_model}"
1617
import_model: "Import %{plural_model}"
1718
import_btn: "Import"
18-
import_btn_disabled: "Wait..."
19+
import_btn_disabled: "Wait..."
20+
csv_options: "CSV options"
21+
col_sep: 'Col sep'
22+
row_sep: 'Row sep'
23+
quote_char: 'Quote char'

config/locales/zh-CN.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
zh-CN:
2+
active_admin:
3+
import: "导入"
4+
do_import: "导入"
5+
active_admin_import:
6+
file: '文件'
7+
file_error: "导入错误: %{message}"
8+
file_format_error: "请您上传 CSV 格式的文件"
9+
file_empty_error: "您上传的文件为空"
10+
no_file_error: "请您选择要上传的文件"
11+
details: "请您选择要上传的文件"
12+
imported:
13+
one: "成功导入 1 份%{model}"
14+
other: "成功导入 %{count} 份%{plural_model}"
15+
failed:
16+
one: "未能导入 1 份%{model}: %{message}"
17+
other: "未能导入 %{count} 份%{plural_model}: %{message}"
18+
import_model: "导入%{plural_model}"
19+
import_btn: "导入"
20+
import_btn_disabled: "请稍等..."
21+
csv_options: "选项"
22+
col_sep: '列分隔符'
23+
row_sep: '行分隔符'
24+
quote_char: '引用字符'

0 commit comments

Comments
 (0)