Sun 18 Sep 2005 11:22:40 AM UTC, comment #6:
> In Japanese, "deleted file '%s'" comes before "delta
> [%s]->[%s]" normally. The gettext's feature refered in "Gettext
> Manual 3.5 Special Comments preceding Keywords" enables to write the
> above entry such like,
Ah, I understand now.
The %1$s syntax is actually not a Gettext feature; it is a printf feature. We don't actually use printf, we use a library from Boost that provides similar functionality, but they are compatible in this respect.
Basically, if you go ahead right now and write
> msgstr "sakujyoshita-file '%3$s' ni-taisuru-sabun
> [%1$s]->[%2$s] wo-mushi-shimasu.\n"
it should just work. Let us know if not, I guess.
> *1. Unfortunately, the probelm (3 in my previous comment) sill remains and I
> cannot find the cause. Here is the log. Japanese messages are not displayed
> while some white spaces are out:
Ahh... thanks for explaining. I know what this problem is. Monotone's output routines run a "sanitizer" over the output text, to make sure that we don't accidentally dump out binary text on the screen and screw up the user's terminal, etc. (This can even be a security hole!)
The "sanitizer" only affects a few special characters; it should not affect UTF-8 text, for instance. But, there was a bug in it until recently, where it would strip out all characters with the high-bit set, i.e., it would replace all non-ascii characters with spaces. This bug is fixed in mainline.
You will probably have better luck working against mainline in any case; another developer (Benoit Dejean) has been doing a lot of work to make monotone more friendly to l10n, including cleaning up a lot of strings, finding strings that should be translated but that were not marked correctly, and so on.
I have imported your ja.po to mainline. If you'd like commit access so you can update it whenever you like, just send me a pubkey...
|