← Back to team overview

ubuntu-packaging-guide-team team mailing list archive

[Bug 943154] Re: Make Packaging Guide translatable

 

Just a quick update...

This is almost ready to land. I'm just unhappy with the install path,
but I can't figure out how to do it differently. Currently, things
install with paths like this:

/usr/share/doc/ubuntu-packaging-guide/html/en/ubuntu-packaging-
guide/index.html

It's ugly and redundant! I really hate that second "ubuntu-packaging-
guide." This is an issue with the "gettext_compact" setting and having
to move things into a single directory. Things are getting built to:

_build/html/en/ubuntu-packaging-guide/index.html

And we can't just move things around manually as the static assets end
up in directly in "_build/html/en/"  So moving the html will break
links. I'm think that I might just process it with sed and move the html
down one dir in the Makefile.

sed -i 's/href="..\//href=.\/"/g'

It feels really fragile though, so if anyone has a better idea I'd love
to hear it.

-- 
You received this bug notification because you are a member of Ubuntu
Packaging Guide Team, which is subscribed to Ubuntu Packaging Guide.
https://bugs.launchpad.net/bugs/943154

Title:
  Make Packaging Guide translatable

Status in Ubuntu Packaging Guide:
  In Progress

Bug description:
  With https://bitbucket.org/birkenfeld/sphinx/issue/561/configuration-
  option-store-translations-in fixed in Sphinx 1.1 (which is in precise
  and which we could backport into our PPA), we could enable
  translations.

  One requirement we have is: one .pot file for the whole package as
  opposed to one .pot file per article. To do this we need to set
  gettext_compact and move all articles in one directory.
  (http://sphinx.pocoo.org/config.html#confval-gettext_compact)

  I prepared a couple of things in a branch at lp:~dholbach/ubuntu-
  packaging-guide/i18n which makes "make gettext" work, but
  unfortunately this will break paths for "make html", etc.

  Any help with this is appreciated, as I'm going to be too busy to
  finish the work in the next few weeks.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu-packaging-guide/+bug/943154/+subscriptions


Follow ups

References