-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Pedro Algarvio, aka, s0undt3ch wrote:
> The reason that makes me feel like that is because I use Genshi for
> templating, and genshi does not compile it's template's to python files
> so, xgettext will probably not work, I've tried a few times without success.
Ok, I lied, I *can* run xgettext over the genshi templates but it throws
some errors, like:
ispmanccp/templates/layout.html:84: warning: unterminated string
ispmanccp/templates/layout.html:88: warning: unterminated string
ispmanccp/templates/accounts/newuser.html:59: warning: 'msgid' format
string with unnamed arguments cannot be properly localized:
The translator
cannot reorder the arguments.
Please consider
using a format string with named arguments,
and a mapping
instead of a tuple for the arguments.
ispmanccp/templates/accounts/snippets/password.html:15: warning:
unterminated string
ispmanccp/templates/accounts/snippets/password.html:20: warning:
unterminated string
ispmanccp/templates/accounts/snippets/newpassword.html:15: warning:
unterminated string
ispmanccp/templates/accounts/snippets/newpassword.html:20: warning:
unterminated string
The line of the 1st error:
-->
2nd:
<a py:when="akey != None" py:with="pre, post = name.split(akey)"
3rd:
${ _("Note that the above %s will be used to create the first "
"part of the email address ([EMAIL PROTECTED])."
) % ( h.tag.em(_("User ID")),
h.tag.u(h.tag.em(_("userid"))),
domain
)
}
4th:
h.remote_function(url=h.url_for(controller='accounts',action='get_stored_pass'),
5th:
<span class="error-message" py:if="'userPassword' in c.form_errors">
6th:
h.remote_function(url=h.url_for(controller='accounts',action='generate_new_password'),
7th:
<span class="error-message" py:if="'userPassword' in
c.form_errors">
Although, these actually seem harmless, I wonder if I'm doin' it correctly.
I'm calling xgettext with the following args(using python's subprocess
so I can grab a useful list of files to pass to xgettext):
xgettext_opts = ['--debug', '--strict', '--width=78', '-F', '-L',
'Python', '-p', i18n_path, '-d', project, '-o', pot_file ]
cmdline = ['xgettext'] + xgettext_opts + files
Regards,
- --
Pedro Algarvio
__ ___ ___ _______ ___ __
| Y .' _| _ .-----.' _| |_ .-----.----.-----.
|. | | _| 1___| _ | _| _|__| _ | _| _ |
|. | |__| |____ |_____|__| |____|__|_____|__| |___ |
|: 1 | |: 1 | |_____|
|::.. . | |::.. . | ufs [AT] ufsoft [DOT] org
`-------' `-------' ufs [AT] sapo [DOT] pt
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.2 (GNU/Linux)
iD8DBQFFhetVniPxVTX2hA4RArMZAJwLGF5qMonl5lFRUQOro9aufCy4pwCeLQCE
J2vjt/gfYhoPJdT/zluXZqI=
=GRjn
-----END PGP SIGNATURE-----
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"pylons-discuss" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/pylons-discuss?hl=en
-~----------~----~----~----~------~----~------~--~---