django-rosetta icon indicating copy to clipboard operation
django-rosetta copied to clipboard

usage on read-only filesystem

Open meehow opened this issue 14 years ago • 5 comments

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

meehow avatar Nov 05 '11 17:11 meehow

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 avatar Jun 29 '17 06:06 Paul424

@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.

mbi avatar Jun 29 '17 06:06 mbi

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?

Paul424 avatar Jun 29 '17 07:06 Paul424

I'll have to try and reproduce this, could you please paste your ROSETTA_*, as well as your CACHES and SESSION_ENGINE settings?

mbi avatar Jun 29 '17 14:06 mbi

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

BarnabasSzabolcs avatar Aug 18 '18 12:08 BarnabasSzabolcs