I18N

2010-01-22 Thread jrs_66
The following - #: contrib/admin/templates/admin/base.html:26 msgid "Welcome," msgstr "Bienvenido/a," is from the Django spanish django.po file. I understand that the language supports the word 'Bienvenido' ending in an 'o' or an 'a'. Any idea how the django template tag {% trans "Welcome," %} s

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 = [ ('

i18n

2006-05-16 Thread Elver Loho
Is there a way to chain languages in the i18n interface? We're using a custom Interchange tag right now to do i18n in our webstore. We support Estonian, Latvian, Lithuanian, Russian, and English. The language chaining goes something like this: if locale is estonian: print i18n(me

i18n strategy

2008-11-06 Thread Brandon Taylor
Hi everyone, I'm tasked with translating a mostly database-driven site into Spanish. I'm familiar with how to use Django's internationalization on static strings in templates, but not with text coming from a database, so I'm looking for some best practices advice... Should I: 1. Make a separate

i18n translations

2009-04-13 Thread zayatzz
hese threads about i18n and figured out i could use it to translate my polls (i still could use help with the problem in previous thread though). I read through django i18n documentation and found that, while it described how to create translation file and set up languages selector and all such, it

Django i18n

2009-11-16 Thread Carlos Ricardo Santos
Hi: I tried all the ways possible and impossible to make my Django project have i18n... Put all settings (INSTALLED_APPS, CONTEXT_PROCESSORS), generated languages, compiled messages, edited the ".po" files, setted the ugettext to "_", in views all the strings are like th

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

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.

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

i18n issues.

2008-05-29 Thread Jack M.
Hello, all. Forgive me as I'm still fairly new to django, but I'm having some issues getting i18n running, and I can't seem to find any help in the online docs. I've read chapter 18 (i18n) of djangobook.com, and chapter 10 relating to RequestContext. I'

i18n blocktrans

2007-09-07 Thread ksuess
http://code.djangoproject.com/ticket/5073 Isn't it a typical use case that attributes of variables are used in templates? If this is not supported a view has to call a template like this return render_to_response('polls/detail.html', {'object': p, 'question': p.question,}) which is not

i18n & server_name

2006-12-04 Thread Alexander Solovyov
I'm writing multilanguage app, in which i18n happens when client enters certain domain, like in wikipedia. But I got problem - request.META['SERVER_NAME'] always set in ServerName Apache setting, not in queried domain name (which handled in Apache with ServerAlias *.domain.my). W

i18n sitemap

2007-02-28 Thread [EMAIL PROTECTED]
Hello, How could I get the sitemap feature working for my i18n site ? I use the standard django setup for my i18n, and that works via cookies, and as far as I see, google sitemaps do not work with cookies. Any clue where I could find some more information ? With regards, Robbin

i18n support?

2005-08-05 Thread A
How can I have a Django site in multiple languages? A.

Re: i18n strategy

2008-11-06 Thread Alex Koshelev
The is an existing db internalization application - http://code.google.com/p/django-multilingual/. Try to look at it. On Thu, Nov 6, 2008 at 11:20, Brandon Taylor <[EMAIL PROTECTED]>wrote: > > Hi everyone, > > I'm tasked with translating a mostly database-driven site into > Spanish. I'm familiar

Re: i18n strategy

2008-11-07 Thread davidynamic
arguments that you pass to the fields that you create for your models. you'll find your examples here. http://docs.djangoproject.com/en/dev/topics/i18n/?from=olddocs#lazy-translation Then you can use the same message (po) files you use when rendering static strings in templates

Re: i18n strategy

2008-11-11 Thread ilmarik
on that way? I think you should: 3. Save every item the same way as original(default language) with information about i18n of its content. for example: for article, add one column to table, like 'i18n' or 'language'. in my cms, every item can be langualized that way. to receiv

Caching and I18n

2008-11-16 Thread [EMAIL PROTECTED]
Hello everyone, I'm trying to implement caching for my bilingual site. The problem is that once I enable caching and I change the language (via the example code in http://docs.djangoproject.com/en/dev/topics/i18n/?from=olddocs#the-set-language-redirect-view ), the page does not change

I18N not working

2008-11-24 Thread Alex Jonsson
Hey guys, I have some problems with the translations of my website. Locally, it works flawlessly. But as soon as I run the project on my server, it won't translate. I've translated the project per app, and I'm wondering if it could have something to do with my PYTHONPATH? As of now, my .htaccess

Question about i18n

2008-12-03 Thread Elvis Stansvik
Hello django-users, first post to this list :) I often use the i18n support of Django in my projects, and I have a small annoyance/problem that maybe someone can help me with. If I decide to customize e.g. admin/index.html, by copying it over from django to my project, strings in that template

i18n/setlang TypeError :(((

2008-12-17 Thread pielgrzym
y the docs about translation. The provided snippet for accessing django.conf.urls.i18n seems to crash django, here is the debug: == Environment: Request Method: POST Request URL: http://lingo.example.net/i18n/setlang/ Django Version: 1.1 pre-al

i18n javascript problem

2009-08-18 Thread caiobos
Hello! My project is alredy working with i18n, but the i18n js doesnt work. I have created my dir locale at the root of the project, have run makemessages and it create the djangojs.po correcty. With compile messages I get the djangojs.mo ok. The problem is how i confgure it in URLconf, if i make

i18n - besides translation

2009-08-22 Thread hinnack
Hi, while translating a site, I wonder if there is something that keeps care of all national formats and encodeings like: - money symbol ( pre or post sign) - number format - date format - etc. -- Hinnack --~--~-~--~~~---~--~~ You received this message because yo

admin permissions i18n

2009-02-20 Thread eleom
Hello, does somebody know if there's a way to localize admin permission names, so that, for example, in the user change form, instead of 'Can add ' a localized version of it is showed? I've searched documentation and the open tickets, but I have not found anything talking about this. (Ticket #65

Re: i18n translations

2009-04-14 Thread matehat
Hi Alan, > Is this really meant to work so that you create translations in a file > manually and then create objects with names/descriptions that have > translation in the file or is there a more automatic way to do this? currently, Django's i18n system is made to translate stati

Re: i18n translations

2009-04-14 Thread matehat
Hi Alan, > Is this really meant to work so that you create translations in a file > manually and then create objects with names/descriptions that have > translation in the file or is there a more automatic way to do this? currently, Django's i18n system is made to translate stati

Re: i18n translations

2009-04-14 Thread zayatzz
o do this? > > currently, Django's i18n system is made to translate static strings in > a project. It is not meant to dynamically assign translations to model > instances. For assignment of translated labels on a model, you can > check youhttp://code.google.com/p/transdb/though I don&#x

Cache and i18n

2009-05-20 Thread Dmitriy Sodrianov
Hi, there! I've configured bilingual site. At this site some forms are present. All the forms field 'verbose_name' attribute are marked with ugettext utility. The problem is that when language is changed labels for form's fields does not change. All the localization files are provided and prope

Re: Django i18n

2009-11-16 Thread Antoni Aloy
2009/11/16 Carlos Ricardo Santos : > Hi: > I tried all the ways possible and impossible to make my Django project have > i18n... > Put all settings (INSTALLED_APPS, CONTEXT_PROCESSORS), generated languages, > compiled messages, edited the ".po" files, setted the ugettext t

Re: Django i18n

2009-11-16 Thread Kenneth Gonsalves
This support has been there since 2005, and I have implemented sites in finnish, tamil also. One thing is that unless django itself has the language translated, i18n will not work. I do not see pt-PT, I only see pt and pt-BR. Perhaps you can try one of those - or translate django in pt-PT. If you

Re: Django i18n

2009-11-16 Thread Carlos Ricardo Santos
t;... I have implemented english ;-) I assume you mean implementing a non-english language? This support has been there since 2005, and I have implemented sites in finnish, tamil also. One thing is that unless django itself has the language translated, i18n will not work. I do not see pt-PT, I only s

/i18n/setlang/ broken?

2010-04-08 Thread chr
hi everyone, just spent a few hours trying to find out what's going wrong with i18n... i've just updated a two-year old project (using django- multilingual-ng) to trunk only to find that a) switching languages using /i18n/setlang/ doesn't have any effect anymore b) p

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: [] 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

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

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

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

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

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

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

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

Weird i18n problem

2007-12-14 Thread Magnus B
In this project I have two languages defined in my settings.py, and have set LANGUAGE_CODE. I've created the po/mo-files and the site is translated to whatever language I specify in settings. The problem arises when I try to set the language runtime. I've implemented the standard example of how t

i18n in modells

2007-12-15 Thread Julian
Hi there, is there any tutorial/howto/example for a smart solution to bring i18n into django models? i have an object A with a property name. this name should be available in any languages specified in settings.LANGUAGES. until now i have an I18NNameValueField with the properities languagecode

Re: i18n issues.

2008-05-29 Thread Ramiro Morales
esented by the Accept-Language HTTP request header. b) you create a minimal translation of Django to "sp" (in addition to the translation of your app), as per the "Locale restrictions" note here: http://www.djangoproject.com/documentation/i18n/#how-to-create-language-fi

Re: i18n issues.

2008-05-30 Thread Jack M.
> > a) you (and your users') browsers sends "sp" in the list of languages >preference represented by the Accept-Language HTTP request header. > > b) you create a minimal translation of Django to "sp" (in addition to the >translation of your app)

Django and i18n

2008-05-30 Thread Taevin
I've been working with translation in Django and it mostly works but I'm wondering if there is a 'cleaner' way of doing things. That is, here is what I seem to have to do to get a page translated into the correct language: URLs are of the form $domain/$language_code/$page (e.g. www.example.com/e

flatpages and i18n???

2007-06-22 Thread Eric St-Jean
Hi, Is there a way to specify different flatpages for the same url, but for a different language??? So it would default to the one page if there's only one defined, but if language is fr-fr and there's a page of the same url defined for tha language, it would return that version instead. I'll h

problems with i18n

2007-08-12 Thread Heba Farouk
Hello, I'm a newbie to python and django and I hope that u can help me I'm just trying to use i18n, but I got no translation at all Here is the code I wrote in the template index.html {

Re: i18n blocktrans

2007-09-07 Thread Katja Süss
Yes, sorry. Now I see. {% blocktrans with value|filter as myvar %} This will have {{ myvar }} inside. {% endblocktrans %} That makes sense, definitly. Thanks a lot! Katja Malcolm Tredinnick schrieb: > On Fri, 2007-09-07 at 00:07 -0700, ksuess wrote: >> http://code.djangoproject.com/ticket/5073 >

Re: i18n blocktrans

2007-09-07 Thread Malcolm Tredinnick
On Fri, 2007-09-07 at 00:07 -0700, ksuess wrote: > http://code.djangoproject.com/ticket/5073 > Isn't it a typical use case that attributes of variables are used in > templates? > If this is not supported a view has to call a template like this > return render_to_response('polls/detail.html', {'obj

Re: i18n & server_name

2006-12-04 Thread Alexander Solovyov
On 4 Дек., 10:47, "Alexander Solovyov" <[EMAIL PROTECTED]> wrote: > But I got problem - request.META['SERVER_NAME'] always set in Sorry, I found answer - META['HTTP_HOST']. :) Documentation keeps silence about this. :( --~--~-~--~~~---~--~~ You received this m

Re: i18n & server_name

2006-12-04 Thread Ivan Sagalaev
Alexander Solovyov wrote: > Sorry, I found answer - META['HTTP_HOST']. :) Documentation keeps > silence about this. :( Another way is to use 'sites' app and keep domain in a table separately for each site. --~--~-~--~~~---~--~~ You received this message because

Re: i18n & server_name

2006-12-04 Thread Alexander Solovyov
Ivan Sagalaev wrote: > Another way is to use 'sites' app and keep domain in a table separately > for each site. I thought about that, but this solution is not flexible as 'HTTP_HOST' variable - I need to add all hosts I want to use. --~--~-~--~~~---~--~~ You rec

Django i18n How

2006-12-28 Thread johnny
Can someone tell how Django does i18n. I am thinking of doing my next project using Django. UI is template tagged, based i18n and i18n dependent database content? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

I18n not working

2007-03-12 Thread Christian Hoeppner
Hi there, Actually, it's plainly that. It's just not working, and I don't really know where to look for a flaw. It's just a blind guess, but maybe django is not correctly locating my .mo files? I've triple-checked their location and tried in every place stated in the documentation or the django b

Newform and i18n

2007-03-30 Thread olive
Hello, Here is how I define a form in my views: class MyForm(forms.Form): name= forms.CharField(label=_('Name')) ... The problem is _('Name') is translated when I restart the server (Django or Apache), but not when I switch the browser locale. I tried both from django.utils.tra

Re: i18n support?

2005-08-05 Thread A
Never mind. Sorry, for some reason the search turn nothing for i18n. I saw the thread about this. A.

about i18n question

2005-11-04 Thread limodou
I found that the zh_CN translation option should be "Simplified Chinese", but not "Traditional Chinese" in the global_settings.py in conf directory。 And I'm the Chinese translator, I want to know how to submit the changes. -- I like python! My Blog: http://www.donews.net/limodou NewEdit Maillist:

Problem with i18n

2005-12-03 Thread olive
Hello, C:\soft\Python23\Lib\site-packages\sonikete>make-messages.py -l fr processing language fr Traceback (most recent call last): File "C:\soft\django_src\django\bin\make-messages.py", line 78, in ? (stdin, stdout, stderr) = os.popen3(cmd, 'r') ValueError: popen3() arg 2 must be 't' or 'b

Problem with i18n

2006-01-06 Thread Beegee
I want my application to be i18n enabled. So, in my project directory I ran: make-messages -l nl. Before this I created the conf/locale directory in projectdirectory. This all worked just fine. Compilation also worked fine. In my settings file I have put: LANGUAGE_CODE = "nl"

Template tag i18n failing

2008-08-31 Thread [EMAIL PROTECTED]
Hi, I would like to use {% printformfooter _("Submit Message") "Cancel" %} as it is documented here: http://www.djangoproject.com/documentation/i18n/#in-template-code but I get the error: " TemplateSyntaxError at /project/1/message/create/ printformfooter takes 3 arg

problem with i18n (blocktrans)

2008-10-15 Thread pihentagy
Hi all! Can somebody please tell me what's wrong with my template and/or po file? trans tags work fine, but blocktrans isn't translated. http://dpaste.com/hold/84553/ thanks pihentagy --~--~-~--~~~---~--~~ You received this message because you are subscribed to

i18n translation in forms?

2008-10-21 Thread chris
Hi there, I am trying to get I18N working for a website. So far the language selection, custom messages and their translation in templates using {% trans "" %} etc. works like a charm. However I can't quite figure out how to get things like the Paginator (it displays and such

Re: Caching and I18n

2008-11-16 Thread Ramiro Morales
://docs.djangoproject.com/en/dev/topics/i18n/?from=olddocs#the-set-language-redirect-view > ), the page does not change. The Content-Language header that the > browser receives is indeed changed accordingly, but apparently the > caching system is not aware of the change. > I've set up

Re: Caching and I18n

2008-11-16 Thread [EMAIL PROTECTED]
EMAIL PROTECTED]> wrote: > > > Hello everyone, > > > I'm trying to implement caching for my bilingual site. The problem is > > that once I enable caching and I change the language (via the example > > code > > inhttp://docs.djangoproject.com/en/dev/topics/i18n/

Re: Caching and I18n

2008-11-20 Thread Ramiro Morales
On Sun, Nov 16, 2008 at 10:14 PM, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > Hello Ramiro, > > thanks for your reply. According to the docs, the Locale and Session > middlewares should set the Vary-On headers accordingly, and indeed > they are: > > Date: Sun, 16 Nov 2008 23:49:29 GMT > Serve

Re: Caching and I18n

2008-11-20 Thread Malcolm Tredinnick
On Thu, 2008-11-20 at 07:17 -0200, Ramiro Morales wrote: > On Sun, Nov 16, 2008 at 10:14 PM, [EMAIL PROTECTED] > <[EMAIL PROTECTED]> wrote: > > > > Hello Ramiro, > > > > thanks for your reply. According to the docs, the Locale and Session > > middlewares should set the Vary-On headers accordingly

Re: Caching and I18n

2008-11-20 Thread Antoni Aloy
2008/11/20 Malcolm Tredinnick <[EMAIL PROTECTED]>: > > > Andrew's final comment on that ticket is accurate. Removing the code > duplication is pretty easy there and following the examples in > tests/regressiontests/middleware/tests.py to create some tests for it > should be fairly straightforward

Re: I18N not working

2008-11-25 Thread Thomas Guettler
Alex Jonsson schrieb: > Hey guys, > > I have some problems with the translations of my website. Locally, it > works flawlessly. But as soon as I run the project on my server, it > won't translate. I've translated the project per app. Translation per app only works if you have the LocaleMiddleware

Re: I18N not working

2008-11-25 Thread Jarek Zgoda
Wiadomość napisana w dniu 2008-11-25, o godz. 09:23, przez Thomas Guettler: >> I have some problems with the translations of my website. Locally, it >> works flawlessly. But as soon as I run the project on my server, it >> won't translate. I've translated the project per app. > Translation per

Re: I18N not working

2008-11-25 Thread Thomas Guettler
The last days I did my first i18n application and befor I read this: http://docs.djangoproject.com/en/dev/topics/i18n/ {{{ Application message files are a bit complicated to discover -- they need the LocaleMiddleware. If you don't use the middleware, only the Django message files and pr

Re: I18N not working

2008-11-25 Thread Jarek Zgoda
Wiadomość napisana w dniu 2008-11-25, o godz. 11:17, przez Thomas Guettler: > The last days I did my first i18n application and befor I read this: > http://docs.djangoproject.com/en/dev/topics/i18n/ > {{{ > Application message files are a bit complicated to discover -- they

Re: I18N not working

2008-11-25 Thread Malcolm Tredinnick
On Tue, 2008-11-25 at 11:39 +0100, Jarek Zgoda wrote: > Wiadomość napisana w dniu 2008-11-25, o godz. 11:17, przez Thomas > Guettler: > > > The last days I did my first i18n application and befor I read this: > > http://docs.djangoproject.com/en/dev/topics/i18n/ &g

Re: I18N not working

2008-11-25 Thread Alex Jonsson
na w dniu 2008-11-25, o godz. 11:17, przez Thomas   > > Guettler: > > > > The last days I did my first i18n application and befor I read this: > > >http://docs.djangoproject.com/en/dev/topics/i18n/ > > > {{{ > > > Application message files

Re: I18N not working

2008-11-25 Thread Alex Jonsson
u 2008-11-25, o godz. 11:17, przez Thomas   > > > Guettler: > > > > > The last days I did my first i18n application and befor I read this: > > > >http://docs.djangoproject.com/en/dev/topics/i18n/ > > > > {{{ > > > > Application message file

Re: I18N not working

2008-11-25 Thread Malcolm Tredinnick
On Tue, 2008-11-25 at 03:01 -0800, Alex Jonsson wrote: > Thank you everyone for your feedback. > > I forgot to mention that I read that paragraph in the docs as well and > already installed the LocaleMiddleware. This makes the translation of > the built-in modules work, but not my per-app transl

Re: I18N not working

2008-11-25 Thread Alex Jonsson
I did just check the permissions, and even tried change them to a=rwx. Still not working. I tried a couple of other things as well - I made a symlink in one of my folders on my PYTHONPATH pointing to my project (it required me to do that in order to run the django-admin.py makemessages command) a

Re: I18N not working

2008-11-25 Thread Alex Jonsson
Woohoo! Looks like I solved it. The error I had made was that inside my locale folders I had named Swedish "sv_se" which wasn't right. I looked into the django/conf/ locale folder and saw that there they referred to Swedish as "sv". So by changing the folder names Django finally found them. Oh,

Re: Caching and I18n

2008-11-25 Thread [EMAIL PROTECTED]
Hello Aloy, I saw the great work you did on ticket #5691. Thanks a lot, I highly appreciate that! We have to offer our first release with the bug, but I hope to be able to include your patch or a workaround for the next one and will give feedback once that's been done. With regards, Maik --~--~-

Re: Caching and I18n

2008-11-25 Thread Antoni Aloy
2008/11/25 [EMAIL PROTECTED] <[EMAIL PROTECTED]>: > > Hello Aloy, > > I saw the great work you did on ticket #5691. Thanks a lot, I highly > appreciate that! We have to offer our first release with the bug, but > I hope to be able to include your patch or a workaround for the next > one and will g

Re: Question about i18n

2008-12-03 Thread Malcolm Tredinnick
On Wed, 2008-12-03 at 12:51 +0100, Elvis Stansvik wrote: > Hello django-users, first post to this list :) > > I often use the i18n support of Django in my projects, and I have a > small annoyance/problem that maybe someone can help me with. > > If I decide to customize e.g

Re: Question about i18n

2008-12-04 Thread Elvis Stansvik
2008/12/4 Malcolm Tredinnick <[EMAIL PROTECTED]>: > > > On Wed, 2008-12-03 at 12:51 +0100, Elvis Stansvik wrote: >> Hello django-users, first post to this list :) >> >> I often use the i18n support of Django in my projects, and I have a >> small annoyance

django i18n for google

2008-12-16 Thread Alessandro Ronchi
When google spiders our i18n translated django websites, does it try and indicize all languages? is it possible to force the language by a GET var (for example &language_code=en) ? -- Alessandro Ronchi Skype: aronchi http://www.alessandroronchi.net SOASI Soc.Coop. - www.soasi.com Svil

Re: i18n/setlang TypeError :(((

2008-12-17 Thread pielgrzym
Ok, I believe I've found a buggg ;) The problem is locale.translate can't handle utf encoded language code. To avoid doing so I needed to add "lang_code = lang_code.encode ('ascii')" to line 334 of django/utils/translation/trans_real.py. Could someone take a peek if this is right (things started

Re: i18n/setlang TypeError :(((

2008-12-17 Thread Karen Tracey
x27;, globalpath, [to_locale(lang_code)]) is not None: File "/usr/lib/python2.5/gettext.py" in find 437. for nelang in _expand_lang(lang): File "/usr/lib/python2.5/gettext.py" in _expand_lang 132. locale = normalize(locale) File "/usr/lib/python2.5/locale.py&quo

Re: i18n/setlang TypeError :(((

2008-12-21 Thread pielgrzym
Thank you Karen :) My python install had some weird patches. Now everything works absolutely fine :) Thanks again :) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send

Re: i18n javascript problem

2009-08-18 Thread Antoni Aloy
2009/8/18 caiobos : > > Hello! > My project is alredy working with i18n, but the i18n js doesnt work. > I have created my dir locale at the root of the project, have run > makemessages and it create the djangojs.po correcty. With compile > messages I get the djangojs.mo ok. >

Re: admin permissions i18n

2009-02-20 Thread Malcolm Tredinnick
On Fri, 2009-02-20 at 11:04 -0800, eleom wrote: > Hello, does somebody know if there's a way to localize admin > permission names, so that, for example, in the user change form, > instead of 'Can add ' a localized version of it is showed? There isn't any way at the moment. Django itself does not

Re: admin permissions i18n

2009-04-01 Thread Alex Gaynor
on name field is not stored in the database in such a > fashion to allow lookup from the .po files? Isn't that how Django > accomplishes i18n for other strings? > > On Feb 20, 6:27 pm, Malcolm Tredinnick > wrote: > > On Fri, 2009-02-20 at 11:04 -0800, eleom wrote: &g

Re: admin permissions i18n

2009-04-01 Thread Killarny
from the .po files? Isn't that how Django accomplishes i18n for other strings? On Feb 20, 6:27 pm, Malcolm Tredinnick wrote: > On Fri, 2009-02-20 at 11:04 -0800, eleom wrote: > > Hello, does somebody know if there's a way tolocalizeadmin > > permission names, so that, f

Re: Cache and i18n

2009-05-20 Thread Alex Gaynor
On Wed, May 20, 2009 at 12:01 PM, Dmitriy Sodrianov wrote: > > Hi, there! > > I've configured bilingual site. At this site some forms are present. > All the forms field 'verbose_name' attribute are marked with ugettext > utility. > > The problem is that when language is changed labels for form's f

Re: Cache and i18n

2009-05-21 Thread Dmitriy Sodrianov
On 20 май, 23:13, Alex Gaynor wrote: > On Wed, May 20, 2009 at 12:01 PM, Dmitriy Sodrianov wrote: > > > > > > > Hi, there! > > > I've configured bilingual site. At this site some forms are present. > > All the forms field 'verbose_name' attribute are marked with ugettext > > utility. > > > The pr

i18n not always working

2009-09-15 Thread Gabriel .
Hi, I have some batch process that send i18n mails, I'm using a template to render the message body. The subject is translated but not the body. This is a sample code: from django.utils import translation from django.utils.translation import ugettext as _ lang = user.get_profile().langua

User Inheritance and i18n

2009-11-11 Thread Bernardo
Hello guys! After following this tutorial (http://scottbarnham.com/blog/2008/08/21/ extending-the-django-user-model-with-inheritance/) to be able to extend the default user class of Django, the i18n module stopped working. I gave the new model that inherits from User the name CustomUser. When I

mixed up with I18n

2009-12-03 Thread Sameer Rahmani
hi , i translate my project to persian following the django documentation , but when i try to use persian translation i see in my project that some string translated but some others not , i mark all of them for translating , also since persian language is a rtl but i still see that my page load in

i18n variable string translation

2010-06-16 Thread Aaron Lee
Hi guys, In http://www.djangobook.com/en/2.0/chapter19, there is a paragraph Translation works on variables. Again, here’s an identical example: def my_view(request): sentence = 'Welcome to my site.' output = _(sentence) return HttpResponse(output) (The caveat with using variables o

Re: /i18n/setlang/ broken?

2010-06-29 Thread tsmets
To make your code more portable, I would suggest to have settings.py file as follow : see below. It is still unclear to me what needs to be done to catch up the language in my profile. Another issue I have is that all the languages are shown ... How to limit the number of languages to a sub-set (in

  1   2   3   4   5   6   >