OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

xliff-comment message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]


Subject: RE: [xliff-comment] Storing plural forms with XLIFF


Hi Jan-Arve,

I think there is a guideline for PO:
http://www.oasis-open.org/committees/download.php/19108/cd-xliff-profile-po-1.2-20060516.zip
(not sure it's the latest up-to-date though)
 
It talks about plural forms and its representation in XLIFF at section 5.2.2 (and in other sections)
It seems strategy 1 (group) is the one selected. So that would give you something like:

<group restype="x-gettext-plurals">
 <trans-unit id="1[0]" xml:space="preserve">
  <source>%n files</source>
  <target state="new">%n plik</target> </trans-unit>
 <trans-unit id="1[1]" xml:space="preserve">
  <source>%n files</source>
  <target state="new">%n pliki</target>
 </trans-unit>
 <trans-unit id="1[2]" xml:space="preserve">
  <source>%n files</source>
  <target state="new">%n pliko'w</target>
 </trans-unit>
</group>

Hope this helps.
-yves



-----Original Message-----
From: Jan-Arve Sæther [mailto:jasaethe@trolltech.com] 
Sent: Monday, July 24, 2006 10:21 AM
To: xliff-comment@lists.oasis-open.org
Subject: [xliff-comment] Storing plural forms with XLIFF

Mike Beckerle previously pointed out his concern for XLIFF support for plural forms, but he did not get any replies.
(http://lists.oasis-open.org/archives/xliff-comment/200303/msg00000.html)

I understand that the Profiles SC will come up with guidelines on how to represent different formats in XLIFF.
Do you plan to release such guidelines for how XLIFF should represent plural forms?

As I understand XLIFF, the two alternatives I can think of are these (using the polish language as an example):


1. Using a <group> element with a user-defined restype, where the order of the <trans-unit> elements are from nullar, (e.g. '0
files') to "very" plural:
<group restype="x-plurals">
    <trans-unit id="Dialog21">
        <source>%n files</source>
        <target state="new">%n plik</target>
    </trans-unit>
    <trans-unit id="Dialog22">
        <source>%n files</source>
        <target state="new">%n pliki</target>
    </trans-unit>
    <trans-unit id="Dialog23">
        <source>%n files</source>
        <target state="new">%n pliko'w</target>
    </trans-unit>
</group>


2. Using the <alt-trans> element, using the same ordering scheme as in 1):
<trans-unit id="Dialog21">
     <source>%n files</source>
     <target state="new">%n plik</target>
</trans-unit>
<alt-trans id="Dialog22">
     <target state="new">%n pliki</target>
</alt-trans>
<alt-trans id="Dialog23">
     <target state="new">%n pliko'w</target>
</alt-trans>


What is the best or most common practice for this?



[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]