Add ability to import/export tagging rules

- Add missing translations
- Add some tests
- Add `/api/taggingrule/export` API endpoint
- Add baggy theme
- Add error message when importing tagging rules failed
- Also fix all translations (I think we are good now)
This commit is contained in:
Jeremy Benoist
2019-06-26 22:31:47 +02:00
parent 92cd51aa2c
commit 34be2d5de4
25 changed files with 584 additions and 31 deletions

View File

@ -105,6 +105,7 @@ config:
# login_label: 'Login (can not be changed)'
name_label: 'ชื่อ'
email_label: 'อีเมล'
two_factor:
# emailTwoFactor_label: 'Using email (receive a code by email)'
# googleTwoFactor_label: 'Using an OTP app (open the app, like Google Authenticator, Authy or FreeOTP, to get a one time code)'
# table_method: Method
@ -139,6 +140,15 @@ config:
edit_rule_label: 'ปรับแก้'
rule_label: 'ข้อบังคับ'
tags_label: 'แท็ก'
# card:
# new_tagging_rule: Create a tagging rule
# import_tagging_rules: Import tagging rules
# import_tagging_rules_detail: You have to select the JSON file you previously exported.
# export_tagging_rules: Export tagging rules
# export_tagging_rules_detail: This will download a JSON file that you can use to import tagging rules elsewhere or to backup them.
# file_label: JSON file
# import_submit: Import
# export: Export
faq:
title: 'FAQ'
tagging_rules_definition_title: 'ข้อบังคับการแท็กคืออะไร?'
@ -255,6 +265,7 @@ entry:
created_at: 'วันที่สร้าง'
published_at: 'วันที่ประกาศ'
published_by: 'ประกาศโดย'
# provided_by: 'Provided by'
new:
page_title: 'บันทึกรายการใหม่'
placeholder: 'http://website.com'
@ -266,6 +277,7 @@ entry:
page_title: 'แก้ไขรายการ'
title_label: 'หัวข้อ'
url_label: 'Url'
# origin_url_label: 'Origin url (from where you found that entry)'
save_label: 'บันทึก'
public:
shared_by_wallabag: "บทความนี้จะมีการแชร์โดย %username% กับ <a href='%wallabag_instance%'>wallabag</a>"
@ -599,6 +611,9 @@ flashes:
tags_reset: รีเซ็ตแท็ก
entries_reset: รีเซ็ตรายการ
archived_reset: การลบเอกสารของรายการ
# otp_enabled: Two-factor authentication enabled
# tagging_rules_imported: Tagging rules imported
# tagging_rules_not_imported: Error while importing tagging rules
entry:
notice:
entry_already_saved: 'รายการพร้อมบันทึกที่ %date%'