django-rosetta
django-rosetta copied to clipboard
usage on read-only filesystem
when rosetta (v. 0.6.2 with django 1.3.1) is used on read-only filesystem, it doesn't store data in session, so downloading updated .po file is impossible and translated phrases disappears after swiching to another page. checked with current version, 0.6.2 and 0.6.0
I'm seeing the same behavior with version 0.7.13. Documentation suggests that you can still edit the file, save to tmp storage and then download but instead the changes are not stored? O rdo i need to change the storage type? Currnetly using the default...
@Paul424 Rosetta should still save the data into Django's session storage, and you should still be able to download a zip with the translated catalogs.
If that's not the case this is definitely a proper issue that I should address.
I tried to change the storage to session based but that gives me: <polib.POEntry object at 0x7f9e2c65cbd0> is not JSON serializable.... (and changing the serializer to pickle is not an acceptable solution for me, sorry...). Would it also need to work with the default cache storage backend?
I'll have to try and reproduce this, could you please paste your ROSETTA_*, as well as your CACHES and SESSION_ENGINE settings?
Sure, I have the same issue, the downloaded zip is just the original. My rosetta settings are: ROSETTA_MESSAGES_PER_PAGE = 50 ROSETTA_SHOW_AT_ADMIN_PANEL = True I have not set any CACHES or SESSION_ENGINE. django==2.0.7 django-rosetta==0.8.3