Re: Transifex and the manual files
On Tue, 2015-06-23 at 22:42 +0200, Marco Ciampa wrote: ... lost the email in the spam bin? did you try these scripts? Hi Marco, No, I didn't :-( Sorry for the delay: I wasn't able to allocate any time to work on mc last week, but I'll have a look as soon as I can make it. -- Sincerely yours, Yury V. Zaytsev ___ mc-devel mailing list https://mail.gnome.org/mailman/listinfo/mc-devel
Re: Transifex and the manual files
On Thu, Jun 11, 2015 at 12:30:49AM +0200, Marco Ciampa wrote: On Mon, Jun 08, 2015 at 10:18:48PM +0200, Yury V. Zaytsev wrote: [...] I don't think you'd need to mess with autostuff though. As a first approximation, I suppose the output could be two shell scripts: - one would take the reference (English) man page template (man.x.in), and convert it to a pot-file using the po4a tool with correct settings - another one would take the translated po-file, and convert it back into a man.x.in file, which would be suitable to generate the help files See attached files: make-update-po.sh make-i10n.sh ... lost the email in the spam bin? did you try these scripts? -- Marco Ciampa I know a joke about UDP, but you might not get it. ++ | GNU/Linux User #78271 | | FSFE fellow #364 | ++ ___ mc-devel mailing list https://mail.gnome.org/mailman/listinfo/mc-devel
Re: Transifex and the manual files
On Tue, Jun 23, 2015 at 10:47:07PM +0200, Yury V. Zaytsev wrote: On Tue, 2015-06-23 at 22:42 +0200, Marco Ciampa wrote: ... lost the email in the spam bin? did you try these scripts? Hi Marco, No, I didn't :-( Sorry for the delay: I wasn't able to allocate any time to work on mc last week, but I'll have a look as soon as I can make it. No problem, I really understand, it was just a ping... real life comes first... -- Marco Ciampa I know a joke about UDP, but you might not get it. ++ | GNU/Linux User #78271 | | FSFE fellow #364 | ++ ___ mc-devel mailing list https://mail.gnome.org/mailman/listinfo/mc-devel
Re: Transifex and the manual files
On Mon, Jun 08, 2015 at 10:18:48PM +0200, Yury V. Zaytsev wrote: [...] I don't think you'd need to mess with autostuff though. As a first approximation, I suppose the output could be two shell scripts: - one would take the reference (English) man page template (man.x.in), and convert it to a pot-file using the po4a tool with correct settings - another one would take the translated po-file, and convert it back into a man.x.in file, which would be suitable to generate the help files See attached files: make-update-po.sh make-i10n.sh these are pretty self-explanatory. The first create/update the .po file from the reference man doc. After first run you should set a couple of thing to actually enable doc creation. You have to set the .po doc encoding (UTF-8), the language, the translator name and email address and un-fuzzy the headers. The second get the main doc (man page) the .po translator file and merge into the translated man page. Put these two scripts in doc/man dir make those executable. Please save the old translation man pages for reference (I did a cp it/mc.1.in it/mc.1.in.save for example) Use po4a version 0.45 or newer. Regards, -- Marco Ciampa I know a joke about UDP, but you might not get it. ++ | GNU/Linux User #78271 | | FSFE fellow #364 | ++ make-i10n.sh Description: Bourne shell script make-update-po.sh Description: Bourne shell script ___ mc-devel mailing list https://mail.gnome.org/mailman/listinfo/mc-devel
Re: Transifex and the manual files
Hi Marco, On Mon, 2015-06-08 at 18:04 +0200, Marco Ciampa wrote: I can try to do it. I already use po4a for another project (KiCad). Before this email I was even thinking to suggest the use of po4a to this aim. ;-) This would be awesome! I am not an expert on make/automake/autoconf though so I probably am going to need a hand in this respect. No problem, I can try to help you to integrate whatever you come up with as time permits. I don't think you'd need to mess with autostuff though. As a first approximation, I suppose the output could be two shell scripts: - one would take the reference (English) man page template (man.x.in), and convert it to a pot-file using the po4a tool with correct settings - another one would take the translated po-file, and convert it back into a man.x.in file, which would be suitable to generate the help files On top of that we can build some automation to synchronize them back and forth with Transifex, but this can come later. The essential, as I understood is that there is some problem with po4a related to roff formatting such that man - po - man files currently can't be used with the help generator. Do you already have an account on Transifex? If yes, I can tell you the commands to fetch all the translated files so far, so that you can experiment with real stuff. I'll do some experiments in these days and post here the results... No hurry... -- Sincerely yours, Yury V. Zaytsev ___ mc-devel mailing list https://mail.gnome.org/mailman/listinfo/mc-devel
Re: Transifex and the manual files
On Sun, Jun 07, 2015 at 09:46:03PM +0200, Yury V. Zaytsev wrote: Hi, I have found out, that the manual files that are offered for translation on Transifex are basically an abandoned experiment by Slava. This makes me very sad, because currently nobody knows that they are not actually useful, and quite some people have put their time into translating them. The deal was that Slava wanted to set up translation using the po4a tool, but somehow he realized that it breaks roff formatting on which the help system generator relies during po - man conversion, and, as a result, the help files can't be generated from these manual pages. At the moment, I have stopped the Transifex interface from accepting translations for these resources until someone can figure out how to set up a working man - po - man conversion cycle. Are there any volunteers to look into that? Maybe I should make an announcement via the Transifex system as well. I can try to do it. I already use po4a for another project (KiCad). Before this email I was even thinking to suggest the use of po4a to this aim. ;-) I am not an expert on make/automake/autoconf though so I probably am going to need a hand in this respect. I'll do some experiments in these days and post here the results... Regards, -- Marco Ciampa I know a joke about UDP, but you might not get it. ++ | GNU/Linux User #78271 | | FSFE fellow #364 | ++ ___ mc-devel mailing list https://mail.gnome.org/mailman/listinfo/mc-devel