Is starting a i18n project to translate only the dates ?

2022-09-12 Thread Laurent Lyaudet
instead but it seems to be quite cumbersome to start an i18n project just for dates translations. Thanks, best regards, Laurent Lyaudet -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiv

i18n: Miscellaneous as dropdown-menu

2020-04-29 Thread René Labounek
lt;https://docs.djangoproject.com/en/3.0/topics/i18n/translation/>" language changing button. {% load i18n %} {% csrf_token %} {% get_current_language as LANGUAGE_CODE %} {% get_available_languages as LANGUAGES %} {% get_language_info_list for LANGUAGES as languages %}

Help with i18n language translation in template - strange behavior between Django 2.2.12 and 3.0+

2020-04-08 Thread Александър Попов
sword.html: {% csrf_token %} Password change {% load i18n %} {% language 'de' %} {{ p_form|crispy }} {% endlanguage %} Save Have you faced w

Re: Issue i18n django_language in session

2019-07-17 Thread Yoo
sing a regular browser tab. Otherwise, I'll also look into it. Cheers! On Wednesday, July 17, 2019 at 12:44:57 PM UTC-4, Oscar Rovira wrote: > > Hi there, > I have a Django site with multi-language support through i18n. > The default user's language is set based on the browser h

Issue i18n django_language in session

2019-07-17 Thread Oscar Rovira
Hi there, I have a Django site with multi-language support through i18n. The default user's language is set based on the browser headers but users can change it via the regular set_language view. Recently I noticed that the UI is shown in a different language than the one my user is sup

Re: How to fix i18n fallback , from variant xx-YY to xx and from xx to en the translatino is not available.

2017-05-09 Thread Melvyn Sopacua
On Monday 08 May 2017 09:27:52 Abdullah Sh. wrote: > Well as far I can test, Django i18n does supports fall-back 'xx-YY' to > 'xx' then to default ('en' in my case) but only for 'Accept-Language' > user agent header. It does not do same for URL la

Re: How to fix i18n fallback , from variant xx-YY to xx and from xx to en the translatino is not available.

2017-05-08 Thread Abdullah Sh.
Well as far I can test, Django i18n does supports fall-back 'xx-YY' to 'xx' then to default ('en' in my case) but only for 'Accept-Language' user agent header. It does not do same for URL language switch. Here is the solution I could come up

How to fix i18n fallback , from variant xx-YY to xx and from xx to en the translatino is not available.

2017-05-06 Thread Abdullah Sh.
Well, official documentation says clearly it should fall-back (ex: fr-fr to fr then to en) but my case raises 404 error. Source: https://django.readthedocs.io/en/1.5.x/topics/i18n/translation.html If a base language is available but the sublanguage specified is not, > Django uses the b

Javascript i18n - makemessages doesnt create a djangojs file.

2016-12-03 Thread Laurent Dumont
Hey guys, /opt/venv/bin/python ../manage.py makemessages -d djangojs -l en -l fr Looking into debugging this further, I want to translate a few JS files but the makemessages commands fails to create the Djanjojs files. I'm using something like this : url(r'^jsi18n/$', JavaScript

Re: Django i18n design rationale

