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) | 2012-03-27 | Needs Information on 2012-03-28 | |
|
Review via email:
|
|||
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.
- 99. By David Planella on 2012-03-27
-
Added a rule to the html Makefile to install HTML files on a multilingual server
- 100. By David Planella on 2012-03-28
-
Finished the install rule in the HTML makefile
- 101. By David Planella on 2012-03-28
-
Merged from trunk
| David Planella (dpm) wrote : | # |
I included the ## Icons part of the fix-urls.sh script in the ubuntu-help rule, in:
-e 's|/usr/
As per the ## ghelp part of the script, I had done a quick search for ghelp: links in the HTML output at the time I wrote the rule and I couldn't find any, so I thought it wouldn't be needed and discarded it.
Double-checking it now makes me think I was perhaps a bit too quick, as the output seems to contain ghelp links for the following:
orca
synaptic
cheese
baobab
brasero
gucharmap
I guess I should re-add the fix-urls.sh script to cater for those. Does it look like the final list? It strikes me that e.g. the software-center, language-selector and empathy links from the original are gone.
| Matthew East (mdke) wrote : | # |
On 28 March 2012 19:04, David Planella <email address hidden> wrote:
> Double-checking it now makes me think I was perhaps a bit too quick, as the output seems to contain ghelp links for the following:
>
> orca
> synaptic
> cheese
> baobab
> brasero
> gucharmap
>
> I guess I should re-add the fix-urls.sh script to cater for those. Does it look like the final list? It strikes me that e.g. the software-center, language-selector and empathy links from the original are gone.
Yes please. I don't know whether this is the final list - we tend to
update the script once per release cycle, prior to html generation.
--
Matthew East
http://
gnupg pub 1024D/0E6B06FF
| David Planella (dpm) wrote : | # |


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?