serieseight / statamic-audit-log

Statamic v2 Addon for logging system events.
MIT License
4 stars 1 forks source link

Added support for multilingual websites #7

Closed makkinga closed 5 years ago

makkinga commented 5 years ago

Hi there @aryehraber ,

The addon doesn't tell in what locale data has been changed. Because one of our clients did require this I have made this little PR.

I have added an extra locale column to the database migration. When saving a Page, Term, Entry or Global it will save the locale (shorthand) that has been edited. It also saves the localised data in the snapshot instead of the default locale's data.

The overview and detail page in the CP show the locale's name.

image

image

Hope you like it.

Gr, Gydo

aryehraber commented 5 years ago

Thanks @makkinga!

Sounds like a very useful addition, I'll try and have a look & test this/next week!

makkinga commented 5 years ago

Thanks!

If anything needs to be changed just let me know

aryehraber commented 5 years ago

Finally had a chance to look over this, thanks again @makkinga!