Questions tagged [django-localeurl]
11 questions
3
votes
4 answers
Saving user preferred language and django-localeurl
Ok, after two hours of trying, Im gonna ask...
I have an app and I have it on several languages. Would be good if the default language of the app is the browser language but would be good too if an user can overwrite that language.
I mean, your…

Jesus Rodriguez
- 11,918
- 9
- 64
- 88
2
votes
1 answer
How connect Django 1.8 and django-localeurl
I work with Django 1.8 and I instaled django-localurl==2.0.2.
I loaded localurl tag {% load localeurl_tags %} in my base.html template, and I get an error:
TemplateSyntaxError at /
'localeurl_tags' is not a valid tag library: ImportError raised…

mark
- 653
- 1
- 10
- 23
2
votes
1 answer
django-localeurl patched reverse doesn't work in unit testing
My app is using django-localeurl. My unit testing were ok in django 1.5.5 but since I moved to django 1.6.2, i have many errors because of status 301 in response.
It seems that this is caused by wrong urls which don't take into account the locale…

luc
- 41,928
- 25
- 127
- 172
2
votes
0 answers
reverse_lazy doesn't add language prefix when using django-localeurl
I am using https://github.com/carljm/django-localeurl package to make my site multilingual.
settings.py
LANGUAGE_CODE = 'en'
_ = lambda s: s
LANGUAGES = (
('lt', _("Lithuanian")),
('en', _("English")),
)
PREFIX_DEFAULT_LOCALE =…

aemdy
- 3,702
- 6
- 34
- 49
1
vote
1 answer
Django 1.3 get_absolute_url and localeurl
I am using Django 1.3 in my project and switching away from the javascript i18n function to localeurl.
Really handy although I am stuck with my get_absolute_url().
Everytime I try and call up a page it defaults to the default language, even if I…

ApPeL
- 4,801
- 9
- 47
- 84
1
vote
0 answers
Django Localization, HTML translation string are working but Not translating Python translation strings when switching language
I went through many posts but not able to resolve problem, may be problem is something else.
Application is using django and appengine
When I select a language (for ex: "Spanish (es)"), everything working perfectly fine even python translation…

Love Sharma
- 1,981
- 1
- 18
- 37
0
votes
1 answer
Unable to lazy reverse when using django-localeurl
I'm using djangio-localeurl to provide locale switching based on my URLs. It works fine pretty much apart from a little hiccup.
In some of my class-based views, I have been using a lazy reverse function else I get errors about missing URL patterns.…

Mridang Agarwalla
- 43,201
- 71
- 221
- 382
0
votes
3 answers
django locale-url import error cannot import name 'urlresolvers' from 'django.core'
I am working through docs
This is the import statement:
from django.core import urlresolvers
And I am getting this error:
ImportError: cannot import name 'urlresolvers' from…

avi giri
- 1
- 2
0
votes
1 answer
Django page redirect based on locale url
Lets say we have a page:
http://www.example.com/cs/department/category/
I am using django-locale for internationalization.
How am I going to achieve that if somebody type:
http://www.example.com/en/department/category/
EN instead of CS it will…

Radek
- 1,149
- 2
- 19
- 40
0
votes
1 answer
Language code prepended twice when using url-reverse template filter and i18n urls with localeurl
Django 1.5, using the app
localeurl
With urlpattern like so :
urlpatterns += i18n_patterns(
url(r'^user/login/?$','django.contrib.auth.views.login',\
{'template_name':'user/login.html'}),
)
and in the template, this
{% url…

mfit
- 807
- 13
- 28
0
votes
2 answers
Django - Internationalized URL part different per language
I need to make an urlpattern different for each language, but following to the same view.
for example:
url(r'^category/(?P[\w-]+)/, 'news.views.category', name='category'), in english
url(r'^kategoria/(?P[\w-]+)/, 'news.views.category',…

tunarob
- 2,768
- 4
- 31
- 48