Re: [poedit-users] Poedit not updating comments on Update from POT file

[email protected] Tue, 19 Apr 2011 13:12:29 -0500 (CDT)
Newsgroups gmane.editors.poedit.user
Message-ID <1558710563.2621334.1303236749640.JavaMail.root@vznit170072>
--===============8740951111551869493==
Content-type: text/html; charset=UTF-8
Content-transfer-encoding: quoted-printable

Hi Vaclav,<br /><br />Ok, thanks for pointing out that I was using the Comm=
ents section in poedit incorrectly.&nbsp; The only place that I found comme=
nts mentioned as a direction to the translator is for names.&nbsp; If I und=
erstand correctly, then I can put a /* TRANSLATORS: */ comment in the code =
immediately preceding the translatable string to give direction to the tran=
slator.<br /><br />Let me explain a bit about what I'm trying to do so the =
you have a better understanding.&nbsp; The system that we are working on is=
 an embedded system with a small display so the strings have very tight req=
uirements for the displayed length.&nbsp; I was trying to use the poedit co=
mments field to indicate to the translator what the context of the string i=
s and the length requirements.<br /><br />So it seems that what I should do=
 is move all of my usage comments into the source code as /* TRANSLATORS: *=
/ comments and then they will be brought along with the translable strings =
when I import a new .pot file in to a translated .po file.<br /><br />I've =
figured out that I needed to change the xgettext command line arguments to =
get the comments included in the scan and enable the view of Automatic Comm=
ents to see them, and now I have it working.&nbsp; While the gettext docume=
ntation does mention translator comments, the poedit documentation doesn't =
have anything about how to get them included or displayed.<br /><br />Thank=
s for you help,<br /><br />Greg Wilson-Lindberg<br /><br /><br />
<p>On Apr 19, 2011, <strong>V&aacute;clav Slav&iacute;k</strong> &lt;vslavi=
[email protected]&gt; wrote:</p>
<div class=3D"replyBody">
<blockquote class=3D"email_quote" style=3D"border-left: 2px solid #267fdb; =
margin: 0pt 0pt 0pt 1.8ex; padding-left: 1ex;">Hi,<br /><br />On 18 Apr 201=
1, at 20:21, [email protected] wrote:<br />&gt; Am I missing an option =
someplace or should this be entered as and enhancement request?<br /><br />=
Neither. You are misunderstanding how gettext is meant to work and the firs=
t course of action would be to read the GNU gettext manual. It is quite goo=
d and explains the concepts well.<br /><br />In short (you should still rea=
d the manual, though!), POT files are not meant to be edited like this, the=
y are *generated* automatically from source code.<br /><br />As a consequen=
ce, you don't manually put comments into a POT file. The comments that you =
can add to entries in a PO (not POT) file are *translator's* comments, spec=
ific to this translation and meant to explain problems etc., they're transl=
ator's work notes. They have no relevancy to translations into other langua=
ges.<br /><br />If you want to have some comments present in all translatio=
ns (e.g. explanation of terms specific to your app, instructions for transl=
ators, ...), then you need to use specially formatted comments in the sourc=
e code. That's because POT files are, yes, generated automatically from sou=
rce code. The gettext manual explains this in detail. Do have a look.<br />=
<br />Regards,<br />Vaclav<br />-------------------------------------------=
-----------------------------------<br />Benefiting from Server Virtualizat=
ion: Beyond Initial Workload <br />Consolidation -- Increasing the use of s=
erver virtualization is a top<br />priority.Virtualization can reduce costs=
, simplify management, and improve <br />application availability and disas=
ter protection. Learn more about boosting <br />the value of server virtual=
ization. http://p.sf.net/sfu/vmware-sfdev2dev<br />________________________=
_______________________<br />Poedit-users mailing list<br />Poedit-users@li=
sts.sourceforge.net<br />https://lists.sourceforge.net/lists/listinfo/poedi=
t-users<br /></blockquote>
</div>


--===============8740951111551869493==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

------------------------------------------------------------------------------
Benefiting from Server Virtualization: Beyond Initial Workload 
Consolidation -- Increasing the use of server virtualization is a top
priority.Virtualization can reduce costs, simplify management, and improve 
application availability and disaster protection. Learn more about boosting 
the value of server virtualization. http://p.sf.net/sfu/vmware-sfdev2dev
--===============8740951111551869493==
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

--===============8740951111551869493==--