Skip to content

Latest commit

 

History

History
49 lines (33 loc) · 1.51 KB

NLS.md

File metadata and controls

49 lines (33 loc) · 1.51 KB

Translating labwc-tweaks-gtk

Translators

Weblate

labwc-tweaks-gtk is now on Weblate.

You can register here and use the instructions to add a new translation or edit an existing one.

Pull request

If you don't want to use Weblate you can still branch off the repository and create a pull request. We use GNU Gettext for translations.

Code contributors

  1. Make sure you wrap any new strings that you add, exposed in the GTK user interface, with the gettext macro:
gtk_label_new(_("My New Feature"));
  1. If you create a new file that has exposed strings append the filename to po/POTFILES.in

  2. After adding and testing your code additions to satisfaction, backup po/labwc-tweaks-gtk.pot. You need the custom header from that file for the newly generated .pot file in the next step.

  3. From the root of the repository run this:

xgettext --keyword=_  --add-comments -o po/labwc-tweaks-gtk.pot main.c \
stack-appearance.c stack-lang.c stack-mouse.c data/labwc-tweaks-gtk.desktop.in  \
--package-name=labwc-tweaks-gtk --package-version=0.1.0 \
--msgid-bugs-address=https://github.com/labwc/labwc-tweaks-gtk/issues

This generates a new pot file at po/labwc.pot

  1. Copy the header from the original labwc.pot to the new one, keeping the newly generated dates, check for sanity and commit.