>There one problem left: filters use the _() syntax for their >parameter
>string (for example yesno is a candidate for a translated >parameter) to
>mark their parameter string for translation.
Another place where we will need to have the _("...") syntax for
strings to be translated is in template
hugo wrote:
>>>{% blocktrans count list|count as counter with var|filter as newvar %}
>>
>> ^
>>"with", surely?
>
>
> Where? The two "subtags" are 'count' and 'with' - the 'count' subtag is
> followed by an expression and a 'as variable' thingy and will just
> store it in the c
>> {% blocktrans count list|count as counter with var|filter as newvar %}
>^
> "with", surely?
Where? The two "subtags" are 'count' and 'with' - the 'count' subtag is
followed by an expression and a 'as variable' thingy and will just
store it in the context and use it as the n
On 3-11-2005, at 12:24, hugo wrote:
Since Adrian was one of the others in the IRC discussion, I at least
can commit the changes to the i18n branch, so you can have a look at
it. :-)
Updated, little search&replace, all worked fine (except bug I
mentioned earlier), in admin and in all of my p
All sounds good.
>
> {% blocktrans count list|count as counter with var|filter as newvar %}
^
"with", surely?
> This is only one {{ newvar }} object
> {% plural %}
> These are {{ counter }} {{ newvar }} objects
> {% endblocktrans %}
On 3-11-2005, at 12:24, hugo wrote:
Since Adrian was one of the others in the IRC discussion, I at least
can commit the changes to the i18n branch, so you can have a look at
it. :-)
I found some bugs in templatetags/i18n.py, patch is posted in http://
code.djangoproject.com/ticket/719
---
>Great; this is exactly what I had in mind. As far as I'm concerned,
>once these changes are done I'm ready to roll this in, but let's wait
>and see what Adrian's thoughts are before we make any final decisions.
Since Adrian was one of the others in the IRC discussion, I at least
can commit the
On Nov 2, 2005, at 6:51 PM, hugo wrote:
based on the ideas of Jacob and Robert and based on the discussion on
IRC tonight, I propose the following changes to the i18n branch:
[snip excellent proposal]
Great; this is exactly what I had in mind. As far as I'm concerned,
once these changes
Hi,
based on the ideas of Jacob and Robert and based on the discussion on
IRC tonight, I propose the following changes to the i18n branch:
The form {{ _('') }} and the {% i18n ... %} tag will go. As will
the python string interpolation in translation strings. They will be
replaced by the fol