Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions po/POTFILES
Original file line number Diff line number Diff line change
@@ -1 +1,24 @@
ui/gtk.c
ui/xui/actions.cc
ui/xui/animation.cc
ui/xui/compat.cc
ui/xui/debug.cc
ui/xui/font-manager.cc
ui/xui/gl-helpers.cc
ui/xui/input-manager.cc
ui/xui/main-menu.cc
ui/xui/main.cc
ui/xui/menubar.cc
ui/xui/misc.cc
ui/xui/monitor.cc
ui/xui/notifications.cc
ui/xui/popup-menu.cc
ui/xui/reporting.cc
ui/xui/scene-components.cc
ui/xui/scene-manager.cc
ui/xui/scene.cc
ui/xui/snapshot-manager.cc
ui/xui/update.cc
ui/xui/viewport-manager.cc
ui/xui/welcome.cc
ui/xui/widgets.cc
15 changes: 14 additions & 1 deletion po/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,19 @@ i18n = import('i18n')

if find_program('xgettext', required: get_option('gettext')).found()
i18n.gettext(meson.project_name(),
args: '--msgid-bugs-address=qemu-devel@nongnu.org',
args: [
'--msgid-bugs-address=qemu-devel@nongnu.org',
'--keyword=SectionTitle:1',
'--keyword=Toggle:1',
'--keyword=Slider:1',
Comment on lines +8 to +9
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

The Toggle and Slider widgets both take a description string as their third argument. To ensure these strings are automatically extracted by xgettext without needing manual _() wrapping at every call site, you should update the keyword definitions to include the third argument (e.g., Toggle:1,3).

                 '--keyword=Toggle:1,3',
                 '--keyword=Slider:1,3',

'--keyword=FilePicker:1',
'--keyword=ChevronCombo:1',
'--keyword=ChevronCombo:4',
'--keyword=ChevronCombo:6',
'--keyword=MainMenuTabButton:1',
'--keyword=PopupMenuButton:1',
'--keyword=PopupMenuSubmenuButton:1',
'--keyword=PopupMenuToggle:1',
],
preset: 'glib')
endif
Loading