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: 'Nume'
email_label: 'E-mail'
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: 'edit'
# rule_label: 'Rule'
# tags_label: 'Tags'
# 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: 'What does « tagging rules » mean?'
@ -429,9 +439,9 @@ tag:
rename:
# placeholder: 'You can update tag name.'
# export:
# footer_template: '<div style="text-align:center;"><p>Produced by wallabag with %method%</p><p>Please open <a href="https://github.com/wallabag/wallabag/issues">an issue</a> if you have trouble with the display of this E-Book on your device.</p></div>'
# unknown: 'Unknown'
export:
# footer_template: '<div style="text-align:center;"><p>Produced by wallabag with %method%</p><p>Please open <a href="https://github.com/wallabag/wallabag/issues">an issue</a> if you have trouble with the display of this E-Book on your device.</p></div>'
# unknown: 'Unknown'
import:
# page_title: 'Import'
@ -601,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: 'Entry already saved on %date%'