babble
babble copied to clipboard
Add support for Top level Domains
Currently Babble only supports url prefixes but it would be cool to have support for top level domains or sub domains.
Babble is designed with the primary aim of translating a corpus of content, rather than:
- Separate streams of content in different languages (best done with multisite), or
- Bodies of content from a single entity which serve a variety of markets, possibly in different languages, e.g. site for Company X serving France, Spain and the UK
For that primary purpose, we felt that URL prefixes were the best choice. However, we'd happily accept patches for this. :) My preference would be to add hooks or filters which enable the different URL strategies, rather than a settings screen (but feel free to argue otherwise if you disagree).
I don't even dare to argue about it ;). I agree that it is best done with multisite but it get difficult when you share the same content. I will look into it and I will do it with hooks since this things never really change.
Vigorous debate is healthy. ;)
I like hooks, as it allows us to be opinionated about the common use cases while providing options for advanced users AND reducing settings screens!
A first try to hack into babble with a plugin to add the support: https://github.com/markoheijnen/babble-top-level-domain
Our first plugin. :)