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

@ -140,6 +140,15 @@ config:
# edit_rule_label: 'edit'
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: 'پرسش‌های متداول'
tagging_rules_definition_title: 'برچسب‌گذاری خودکار یعنی چه؟'
@ -602,6 +611,9 @@ flashes:
# tags_reset: Tags reset
# entries_reset: Entries reset
# archived_reset: Archived entries deleted
# 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% ذخیره شده بود'