I'm new at this Django stuff, so this is more of a question than a suggestion. I keep seeing a references to translating. I found in the manual the following:
On Tuesday, May 22, 2018 at 2:31:36 AM UTC-4, Carlo Ascani wrote:
-- 3.15 Internationalization and localization
3.15.1 Translation
Overview
In order to make a Django project translatable, you have to add a minimal number of hooks to your Python code and
templates. These hooks are called translation strings. They tell Django: "This text should be translated into the end
user's language, if a translation for this text is available in that language." It's your responsibility to mark translatable
strings; the system can only translate strings it knows about.
So I was thinking that was an option so that I could build one site and then have translations into other languages so when the user picked a language everything will switch to that language. Is this a naive assumption?
On Tuesday, May 22, 2018 at 2:31:36 AM UTC-4, Carlo Ascani wrote:
Hi all,I'd like to implement something like this:One Django project to serve 3 sites:1. `domain.com` which is the "master" site, containing just a landing page2. `de.domain.com` which is the "German" site3. `en.domain.com` which is the "UK" site`de` and `en` refers the location, not the language (e.g. `de.domain.com/en/` is the German site in English)If you go to `domain.com` you can choose the language and the country, and you are just redirected to the right place.Is `contrib.site` suitable for that scenario?I was thinking at 3 different sites.If so, how can I use them locally while in development?Any other suggestions?Best,Carlo
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/b10986bb-9b75-4c29-80e0-cfe902a9e2c5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
No comments:
Post a Comment