GNOME Bugzilla – Bug 126237
need INTLTOOL_KBD_RULE for gok
Last modified: 2004-12-22 21:47:04 UTC
We need a rule for xml-merging of GOK's *.kbd files, from *.kbd.in->*.kbd, using --multiple-output
Created attachment 21200 [details] [review] suggested patch
note that the --multiple-output flag in the INTLTOOL_KBD_RULE seems not to be working for GOK. Where are the multi-output files supposed to go>? I am not sure why it's not working for me, I am getting single zero-length files instead.
thanks kenneth for giving the go-ahead for the patch (as in bug 90500, where you gave the GO). I am omitting the use of -m from this rule for the moment, until 46650 is examined more closely (its current behavior is weird). Also we need to rev the intltool version with this patch (I haven't done that yet) so that clients can depend on it. Otherwise it's now fixed in cvs.
reopening, since although intltool-merge is working now (with the split files option, thanks Kenneth and Brian), the intltool-extract program doesn't seem to be working with .kbd.in files, i.e. typing intltool-extract --type=gettext/xml ../main.kbd.in doesn't seem to work properly.
Could you attach the main.kbd.in file and tell us more precisely what is going wrong?
kenneth: looks like intltool-update isn't recognizing the .kbd.in files as type "gettext/xml" since it hasn't got a rule for them in xml_support (around line 60 of intltool-update). But my attempts to add a one-line rule for this failed, don't know why. Using [type: gettext/xml] as a prefix in POTFILES.in seems to work, still investigating that; it puts the msgids in gok.pot. Is that all that needs to happen, or should they be appearing in *.po also?
Created attachment 23113 [details] sample input file which intltool-update and intltool-extract needs to process
It should just add them to the pot file. Can you show me that you tried adding? as a patch maybe? Then I can see what you are doing wrong.
I think I fixed it in cvs
hmm what did you change? I'll do a diff to see...
thanks Kenneth; your fix looks a lot like mine did. If it's working for you also, then we can re-close this bug I think. In any case I put a workaround in GOK (using prefixes in POTFILES.in) so it's not as serious as it first looked.
Ok closing then. I guess what you did wrong was that the last line was "****"; When you added the next line, then previous line should be changed to "****|". Maybe you forgot that?