mirror of
https://github.com/labwc/labwc.git
synced 2025-10-29 05:40:24 -04:00
parent
c5852db5b5
commit
481b849152
2 changed files with 37 additions and 11 deletions
|
|
@ -362,6 +362,28 @@ translation strings under each English string.
|
|||
|
||||
[See this tutorial for further guidance](https://www.labri.fr/perso/fleury/posts/programming/a-quick-gettext-tutorial.html)
|
||||
|
||||
Code contributors may need to update relevant files if their additions
|
||||
affect UI elements (at the moment only `src/menu/menu.c`). In this case
|
||||
the `po/labwc.pot` file needs to be updated so that translators can
|
||||
update their translations. Remember, many translators are _not_ coders!
|
||||
|
||||
The process is fairly trivial however does involve some manual steps.
|
||||
|
||||
1. After adding and testing your code additions to satisfaction, backup
|
||||
`po/labwc.pot`. You need the custom header from that file for the newly
|
||||
generated .pot file in the next step.
|
||||
|
||||
2. From the root of the repository run this:
|
||||
|
||||
```
|
||||
xgettext --keyword=_ --language=C --add-comments -o po/labwc.pot src/menu/menu.c
|
||||
```
|
||||
|
||||
This generates a new pot file at `po/labwc.pot`
|
||||
|
||||
3. Copy the header from the original `labwc.pot` to the new one, check
|
||||
for sanity and commit.
|
||||
|
||||
# Upversion
|
||||
|
||||
It is generally only the lead-maintainer who will upversion, but in order
|
||||
|
|
|
|||
26
po/labwc.pot
26
po/labwc.pot
|
|
@ -17,46 +17,50 @@ msgstr ""
|
|||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
|
||||
#: src/menu/menu.c:631
|
||||
#: src/menu/menu.c:698
|
||||
msgid "Reconfigure"
|
||||
msgstr ""
|
||||
|
||||
#: src/menu/menu.c:633
|
||||
#: src/menu/menu.c:700
|
||||
msgid "Exit"
|
||||
msgstr ""
|
||||
|
||||
#: src/menu/menu.c:649
|
||||
#: src/menu/menu.c:716
|
||||
msgid "Minimize"
|
||||
msgstr ""
|
||||
|
||||
#: src/menu/menu.c:651
|
||||
#: src/menu/menu.c:718
|
||||
msgid "Maximize"
|
||||
msgstr ""
|
||||
|
||||
#: src/menu/menu.c:653
|
||||
#: src/menu/menu.c:720
|
||||
msgid "Fullscreen"
|
||||
msgstr ""
|
||||
|
||||
#: src/menu/menu.c:655
|
||||
#: src/menu/menu.c:722
|
||||
msgid "Decorations"
|
||||
msgstr ""
|
||||
|
||||
#: src/menu/menu.c:657
|
||||
#: src/menu/menu.c:724
|
||||
msgid "AlwaysOnTop"
|
||||
msgstr ""
|
||||
|
||||
#: src/menu/menu.c:662
|
||||
#: src/menu/menu.c:726
|
||||
msgid "ToggleOmnipresent"
|
||||
msgstr ""
|
||||
|
||||
#: src/menu/menu.c:731
|
||||
msgid "Move left"
|
||||
msgstr ""
|
||||
|
||||
#: src/menu/menu.c:667
|
||||
#: src/menu/menu.c:738
|
||||
msgid "Move right"
|
||||
msgstr ""
|
||||
|
||||
#: src/menu/menu.c:672
|
||||
#: src/menu/menu.c:741
|
||||
msgid "Workspace"
|
||||
msgstr ""
|
||||
|
||||
#: src/menu/menu.c:675
|
||||
#: src/menu/menu.c:744
|
||||
msgid "Close"
|
||||
msgstr ""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue