← Back to team overview

ubuntu-developer-manual team mailing list archive

can now build localized pdfs (for "supported languages")

 

Hi,

I did some work to generate pdfs fro bzr revision 58 & 59.

I'll paste in the two bzr commit messages as they say it:

------------------------------------------------------------
revno: 59
committer: Kyle Nitzsche <kyle.nitzsche@xxxxxxxxxxxxx>
branch nick: ubuntu-developer-manual
timestamp: Wed 2011-01-05 17:57:11 -0500
message:
  Right now, fr and es are present. Each of these po files has a
  'fake' translation of one message: "Introduction to Launchpad"

  fr is translated to "FR: Introduction to Launchpad"
  es is translated to "ES: Introduction to Launchpad"

  This string the first section title in Tools chapter. So if you
  build localized pdfs, you can go there and verify translations at this
  level are working.
------------------------------------------------------------
revno: 58
committer: Kyle Nitzsche <kyle.nitzsche@xxxxxxxxxxxxx>
branch nick: ubuntu-developer-manual
timestamp: Wed 2011-01-05 17:46:01 -0500
message:
  With this commit we can build localized pdfs.

  Note that localization support does not (yet) include images - it's
  translations only.

  Run 'make' alone to produce a non-localized pdf: main.pdf

  Run 'lang_pdfs' produce pdfs for all languages in the LINGUAS file (and
  to remake the non-localized one: main.pdf). pdfs are created named like
  this: main-<lang>.pdf. for example, main-fr.pdf for French.

  Note: it is an execution error (right now) if you have a lang code in
  LINGUAS but do not have a corresponding po file for it in po/.

  Run 'make langpdf LANG=<lang>' to produce a single pdf of the desired language.
  For example, 'make langpdf LANG=es' produces main-es.pd (Spanish)..

  Note: you cannot make a language specific pdf until the non-localized
  one exists, so run 'make' first if you hit errors trying to build a single
  localized one first.

  How:
  Three new targets in the makefile. The only one you ever need to call
  is langpdf (as in 'make langpfd LANG=<lang>'). It calls the others.