flokosiol / kirby-translations

Translations field for Kirby 2
45 stars 3 forks source link

Add resynchronise option #7

Closed sylvainjule closed 7 years ago

sylvainjule commented 7 years ago

Not sure it's the way to go, but I had trouble with dynamic fields (structure) and language deleting.

Let's say I have a structure field I'm filling on the default language page. I didn't pay attention but one of my secondary language file was already created. Now I don't want to re-create all the structure entries by hand, rather get a fresh start from the already-created ones.

If I delete the secondary language file in order to do so, it keeps the current file content cached somewhere and I'm not able to get the default content :

delete

I have to flush my browser data in order to be able to see it.

I have no clue where to find this cache and delete it, so I added a "resync" button that updates the file with the default language content :

update

(Nothing to do with the new delete method I already had this issue with the previous way of textfile deletion, the new one is working fine here 👍)

sylvainjule commented 7 years ago

Nothing to do with the translations plugin specifically, it seems the issue is long known.

flokosiol commented 7 years ago

Thanks for the suggestion and your work. I will need to find some time to have closer look at this. So this may take some time … please bear with me 😉

daybugging commented 7 years ago

Just what I needed, great!

And maybe you'll find this useful: Changing something on default language (as declared in config.php) sets the other languages automatically to "not up-to-date".

// Edit: Works perfectly with Kirby Tabs, see #8.