Damien Elmes
0a562c2eac
Merge pull request #449 from glutanimate/html-content-section-hooks
...
Add hooks for modifying HTML body sections in the deck browser and overview screens
2020-02-18 08:20:01 +10:00
Glutanimate
ed2782b185
Complete OverviewContent docs
2020-02-17 16:53:47 +01:00
Glutanimate
0e95badd80
Add overview_will_render_content hook
2020-02-17 16:49:21 +01:00
Glutanimate
803b0432f1
Bundle individual section hooks together into one
...
Uses new dataclass 'DeckBrowserContent'
2020-02-17 16:26:21 +01:00
Damien Elmes
0cd1ee92ee
pin coarsetime for now, as .12 requires Sierra
2020-02-17 17:55:39 +10:00
Damien Elmes
e020aa54f9
add fallback for tr if collection not open
...
When syncing media on close, the collection may be closed before
media syncing completes.
A better solution in the future will be decouple translations from
the collection object.
2020-02-17 17:39:01 +10:00
Damien Elmes
302fc2b24e
fix deletion notices being sent unnecessarily
2020-02-17 17:21:58 +10:00
Damien Elmes
9ffae5650f
fix initial build failing
2020-02-17 15:48:27 +10:00
Damien Elmes
fd01cac4d7
split "Due" into three different contexts for translators
2020-02-17 14:41:01 +10:00
Damien Elmes
957a0fae75
media check required message is no longer required
2020-02-17 13:51:33 +10:00
Damien Elmes
b9276f8d56
add helper script to extract previous translated string
2020-02-17 13:41:21 +10:00
Damien Elmes
b554ad8c1d
match older string
2020-02-17 13:41:02 +10:00
Damien Elmes
d13473d456
make sure ftl files get updated
2020-02-17 12:35:55 +10:00
Damien Elmes
908bd93831
fix sync-git
2020-02-17 11:45:56 +10:00
Damien Elmes
e898bd82f1
add some more comments
2020-02-17 11:43:18 +10:00
Damien Elmes
f40a00f0cb
localize some error messages
2020-02-17 11:38:22 +10:00
Damien Elmes
f6643eda53
use new i18n infrastructure for more media check / media sync strings
2020-02-17 10:18:20 +10:00
Damien Elmes
60fafd0457
add some comments to card-template-rendering.ftl
2020-02-17 09:06:54 +10:00
Damien Elmes
644c1f4c26
Revert "test out the Python Fluent implementation"
...
This reverts commit 181c17a0988cf9e57b2604746000c6072cb96206.
Reverting this to keep as a record.
2020-02-17 08:40:17 +10:00
Damien Elmes
07318a20c6
test out the Python Fluent implementation
...
The parsing step is considerably slower in Python, but if parsing
is moved out of the test function, Python wins at 45ms to Rust's 67ms
on 10,000 rounds, presumably due to the overhead of serializing to
Protobuf. Not enough of a difference to justify the inclusion of extra
dependencies and duplicating the lookup code in any case.
2020-02-17 08:40:17 +10:00
Damien Elmes
4b63a07c99
expose translations to Python
2020-02-17 08:40:17 +10:00
Damien Elmes
0260343c69
cache i18n categories
2020-02-17 08:40:17 +10:00
Damien Elmes
342c53a1e4
don't hard-code available ftl languages
...
Instead of trying to define which languages we support, just check
if an appropriate folder is available on disk. This allows users
to drop their own translations into the locale folder and have things
just work.
2020-02-17 08:40:17 +10:00
Damien Elmes
998b2c0f13
wrap i18n struct in a shared mutex so we can start caching
2020-02-17 08:40:17 +10:00
Damien Elmes
1f736239cd
pass progress back as translated string(s)
2020-02-17 08:40:17 +10:00
Damien Elmes
8450214cda
add ftl to the build process, and a sync-git script
...
also
- ensure po files are checked when updated
- add start of sync.ftl
2020-02-17 08:40:17 +10:00
Damien Elmes
632041f14f
drop unused threadLocal and noHint i18n code
2020-02-17 08:40:17 +10:00
Damien Elmes
ff9daa099b
use new file locations for translations
...
- translation files are now stored in a separate repo, and
use a layout compatible with Pontoon
- normalize the language code in aqt, so that old config settings
and command line arguments are correctly handled
- store Qt and gettext translations in separate subfolders
- remove Crowdin scripts
2020-02-17 08:40:17 +10:00
Damien Elmes
067ade9a3b
move Gettext translations into separate repo for Pontoon
2020-02-17 08:40:17 +10:00
Damien Elmes
0acae7ecf7
update translations
2020-02-17 08:40:17 +10:00
Damien Elmes
78ffde32e1
expose StringsGroup enum in protobuf
2020-02-17 08:40:17 +10:00
Damien Elmes
43005f00a5
bump version
2020-02-17 08:40:17 +10:00
Damien Elmes
7a0d1ffae0
fix sync deauth
2020-02-17 08:40:17 +10:00
Damien Elmes
0869a78668
more frequent progress updates
2020-02-17 08:40:17 +10:00
Damien Elmes
a5558d5413
pass locale details to backend
2020-02-17 08:40:17 +10:00
Damien Elmes
47aa27f877
fix Lojban selection
2020-02-17 08:40:17 +10:00
Damien Elmes
dd635afc29
rename card-templates.ftl
2020-02-17 08:40:17 +10:00
Damien Elmes
ba0bc3086c
move empty card check into template code
2020-02-17 08:40:17 +10:00
Damien Elmes
0738ff46b6
make template errors translatable
2020-02-17 08:40:17 +10:00
Damien Elmes
834989a019
include report in MediaCheckOutput
2020-02-17 08:40:17 +10:00
Damien Elmes
36d2536262
add i18n support to Rust code using Fluent
2020-02-17 08:40:17 +10:00
Damien Elmes
8f34c720b8
remove redundant test_ prefix
2020-02-17 08:40:17 +10:00
Damien Elmes
afca40c83f
mark deletions in media DB when files are deleted
2020-02-17 08:40:17 +10:00
Damien Elmes
5e500775d4
ignore errors when file to delete is already gone
...
May be marked as pending upload or in media check screen, then removed
by user.
2020-02-17 08:40:17 +10:00
Damien Elmes
90e5bfcb0c
make sure we don't leave a trailing dot or space when truncating
2020-02-17 08:40:17 +10:00
Damien Elmes
0869fac03a
make sure renames generated during sync don't get immediately removed
2020-02-17 08:40:17 +10:00
Damien Elmes
311fb524a4
don't filter out invalid filenames when we're sending them as a deletion
2020-02-17 08:40:17 +10:00
Damien Elmes
56931467a9
fix the wrong named being returned when renaming in sync
2020-02-17 08:40:17 +10:00
Damien Elmes
d23477b143
update media DB when adding LaTeX images
2020-02-17 08:40:17 +10:00
Damien Elmes
0d1549c5bd
pt->pb for consistency with rsbackend.py
2020-02-17 08:40:17 +10:00