esd-translators
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [ESD-translators] [gnu.org #1198491] Chinese translation for ESD


From: Ineiev
Subject: Re: [ESD-translators] [gnu.org #1198491] Chinese translation for ESD
Date: Thu, 31 Aug 2017 12:59:26 -0400
User-agent: Mutt/1.5.21 (2010-09-15)

Hello, Tom;

On Thu, Aug 31, 2017 at 11:30:59PM +0800, Tom wrote:
...
> LANG=zh-hans
...
> zh-hans/%.html: esd-zh-hans.po $(foreach f,$(SRC),en/$f)
>       -po4a-translate $(PO4A_FLAGS) -m en/$*.html -p $< -l $@
>       sed -i 's|<li><a class="current" href="/en">English -
> v4.0</a></li>|<li><a href="/en">English - v4.0</a></li>|' $@
>       sed -i 's|img/en/|img/zh-hans/|g' $@

This must be correct.

> I ran `make -f Makefile.gen` on Terminal (I ran on my Debian virtual
> machine, for prevent from my mistaken operation.), it seem something
> wrong with that.
> 
> 
> ```
> root@debian:/home/hz/enc# make -f Makefile.gen

It's a bad habit to run all as root, but this is not why
your translation is not regenerated.

> esd-zh-hans.po:6: (po4a::po)
>                Strange line: -->msgid ""<--
...
> esd-zh-hans.po:1623: (po4a::po)
>                Strange line:
> -->"address@hidden\">address@hidden</a>."<--
> esd-zh-hans.po:1624: (po4a::po)
>                Strange line: -->msgstr ""<--

PO4A reports errors; I couldn't reproduce them with the PO file you've
added to git; did you push something different?

> Discard the translation of en/confirmation.html (only 0% translated;
> need 30%).

PO4A only generates HTML when 30% translations are complete; your PO file
has a lower percentage.

> sed -i 's|<li><a class="current" href="/en">English -
> v4.0</a></li>|<li><a href="/en">English - v4.0</a></li>|'
> zh-hans/confirmation.html
> sed: can't read zh-hans/confirmation.html: No such file or directory
> Makefile.gen:52: recipe for target 'zh-hans/confirmation.html' failed
> make: *** [zh-hans/confirmation.html] Error 2
> ```
> And I found zh-hans/confirmation.html which was existed before have been
> deleted.

PO4A removed zh-hans/confirmation.html because it wasn't able
to generate it.

Hope that helps.

Attachment: signature.asc
Description: Digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]