Right Andy The problem is not VIEW man pages in another language. The problem is to GENERATE those pages. I didn't dare say it, but the halcompile script is the key.
El mar., 4 ago. 2020 a las 18:56, andy pugh (<[email protected]>) escribió: > On Tue, 4 Aug 2020 at 16:51, J.M. Garcia <[email protected]> wrote: > > > Is there any way of internationalization for halcompile generated files? > > Possibly. It's not something I know all that much about, but the fact > that most of the .comp files pass through halcmompile does at least > offer a common site to intervene. > > My first thought was that if halcompile were to convert the strings > to gettext style _("like this") then they might get picked up and put > in the .po files. But I have a feeling that .po substitution only > happens in code, not docs. > > Halcompile creates a standard Linux manpage: > > https://github.com/LinuxCNC/linuxcnc/blob/master/src/hal/utils/halcompile.g#L869 > By taking the base component name and adding a .9 > > A quick google suggests that multilingual manpages are a thing. But I > didn't get much further than that. > I can imagine that replacing all the "print" in that section with a > gettext/multilingual version might work. > > Looking on my own system I see that I have a /usr/share/man/es that > contains spanish manpages, and I can see them with > > man -Les fakeroot > > For example. > > So: > 1) halcompile has to know how to create manpages in the locations of > other languages. linuxcnc-dev/docs/man/es/man9 ? > 2) Somehow these need to get translated. (gettext might be part of the > answer). Or maybe it could create placeholder files for manual > translation. But that's not as nice. > > -- > atp > "A motorcycle is a bicycle with a pandemonium attachment and is > designed for the especial use of mechanical geniuses, daredevils and > lunatics." > — George Fitch, Atlanta Constitution Newspaper, 1912 > > > _______________________________________________ > Emc-developers mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/emc-developers > _______________________________________________ Emc-developers mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/emc-developers
