On Wednesday 27 September 2006 17:36, F Wolff wrote:
> On Wo, 2006-09-27 at 16:32 +0700, hok kakada wrote:
> > Hi Friedel,
> >
> > I am starting the secode milestone by working with Translator information
> > of po and xliff file.
> >
> > . Name
> > . Email
> > . History of phase in the whole file
> >
> > Were these codes implements somewhere ?and how to call it?
> >
> > Thanks,
> >
> > da
>
> Most of this has not been implemented yet, so we should start work on
> planning this now. Perhaps we should be moving the related conversation
> to the toolkit mailing list (translate-devel).
As it is related to translation toolkit, I would post it in translate-devel
mailing list.
> I am currently changing some of the code to handle the PO header and the
> corresponding translation unit in the poxliff file, so that might still
> change a bit in the next while.
>
> One aspect of the PO header that is already better developed, is getting
> the plural information, see getheaderplural() and updateheaderplural()
> in po.py. It is already possible to access the PO header information as
> a dictionary with pofile.parseheader() - so the header information is
> already available there.
Does headerplural here refers to the language flexibility; for example, in
English language, we say one boy and two boys?
I looked into the header of po file where I cannot see the word
'Plural-Forms':
Project-Id-Version: gwenview\n
POT-Creation-Date: 2005-11-30 03:29+0100\n
PO-Revision-Date: 2006-03-09 16:13+0700\n
Last-Translator: Hok Kakada <[EMAIL PROTECTED]>\n
Language-Team: Khmer <[EMAIL PROTECTED]>\n
MIME-Version: 1.0\n
Content-Type: text/plain; charset=UTF-8\n
Content-Transfer-Encoding: 8bit\n
X-Generator: KBabel 1.11.2\n
def getheaderplural(self):
"""returns the nplural and plural values from the header"""
pluralformvalue = self.parseheader().get('Plural-Forms', None)
if pluralformvalue is None:
return None, None
------------------------------------------------------------------
## Can you comment what does this two lines mean?
nplural = sre.findall("nplurals=(.+?);", pluralformvalue)
plural = sre.findall("plural=(.+?);?$", pluralformvalue)
------------------------------------------------------------------
##what is the different between 'plural' of 'nplural'?
##why is nplural "INTEGER" and plural "EXPRESSION"?
if not nplural or nplural[0] == "INTEGER":
nplural = None
else:
nplural = nplural[0]
if not plural or plural[0] == "EXPRESSION":
plural = None
else:
plural = plural[0]
return nplural, plural
-------------------------------------------------------------------------
> As for XLIFF, none of this really exists yet. So let's start discussing
> what is necessary and where it will be done.
>
>
> -------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share
> your opinions on IT & business topics through brief surveys -- and earn
> cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> _______________________________________________
> Translate-editor mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/translate-editor
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Translate-pootle mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/translate-pootle