]> git.mdlowis.com Git - proto/labwc.git/commitdiff
labwc.pot: update for new OmniPresent menu
author01micko <01micko@gmail.com>
Tue, 12 Dec 2023 06:16:36 +0000 (16:16 +1000)
committerConsolatis <35009135+Consolatis@users.noreply.github.com>
Tue, 12 Dec 2023 06:28:11 +0000 (07:28 +0100)
closes #1311

CONTRIBUTING.md
po/labwc.pot

index 1431958d352dbb7be43fe1bbf8c73b034f281826..65f52c173bf27ce8660aaa0407d38adea8b7d6c8 100644 (file)
@@ -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
index e369800968e1a0f8afee1ae0febfffe811f4efa8..a9d90fa48bf4c84e444ca7a921904cf237857c9f 100644 (file)
@@ -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 ""