This is bigger Sluggable refactor to support generating slugs while using Cake core's TranslateBehavior and editing record in multiple locales at once with inputs like:
Category.name.eng
Category.name.deu
Category.name.pol
There is only a few changes everything else is only formatting (sorry for that).
What have been changed?
New method _processSlug() that is just pulled out some of logic from beforeSave() callback to not DRY with translated array fields
Totally refactored _makeUnique() because while using TranslateBehavior you can't simply operate on SQL likes because of I18n model. So I decided to work on strings.
That's all, nothing else changed, just I said it's only formatting.
This is bigger Sluggable refactor to support generating slugs while using Cake core's TranslateBehavior and editing record in multiple locales at once with inputs like: Category.name.eng Category.name.deu Category.name.pol
There is only a few changes everything else is only formatting (sorry for that).
What have been changed?
That's all, nothing else changed, just I said it's only formatting.