[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-i18n-doc
Subject:    Re: translated man page docbooks
From:       Albert Astals Cid <aacid () kde ! org>
Date:       2008-12-10 22:27:26
Message-ID: 200812102327.26563.aacid () kde ! org
[Download RAW message or body]

A Dimecres 10 Desembre 2008, Burkhard Lück va escriure:
> Am Mittwoch 10 Dezember 2008 23:07:09 schrieb Albert Astals Cid:
> > A Dimecres 10 Desembre 2008, Burkhard Lück va escriure:
> > > Hi Translators,
> > >
> > > we have nearly 60 man pages in docbook format with a lot of
> > > translations, but none of these translations have been installed
> > > building from source since several years.
> > >
> > > See also this thread on kde-doc-english:
> > > http://lists.kde.org/?l=kde-doc-english&m=122883962114734&w=2
> > >
> > > Attached a patch to install all translations of man page docbooks.
> >
> > +    echo "kde4_create_manpage($fname $no INSTALL_DESTINATION
> > \${MAN_INSTALL_DIR}/\${CURRENT_LANG}/ )"
> > +    echo "kde4_create_manpage($fname $no INSTALL_DESTINATION
> > \${MAN_INSTALL_DIR}/\${CURRENT_LANG}/ )" >> $subdir/CMakeLists.txt
> >
> > I assume the first one is a "log" message and can be removed?
>
> Yes.
>
> > > It works here with one exception:
> > > kdesdk/doc/scripts/man-zonetab2pot.1.docbook breaks the build.
> > > meinproc4 generates a manpage called zonetab2pot.py from this docbook,
> > > seems the name is taken from <refentrytitle> inside the file.
> > > The command name in the docbooks has to match exactly the docbook file
> > > name, this is case sensitive. So I guess you will get some install
> > > errors from wrong command names in your first build with this patch.
> > > Renaming man-zonetab2pot.1.docbook to man-zonetab2pot.py.1.docbook does
> > > not work with the macro KDE4_CREATE_HANDBOOK, because in cmake
> > > get_filename_component(foo bar) considers always the longest file
> > > extension and cuts man-zonetab2pot.py.1.docbook to man-zonetab2pot.
> > > I have no idea how to fix this.
> > > Any hints?
> >
> > The attached patch seems to work here.
>
> No, I am shure it does not.
> At the end of your build log (language build) you will find:
>
> [snip]
> -- Up-to-date: /home/kdedev/kdedev/share/man/de/man1/adddebug.1
> CMake Error at docs/kdesdk/scripts/cmake_install.cmake:124 (FILE):
>   file INSTALL cannot find file
>   "/home/kdedev/svn/build/l10n-kde4/docs/kdesdk/scripts/zonetab2pot.1" to
>   install.
> Call Stack (most recent call first):
>   docs/kdesdk/cmake_install.cmake:43 (INCLUDE)
>   docs/cmake_install.cmake:57 (INCLUDE)
>   cmake_install.cmake:38 (INCLUDE)
>
> make: *** [install] Fehler 1
>
> That means all language docs are build properly, but not all of them are
> installed properly.
>
> So we first need a solution for the problem with man-zonetab2pot.1.docbook.

I renamed it to man-zonetab2pot.py.1.docbook as you suggested.

Albert

>
> > If it works for you i think you can commit all the fixes and tellme so i
> > run the build on all the translations to see what breaks.
> >
> > > I think this is also a good time to delete some useless and outdated
> > > docs.
> > >
> > > I suggest to delete at least these from kdesdk/doc (all dealing with
> > > CVS): create_cvsignore.1.docboo, man-create_makefile.1.docbook,
> > > man-create_makefile.1.docbook, man-cvscheck.1.docbook,
> > > man-cvslastchange.1.docbook, man-cvslastlog.1.docbook,
> > > man-cvsrevertlast.1.docbook, man-pruneemptydirs.1.docbook,
> >
> > These scripts still exist in kdesdk/scripts so i see no reason to remove
> > the docs.



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic