Patchwork [5,of,5,V3] doc: make i18n man and html

login
register
mail settings
Submitter Takumi IINO
Date July 3, 2013, 1:20 p.m.
Message ID <8bb4ea964113f578ee72.1372857654@iino-no-MacBook-Air.local>
Download mbox | patch
Permalink /patch/1789/
State Accepted
Commit 80983af366b5e22cb12c9be5da9b117b4b4acf43
Headers show

Comments

Takumi IINO - July 3, 2013, 1:20 p.m.
# HG changeset patch
# User Takumi IINO <trot.thunder@gmail.com>
# Date 1372855820 -32400
#      Wed Jul 03 21:50:20 2013 +0900
# Node ID 8bb4ea964113f578ee7229dceade53ab89dc2209
# Parent  2073ba0c816c4d6cc4100ff09d0a0bf318846f83
doc: make i18n man and html

Allow overwrite LANGUAGE and LC_ALL make variables, for make i18n man and html.
After this patch, we can make i18n man and html by following command:

  $ make clean all LANGUAGE=ja
Matt Mackall - July 17, 2013, 8:04 p.m.
On Wed, 2013-07-03 at 22:20 +0900, Takumi IINO wrote:
> # HG changeset patch
> # User Takumi IINO <trot.thunder@gmail.com>
> # Date 1372855820 -32400
> #      Wed Jul 03 21:50:20 2013 +0900
> # Node ID 8bb4ea964113f578ee7229dceade53ab89dc2209
> # Parent  2073ba0c816c4d6cc4100ff09d0a0bf318846f83
> doc: make i18n man and html

These are queued for default, thanks.

Patch

diff --git a/Makefile b/Makefile
--- a/Makefile
+++ b/Makefile
@@ -10,6 +10,8 @@ 
 PURE=
 PYFILES:=$(shell find mercurial hgext doc -name '*.py')
 DOCFILES=mercurial/help/*.txt
+export LANGUAGE=C
+export LC_ALL=C
 
 # Set this to e.g. "mingw32" to use a non-default compiler.
 COMPILER=
diff --git a/doc/Makefile b/doc/Makefile
--- a/doc/Makefile
+++ b/doc/Makefile
@@ -9,8 +9,7 @@ 
 PYTHON=python
 RSTARGS=
 
-export LANGUAGE=C
-export LC_ALL=C
+export HGENCODING=UTF-8
 
 all: man html