zh-hans: update Makefile.gen
authorTom <hexuxin@foxmail.com>
Thu, 28 Mar 2019 10:30:17 +0000 (18:30 +0800)
committerTom <hexuxin@foxmail.com>
Thu, 28 Mar 2019 10:30:17 +0000 (18:30 +0800)
Makefile.gen

index 644f983e4ebf244233f6b3026c209d330630fdc3..72891ceb9ab2be8635c8a2d76fd3239994d64cc7 100644 (file)
@@ -105,4 +105,6 @@ sq/%.html: esd-sq.po $(foreach f,$(SRC),en/$f)
 # zh-han - Chinese (Han)
 zh-hans/%.html: esd-zh-hans.po $(foreach f,$(SRC),en/$f)
        -po4a-translate $(PO4A_FLAGS) --keep 0 -m en/$*.html -p $< -l $@
-
+       sed -i 's|img/en/|img/zh-hans/|g' $@
+       sed -i '/\/css\/main.css/a\
+       <link rel="stylesheet" href="//static.fsf.org/nosvn/enc-dev0/css/main.zh-hans.css" />' $@