Commit 17f4ea53 authored by Jeremy Bicha's avatar Jeremy Bicha Committed by Bastien Nocera

meson: Stop using intltool

modern gettext is sufficient

https://wiki.gnome.org/Initiatives/GnomeGoals/GettextMigration

Closes: #218
parent b4050524
......@@ -6,7 +6,7 @@ build-fedora:
image: fedora:latest
stage: test
before_script:
- dnf install -y redhat-rpm-config meson git cairo-devel clutter-devel clutter-gst3-devel clutter-gtk-devel gcc-c++ gettext gnome-desktop3-devel grilo-devel gsettings-desktop-schemas-devel gstreamer1-devel gstreamer1-plugins-base-devel gstreamer1-plugins-good gtk3-devel gtk-doc intltool itstool libappstream-glib liberation-sans-fonts libpeas-devel lirc-devel meson nautilus-devel pygobject3-devel pylint python3-devel totem-pl-parser-devel vala flatpak-builder
- dnf install -y redhat-rpm-config meson git cairo-devel clutter-devel clutter-gst3-devel clutter-gtk-devel gcc-c++ gettext gnome-desktop3-devel grilo-devel gsettings-desktop-schemas-devel gstreamer1-devel gstreamer1-plugins-base-devel gstreamer1-plugins-good gtk3-devel gtk-doc itstool libappstream-glib liberation-sans-fonts libpeas-devel lirc-devel meson nautilus-devel pygobject3-devel pylint python3-devel totem-pl-parser-devel vala flatpak-builder
script:
- meson _build -Denable-vala=no
- ninja -C _build test
......
......@@ -270,11 +270,6 @@ pkg = import('pkgconfig')
po_dir = join_paths(meson.source_root(), 'po')
intltool_merge = find_program('intltool-merge')
intltool_cache = join_paths(po_dir, '.intltool-merge-cache')
intltool_desktop_cmd = [intltool_merge, '-d', '-u', '-c', intltool_cache, po_dir, '@INPUT@', '@OUTPUT@']
intltool_xml_cmd = [intltool_merge, '-x', '-u', '-c', intltool_cache, po_dir, '@INPUT@', '@OUTPUT@']
top_inc = include_directories('.')
subdir('po')
......
# List of source files containing translatable strings.
# Please keep this file sorted alphabetically.
[encoding: UTF-8]
data/appdata/org.gnome.Totem.appdata.xml.in
[type: gettext/glade]data/controls.ui
data/controls.ui
data/org.gnome.Totem.desktop.in.in
[type: gettext/gsettings]data/org.gnome.totem.gschema.xml.in
[type: gettext/glade]data/playlist.ui
[type: gettext/glade]data/preferences.ui
[type: gettext/glade]data/properties.ui
[type: gettext/glade]data/shortcuts.ui
[type: gettext/glade]data/totem.ui
[type: gettext/glade]data/uri.ui
data/org.gnome.totem.gschema.xml.in
data/playlist.ui
data/preferences.ui
data/properties.ui
data/shortcuts.ui
data/totem.ui
data/uri.ui
src/backend/bacon-time-label.c
src/backend/bacon-video-widget.c
src/backend/bacon-video-widget-gst-missing-plugins.c
src/gst/totem-time-helpers.c
src/properties/bacon-video-widget-properties.c
[type: gettext/glade]src/grilo.ui
src/grilo.ui
src/totem.c
src/totem-gallery-thumbnailer.c
src/totem-grilo.c
src/totem-interface.c
src/totem-main-toolbar.c
[type: gettext/glade]src/totemmaintoolbar.ui
src/totemmaintoolbar.ui
src/totem-menu.c
src/totem-object.c
src/totem-open-location.c
......@@ -31,54 +30,54 @@ src/totem-playlist.c
src/totem-preferences.c
src/totem-properties-main.c
src/totem-properties-view.c
[type: gettext/glade]src/totemselectiontoolbar.ui
src/totemselectiontoolbar.ui
src/totem-subtitle-encoding.c
src/totem-time-label.c
src/totem-uri.c
src/totem-video-thumbnailer.c
[type: gettext/ini]src/plugins/apple-trailers/apple-trailers.plugin.in
[type: gettext/ini]src/plugins/autoload-subtitles/autoload-subtitles.plugin.in
[type: gettext/ini]src/plugins/brasero-disc-recorder/brasero-disc-recorder.plugin.in
src/plugins/apple-trailers/apple-trailers.plugin.in
src/plugins/autoload-subtitles/autoload-subtitles.plugin.in
src/plugins/brasero-disc-recorder/brasero-disc-recorder.plugin.in
src/plugins/brasero-disc-recorder/totem-disc-recorder.c
[type: gettext/ini]src/plugins/dbusservice/dbusservice.plugin.in
src/plugins/dbusservice/dbusservice.plugin.in
src/plugins/dbusservice/dbusservice.py
[type: gettext/ini]src/plugins/gromit/gromit.plugin.in
src/plugins/gromit/gromit.plugin.in
src/plugins/gromit/totem-gromit.c
src/plugins/im-status/totem-im-status.c
[type: gettext/ini]src/plugins/im-status/totem-im-status.plugin.in
[type: gettext/ini]src/plugins/lirc/lirc.plugin.in
src/plugins/im-status/totem-im-status.plugin.in
src/plugins/lirc/lirc.plugin.in
src/plugins/lirc/totem-lirc.c
[type: gettext/ini]src/plugins/media-player-keys/media-player-keys.plugin.in
[type: gettext/ini]src/plugins/ontop/ontop.plugin.in
[type: gettext/ini]src/plugins/opensubtitles/opensubtitles.plugin.in
src/plugins/media-player-keys/media-player-keys.plugin.in
src/plugins/ontop/ontop.plugin.in
src/plugins/opensubtitles/opensubtitles.plugin.in
src/plugins/opensubtitles/opensubtitles.py
[type: gettext/glade]src/plugins/opensubtitles/opensubtitles.ui
[type: gettext/gsettings]src/plugins/opensubtitles/org.gnome.totem.plugins.opensubtitles.gschema.xml.in
[type: gettext/ini]src/plugins/properties/movie-properties.plugin.in
src/plugins/opensubtitles/opensubtitles.ui
src/plugins/opensubtitles/org.gnome.totem.plugins.opensubtitles.gschema.xml.in
src/plugins/properties/movie-properties.plugin.in
src/plugins/properties/totem-movie-properties.c
[type: gettext/gsettings]src/plugins/pythonconsole/org.gnome.totem.plugins.pythonconsole.gschema.xml.in
[type: gettext/ini]src/plugins/pythonconsole/pythonconsole.plugin.in
src/plugins/pythonconsole/org.gnome.totem.plugins.pythonconsole.gschema.xml.in
src/plugins/pythonconsole/pythonconsole.plugin.in
src/plugins/pythonconsole/pythonconsole.py
[type: gettext/ini]src/plugins/recent/recent.plugin.in
[type: gettext/ini]src/plugins/rotation/rotation.plugin.in
src/plugins/recent/recent.plugin.in
src/plugins/rotation/rotation.plugin.in
src/plugins/rotation/totem-rotation-plugin.vala
[type: gettext/ini]src/plugins/save-file/save-file.plugin.in
src/plugins/save-file/save-file.plugin.in
src/plugins/save-file/totem-save-file.c
[type: gettext/ini]src/plugins/screensaver/screensaver.plugin.in
src/plugins/screensaver/screensaver.plugin.in
src/plugins/screensaver/totem-screensaver.c
[type: gettext/glade]src/plugins/screenshot/gallery.ui
src/plugins/screenshot/gallery.ui
src/plugins/screenshot/screenshot-filename-builder.c
[type: gettext/ini]src/plugins/screenshot/screenshot.plugin.in
src/plugins/screenshot/screenshot.plugin.in
src/plugins/screenshot/totem-gallery.c
src/plugins/screenshot/totem-gallery-progress.c
src/plugins/screenshot/totem-screenshot-plugin.c
[type: gettext/ini]src/plugins/skipto/skipto.plugin.in
[type: gettext/glade]src/plugins/skipto/skipto.ui
src/plugins/skipto/skipto.plugin.in
src/plugins/skipto/skipto.ui
src/plugins/skipto/totem-skipto.c
src/plugins/skipto/totem-skipto-plugin.c
src/plugins/skipto/totem-time-entry.c
src/plugins/totem-plugins-engine.c
src/plugins/variable-rate/totem-variable-rate-plugin.c
[type: gettext/ini]src/plugins/variable-rate/variable-rate.plugin.in
[type: gettext/ini]src/plugins/vimeo/vimeo.plugin.in
[type: gettext/ini]src/plugins/zeitgeist-dp/zeitgeist-dp.plugin.in
src/plugins/variable-rate/variable-rate.plugin.in
src/plugins/vimeo/vimeo.plugin.in
src/plugins/zeitgeist-dp/zeitgeist-dp.plugin.in
i18n.gettext(meson.project_name(), preset: 'glib')
i18n.gettext(meson.project_name(), preset: 'glib', args: [ '--keyword=Description' ])
......@@ -2,8 +2,8 @@
Module=apple-trailers
IAge=1
Builtin=true
_Name=Apple Trailers
_Description=Sets the user agent for the Apple Trailers site
Name=Apple Trailers
Description=Sets the user agent for the Apple Trailers site
Authors=Bastien Nocera
Copyright=Copyright © 2012 Bastien Nocera
Website=http://www.gnome.org/projects/totem/
......@@ -18,7 +18,7 @@ custom_target(
plugin_data,
input: plugin_data + '.in',
output: plugin_data,
command: intltool_desktop_cmd,
command: msgfmt_plugin_cmd,
install: true,
install_dir: plugin_dir
)
......@@ -2,8 +2,8 @@
Module=autoload-subtitles
IAge=1
Builtin=true
_Name=Autoload Subtitles
_Description=Autoloads text subtitles
Name=Autoload Subtitles
Description=Autoloads text subtitles
Authors=Bastien Nocera
Copyright=Copyright © 2012 Bastien Nocera
Website=http://www.gnome.org/projects/totem/
......@@ -18,7 +18,7 @@ custom_target(
plugin_data,
input: plugin_data + '.in',
output: plugin_data,
command: intltool_desktop_cmd,
command: msgfmt_plugin_cmd,
install: true,
install_dir: plugin_dir
)
......@@ -2,8 +2,8 @@
Module=brasero-disc-recorder
IAge=1
Builtin=false
_Name=Video Disc Recorder
_Description=Records (S)VCDs or video DVDs
Name=Video Disc Recorder
Description=Records (S)VCDs or video DVDs
Authors=Philippe Rouquier
Copyright=Copyright © 2008 Philippe Rouquier
Website=http://www.gnome.org/projects/brasero/
......@@ -21,7 +21,7 @@ custom_target(
plugin_data,
input: plugin_data + '.in',
output: plugin_data,
command: intltool_desktop_cmd,
command: msgfmt_plugin_cmd,
install: true,
install_dir: plugin_dir
)
......@@ -2,8 +2,8 @@
Loader=python3
Module=dbusservice
IAge=1
_Name=MPRIS D-Bus Interface
_Description=Send notifications of currently-playing videos and allow remote control using MPRIS.
Name=MPRIS D-Bus Interface
Description=Send notifications of currently-playing videos and allow remote control using MPRIS.
Authors=Lucky <lucky1.data@gmail.com>, Philip Withnall <philip@tecnocode.co.uk>
Copyright=Copyright © 2009 Lucky, Philip Withnall
Website=https://wiki.gnome.org/Apps/Videos
......@@ -13,7 +13,7 @@ custom_target(
plugin_data,
input: plugin_data + '.in',
output: plugin_data,
command: intltool_desktop_cmd,
command: msgfmt_plugin_cmd,
install: true,
install_dir: plugin_dir
)
......
[Plugin]
Module=gromit
IAge=1
_Name=Gromit Annotations
_Description=Presentation helper to make annotations on screen
Name=Gromit Annotations
Description=Presentation helper to make annotations on screen
Authors=Bastien Nocera, Jan Arne Petersen
Copyright=Copyright © 2007 Bastien Nocera, Jan Arne Petersen
Website=http://www.gnome.org/projects/totem/
......@@ -18,7 +18,7 @@ custom_target(
plugin_data,
input: plugin_data + '.in',
output: plugin_data,
command: intltool_desktop_cmd,
command: msgfmt_plugin_cmd,
install: true,
install_dir: plugin_dir
)
......@@ -18,7 +18,7 @@ custom_target(
plugin_data,
input: plugin_data + '.in',
output: plugin_data,
command: intltool_desktop_cmd,
command: msgfmt_plugin_cmd,
install: true,
install_dir: plugin_dir
)
......@@ -2,8 +2,8 @@
Module=totem-im-status
IAge=1
Builtin=false
_Name=Instant Messenger Status
_Description=Set your Instant Messenger status to away when a movie is playing
Name=Instant Messenger Status
Description=Set your Instant Messenger status to away when a movie is playing
Authors=Bastien Nocera, Philip Withnall
Copyright=Copyright © 2007, 2011 Bastien Nocera, Philip Withnall
Website=http://www.gnome.org/projects/totem/
[Plugin]
Module=lirc
IAge=1
_Name=Infrared Remote Control
_Description=Support infrared remote control
Name=Infrared Remote Control
Description=Support infrared remote control
Authors=Jan Arne Petersen
Copyright=Copyright © 2007 Jan Arne Petersen
Website=http://www.gnome.org/projects/totem/
......@@ -20,7 +20,7 @@ custom_target(
plugin_data,
input: plugin_data + '.in',
output: plugin_data,
command: intltool_desktop_cmd,
command: msgfmt_plugin_cmd,
install: true,
install_dir: plugin_dir
)
......
[Plugin]
Module=media_player_keys
IAge=1
_Name=Media Player Keys
_Description=Support additional media player keys
Name=Media Player Keys
Description=Support additional media player keys
Builtin=true
Authors=Jan Arne Petersen
Copyright=Copyright © 2007 Jan Arne Petersen
......
......@@ -20,7 +20,7 @@ custom_target(
plugin_data,
input: plugin_data + '.in',
output: plugin_data,
command: intltool_desktop_cmd,
command: msgfmt_plugin_cmd,
install: true,
install_dir: plugin_dir
)
......@@ -149,6 +149,16 @@ endif
pylint_flags = ['-d', 'C0111', '-d', 'W0511', '-d', 'F0401', '-d', 'C0326' ]
msgfmt_plugin_cmd = [
find_program('msgfmt'),
'--desktop',
'--keyword=Name',
'--keyword=Description',
'--template=@INPUT@',
'-d', po_dir,
'--output=@OUTPUT@'
]
foreach plugin: plugins
subdir(plugin)
endforeach
......@@ -18,7 +18,7 @@ custom_target(
plugin_data,
input: plugin_data + '.in',
output: plugin_data,
command: intltool_desktop_cmd,
command: msgfmt_plugin_cmd,
install: true,
install_dir: plugin_dir
)
[Plugin]
Module=ontop
IAge=1
_Name=Always On Top
_Description=Keep the main window on top when playing a movie
Name=Always On Top
Description=Keep the main window on top when playing a movie
Authors=Bastien Nocera
Copyright=Copyright © 2007 Bastien Nocera
Website=http://www.gnome.org/projects/totem/
......@@ -19,7 +19,7 @@ custom_target(
plugin_data,
input: plugin_data + '.in',
output: plugin_data,
command: intltool_desktop_cmd,
command: msgfmt_plugin_cmd,
install: true,
install_dir: plugin_dir
)
......
......@@ -2,8 +2,8 @@
Loader=python3
Module=opensubtitles
IAge=1
_Name=Subtitle Downloader
_Description=Look for subtitles for the currently playing movie
Name=Subtitle Downloader
Description=Look for subtitles for the currently playing movie
Authors=Xavier Queralt <xqueralt@gmail.com>
Copyright=Copyright © 2008 Xavier Queralt
Website=http://www.gnome.org/projects/totem/
......@@ -20,7 +20,7 @@ custom_target(
plugin_data,
input: plugin_data + '.in',
output: plugin_data,
command: intltool_desktop_cmd,
command: msgfmt_plugin_cmd,
install: true,
install_dir: plugin_dir
)
......@@ -2,8 +2,8 @@
Module=movie-properties
IAge=1
Builtin=true
_Name=Movie Properties
_Description=Adds movie properties menu item
Name=Movie Properties
Description=Adds movie properties menu item
Authors=Bastien Nocera
Copyright=Copyright © 2007 Bastien Nocera
Website=http://www.gnome.org/projects/totem/
......@@ -18,7 +18,7 @@ custom_target(
plugin_data,
input: plugin_data + '.in',
output: plugin_data,
command: intltool_desktop_cmd,
command: msgfmt_plugin_cmd,
install: true,
install_dir: plugin_dir
)
......
......@@ -2,8 +2,8 @@
Loader=python3
Module=pythonconsole
IAge=1
_Name=Python Console
_Description=Interactive Python console
Name=Python Console
Description=Interactive Python console
Authors=Steve Frécinaux <steve@istique.net>
Copyright=Copyright © 2006 Steve Frécinaux
Website=http://www.gnome.org/projects/totem/
......@@ -18,7 +18,7 @@ custom_target(
plugin_data,
input: plugin_data + '.in',
output: plugin_data,
command: intltool_desktop_cmd,
command: msgfmt_plugin_cmd,
install: true,
install_dir: plugin_dir
)
......@@ -2,8 +2,8 @@
Module=recent
IAge=1
Builtin=true
_Name=Recent files
_Description=Adds files that have been played to recent files
Name=Recent files
Description=Adds files that have been played to recent files
Authors=Bastien Nocera
Copyright=Copyright © 2012 Bastien Nocera
Website=http://www.gnome.org/projects/totem/
......@@ -37,7 +37,7 @@ custom_target(
plugin_data,
input: plugin_data + '.in',
output: plugin_data,
command: intltool_desktop_cmd,
command: msgfmt_plugin_cmd,
install: true,
install_dir: plugin_dir
)
[Plugin]
Module=rotation
IAge=1
_Name=Rotation Plugin
_Description=Allows videos to be rotated if they are in the wrong orientation
Name=Rotation Plugin
Description=Allows videos to be rotated if they are in the wrong orientation
Authors=Simon Wenner <simon@wenner.ch>
Copyright=Copyright © 2011 Simon Wenner
Website=http://www.gnome.org/projects/totem/
......@@ -26,7 +26,7 @@ custom_target(
plugin_data,
input: plugin_data + '.in',
output: plugin_data,
command: intltool_desktop_cmd,
command: msgfmt_plugin_cmd,
install: plugin_install,
install_dir: plugin_dir
)
[Plugin]
Module=sample-vala
IAge=1
_Name=Vala Sample Plugin
_Description=A useless sample plugin in Vala
Name=Vala Sample Plugin
Description=A useless sample plugin in Vala
Authors=Philip Withnall <philip@tecnocode.co.uk>
Copyright=Copyright © 2007 James Livingston, Philip Withnall
Website=http://www.gnome.org/projects/totem/
......@@ -17,7 +17,7 @@ custom_target(
plugin_data,
input: plugin_data + '.in',
output: plugin_data,
command: intltool_desktop_cmd,
command: msgfmt_plugin_cmd,
install: plugin_install,
install_dir: plugin_dir
)
......
......@@ -2,8 +2,8 @@
Loader=python3
Module=samplepython
IAge=1
_Name=Python Sample Plugin
_Description=A useless sample plugin in Python
Name=Python Sample Plugin
Description=A useless sample plugin in Python
Authors=Philip Withnall <philip@tecnocode.co.uk>
Copyright=Copyright © 2006 James Livingston, 2007 Philip Withnall
Website=http://www.gnome.org/projects/totem/
......@@ -21,7 +21,7 @@ custom_target(
plugin_data,
input: plugin_data + '.in',
output: plugin_data,
command: intltool_desktop_cmd,
command: msgfmt_plugin_cmd,
install: true,
install_dir: plugin_dir
)
......@@ -2,8 +2,8 @@
Module=save-file
IAge=1
Builtin=true
_Name=Save Copy
_Description=Save a copy of the currently playing movie
Name=Save Copy
Description=Save a copy of the currently playing movie
Authors=Bastien Nocera
Copyright=Copyright © 2010 Bastien Nocera
Website=https://wiki.gnome.org/Apps/Videos
......@@ -18,7 +18,7 @@ custom_target(
plugin_data,
input: plugin_data + '.in',
output: plugin_data,
command: intltool_desktop_cmd,
command: msgfmt_plugin_cmd,
install: true,
install_dir: plugin_dir
)
......@@ -2,8 +2,8 @@
Module=screensaver
IAge=1
Builtin=true
_Name=Screen Saver
_Description=Deactivates the screen saver when a movie is playing
Name=Screen Saver
Description=Deactivates the screen saver when a movie is playing
Authors=Bastien Nocera
Copyright=Copyright © 2007 Bastien Nocera
Website=http://www.gnome.org/projects/totem/
......@@ -38,7 +38,7 @@ custom_target(
plugin_data,
input: plugin_data + '.in',
output: plugin_data,
command: intltool_desktop_cmd,
command: msgfmt_plugin_cmd,
install: true,
install_dir: plugin_dir
)
......
......@@ -2,8 +2,8 @@
Module=screenshot
IAge=1
Builtin=true
_Name=Screenshot
_Description=Allows screenshots and galleries to be taken of videos
Name=Screenshot
Description=Allows screenshots and galleries to be taken of videos
Authors=Philip Withnall, Bastien Nocera
Copyright=Copyright © 2008 Philip Withnall, 2004 Bastien Nocera
Website=http://www.gnome.org/projects/totem/
......@@ -24,7 +24,7 @@ custom_target(
plugin_data,
input: plugin_data + '.in',
output: plugin_data,
command: intltool_desktop_cmd,
command: msgfmt_plugin_cmd,
install: true,
install_dir: plugin_dir
)
......
......@@ -2,8 +2,8 @@
Module=skipto
IAge=1
Builtin=true
_Name=Skip To
_Description=Provides the “Skip to” dialog
Name=Skip To
Description=Provides the “Skip to” dialog
Authors=Philip Withnall, Bastien Nocera
Copyright=Copyright © 2007 Philip Withnall
Website=http://www.gnome.org/projects/totem/
......@@ -18,7 +18,7 @@ custom_target(
plugin_data,
input: plugin_data + '.in',
output: plugin_data,
command: intltool_desktop_cmd,
command: msgfmt_plugin_cmd,
install: true,
install_dir: plugin_dir
)
......@@ -2,8 +2,8 @@
Module=variable-rate
IAge=1
Builtin=true
_Name=Variable Rate
_Description=Provides the variable rate menu item
Name=Variable Rate
Description=Provides the variable rate menu item
Authors=Bastien Nocera
Copyright=Copyright © 2016 Bastien Nocera
Website=http://www.gnome.org/projects/totem/
......@@ -18,7 +18,7 @@ custom_target(
plugin_data,
input: plugin_data + '.in',
output: plugin_data,
command: intltool_desktop_cmd,
command: msgfmt_plugin_cmd,
install: true,
install_dir: plugin_dir
)
......@@ -2,8 +2,8 @@
Module=vimeo
IAge=1
Builtin=true
_Name=Vimeo
_Description=Sets the user agent for the Vimeo site
Name=Vimeo
Description=Sets the user agent for the Vimeo site
Authors=Bastien Nocera
Copyright=Copyright © 2013 Bastien Nocera
Website=http://www.gnome.org/projects/totem/
......@@ -37,7 +37,7 @@ custom_target(
plugin_data,
input: plugin_data + '.in',
output: plugin_data,
command: intltool_desktop_cmd,
command: msgfmt_plugin_cmd,
install: true,
install_dir: plugin_dir
)
[Plugin]
Module=totem-zeitgeist-dp-plugin
IAge=1
_Name=Zeitgeist Plugin
_Description=A plugin sending events to Zeitgeist
Name=Zeitgeist Plugin
Description=A plugin sending events to Zeitgeist
Authors=Michal Hruby <michal.mhr@gmail.com>
Copyright=Copyright © 2010 Michal Hruby
Website=http://www.gnome.org/projects/totem/
Markdown is supported
0%