[sane-devel] Contributing to Simplified Chinese Translation

Ralph Little skelband at gmail.com
Tue May 18 15:33:44 BST 2021


Hi,

On 2021-05-18 6:15 a.m., Tyson Tan wrote:
> Hi Sane team,
> My name is Tyson Tan, I come from KDE community. I would like to offer
> Simplified Chinese translation to Sane.
>
> Skanlite and Kooka, both KDE scanner frontends, are using Sane via
> libksane. After fully translating those projects, I found no strings
> matching the basic scanner options in their .pot files. It seems
> https://gitlab.com/sane-project/backends/-/tree/master/po has them.
> However, there is currently no Simplified Chinese locale (zh_CN) and I
> can't find the .pot file there.
>
> May I ask some help to kick start my work? Thanks.
>
That would be great and thanks!
Translators are a valuable resource!

Firstly, get a clone of the master branch from gitlab.
Then follow the instructions in po/README for adding a new translation
and then updating it.
I have pasted the relevant portions here:


------8<------8<------8<------8<------8<------8<------8<---

Translators: I want to add a new language
-----------------------------------------

* Add the language code to po/LINGUAS
* ./config.status || ./configure
* cp po/sane-backends.pot po/$lang.po
  Replace $lang with the language code you added to po/LINGUAS.
* Go ahead with "I want to update existing translations".

Translators: I want to update existing translations
---------------------------------------------------

* cd po ; make update-po
* Edit $lang.po, add/change translations. (with $lang = your
  language, e.g. "de"). You need an editor that is capable of using the
  encoding UTF8 (unicode).
* Add your name to the header. Update the "last translator" field.
* make ; make install

------8<------8<------8<------8<------8<------8<------8<---

Once that is done, you can send the updated po file to here and someone
will check it in!

Having done that, if you would like to sign up as a regular translator
(always welcome!!!!) then I can give you the required permissions.

Once again, thanks for your offer.

Cheers,
Ralph





More information about the sane-devel mailing list