Re: i18n bug in inlines (failing silently)

2011-01-15 Thread Marc Garcia
Well, I still see that policy a way of hiding symptoms, more than an advantage for users, but thank you so much for the explanations Russell. On Jan 15, 4:52 pm, Russell Keith-Magee wrote: > On Sat, Jan 15, 2011 at 9:14 PM, Marc Garcia wrote: > > Hey guys, > > > I just de

i18n bug in inlines (failing silently)

2011-01-15 Thread Marc Garcia
Hey guys, I just detected a bug, that causes inlines to "disappear" if there are non-ascii characters on the inline data. I'm still working on detecting what's going on, and I'll fill a bug ticket when having all the information, but I just wanted to post my opinion on something related: filing si

[soc2009/i18n] Final report

2009-08-18 Thread Marc Garcia
Hi folks, yesterday it was the last day for working on the Google Summer of Code, and here you have a brief report about what I did. Basically, my project could be divided in three parts: * Implement a system for formatting data localizing it. * Fix "random" i18n" tickets * Multilingual model

About multilingual models

2009-08-17 Thread Marc Garcia
Hi folks, finally I had no time to start coding on multilingual models, as part of my GSoC project. I did some more analysis on the problem, and possible solutions; let me share them with you. Basically, I arrived to the conclusion that there are two different approaches, both valid, and ever

Re: Status

2009-08-07 Thread Marc Garcia
alcolm Tredinnick wrote: > Hi Marc, > > On Wed, 2009-08-05 at 05:22 -0700, Marc Garcia wrote: > > [...] > > > Now, while waiting for feedback, I'll be fixing some minor i18n bugs, > > already reported on trac. I assigned to myself, what I plan to work > > on, so

[soc2008/i18n] Status

2009-08-05 Thread Marc Garcia
Hi folks, sorry for the late report. The formatting data part of my project has reached a "beta" version, and now it's ready for testing. I'm sure it'll be some work based on everybody's feedback, but it's mostly completed. Some things to mention about it, is that finally I couldn't import all d

[soc2009/i18n] Weekly report

2009-07-12 Thread Marc Garcia
Hi folks! this week I've been working on formatting data depending on the locale. Finally I found a way to do it that I like. As Django fields aren't used when getting data from the db, I'm not finally using fields to localize data. I'm just formatting data from the localizable Python types on te

Re: I need a pony: Model translations (aka "my proposal")

2009-07-11 Thread Marc Garcia
Hi David, I'm working on some other i18n parts right now, but I'll review your email before working on model translations. Thanks for sharing your idea, and I'll be back with comments soon. Cheers, Marc David Danier wrote: > Hi Marc, hi Gonzalo, hi django-dev, > > I'm writing this email, be

[soc2009/i18n] Status and feedback needed

2009-07-03 Thread Marc Garcia
Hi folks, my exams are over, and I'm more than 100% on Django i18n right now. I've been researching and testing many different options for the part of displaying values in localized formats, and I have some conclusions that I would like to discuss with you: * It'll be a USE_FORMAT_I18N setting

[GSoC] i18n status

2009-06-08 Thread Marc Garcia
Hi folks! Most of what I did previous week is represented by changeset 10956 [1], that basically implements the base for localizing date and number format on Django. Summarizing, right now, Django uses gettext and translation catalogs to store some formats, that are used in few places on Django

[GSoC] i18n status

2009-06-01 Thread Marc Garcia
Hi folks, here in Barcelona we're on the final period of college, so couldn't spend much time on GSoC, because of practices and exams. I'll start working more starting this week, so my last practice deadline is this Wednesday, and full time after my last exam on June 25th. Anyway, no much code l

[GSoC] Implementation of additional i18n features on Django

2009-05-24 Thread Marc Garcia
Hi folks, another brief report... Last weeks of this semester at college, so I had to spend many time on practices and exams, and could spend few in the GSoC. Anyway, I'm still waiting for more comments on the discussion [1] about ticket #7050 [2] to work on it. Regards, Marc [1] http://grou

[GSoC] Django i18n

2009-05-10 Thread Marc Garcia
Hi folks, this weekly report will be very short as I've been sick almost the whole week, and I couldn't work with anything related to Django or the GSoC (or anything actualy). As soon as I start feeling better I'll work on the ticket I posted on my previous report. Regards, Marc --~--~

[GSoC] i18n status

2009-05-03 Thread Marc Garcia
Hi folks, this is my report for this week on my summer of code. In short, I did nothing... :) I've some stuff to be done before focusing on it, but let me comment some things anyway. As well as maintaining the branch on Django subversion, I'll be using github [1] for working on my summer of code

[GSoC] Implementation of additional i18n features on Django

2009-04-24 Thread Marc Garcia
Hi folks, just wanted to let you know that I'll be participating on Google Summer of Code, improving Django i18n. I posted my original proposal at http://vaig.be/2009/04/gsoc-implementation-of-additional-i18n.html but I'll review it after discussing some points. Any feedback will be appreciate.

