babble icon indicating copy to clipboard operation
babble copied to clipboard

Add support for Top level Domains

Open markoheijnen opened this issue 11 years ago • 5 comments

Currently Babble only supports url prefixes but it would be cool to have support for top level domains or sub domains.

markoheijnen avatar Jul 05 '13 09:07 markoheijnen

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).

simonwheatley avatar Jul 05 '13 09:07 simonwheatley

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.

markoheijnen avatar Jul 05 '13 09:07 markoheijnen

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!

simonwheatley avatar Jul 05 '13 09:07 simonwheatley

A first try to hack into babble with a plugin to add the support: https://github.com/markoheijnen/babble-top-level-domain

markoheijnen avatar Sep 12 '13 16:09 markoheijnen

Our first plugin. :)

simonwheatley avatar Sep 12 '13 16:09 simonwheatley