mirror of
https://github.com/johrpan/musicus.git
synced 2025-10-26 11:47:25 +01:00
Merge hacking into readme
This commit is contained in:
parent
f61482c329
commit
a7e4763b4d
2 changed files with 37 additions and 38 deletions
37
HACKING.md
37
HACKING.md
|
|
@ -1,37 +0,0 @@
|
|||
# Blueprint files
|
||||
|
||||
When adding a new Blueprint file in `data/res/`, remember to add it to the
|
||||
following file lists:
|
||||
|
||||
- list of bluprint sources in `data/res/meson.build`
|
||||
- list of resources in `data/res/musicus.gresource.xml` (`.blp` replaced with
|
||||
`.ui`)
|
||||
- list of translatable files in `po/POTFILES`
|
||||
|
||||
# Internationalization
|
||||
|
||||
Execute the following commands from the project root directory to update
|
||||
translation files whenever translatable strings have been changed.
|
||||
|
||||
1. Update `template.pot`
|
||||
|
||||
```bash
|
||||
xgettext \
|
||||
--from-code=UTF-8 \
|
||||
--add-comments \
|
||||
--keyword=_ \
|
||||
--keyword=C_:1c,2 \
|
||||
--files-from=po/POTFILES \
|
||||
--output=po/template.pot
|
||||
```
|
||||
|
||||
2. Update translation files
|
||||
|
||||
```bash
|
||||
msgmerge \
|
||||
--update \
|
||||
--backup=off \
|
||||
--no-fuzzy-matching \
|
||||
po/de.po \
|
||||
po/template.pot
|
||||
```
|
||||
38
README.md
38
README.md
|
|
@ -4,4 +4,40 @@ The classical music player and organizer.
|
|||
|
||||
## Hacking
|
||||
|
||||
See [HACKING.md](HACKING.md) for useful information on developing Musicus.
|
||||
## Blueprint files
|
||||
|
||||
When adding a new Blueprint file in `data/res/`, remember to add it to the
|
||||
following file lists:
|
||||
|
||||
- list of bluprint sources in `data/res/meson.build`
|
||||
- list of resources in `data/res/musicus.gresource.xml` (`.blp` replaced with
|
||||
`.ui`)
|
||||
- list of translatable files in `po/POTFILES`
|
||||
|
||||
## Internationalization
|
||||
|
||||
Execute the following commands from the project root directory to update
|
||||
translation files whenever translatable strings have been changed.
|
||||
|
||||
1. Update `template.pot`
|
||||
|
||||
```bash
|
||||
xgettext \
|
||||
--from-code=UTF-8 \
|
||||
--add-comments \
|
||||
--keyword=_ \
|
||||
--keyword=C_:1c,2 \
|
||||
--files-from=po/POTFILES \
|
||||
--output=po/template.pot
|
||||
```
|
||||
|
||||
2. Update translation files
|
||||
|
||||
```bash
|
||||
msgmerge \
|
||||
--update \
|
||||
--backup=off \
|
||||
--no-fuzzy-matching \
|
||||
po/de.po \
|
||||
po/template.pot
|
||||
```
|
||||
Loading…
Add table
Add a link
Reference in a new issue