Re: About localization settings

2009-04-21 Thread Marc Garcia
would look like: LONG_DATETIME = 'l jS \of F Y h:i:s A' [...] SHORT_DATE = 'm/d/Y' [...] On Apr 21, 9:26 pm, Malcolm Tredinnick wrote: > On Mon, 2009-04-20 at 15:04 -0700, Marc Garcia wrote: > > Hi folks, > > > just to warm up for my Google Summer of Code on i18n

About localization settings

2009-04-20 Thread Marc Garcia
Hi folks, just to warm up for my Google Summer of Code on i18n, I want to start a discussion on to simple things... First thing is where to place l10n settings. In my opinion it should be under the existing directories for every locale, so for example django/conf/locale/en/ and we should use get

Re: Newforms Admin - Overriding the Save Method of a ModelForm

2008-07-02 Thread Marc Garcia
Sure, just remember to return super(YourModelForm, self).save(commit) in it. On Jul 2, 9:10 am, John Boxall <[EMAIL PROTECTED]> wrote: > Hi everyone! > > I'm just trying out newforms admin - it's fantastic. I can't wait > until this makes it's way into trunk - > > A question - > I'd like to ad

Re: First day of week

2008-06-28 Thread Marc Garcia
7;t know before that django already has a method for defining i18n settings). Thanks, Marc On Jun 27, 12:44 pm, Marc Garcia <[EMAIL PROTECTED]> wrote: > I don't think that this should be included in the 'must have' list (to > avoid postponing 1.0 date). What I want is to c

Re: First day of week

2008-06-27 Thread Marc Garcia
ROTECTED]> wrote: > On Fri, Jun 27, 2008 at 3:23 AM, Marc Garcia <[EMAIL PROTECTED]> wrote: > > > Could it be added to 1.0 maybe list? I think that those features are > > essential for developing not only international websites, also for > > developing non internati

Re: First day of week

2008-06-26 Thread Marc Garcia
Well, IMHO Jannis patch solves the problem for non internationalized applications (probably not 99% of them), and in a way that isn't the best one (also IMHO). I think that the best way to pass a i18n parameters from python libraries to javascript is the existing view '/admin/jsi18n/'. Doing it t

First day of week

2008-06-26 Thread Marc Garcia
Hi all! I'll start working on a new (hopefully better) patch for ticket #1061 [1] that will allow customization of first day of week on django's admin calendar. IMHO this patch is very important, specially for all Django developers/ users working on countries where Sunday is not the first day of

Re: Apps engine

2008-04-08 Thread Marc Garcia
er stuff), as Django users are interested in being able to use Google's infrastructure for our applications. -- Marc Garcia from http://vaig.be On Apr 8, 5:34 pm, "Marty Alchin" <[EMAIL PROTECTED]> wrote: > On Tue, Apr 8, 2008 at 11:30 AM, konryd <[EMAIL PROTECTED]> w

Re: Extending ImageField and using get_FIELD_filename

2008-01-22 Thread Marc Garcia
You should use django-users list for this question. Anyway, you can check this example where get_FIELD_filename() is used: http://vaig.be/2007/12/10/normalize-name-and-size-images-in-django-and-adding-thumbnails/ On Jan 22, 5:11 pm, clinch <[EMAIL PROTECTED]> wrote: > I'm hoping there's a quick

Re: newforms-admin and translated data

2007-12-29 Thread Marc Garcia
uot;Karen Tracey" <[EMAIL PROTECTED]> wrote: > On Dec 26, 2007 9:26 AM, Marc Garcia <[EMAIL PROTECTED]> wrote: > > > > > No, the translations are ok, so outside the admin that translations > > are working fine. I thing it should be a problem of the admin.

Re: newforms-admin and translated data

2007-12-26 Thread Marc Garcia
22-Dec-07, at 9:39 PM, Marc Garcia wrote: > > > If somebody could confirm that it's a bug I'll open the ticket, and > > I'll research more. > > check whether they are marked as 'fuzzy' in .po file > > -- > > regards > kghttp://lawgon.l

newforms-admin and translated data

2007-12-22 Thread Marc Garcia
I don't know if is it pending, or is a bug (or even is a problem of my setup), but I couldn't find information about it. When using newforms-admin branch all labels marked as translatable are not translated just in the admin application. If somebody could confirm that it's a bug I'll open the ti

Re: Little change for FileField

2007-12-08 Thread Marc Garcia
A ticket already existed for it, I improved the patch, and I think that now is ready for check in. http://code.djangoproject.com/ticket/5695 Could any commiter check it, please? Thanks! Marc On Dec 8, 4:45 am, "Marty Alchin" <[EMAIL PROTECTED]> wrote: > On 12/7/07,

Little change for FileField

2007-12-07 Thread Marc Garcia
Hi guys (specially Marty Alchin I think)! I've realized about a little issue with FileField in admin. Issues are invalid html code in widget (unclosed tag and invalid target attribute), and some labels that aren't translatable. I think that you're rewriting the whole FileField, but may be we cou

Re: FileField overwrite (Ticket #4339)

2007-12-04 Thread Marc Garcia
y ears perk up, so I'll > put in my thoughts on this subject. > > On Dec 4, 2007 10:43 AM, Marc Garcia <[EMAIL PROTECTED]> wrote: > > > I've seen ticket #4339 (http://code.djangoproject.com/ticket/4339) > > about allowing django users to create FileFields or I

FileField overwrite (Ticket #4339)

2007-12-04 Thread Marc Garcia
Hi! I've seen ticket #4339 ( http://code.djangoproject.com/ticket/4339 ) about allowing django users to create FileFields or ImageFields that overwrite files with same name. The ticket is in design decision needed. It's a little change, that just add an extra feature and is not backward incompat

Re: Problems with FileFields/ImageFields

2007-11-17 Thread Marc Garcia
isplays a > delete checkbox next to the type="file">:http://www.djangosnippets.org/snippets/469/ > > However, I'm not sure if it will work in admin. > > tom > > On 16.11.2007, at 18:12, Marc Garcia wrote: > > > > > There are a couple of things abo

Problems with FileFields/ImageFields

2007-11-16 Thread Marc Garcia
There are a couple of things about FileFields that I want to comment. First one is about how to delete content in a FileField. With a example: I've a model: class Person(model.Model): name = models.CharField(maxlength=32) [...] picture = models.ImageField(upload_to='pictures', blank

Re: Is django_website svn updated?

2007-10-18 Thread Marc Garcia
Perfect, thanks. I could create patch for my ticket. Marc On Oct 18, 10:06 pm, "Jacob Kaplan-Moss" <[EMAIL PROTECTED]> wrote: > On 10/18/07, Adrian Holovaty <[EMAIL PROTECTED]> wrote: > > > No -- the code for djangoproject.com that you see in Trac/Subversion > > is indeed the code we use for th

Is django_website svn updated?

2007-10-17 Thread Marc Garcia
Hi! Some days ago I've found an error in django website, that I reported in ticket http://code.djangoproject.com/ticket/5644 I would like to add a patch for this ticket, but when I browse django_website subversion http://code.djangoproject.com/browser/djangoproject.com/django_website/templates/

Re: Patch ready

2007-10-09 Thread Marc Garcia
I figured it out, but I just wanted to be sure. Thanks! On Oct 9, 3:41 pm, "Jacob Kaplan-Moss" <[EMAIL PROTECTED]> wrote: > On 10/9/07, Marc Garcia <[EMAIL PROTECTED]> wrote: > > > I'm not sure if it's just that I'm being impatient, but in

Patch ready

2007-10-09 Thread Marc Garcia
Hi, I'm not sure if it's just that I'm being impatient, but in a ticket (#4036), after some discussion, some candidate patches I've upload a patch that can be commited to subversion, and I've changed its triage stage to "Ready for checkin". Is it enough, or do I have to do anything else for notic

Regression tests for localflavor

2007-10-02 Thread Marc Garcia
Hi! I know that it's probably a newbie question, but I'm not sure how I've to make regression tests to a new localflavor that I've developed. I've seen that there is a test file for every localflavor in .../trunk/ tests/regressiontests/forms/localflavor/ but I'm not sure if that file is generate

Re: Let's schedule a Django sprint

2007-09-06 Thread Marc Garcia
Great idea, count me in! for some testing/newbie stuff, so I just started hacking django few weeks ago. On Sep 6, 3:09 pm, Nick <[EMAIL PROTECTED]> wrote: > On Sep 6, 12:51 pm, Malcolm Tredinnick <[EMAIL PROTECTED]> > wrote: > > > like that. Things that people who haven't done much before can do

development documentation

2007-07-15 Thread Marc Garcia
Hi all! Is there any django development documentation? I couldn't find any document on how to start writting my own django add-on. Of course I can start browsing code, and looking for other add-ons, but may be there is a post in this list about that, or a wiki page that I cannot found. Thinks t

Re: Translated fields

2007-07-14 Thread Marc Garcia
t;[EMAIL PROTECTED]> wrote: > Have you seenhttp://code.google.com/p/i18ndynamic/? :) > > On Jul 11, 3:16 pm, Marc Garcia <[EMAIL PROTECTED]> wrote: > > > Hi all! > > > I've been searching for a way to create a multilingual catalog with > > django, and

Translated fields

2007-07-11 Thread Marc Garcia
Hi all! I've been searching for a way to create a multilingual catalog with django, and there is just one thing missing, a simple way for translating information on database, for example having product description in more than one language. I've checked translation module on django-utils, and dj