Skip to content

Commit

Permalink
minor doc formatting
Browse files Browse the repository at this point in the history
Co-authored-by: rubenwardy <[email protected]>
  • Loading branch information
y5nw and rubenwardy authored Oct 9, 2024
1 parent e03b89c commit 1b4aa13
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion doc/lua_api.md
Original file line number Diff line number Diff line change
Expand Up @@ -4249,6 +4249,7 @@ It is recommended to first generate a translation template. The translation
template includes translatable strings that translators can directly work on.
After creating the `locale` directory, a translation template for the above
example using the following command:

```sh
xgettext -L lua -kS -kNS:1,2 -d hello -o locale/hello.pot *.lua
```
Expand All @@ -4257,12 +4258,15 @@ The above command can also be used to update the translation template when new
translatable strings are added.

The German translator can then create the translation file with

```sh
msginit -l de -i locale/hello.pot -o locale/hello.de.po
```

and provide the translations by editing `locale/hello.de.po`.

The translation file can be updated using

```sh
msgmerge -U locale/hello.de.po locale/hello.pot
```
Expand Down Expand Up @@ -4321,7 +4325,6 @@ A typical entry in a `.po` file would look like:

```po
msgctxt "textdomain"
msgid "Hello world!"
msgstr "Bonjour le monde!"
```
Expand Down

0 comments on commit 1b4aa13

Please sign in to comment.