[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Ordering like "%1$s" is unsupported in the format strings

From: Kobayashi Noritada <nori1_at_dolphin.c.u-tokyo.ac.jp>
Date: 2007-01-25 07:23:08 CET

Hi (mainly to zh_CN translators),

Recently revamped (Excellent!! :->) zh_CN.po contains many ordering
strings such as "%1$s". However, such ordering of words in the printf
format strings is not supported in Subversion (in APR?). Here I show
a test and its result with my ja.po.

Put a following entry into po.

  #: svn/propedit-cmd.c:116
  #, c-format
  msgid "No changes to property '%s' on revision %ld\n"
  msgstr "Revision %2$ld no zokusei '%1$s' ha henkou saremasendeshita.\n"

Then build and install po. After that, run propedit, and then just
close the editor without modification of the property:

  nori1[14:40]% rev=163 saba:~/svnwc/deb/serf
  nori1[14:40]% svn propedit --revprop -r $rev svn:log saba:~/svnwc/deb/serf
  [snip]
  Revision %$ld no zokusei '%$s' ha henkou saremasendeshita.

The expected result is:

  Revision 163 no zokusei 'svn:log' ha henkou saremasendeshita.

Yes, it's not supported.

Since orders of words are vastly different between English and
Japanese (For example, Subject-Verb-Object-Modifier is popular in
English, Modifier-Subject-Object-Verb is popular in Japanese.), I also
would like to use po's ordering framework. However, that framework is
dependent on implementation and currently unsupported in
Subversion. :-(

Thanks,

-nori

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Thu Jan 25 07:23:25 2007

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.