2016-01-02 Thread Raphael Michel
Hi, Am Fri, 1 Jan 2016 15:29:16 -0800 (PST) schrieb Jure Erznožnik : > 1. Expressions gathering vs declaring: Django has utilities to gather > expressions from sources, txt files and also javascript files. While > that by itself is a design choice, it also presents us with problems > such as (pos

Django i18n design rationale

2016-01-01 Thread Jure Erznožnik
I've worked with Django for the past few months. While this - I realize - is not much, so far it has been an extremely pleasant experience. Everything seems to be designed just right and works really nicely out of the box. So I was that much more surprised when I had to prepare my first app for

Django i18n in JS templates

2014-11-10 Thread Alex Isayko
We actively use django-pipeline package and its builtin solution for javascript templates <https://django-pipeline.readthedocs.org/en/latest/templates.html> The problems begins when we needed to use i18n in this templates, for ex.: <%= gettext('To translate')

Re: i18n and overriding django.auth translations

2014-09-03 Thread paul . connell
Well, it's a real situation - I removed the django.admin app from settings.py and then my translations worked - it's a basic occlusion - the django.admin translations seem to be used before my own translations when django.admin is enabled and my application has strings like 'Password' in them.

Re: i18n and overriding django.auth translations

2014-09-02 Thread Avraham Serour
is this a theoretical question or did you try and it is not working? On Tue, Sep 2, 2014 at 1:26 PM, wrote: > I've got some basic translations working in de_de (German), but it seems > that django has brought it's own translations along for the ride after I > compile. I has not translated 'Pas

i18n and overriding django.auth translations

2014-09-02 Thread paul . connell
I've got some basic translations working in de_de (German), but it seems that django has brought it's own translations along for the ride after I compile. I has not translated 'Password' in my locale files but DJango is doing it automatically (I assume from the django.admin module?). That's f

Re: internationalization (i18n)

2014-07-30 Thread marc
Here's a list of locales in Django: https://github.com/django/django/tree/master/django/conf/locale Am Mittwoch, 30. Juli 2014 14:47:03 UTC+2 schrieb ma...@tubeards.com: > > Hi, > > have a look at: http://www.i18nguy.com/unicode/language-identifiers.html > > The localization in django is based on

Re: internationalization (i18n)

2014-07-30 Thread marc
Hi, have a look at: http://www.i18nguy.com/unicode/language-identifiers.html The localization in django is based on region and language codes, some of them are the same (like 'de') and some split (like 'en-us'). For 'mr' you'll need to add the area code of india iirc. Cheers Am Mittwoch, 30.

internationalization (i18n)

2014-07-30 Thread Supriya Sawant
Hello, I am using internationalization feature in djnago framework. In my setting.py I have following languages set: LANGUAGES = ( ('de', ugettext('German')),('en', ugettext('English')),('mr', ugettext('Marathi')),('mwr', ugettext('Marwari')),('mun', ugettext\ ('Munda')),('ne', uget

Re: Can't get i18n/setLang to match any urls

2014-05-17 Thread Shawn H
G. I read the docs, and I SWEAR it had the "l" as a capital. It's always the simplest things. Thank you! On Saturday, May 17, 2014 1:04:45 AM UTC-5, WongoBongo wrote: > > The L in setLang should be setlang as in the L is lowercase > > From my Django log "P

Re: Can't get i18n/setLang to match any urls

2014-05-16 Thread Kelvin Wong
The L in setLang should be setlang as in the L is lowercase >From my Django log "POST /i18n/setlang/ HTTP/1.1" 302 0 K On Wednesday, May 14, 2014 2:45:43 PM UTC-7, Shawn H wrote: > > I'm beginning the process of adding some translations to one public page, > and I

Can't get i18n/setLang to match any urls

2014-05-14 Thread Shawn H
Copied the directly from the docs, version 1.6 My urls.py from django.conf.urls import patterns, include, url from sdcgis import settings urlpatterns = patterns('', #index url('^sdc/home/',include('sdc_home.urls', namespace='sdc_home')),

Re: Django i18n questions

2014-04-11 Thread Andrew Pashkin
Indeed On 11.04.2014 12:45, Daniel Roseman wrote: On Friday, 11 April 2014 06:55:12 UTC+1, Andrew Pashkin wrote: Documentation says <https://docs.djangoproject.com/en/1.4/topics/i18n/translation/#how-django-discovers-language-preference>, that: ...it looks

Re: Django i18n questions

2014-04-11 Thread Daniel Roseman
On Friday, 11 April 2014 06:55:12 UTC+1, Andrew Pashkin wrote: > > Documentation > says<https://docs.djangoproject.com/en/1.4/topics/i18n/translation/#how-django-discovers-language-preference>, > > that: > > ...it looks for a django_language key in the current use

Re: Django i18n questions

2014-04-10 Thread Andrew Pashkin
I ended up using this snippet <https://djangosnippets.org/snippets/2875/> for switching languages. It simply reverses url with given language code. On 11.04.2014 09:55, Andrew Pashkin wrote: Documentation says <https://docs.djangoproject.com/en/1.4/topics/i18n/translation/#how-django-

Django i18n questions

2014-04-10 Thread Andrew Pashkin
Documentation says <https://docs.djangoproject.com/en/1.4/topics/i18n/translation/#how-django-discovers-language-preference>, that: ...it looks for a django_language key in the current user's session This is the latest commit <https://github.com/djan

Re: Django i18n url is not working with en-us sublanguage

2014-02-27 Thread Eliecer Daza
's default LANGUAGE_CODE is 'en-us' but there is no 'en-us' in the > default LANGUAGES setting. That's why I got 404 page. > > Should I just change the LANGUAGE_CODE to 'en' or add 'en-us' to the > LANGUAGES setting? > > Is the def

For those that do i18n and L10n

2013-08-04 Thread Lachlan Musicman
Here is an interesting paper on the use of FOSS in translation (in English, about Spanish) http://www.trans-int.org/index.php/transint/article/view/205/127 cheers L. -- We are like a drunk blundering through a crowd of pickpockets. That we are not poor and naked already is a testament to eithe

Re: models i18n

2013-03-07 Thread Roberto López López
another question, which I've not seen answered in the >> documentation: is there any custom filter/tag to access those translated >> fields from a template? Thanks > > If you do {% load i18n %} somewhere in your template then you can use the {{ > employee.position

Re: models i18n

2013-03-07 Thread Johan ter Beest
On Mar 6, 2013, at 4:20 PM, Roberto López López wrote: > > Thanks for your suggestion Johan. > > Just another question, which I've not seen answered in the > documentation: is there any custom filter/tag to access those translated > fields from a template? Thanks

Re: models i18n

2013-03-06 Thread Roberto López López
Thanks for your suggestion Johan. Just another question, which I've not seen answered in the documentation: is there any custom filter/tag to access those translated fields from a template? Thanks Best, Roberto On 03/05/2013 10:39 PM, Johan ter Beest wrote: > > On Mar 5, 2013, at 10:31 PM, Ro

i18n

2013-03-06 Thread Roberto López López
Hi, I am setting up i18n in my django app. I have added the following to my settings.py: PROJECT_PATH = os.path.abspath(os.path.dirname(__file__)) LOCALE_PATHS = ( os.path.join(PROJECT_PATH, 'locale'), ) LANGUAGES = [ ('

Re: models i18n

2013-03-05 Thread Johan ter Beest
On Mar 5, 2013, at 10:31 PM, Roberto López López wrote: > Hi guys, > > I am developing a django application and between my requirements there > is being able to set the model fields into different languages. > > For example: > > class Employee(models.Model): >position = models.CharField()

models i18n

2013-03-05 Thread Roberto López López
Hi guys, I am developing a django application and between my requirements there is being able to set the model fields into different languages. For example: class Employee(models.Model): position = models.CharField() # etc. The employee position won't be the same in English and Spanish.

Re: I18N URL patterns and wsgi

2013-03-04 Thread Sebastian Wiesinger
My urls.py looks like this: from django.conf.urls import patterns, include, url from django.contrib.staticfiles.urls import staticfiles_urlpatterns from django.conf.urls.i18n import i18n_patterns import settings urlpatterns = i18n_patterns('', url(r'^request/?$', 'custrequest.views.request'),

I18N URL patterns and wsgi

2013-03-04 Thread Sebastian Wiesinger
Hello, I have a Django project (Django 1.4.5) at an URL like this: http://host/subdir/django-app This is implemented with apache + WSGI and is configured in the apache configuration: WSGIScriptAlias /subdir /some/path/to/django-app.wsgi Now I implemented I18N and tried it on the webserver

bug in use of mark_safe and i18n _ ?

2012-10-15 Thread Federico Marani
Hi, I am using a form which defines this field: terms = forms.BooleanField( error_messages={'required': _('You must accept the terms and conditions')}, label="", help_text=_(mark_safe("I understand and accept the terms of use and privacy policy of this site.")) ) unf

Re: i18n - local translation does not show up - bug

2012-05-07 Thread kenneth gonsalves
On Mon, 2012-05-07 at 11:44 +0530, kenneth gonsalves wrote: > > It'd be strange, but certainly possible, it is broken. We have > > a test case checking that such feature works: > > > > > https://github.com/django/django/blob/master/tests/regressiontests/views/tests/i18n.py#L140 > > > > Could you

Django i18n url is not working with en-us sublanguage

2012-05-07 Thread Suteepat Damrongyingsupab
LANGUAGES setting? Is the default 'en-us' LANGUAGE_CDE setting useless when using with i18n URL? -- You received this message because you are subscribed to the Google Groups "Django users" group. To view this discussion on the web visit https://groups.google.com/d/msg/dja

Re: i18n - local translation does not show up - bug

2012-05-06 Thread kenneth gonsalves
On Thu, 2012-05-03 at 10:29 -0300, Ramiro Morales wrote: > > > > I had gone through the docs and added the LOCALE_PATHS setting - but > it > > just does not work - have tried on fedora, debian, ubuntu ... > > Good to know that, I couldn't infer that from your initial email. > > It'd be strange, b

Re: i18n - local translation does not show up - bug

2012-05-03 Thread Ramiro Morales
On Thu, May 3, 2012 at 9:17 AM, kenneth gonsalves wrote: > > I had gone through the docs and added the LOCALE_PATHS setting - but it > just does not work - have tried on fedora, debian, ubuntu ... Good to know that, I couldn't infer that from your initial email. It'd be strange, but certainly po

Re: i18n - local translation does not show up - bug

2012-05-03 Thread kenneth gonsalves
On Wed, 2012-05-02 at 10:53 -0300, Ramiro Morales wrote: > > I want two languages in my project - en and ta. I have set this up > in > > many projects over the years and this is the first time I am seeing > > failure. The problem is that on switching to tamil, the django > strings > > are getting t

Re: i18n - local translation does not show up - bug

2012-05-02 Thread Ramiro Morales
On Wed, May 2, 2012 at 4:13 AM, kenneth gonsalves wrote: > hi, > > I want two languages in my project - en and ta. I have set this up in > many projects over the years and this is the first time I am seeing > failure. The problem is that on switching to tamil, the django strings > are getting tran

i18n - local translation does not show up - bug

2012-05-02 Thread kenneth gonsalves
hi, I want two languages in my project - en and ta. I have set this up in many projects over the years and this is the first time I am seeing failure. The problem is that on switching to tamil, the django strings are getting translated, but not the local strings. Django is obviously not finding my

Re: How to format string on I18n

2012-01-04 Thread Krator Ado
msgid u"邀請已送到%(email)s" and add "# coding=utf-8" at the first line of your .py file. 2012/1/4 李 强 > Lack of a full stop,maybe. > > 在 2011-12-5,下午2:07, Tsung-Hsien 写道: > > > Hello > >I get the wrong message when type a string which needed to format > > such as > > > > msgid "An inviatation wa

Re: How to format string on I18n

2012-01-03 Thread 李 强
Lack of a full stop,maybe. 在 2011-12-5,下午2:07, Tsung-Hsien 写道: > Hello >I get the wrong message when type a string which needed to format > such as > > msgid "An inviatation was sent to %(email)s." > msgstr "邀請已送到%(email)s" > > ---

Re: How to format string on I18n

2011-12-05 Thread rskm1
.mo files after you make any changes to the .po files. https://docs.djangoproject.com/en/1.3/topics/i18n/localization/#compiling-message-files -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us

Re: How to format string on I18n

2011-12-05 Thread Tsung-Hsien
Thank you! the default character of MySQL does not utf-8, so after altering the character, the message can show on the page. However, the message shows only English, except I don't use the % (email)s. I have been delete the "#, fuzzy" and remain the "#, python-format", but the string still show Eng

Re: How to format string on I18n

2011-12-05 Thread Mimi Tantono
Please look at the thread below: http://stackoverflow.com/questions/873419/converting-to-safe-unicode-in-python And you would want to make sure that database encoding style is already set to UTF-8 (if applicable). 2011/12/5 Tsung-Hsien > Hello >I get the wrong message when type a string whi

How to format string on I18n

2011-12-04 Thread Tsung-Hsien
Hello I get the wrong message when type a string which needed to format such as msgid "An inviatation was sent to %(email)s." msgstr "邀請已送到%(email)s" -- Incorrect string value: '\xE9\x82\x80\xE8\xAB\x8B...

Django 1.4 (dev) doesn't redirect to i18n url when debug is false

2011-11-24 Thread Jesus Rodriguez
Hello, I have an app using Django 1.4 dev. Im using i18n_patterns and well, it works perfectly. If im on a spanish session and I go to: /foo/ It redirects me to: /es/foo/ so far so good. But when I disable DEBUG, it doesn't work. If you go to: /foo/ it just redirect you to 500.html. Witho

Re: I18N and caching: page don't change language until I press F5 in browser

2011-11-05 Thread Torsten Bronger
Hallöchen! Salvatore Iovene writes: > On Sat, Nov 5, 2011 at 7:43 AM, Torsten Bronger > wrote: > >> Sending e.g. "Expires: ..." so that the page expires immediately >> solved the problem. > > Sending an Expires header so that the page expires immediately > does work, but it feels like fixing a h

Re: I18N and caching: page don't change language until I press F5 in browser

2011-11-05 Thread Salvatore Iovene
On Sat, Nov 5, 2011 at 7:43 AM, Torsten Bronger wrote: > Sending e.g. "Expires: ..." so that the page expires immediately > solved the problem. Sending an Expires header so that the page expires immediately does work, but it feels like fixing a headache with a guillotine. The browser should cache

Re: I18N and caching: page don't change language until I press F5 in browser

2011-11-04 Thread Torsten Bronger
Hallöchen! Salvatore Iovene writes: > On Friday, November 4, 2011 5:31:46 PM UTC+2, Salvatore Iovene wrote: >> >> if hasattr(request, 'session'): >> request.session['django_language'] = lang >> else: >> response.set_cookie(settings.LANGUAGE_COOKIE_NAME, lan

Re: I18N and caching: page don't change language until I press F5 in browser

2011-11-04 Thread Salvatore Iovene
On Friday, November 4, 2011 5:31:46 PM UTC+2, Salvatore Iovene wrote: > > if hasattr(request, 'session'): > request.session['django_language'] = lang > else: > response.set_cookie(settings.LANGUAGE_COOKIE_NAME, lang) > I have solved my problem by setting the

Re: I18N and caching: page don't change language until I press F5 in browser

2011-11-04 Thread Salvatore Iovene
PS: I have also tried the @vary_on_header('Accept-Language') decorator, but unfortunately that didn't help either. -- You received this message because you are subscribed to the Google Groups "Django users" group. To view this discussion on the web visit https://groups.google.com/d/msg/django-

I18N and caching: page don't change language until I press F5 in browser

2011-11-04 Thread Salvatore Iovene
Hi, I've got a Django website that's multi-lingual, and I'd like to use memcaching on it. While everything works fine with caching disabled, I have observed the following when caching is enabled: 1) Open any page on the website 2) Click on link (the image of a little flat) to change language 3)

Re: Detecting if i18n/10n are installed from a template

2011-07-25 Thread h3
Just answered my own question .. if request.LANGUAGE_CODE isn't in context .. it's not. Meh. On Jul 25, 11:00 pm, h3 wrote: > Is there a mechanisme to detect if i18n/10n are installed from the > template code ? > > I don't see anything about it in the official d

Detecting if i18n/10n are installed from a template

2011-07-25 Thread h3
Is there a mechanisme to detect if i18n/10n are installed from the template code ? I don't see anything about it in the official doc.. -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email

Re: CSRF problem with /i18n/setlang/

2011-07-11 Thread cjwalter
...what shall I say: problem solved. By simply using RequestContext instead of Context. Yes, the error message said so, but I somehow assumed that this concerns the i18l code and not my view... -- You received this message because you are subscribed to the Google Groups "Django users" group. To

Re: CSRF problem with /i18n/setlang/

2011-07-11 Thread cjwalter
Yes, the internationalization part seems to be configured ok and appears working. It is really the CSRF failure that bogging me. Apart from my current project I just created a fresh one (using Django 1.3) just to confirm the issue is not caused by possible side-effects from within my original proj

Re: CSRF problem with /i18n/setlang/

2011-07-10 Thread Venkatraman S
Have you set the LANGUAGES in settings.py? Something like ... ugettext = lambda s: s LANGUAGES = ( ('de', ugettext('German')), ('fr', ugettext('French')), ('en', ugettext('English')), ) And in urls.py: (r'^i18n/',

CSRF problem with /i18n/setlang/

2011-07-10 Thread cjwalter
Hi all I continue getting CSRF token missing or incorrect. when trying to call /i18n/setlang/ Here the pertinent snippets from settings.py: MIDDLEWARE_CLASSES = ( 'django.middleware.common.CommonMiddleware', 'django.contrib.sessions.middleware.Se

I18n on, l10n off, but django still translating date field

2011-05-26 Thread Nick Serra
Hey everyone, thanks for looking. I am developing a site that has spanish translations. I18n is working properly, but when I switch to spanish, my form output that has dates is in spanish. This is a problem because I am sending out staff emails on some forms, which cannot have spanish in them. So

Re: Limited set of languages available in Django i18n?

2011-05-04 Thread Tom Evans
On Wed, May 4, 2011 at 1:32 AM, Karen Tracey wrote: > On Tue, May 3, 2011 at 8:11 AM, Tom Evans wrote: >> >> If you require your site >> to be in Mongolian, it can be in Mongolian, even though Django does >> not itself have a Mongolian translation, > > Need a better example. Django has had a Mong

Re: Limited set of languages available in Django i18n?

2011-05-03 Thread Kenneth Gonsalves
t to prevent "a mixture of > translated >strings". >2. "A good starting point is to copy the Django English .po file > and to >translate at least some *translation > strings*<http://docs.djangoproject.com/en/1.3/topics/i18n/#term-translation-string>.&

Re: Limited set of languages available in Django i18n?

2011-05-03 Thread Karen Tracey
On Tue, May 3, 2011 at 8:11 AM, Tom Evans wrote: > If you require your site > to be in Mongolian, it can be in Mongolian, even though Django does > not itself have a Mongolian translation, > Need a better example. Django has had a Mongolian translation for a year now: http://code.djangoproject.c

Re: Limited set of languages available in Django i18n?

2011-05-03 Thread Uri Goldstein
cial to explain it better: 1. If the issue is driven by technical difficulty stemming from xgettext then don't excuse it as an attempt to prevent "a mixture of translated strings". 2. "A good starting point is to copy the Django English .po file and to translate a

Re: Limited set of languages available in Django i18n?

2011-05-03 Thread Tom Evans
On Tue, May 3, 2011 at 1:43 PM, Uri Goldstein wrote: > Hi Tom, > > I definitely agree that having docs is good, reading and comprehending the > docs is better. Reading and comprehending the docs yourself you might have > noticed the following quote: "If you were to try this and Django supported >

Re: Limited set of languages available in Django i18n?

2011-05-03 Thread Uri Goldstein
Hi Tom, I definitely agree that having docs is good, reading and comprehending the docs is better. Reading and comprehending the docs yourself you might have noticed the following quote: "If you were to try this and Django supported it, you would inevitably see a mixture of translated strings (

Re: Limited set of languages available in Django i18n?

2011-05-03 Thread Tom Evans
On Tue, May 3, 2011 at 12:39 PM, Uri Goldstein wrote: > Thank you Tom and KG. > > I now see that my friend was right(!). > http://docs.djangoproject.com/en/1.3/topics/i18n/localization/#how-to-create-language-files > says: "Django does not support localizing your applicati

Re: Limited set of languages available in Django i18n?

2011-05-03 Thread Kenneth Gonsalves
On Tue, 2011-05-03 at 04:39 -0700, Uri Goldstein wrote: > KG, in the workaround you mention as my second option, are you > referring to > the folder /conf/locale ? Is there where I will be putting my "new" > languages? yes - for example if the language you are adding is martian (with abbreviati

Re: Limited set of languages available in Django i18n?

2011-05-03 Thread Uri Goldstein
Thank you Tom and KG. I now see that my friend was right(!). http://docs.djangoproject.com/en/1.3/topics/i18n/localization/#how-to-create-language-files says: "Django does not support localizing your application into a locale for which Django itself has not been translated." The

Re: Limited set of languages available in Django i18n?

2011-05-03 Thread Kenneth Gonsalves
On Tue, 2011-05-03 at 03:59 -0700, Uri Goldstein wrote: > I'm fine in knowing that the i18n infrastructure in Django can handle > any > available language - that was the crux of my question. to be precise, there are two parts in localisation - one is the strings in django itself

Re: Limited set of languages available in Django i18n?

2011-05-03 Thread Tom Evans
x27;m sure we'll get there sme day :). > > I'm fine in knowing that the i18n infrastructure in Django can handle any > available language - that was the crux of my question. > If you wish to have a language available that is not in Django's set of base translations, so tha

Re: Limited set of languages available in Django i18n?

2011-05-03 Thread Uri Goldstein
Thank you for your quick response. I now realize that my friend was referring to "the strings commonly displayed by Django". Naturally these are yet to have been translated to all available languages but I'm sure we'll get there sme day :). I'm fine in knowing that t

Re: Limited set of languages available in Django i18n?

2011-05-03 Thread Kenneth Gonsalves
On Tue, 2011-05-03 at 02:19 -0700, Uri Goldstein wrote: > Being new to Django, I was told by a friend that it only supports i18n > for a > limited set of languages - these being only languages that have had > Django > itself translated to. > > Is this true? Doesn&#x

Re: Limited set of languages available in Django i18n?

2011-05-03 Thread Lachlan Musicman
On Tue, May 3, 2011 at 19:19, Uri Goldstein wrote: > Hello, > > Being new to Django, I was told by a friend that it only supports i18n for a > limited set of languages - these being only languages that have had Django > itself translated to. > > Is this true? Doesn't m

Limited set of languages available in Django i18n?

2011-05-03 Thread Uri Goldstein
Hello, Being new to Django, I was told by a friend that it only supports i18n for a limited set of languages - these being only languages that have had Django itself translated to. Is this true? Doesn't make much sense to me :) Is there a definitive list of languages supported by Dja

i18n strategy/experiences

2011-04-20 Thread Jjdelc
Are there any best practices or experiences dealing with internationalized sites? Most importantly with URL structure and crawling effects (The DB i18n is not an issue at the moment). In some sites I've worked I've added a switch language button which changes the language but the URLs

i18n and l10n of third party applications/libraries

2011-04-04 Thread poswald
I've got a situation similar to this one: http://stackoverflow.com/questions/3933824/djangos-i18n-with-third-party-apps Basically, I have a pip-installed third party library with strings marked for localization but with no localizations provided. In my project I would like to pr

Re: Script to find all non-i18n parts of a django template

2011-03-06 Thread Venkatraman S
On Mon, Mar 7, 2011 at 3:30 AM, Rory McCann wrote: > Link to page: > http://www.technomancy.org/python/django-template-i18n-lint/ > Good stuff. I was planning to write one, but would rather use this ;) IF we make this stuff 'really' good (i mean, handling all false positives

Script to find all non-i18n parts of a django template

2011-03-06 Thread Rory McCann
mplate and print out all the non-i18n bits of text that you have left to do. Link to page: http://www.technomancy.org/python/django-template-i18n-lint/ It's a bit rigid at the moment, and works for our code base. It uses regular expressions to 'parse' the HTML & Django templates

Re: database i18n

2011-02-23 Thread Kenneth Gonsalves
On Wed, 2011-02-23 at 02:21 -0800, Federico Capoano wrote: > Thanks Hernik. I liked the idea of django-i18n-model but I couldn't > get it working. Now I'm about to try django-transmeta. > > django-transmeta rocks bigtime, especially if you have an unknown set of language

Re: database i18n

2011-02-23 Thread Federico Capoano
Thanks Hernik. I liked the idea of django-i18n-model but I couldn't get it working. Now I'm about to try django-transmeta. On Feb 23, 10:34 am, "Henrik Genssen" wrote: > I feel, this should be something integrated into Django, too. > > So far I am using transdb (but

RE: [] database i18n

2011-02-23 Thread Henrik Genssen
uot;Django users" >subject: [] database i18n > >I'm quite surprised that django doesn't have a native i18n solution >for models. > >I've been trying some apps but one doesn't work with latest versions, >one is no longer developed, another one has no documentat

database i18n

2011-02-22 Thread Federico Capoano
I'm quite surprised that django doesn't have a native i18n solution for models. I've been trying some apps but one doesn't work with latest versions, one is no longer developed, another one has no documentation, another one simply doesn't work. Tomorrow I'm goin

Re: i18n issue with compilemessages

2011-01-15 Thread Isaac XxX
The problem seems to come from your python path, that is not well defined. Try to define path in an absolute (not realtive) fashion. import os os.environ['PYTHONPATH'] = '/path/to/myproject' os.environ['DJANGO_SETTINGS_MODULE'] = 'myproject.settings' and then, apache should be able to execute c

i18n issue with compilemessages

2011-01-14 Thread Akash
Following are the environment I am working on: 1. Django 1.2.3 2. Python 2.4 3. wsgi 4. Centos 5.4 >From apache, I can run makemessage command, and it works. It creates the *.po files. I use the following statement for this. os.system("django-admin.py makemessages -l hi") But I am unable to do co

Re: i18n django models

2011-01-08 Thread Mo J. Al-Mughrabi
Yes, I did that part, How can I navigate transmeta source for that function? I used python setup.py install, Sent from my iPhone On Jan 9, 2011, at 1:12 AM, Alessandro Pasotti wrote: 2011/1/8 Mo Mughrabi > Transmeta is much nicer and much simpler. I just installed it and I already > like t

Re: i18n django models

2011-01-08 Thread Alessandro Pasotti
2011/1/8 Mo Mughrabi > Transmeta is much nicer and much simpler. I just installed it and I already > like the way it is designed, > > I just ran into a small problem with the ./manage.py sync_transmeta_db not > working. Any idea how it can be solved? > > Am just getting an unknown command, > > >

Re: i18n django models

2011-01-08 Thread Mo Mughrabi
PM, Alessandro Pasotti wrote: > 2011/1/8 Mo Mughrabi > > This is not exactly what I need. >> >> this library is not done as per the common best practices for i18nlizing >> data. >> >> All you have to do is declare an object (field) as an i18n field and the

Re: i18n django models

2011-01-08 Thread Alessandro Pasotti
2011/1/8 Mo Mughrabi > This is not exactly what I need. > > this library is not done as per the common best practices for i18nlizing > data. > > All you have to do is declare an object (field) as an i18n field and the > engine takes care of the rest. This example you can s

Re: i18n django models

2011-01-08 Thread Mo Mughrabi
This is not exactly what I need. this library is not done as per the common best practices for i18nlizing data. All you have to do is declare an object (field) as an i18n field and the engine takes care of the rest. This example you can see in java struct and php symphony, when executing the

Re: i18n django models

2011-01-07 Thread Marcos Moyano
I've worked on/with this app https://github.com/Anue/django-polyglot/ Hope it helps. Rgds, Marcos On Fri, Jan 7, 2011 at 12:20 PM, Mo Mughrabi wrote: > Hello, > > in my design there are some models where I need to store certain fields in > different languages. I was wondering if anyone has done

i18n django models

2011-01-07 Thread Mo Mughrabi
Hello, in my design there are some models where I need to store certain fields in different languages. I was wondering if anyone has done it before? I saw some django modules that help do model translations but some of them did not work properly. Any best practices out there? below is my code *m

Re: I18n in Django model

2010-10-15 Thread Kenneth Gonsalves
On Thu, 2010-10-14 at 23:03 -0700, BlackMoses wrote: > First table contains universal field which doesn't depends on > language. Second contains fields that suposed to be in many languages, > 'culture' field which store language code ('en', 'de' etc). Both > tables are related with foreign keys of

Re: I18n in Django model

2010-10-15 Thread Jonathan Barratt
On 15 ?.?. 2010, at 13:03, BlackMoses wrote: > have question if Django have support for I18n models. > > My question is if there are any Django standards/tools that i should > use for it? Or I have to take care with it on my own. Yes there are standard tools, pleas

I18n in Django model

2010-10-15 Thread BlackMoses
have question if Django have support for I18n models. For example in Symfony when i create 'news' table there are 2 tables in fact : news id date news_i18n id culture title text First table contains universal field which doesn't depends on language. Second conta

format date in javascript use i18n

2010-09-29 Thread Flytwokites
In i18n javascript_catalog view, there has a get_format() function, but how to format date use these formats? The returned format by get_format() is in php date() style, but no such a js format function can deal with it. -- You received this message because you are subscribed to the Google

Re: i18n form not working when in site root

2010-08-06 Thread Baurzhan Ismagulov
ore; it makes the POST request but it doesn't change the language. Difficult to tell, Should Work(tm). Do you {% load i18n %} in your root template, pass context_instance=RequestContext(Request) to render_to_response and actually have translatable strings and translations for them? If you alrea

  1   2   3   4   5   6   >