Message of the day:
For discussing issues and getting help with translation modules (Fluent, Translatable etc.)
Discussing translations modules and problems (Fluent etc)
E.g. en_NZ, en_NZ, en_AU
Sorry, multiple locale dataobjects with the same locale
As opposed to the current multiple locales in different languages?
So you're asking @tractorcow - for multiple locales with the same language, e.g. en_NZ, en_AU, en_GB, en_US, etc?
I don't come into slack often.
Please leave your comments on the module not here 🙂
I'm currently developing fluent 5.0 so this would be a good opportunity for such a feature to make it's way into the codebase. However, it may make the codebase more complex, so if it's not massively required, I probably won't implement it.
Hey #translations I have an important question for you. How important would it be for fluent to let content authors create multiple locale / translations zones with the same language code? E.g. "en_NZ" across a separate NZ and global domain, and "en_AU" for the AU domain? I have had a query about this at https://github.com/tractorcow-farm/silverstripe-fluent/issues/595#issuecomment-588425005 and I'd love user feedback.
You know I've had this issue in the back of my mind... multiple locales with the same "Locale" value. The module itself actually assumes that each locale is is distinct, so I can imagine there will be a lot of issues you run into with this assumption.
I think the fact that you have managed to duplicate the Latvian locale across multiple locale dataobjects (and have it work, mostly) is fortunate, but risky. :)
We could change the behaviour of the locale identifier; Use $locale->ID as the unique indentifier, rather than $locale->Locale code. (i.e. FluentState would contain the ID as the state rather than code).
Here's an important question for you; Do each of your domains have different content? Are you using the locales to segment different content in the same language, rather than localising the same content in multiple languages?
Here's an opportunity here; Fluent 5.0 is in active development. If we want to support duplicate locales we could probably look at it here. I would want to know how widely demanded this feature is though.Hide attachment content
One way to do it could be to override
isLiveVersion() on your page object and do the query yourself