Merge lp:~dpm/ubuntu-docs/html-multiple-locale-output into lp:ubuntu-docs/precise
Status: | Merged |
---|---|
Merged at revision: | 109 |
Proposed branch: | lp:~dpm/ubuntu-docs/html-multiple-locale-output |
Merge into: | lp:ubuntu-docs/precise |
Diff against target: |
190 lines (+64/-99) 3 files modified
html/Makefile (+64/-21) html/add-html5-doctype.sh (+0/-24) html/fix-urls.sh (+0/-54) |
To merge this branch: | bzr merge lp:~dpm/ubuntu-docs/html-multiple-locale-output |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Matthew East (community) | Needs Information | ||
Review via email: mp+99495@code.launchpad.net |
Description of the change
Background
----------
The current tree provides a makefile to create localized HTML documentation for a given language.
While this is extremely useful to provide online documentation, only one locale can be specified at a time.
To provide output to help the translations and multilingual user communities, it would be useful to create HTML documentation for all languages in which there is a translation available, in a centralized manner.
Note that the HTML build is not part of the binary output of the ubuntu-docs package, and my understanding is that it is provided as a helper to create HTML documentation for help.ubuntu.com.
Proposed change
---------------
This branch modifies the HTML makefile to enable building HTML documentation for all available locales. The list of localized docs to build can be specified as a list of language codes in the HELP_LINGUAS variable (following the main documentation makefile), either in the Makefile itself or on the command line when executing make.
It has been tested to produce a proof-of-concept multilingual site to help localizers test their translations on:
The site serves the pages in the right locale according to the browser's language settings and falls back to English if no language preference is provided.
Just a query - I may be looking at this too quickly but I can't see why the fix-urls.sh script has been removed?