[poedit-users] Fwd: gettext localize strings with variables
Peter Irbizon <[email protected]> Thu, 28 Jul 2011 15:38:10 +0200
| Newsgroups | gmane.editors.poedit.user |
|---|---|
| Message-ID | <CABFuWSzOPqwhJP5Z74SqFx6x0YjX6k1CBLY1vXZNm2S+WitW1A@mail.gmail.com> |
--===============1533302611616168166==
Content-Type: multipart/alternative; boundary=90e6ba6e840499318404a9214656
--90e6ba6e840499318404a9214656
Content-Type: text/plain; charset=ISO-8859-1
Hello,
I have
variable OUHH and
print _('This is %(OUHH)s a translatable string.' % locals())
how can I translate this ? thanks
--90e6ba6e840499318404a9214656
Content-Type: text/html; charset=ISO-8859-1
<div class="gmail_quote">Hello,<br></div>
<div class="gmail_quote">I have<br>variable OUHH and</div>
<div class="gmail_quote"><br>print _('This is %(OUHH)s a translatable string.' % locals())<br><br>how can I translate this ? thanks</div><br>
--90e6ba6e840499318404a9214656--
--===============1533302611616168166==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
------------------------------------------------------------------------------
Got Input? Slashdot Needs You.
Take our quick survey online. Come on, we don't ask for help often.
Plus, you'll get a chance to win $100 to spend on ThinkGeek.
http://p.sf.net/sfu/slashdot-survey
--===============1533302611616168166==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
_______________________________________________
Poedit-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/poedit-users
--===============1533302611616168166==--