How to create a new translation? (error)

Home Forums cherrytree How to create a new translation? (error)

This topic contains 2 replies, has 2 voices, and was last updated by  remus 1 week, 4 days ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #124323

    remus
    Member

    Is there an info about how to create a new translation of CherryTree?
    All I could find was this post: http://www.giuspen.com/topic/cherrytree-translation/

    It says to do git clone and and run “i18n_create_lang_file.sh” in locale -dir. There’s an .py script instead but running it with preceding language code gives me only error output:

    Traceback (most recent call last):
      File "i18n_create_lang_file.py", line 15, in <module>
        subprocess.call(shell_cmd)
      File "/usr/lib64/python2.7/subprocess.py", line 168, in call
        return Popen(*popenargs, **kwargs).wait()
      File "/usr/lib64/python2.7/subprocess.py", line 390, in __init__
        errread, errwrite)
      File "/usr/lib64/python2.7/subprocess.py", line 1024, in _execute_child
        raise child_exception
    OSError: [Errno 2] No such file or directory

    I’ve got Python version python-2.7.13-2.3.x86_64. What should I do?

    • This topic was modified 2 weeks, 2 days ago by  remus.
    #124326

    giuspen
    Moderator

    Hi,
    it is correct you have to run
    ./i18n_create_lang_file.py
    But the package gettext (e.g. https://packages.ubuntu.com/xenial/gettext for ubuntu) must be installed, the command line tool msginit is used.

    #124334

    remus
    Member

    ok, that worked. the missing package is named ‘gettext-tools’ in opensuse.

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.