From: 01micko <01micko@gmail.com> Date: Tue, 12 Dec 2023 06:16:36 +0000 (+1000) Subject: labwc.pot: update for new OmniPresent menu X-Git-Url: https://git.mdlowis.com/?a=commitdiff_plain;h=481b8491520f09d52cedb3beda5853cb181f686f;p=proto%2Flabwc.git labwc.pot: update for new OmniPresent menu closes #1311 --- diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 1431958d..65f52c17 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -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 diff --git a/po/labwc.pot b/po/labwc.pot index e3698009..a9d90fa4 100644 --- a/po/labwc.pot +++ b/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 ""