Lists: | pgadmin-hackers |
---|
From: | Marek Černocký <marek(at)manet(dot)cz> |
---|---|
To: | pgadmin-hackers(at)postgresql(dot)org |
Subject: | Second l10n patch |
Date: | 2009-08-01 17:02:44 |
Message-ID: | 1249146164.11154.3.camel@zabiny |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgadmin-hackers |
Hi,
I send patch. It solves translation for object type names in reports.
Regards
Marek
Attachment | Content-Type | Size |
---|---|---|
report.patch | text/x-patch | 5.7 KB |
From: | Dave Page <dpage(at)pgadmin(dot)org> |
---|---|
To: | Marek Černocký <marek(at)manet(dot)cz> |
Cc: | pgadmin-hackers(at)postgresql(dot)org |
Subject: | Re: Second l10n patch |
Date: | 2009-08-03 09:57:02 |
Message-ID: | 937d27e10908030257i3092f689k191c07a120548058@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgadmin-hackers |
2009/8/1 Marek Černocký <marek(at)manet(dot)cz>:
> Hi,
>
> I send patch. It solves translation for object type names in reports.
Should code like this use wxPLURAL?
int section = report->XmlCreateSection(wxString::Format(_("%s
dependents"), object->GetTranslatedTypeName().c_str()));
--
Dave Page
EnterpriseDB UK: http://www.enterprisedb.com
From: | Guillaume Lelarge <guillaume(at)lelarge(dot)info> |
---|---|
To: | pgadmin-hackers(at)postgresql(dot)org |
Cc: | Dave Page <dpage(at)pgadmin(dot)org>, Marek Černocký <marek(at)manet(dot)cz> |
Subject: | Re: Second l10n patch |
Date: | 2009-08-03 10:33:56 |
Message-ID: | 200908031233.57252.guillaume@lelarge.info |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgadmin-hackers |
Le lundi 3 août 2009 à 11:57:02, Dave Page a écrit :
> 2009/8/1 Marek Černocký <marek(at)manet(dot)cz>:
> > Hi,
> >
> > I send patch. It solves translation for object type names in reports.
>
> Should code like this use wxPLURAL?
>
> int section = report->XmlCreateSection(wxString::Format(_("%s
> dependents"), object->GetTranslatedTypeName().c_str()));
No. We need wxPLURAL when we have a variable that tells us if it is plural or
not. In this code, there's nothing that gives us a hint about it.
Note that I didn't actually try this patch. Only read it.
--
Guillaume.
http://www.postgresqlfr.org
http://dalibo.com
From: | Guillaume Lelarge <guillaume(at)lelarge(dot)info> |
---|---|
To: | pgadmin-hackers(at)postgresql(dot)org |
Cc: | Dave Page <dpage(at)pgadmin(dot)org>, Marek Černocký <marek(at)manet(dot)cz> |
Subject: | Re: Second l10n patch |
Date: | 2009-08-03 11:03:39 |
Message-ID: | 200908031303.40037.guillaume@lelarge.info |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgadmin-hackers |
Le lundi 3 août 2009 à 12:33:56, Guillaume Lelarge a écrit :
> Le lundi 3 août 2009 à 11:57:02, Dave Page a écrit :
> > 2009/8/1 Marek Černocký <marek(at)manet(dot)cz>:
> > > Hi,
> > >
> > > I send patch. It solves translation for object type names in reports.
> >
> > Should code like this use wxPLURAL?
> >
> > int section = report->XmlCreateSection(wxString::Format(_("%s
> > dependents"), object->GetTranslatedTypeName().c_str()));
>
> No. We need wxPLURAL when we have a variable that tells us if it is plural
> or not. In this code, there's nothing that gives us a hint about it.
>
> Note that I didn't actually try this patch. Only read it.
Just tried it, and it works the way I think it should. I can commit it if you
want.
--
Guillaume.
http://www.postgresqlfr.org
http://dalibo.com
From: | Dave Page <dpage(at)pgadmin(dot)org> |
---|---|
To: | Guillaume Lelarge <guillaume(at)lelarge(dot)info> |
Cc: | pgadmin-hackers(at)postgresql(dot)org, Marek Černocký <marek(at)manet(dot)cz> |
Subject: | Re: Second l10n patch |
Date: | 2009-08-03 11:04:34 |
Message-ID: | 937d27e10908030404q2e67e375ycc9ad3415e440ebf@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgadmin-hackers |
2009/8/3 Guillaume Lelarge <guillaume(at)lelarge(dot)info>:
> Le lundi 3 août 2009 à 12:33:56, Guillaume Lelarge a écrit :
>> Le lundi 3 août 2009 à 11:57:02, Dave Page a écrit :
>> > 2009/8/1 Marek Černocký <marek(at)manet(dot)cz>:
>> > > Hi,
>> > >
>> > > I send patch. It solves translation for object type names in reports.
>> >
>> > Should code like this use wxPLURAL?
>> >
>> > int section = report->XmlCreateSection(wxString::Format(_("%s
>> > dependents"), object->GetTranslatedTypeName().c_str()));
>>
>> No. We need wxPLURAL when we have a variable that tells us if it is plural
>> or not. In this code, there's nothing that gives us a hint about it.
>>
>> Note that I didn't actually try this patch. Only read it.
>
> Just tried it, and it works the way I think it should. I can commit it if you
> want.
Sure - thanks.
--
Dave Page
EnterpriseDB UK: http://www.enterprisedb.com
From: | Guillaume Lelarge <guillaume(at)lelarge(dot)info> |
---|---|
To: | pgadmin-hackers(at)postgresql(dot)org |
Cc: | Dave Page <dpage(at)pgadmin(dot)org>, Marek Černocký <marek(at)manet(dot)cz> |
Subject: | Re: Second l10n patch |
Date: | 2009-08-03 11:19:14 |
Message-ID: | 200908031319.14446.guillaume@lelarge.info |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgadmin-hackers |
Le lundi 3 août 2009 à 13:04:34, Dave Page a écrit :
> 2009/8/3 Guillaume Lelarge <guillaume(at)lelarge(dot)info>:
> > Le lundi 3 août 2009 à 12:33:56, Guillaume Lelarge a écrit :
> >> Le lundi 3 août 2009 à 11:57:02, Dave Page a écrit :
> >> > 2009/8/1 Marek Černocký <marek(at)manet(dot)cz>:
> >> > > Hi,
> >> > >
> >> > > I send patch. It solves translation for object type names in
> >> > > reports.
> >> >
> >> > Should code like this use wxPLURAL?
> >> >
> >> > int section = report->XmlCreateSection(wxString::Format(_("%s
> >> > dependents"), object->GetTranslatedTypeName().c_str()));
> >>
> >> No. We need wxPLURAL when we have a variable that tells us if it is
> >> plural or not. In this code, there's nothing that gives us a hint about
> >> it.
> >>
> >> Note that I didn't actually try this patch. Only read it.
> >
> > Just tried it, and it works the way I think it should. I can commit it if
> > you want.
>
> Sure - thanks.
Done. Sorry for the two commits, I forgot the CHANGELOG file.
--
Guillaume.
http://www.postgresqlfr.org
http://dalibo.com