File: README.md

package info (click to toggle)
python-trubar 0.3.4-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 716 kB
  • sloc: python: 2,968; sh: 375; makefile: 3; javascript: 1
file content (29 lines) | stat: -rw-r--r-- 743 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
## Trubar

A tool for translation and localization of Python programs via modification of source files.

Trubar supports f-strings and does not require any changes to the original source code, such as marking strings for translation.

#### Installation and use

Use pip to install Trubar

```sh
pip install trubar`
```

Collect (or update) all strings in your project by

```sh
trubar collect -s myproject/source messages.jaml
```

Add translations to messages.jaml and then run

```sh
trubar translate -s myproject/source -d translated/myproject/source messages.jaml
```

to produce translated source files.

See [Getting Started](http://janezd.github.io/trubar/getting-started) for a slightly longer introduction and complete documentation.