A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2006-April/063513.html below:

[Python-Dev] The "i" string-prefix: I18n'ed strings

[Python-Dev] The "i" string-prefix: I18n'ed strings [Python-Dev] The "i" string-prefix: I18n'ed strings"Martin v. Löwis" martin at v.loewis.de
Fri Apr 7 08:10:38 CEST 2006
Martin Blais wrote:
>> P(a("Click here to forget", href="...
>
> No. That's not going to work: pygettext needs to be able to extract
> the string for the catalogs.  No markup, no extraction.  (This is how
> you enter strings that are not meant to be translated.)

I know; I wrote pygettext. You can pass the set of functions that count
as marker with -k/--keyword arguments.

>> You could it also write as
>>
>> P(A_("Click here to forget", href="...
>>
>> to make it a little more obvious to the reader that there is a
>> gettext lookup here.
>
> This is not generic enough, HTML is too flexible to hard-code all
> cases.  This only would help slightly.

I don't understand. What case that you would like to express
couldn't be expressed?

Regards,
Martin
More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4