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: Tom
Subject: Re: [ESD-translators] [gnu.org #1198491] Chinese translation for ESD
Date: Thu, 31 Aug 2017 23:30:59 +0800
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0

(Sorry for my late reply.)

I edited HTML files first, then I found it take time to edit 3 HTML
files at same time. So I decided to edit PO files.

I haven't finished my translation yet, but I want to try with that if
it's work.

I have a problem about Makefile.gen, I don't fully understand that
script. So I tried to edit language code.


```
# list of languages that use the PO files (add yours if you migrate to PO)
# czech - cs, persian - fa
# in the LANG add the code(s) of the language(s) you intend to translate
LANG=zh-hans
```

Because Chinese is written from left to right, so I modified as Czech
example.


```
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' $@
```

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
po4a-translate -M utf-8 -f xhtml --keep 30 -o porefs=none -o
'untranslated=<script>' -o 'attributes=<meta>content' -m
en/confirmation.html -p esd-zh-hans.po -l zh-hans/confirmation.html
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
        LANGUAGE = "en_HK:en",
        LC_ALL = (unset),
        LANG = "zh-hans"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
/usr/bin/locale: Cannot set LC_CTYPE to default locale: No such file or
directory
/usr/bin/locale: Cannot set LC_MESSAGES to default locale: No such file
or directory
/usr/bin/locale: Cannot set LC_ALL to default locale: No such file or
directory
esd-zh-hans.po:6: (po4a::po)
               Strange line: -->msgid ""<--
esd-zh-hans.po:7: (po4a::po)
               Strange line: -->msgstr ""<--
esd-zh-hans.po:8: (po4a::po)
               Strange line: -->"Project-Id-Version: emailselfdefense
               ersion\n"<--
esd-zh-hans.po:9: (po4a::po)
               Strange line: -->"POT-Creation-Date: 2016-04-02
23:41+0100\n"<--
esd-zh-hans.po:10: (po4a::po)
               Strange line: -->"PO-Revision-Date: 2017-08-30
20:33+0800\n"<--
esd-zh-hans.po:11: (po4a::po)
               Strange line: -->"Language: zh_CN\n"<--
[...]
esd-zh-hans.po:1623: (po4a::po)
               Strange line:
-->"address@hidden\">address@hidden</a>."<--
esd-zh-hans.po:1624: (po4a::po)
               Strange line: -->msgstr ""<--
Discard the translation of en/confirmation.html (only 0% translated;
need 30%).
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.

I have no idea with that. How should I deal with it?


On 2017/7/27 2:17, Zak Rogoff via RT wrote:
> Hi Tom,
> 
> Thanks for offering to help. All the instructions for translators you need 
> should be at https://libreplanet.org/wiki/GPG_guide/Translation_Guide, but 
> let us know in a reply if you encounter any issues.
> 





reply via email to

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