Commit 0dd386f4 authored by Iñigo Martínez's avatar Iñigo Martínez Committed by Bastien Nocera

build: Migrate from Intltool to Gettext

Recent versions of Gettext are able to translate several formats
that are used in GNOME applications. This patch migrates from
Intltool to Gettext by using meson's i18n features.

https://bugzilla.gnome.org/show_bug.cgi?id=787588
parent 811ba929
<?xml version="1.0"?>
<its:rules xmlns:its="http://www.w3.org/2005/11/its"
version="2.0">
<its:translateRule selector="/sounds" translate="no"/>
<its:translateRule selector="//name" translate="yes"/>
</its:rules>
<?xml version="1.0"?>
<locatingRules>
<locatingRule name="sounds" pattern="*.xml">
<documentRule localName="sounds" target="sounds.its"/>
</locatingRule>
</locatingRules>
......@@ -234,11 +234,12 @@ desktop_conf = configuration_data()
desktop_conf.set('VERSION', meson.project_version())
po_dir = join_paths(meson.source_root(), 'po')
its_dir = join_paths(meson.source_root(), 'gettext')
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@']
install_subdir(
'gettext',
install_dir: control_center_datadir
)
top_inc = include_directories('.')
shell_inc = include_directories('shell')
......
[Desktop Entry]
_Name=Background
_Comment=Change your background image to a wallpaper or photo
Name=Background
Comment=Change your background image to a wallpaper or photo
Exec=gnome-control-center background
Icon=preferences-desktop-wallpaper
Terminal=false
......@@ -10,4 +10,4 @@ StartupNotify=true
Categories=GNOME;GTK;Settings;DesktopSettings;X-GNOME-Settings-Panel;X-GNOME-PersonalizationSettings;
OnlyShowIn=GNOME;
# Translators: those are keywords for the background control-center panel
_Keywords=Wallpaper;Screen;Desktop;
Keywords=Wallpaper;Screen;Desktop;
......@@ -7,11 +7,12 @@ desktop_in = configure_file(
configuration: desktop_conf
)
custom_target(
i18n.merge_file(
desktop,
type: 'desktop',
input: desktop_in,
output: desktop,
command: intltool_desktop_cmd,
po_dir: po_dir,
install: true,
install_dir: control_center_desktopdir
)
......
[Desktop Entry]
_Name=Bluetooth
_Comment=Turn Bluetooth on and off and connect your devices
Name=Bluetooth
Comment=Turn Bluetooth on and off and connect your devices
Icon=bluetooth
Exec=gnome-control-center bluetooth
Terminal=false
......@@ -14,4 +14,4 @@ X-GNOME-Bugzilla-Product=gnome-bluetooth
X-GNOME-Bugzilla-Component=properties
X-GNOME-Bugzilla-Version=@VERSION@
# Translators: those are keywords for the bluetooth control-center panel
_Keywords=share;sharing;bluetooth;obex;
Keywords=share;sharing;bluetooth;obex;
......@@ -7,11 +7,12 @@ desktop_in = configure_file(
configuration: desktop_conf
)
custom_target(
i18n.merge_file(
desktop,
type: 'desktop',
input: desktop_in,
output: desktop,
command: intltool_desktop_cmd,
po_dir: po_dir,
install: true,
install_dir: control_center_desktopdir
)
......
[Desktop Entry]
_Name=Color
_Comment=Calibrate the color of your devices, such as displays, cameras or printers
Name=Color
Comment=Calibrate the color of your devices, such as displays, cameras or printers
Exec=gnome-control-center color
Icon=preferences-color
Terminal=false
......@@ -14,4 +14,4 @@ X-GNOME-Bugzilla-Product=gnome-control-center
X-GNOME-Bugzilla-Component=color
X-GNOME-Bugzilla-Version=@VERSION@
# Translators: those are keywords for the color control-center panel
_Keywords=Color;ICC;Profile;Calibrate;Printer;Display;
Keywords=Color;ICC;Profile;Calibrate;Printer;Display;
......@@ -7,11 +7,12 @@ desktop_in = configure_file(
configuration: desktop_conf
)
custom_target(
i18n.merge_file(
desktop,
type: 'desktop',
input: desktop_in,
output: desktop,
command: intltool_desktop_cmd,
po_dir: po_dir,
install: true,
install_dir: control_center_desktopdir
)
......
[Desktop Entry]
_Name=Date & Time
_Comment=Change the date and time, including time zone
Name=Date & Time
Comment=Change the date and time, including time zone
Exec=gnome-control-center datetime
Icon=preferences-system-time
Terminal=false
......@@ -10,4 +10,4 @@ StartupNotify=true
Categories=GNOME;GTK;Settings;X-GNOME-Settings-Panel;X-GNOME-DetailsSettings;
OnlyShowIn=GNOME;
# Translators: those are keywords for the date and time control-center panel
_Keywords=Clock;Timezone;Location;
Keywords=Clock;Timezone;Location;
......@@ -7,22 +7,23 @@ desktop_in = configure_file(
configuration: desktop_conf
)
custom_target(
i18n.merge_file(
desktop,
type: 'desktop',
input: desktop_in,
output: desktop,
command: intltool_desktop_cmd,
po_dir: po_dir,
install: true,
install_dir: control_center_desktopdir
)
polkit = 'org.gnome.controlcenter.@0@.policy'.format(cappletname)
custom_target(
i18n.merge_file(
polkit,
input: polkit + '.in',
output: polkit,
command: intltool_xml_cmd,
po_dir: po_dir,
install: true,
install_dir: join_paths(control_center_datadir, 'polkit-1', 'actions')
)
......
......@@ -8,8 +8,8 @@
<vendor_url>http://www.gnome.org/</vendor_url>
<action id="org.gnome.controlcenter.datetime.configure">
<_description>Change system time and date settings</_description>
<_message>To change time or date settings, you need to authenticate.</_message>
<description>Change system time and date settings</description>
<message>To change time or date settings, you need to authenticate.</message>
<defaults>
<allow_any>no</allow_any>
<allow_inactive>no</allow_inactive>
......
[Desktop Entry]
_Name=Displays
_Comment=Choose how to use connected monitors and projectors
Name=Displays
Comment=Choose how to use connected monitors and projectors
Exec=gnome-control-center display
Icon=preferences-desktop-display
Terminal=false
......@@ -14,4 +14,4 @@ X-GNOME-Bugzilla-Product=gnome-control-center
X-GNOME-Bugzilla-Component=Screen resolution
X-GNOME-Bugzilla-Version=@VERSION@
# Translators: those are keywords for the display control-center panel
_Keywords=Panel;Projector;xrandr;Screen;Resolution;Refresh;Monitor;Night;Light;Blue;redshift;color;sunset;sunrise;
Keywords=Panel;Projector;xrandr;Screen;Resolution;Refresh;Monitor;Night;Light;Blue;redshift;color;sunset;sunrise;
......@@ -7,13 +7,12 @@ desktop_in = configure_file(
configuration: desktop_conf
)
# FIXME: You will need a recent intltool or the patch from this bug
# http://bugzilla.gnome.org/show_bug.cgi?id=462312
custom_target(
i18n.merge_file(
desktop,
type: 'desktop',
input: desktop_in,
output: desktop,
command: intltool_desktop_cmd,
po_dir: po_dir,
install: true,
install_dir: control_center_desktopdir
)
......
[Desktop Entry]
_Name=Default Applications
_Comment=Configure Default Applications
Name=Default Applications
Comment=Configure Default Applications
Exec=gnome-control-center default-apps
Icon=starred
Terminal=false
......@@ -14,4 +14,4 @@ X-GNOME-Bugzilla-Product=gnome-control-center
X-GNOME-Bugzilla-Component=info
X-GNOME-Bugzilla-Version=@VERSION@
# Translators: those are keywords for the Default Applications panel
_Keywords=default;application;preferred;media;
Keywords=default;application;preferred;media;
[Desktop Entry]
_Name=About
_Comment=View information about your system
Name=About
Comment=View information about your system
Exec=gnome-control-center info-overview
Icon=help-about
Terminal=false
......@@ -16,4 +16,4 @@ X-GNOME-Bugzilla-Version=@VERSION@
# Translators: those are keywords for the System Information panel
# "Preferred Applications" is the old name for the preference, so make
# sure that you use the same "translation" for those keywords
_Keywords=device;system;information;memory;processor;version;default;application;preferred;cd;dvd;usb;audio;video;disc;removable;media;autorun;
Keywords=device;system;information;memory;processor;version;default;application;preferred;cd;dvd;usb;audio;video;disc;removable;media;autorun;
[Desktop Entry]
_Name=Removable Media
_Comment=Configure Removable Media settings
Name=Removable Media
Comment=Configure Removable Media settings
Exec=gnome-control-center removable-media
Icon=media-removable
Terminal=false
......@@ -14,4 +14,4 @@ X-GNOME-Bugzilla-Product=gnome-control-center
X-GNOME-Bugzilla-Component=info
X-GNOME-Bugzilla-Version=@VERSION@
# Translators: those are keywords for the Removable Media panel
_Keywords=device;system;default;application;preferred;cd;dvd;usb;audio;video;disc;removable;media;autorun;
Keywords=device;system;default;application;preferred;cd;dvd;usb;audio;video;disc;removable;media;autorun;
......@@ -15,11 +15,12 @@ foreach name: panel_names
configuration: desktop_conf
)
custom_target(
i18n.merge_file(
desktop,
type: 'desktop',
input: desktop_in,
output: desktop,
command: intltool_desktop_cmd,
po_dir: po_dir,
install: true,
install_dir: control_center_desktopdir
)
......
<?xml version="1.0" encoding="UTF-8" ?>
<KeyListEntries group="system" schema="org.gnome.settings-daemon.plugins.media-keys" _name="Sound and Media">
<KeyListEntries group="system" schema="org.gnome.settings-daemon.plugins.media-keys" name="Sound and Media">
<KeyListEntry name="volume-mute" _description="Volume mute"/>
<KeyListEntry name="volume-mute" description="Volume mute"/>
<KeyListEntry name="volume-down" _description="Volume down"/>
<KeyListEntry name="volume-down" description="Volume down"/>
<KeyListEntry name="volume-up" _description="Volume up"/>
<KeyListEntry name="volume-up" description="Volume up"/>
<KeyListEntry name="media" _description="Launch media player"/>
<KeyListEntry name="media" description="Launch media player"/>
<KeyListEntry name="play" _description="Play (or play/pause)"/>
<KeyListEntry name="play" description="Play (or play/pause)"/>
<KeyListEntry name="pause" _description="Pause playback"/>
<KeyListEntry name="pause" description="Pause playback"/>
<KeyListEntry name="stop" _description="Stop playback"/>
<KeyListEntry name="stop" description="Stop playback"/>
<KeyListEntry name="previous" _description="Previous track"/>
<KeyListEntry name="previous" description="Previous track"/>
<KeyListEntry name="next" _description="Next track"/>
<KeyListEntry name="next" description="Next track"/>
<KeyListEntry name="eject" _description="Eject"/>
<KeyListEntry name="eject" description="Eject"/>
</KeyListEntries>
<?xml version="1.0" encoding="UTF-8" ?>
<KeyListEntries group="system"
schema="org.gnome.desktop.wm.keybindings"
_name="Typing">
name="Typing">
<KeyListEntry name="switch-input-source"
reverse-entry="switch-input-source-backward"
_description="Switch to next input source"/>
description="Switch to next input source"/>
<KeyListEntry name="switch-input-source-backward"
reverse-entry="switch-input-source"
is-reversed="true"
_description="Switch to previous input source"/>
description="Switch to previous input source"/>
</KeyListEntries>
<?xml version="1.0" encoding="UTF-8" ?>
<KeyListEntries group="system" schema="org.gnome.settings-daemon.plugins.media-keys" _name="Launchers">
<KeyListEntries group="system" schema="org.gnome.settings-daemon.plugins.media-keys" name="Launchers">
<KeyListEntry name="help" _description="Launch help browser"/>
<KeyListEntry name="help" description="Launch help browser"/>
<KeyListEntry name="control-center" _description="Settings"/>
<KeyListEntry name="control-center" description="Settings"/>
<KeyListEntry name="calculator" _description="Launch calculator"/>
<KeyListEntry name="calculator" description="Launch calculator"/>
<KeyListEntry name="email" _description="Launch email client"/>
<KeyListEntry name="email" description="Launch email client"/>
<KeyListEntry name="www" _description="Launch web browser"/>
<KeyListEntry name="www" description="Launch web browser"/>
<KeyListEntry name="home" _description="Home folder"/>
<KeyListEntry name="home" description="Home folder"/>
<_KeyListEntry name="search" description="Search" msgctxt="keybinding">Search</_KeyListEntry>
<KeyListEntry name="search" description="Search" msgctxt="keybinding">Search</KeyListEntry>
</KeyListEntries>
<?xml version="1.0" encoding="UTF-8" ?>
<KeyListEntries group="system" schema="org.gnome.settings-daemon.plugins.media-keys" _name="Screenshots">
<KeyListEntries group="system" schema="org.gnome.settings-daemon.plugins.media-keys" name="Screenshots">
<!-- translators: $PICTURES will be replaced by the name of the XDG Pictures directory -->
<KeyListEntry name="screenshot"
_description="Save a screenshot to $PICTURES"/>
description="Save a screenshot to $PICTURES"/>
<!-- translators: $PICTURES will be replaced by the name of the XDG Pictures directory -->
<KeyListEntry name="window-screenshot"
_description="Save a screenshot of a window to $PICTURES"/>
description="Save a screenshot of a window to $PICTURES"/>
<!-- translators: $PICTURES will be replaced by the name of the XDG Pictures directory -->
<KeyListEntry name="area-screenshot"
_description="Save a screenshot of an area to $PICTURES"/>
description="Save a screenshot of an area to $PICTURES"/>
<KeyListEntry name="screenshot-clip"
_description="Copy a screenshot to clipboard"/>
description="Copy a screenshot to clipboard"/>
<KeyListEntry name="window-screenshot-clip"
_description="Copy a screenshot of a window to clipboard"/>
description="Copy a screenshot of a window to clipboard"/>
<KeyListEntry name="area-screenshot-clip"
_description="Copy a screenshot of an area to clipboard"/>
description="Copy a screenshot of an area to clipboard"/>
<KeyListEntry name="screencast"
_description="Record a short screencast"/>
description="Record a short screencast"/>
</KeyListEntries>
<?xml version="1.0" encoding="UTF-8" ?>
<KeyListEntries group="system" schema="org.gnome.settings-daemon.plugins.media-keys" _name="System">
<KeyListEntries group="system" schema="org.gnome.settings-daemon.plugins.media-keys" name="System">
<KeyListEntry name="logout" _description="Log out"/>
<KeyListEntry name="logout" description="Log out"/>
<KeyListEntry name="screensaver" _description="Lock screen"/>
<KeyListEntry name="screensaver" description="Lock screen"/>
</KeyListEntries>
<?xml version="1.0" encoding="UTF-8"?>
<KeyListEntries group="system" _name="Universal Access" schema="org.gnome.settings-daemon.plugins.media-keys">
<KeyListEntries group="system" name="Universal Access" schema="org.gnome.settings-daemon.plugins.media-keys">
<KeyListEntry name="magnifier" _description="Turn zoom on or off"/>
<KeyListEntry name="magnifier" description="Turn zoom on or off"/>
<KeyListEntry name="magnifier-zoom-in" _description="Zoom in"/>
<KeyListEntry name="magnifier-zoom-in" description="Zoom in"/>
<KeyListEntry name="magnifier-zoom-out" _description="Zoom out"/>
<KeyListEntry name="magnifier-zoom-out" description="Zoom out"/>
<KeyListEntry name="screenreader" _description="Turn screen reader on or off"/>
<KeyListEntry name="screenreader" description="Turn screen reader on or off"/>
<KeyListEntry name="on-screen-keyboard" _description="Turn on-screen keyboard on or off"/>
<KeyListEntry name="on-screen-keyboard" description="Turn on-screen keyboard on or off"/>
<KeyListEntry name="increase-text-size" _description="Increase text size"/>
<KeyListEntry name="increase-text-size" description="Increase text size"/>
<KeyListEntry name="decrease-text-size" _description="Decrease text size"/>
<KeyListEntry name="decrease-text-size" description="Decrease text size"/>
<KeyListEntry name="toggle-contrast" _description="High contrast on or off"/>
<KeyListEntry name="toggle-contrast" description="High contrast on or off"/>
</KeyListEntries>
[Desktop Entry]
_Name=Keyboard
_Comment=View and change keyboard shortcuts and set your typing preferences
Name=Keyboard
Comment=View and change keyboard shortcuts and set your typing preferences
Exec=gnome-control-center keyboard
Icon=input-keyboard
Terminal=false
......@@ -14,4 +14,4 @@ X-GNOME-Bugzilla-Product=gnome-control-center
X-GNOME-Bugzilla-Component=keyboard
X-GNOME-Bugzilla-Version=@VERSION@
# Translators: those are keywords for the keyboard control-center panel
_Keywords=Shortcut;Workspace;Window;Resize;Zoom;Contrast;Input;Source;Lock;Volume;
Keywords=Shortcut;Workspace;Window;Resize;Zoom;Contrast;Input;Source;Lock;Volume;
......@@ -7,25 +7,16 @@ desktop_in = configure_file(
configuration: desktop_conf
)
custom_target(
i18n.merge_file(
desktop,
type: 'desktop',
input: desktop_in,
output: desktop,
command: intltool_desktop_cmd,
po_dir: po_dir,
install: true,
install_dir: control_center_desktopdir
)
its_data = files(
'gnome-keybindings.its',
'gnome-keybindings.loc'
)
install_data(
its_data,
install_dir: join_paths(control_center_datadir, 'gettext', 'its')
)
pc_conf = configuration_data()
pc_conf.set('prefix', control_center_prefix)
pc_conf.set('datarootdir', control_center_datadir)
......@@ -53,11 +44,12 @@ xml_files = [
]
foreach file: xml_files
custom_target(
i18n.merge_file(
file,
input: file + '.in',
output: file,
command: [intltool_merge, '-x', '-u', '--no-translations', '@INPUT@', '@OUTPUT@'],
po_dir: po_dir,
data_dirs: its_dir,
install: true,
install_dir: join_paths(control_center_pkgdatadir, 'keybindings')
)
......
[Desktop Entry]
_Name=Mouse & Touchpad
_Comment=Change your mouse or touchpad sensitivity and select right or left-handed
Name=Mouse & Touchpad
Comment=Change your mouse or touchpad sensitivity and select right or left-handed
Exec=gnome-control-center mouse
Icon=input-mouse
Terminal=false
......@@ -14,4 +14,4 @@ X-GNOME-Bugzilla-Product=gnome-control-center
X-GNOME-Bugzilla-Component=mouse
X-GNOME-Bugzilla-Version=@VERSION@
# Translators: those are keywords for the mouse and touchpad control-center panel
_Keywords=Trackpad;Pointer;Click;Tap;Double;Button;Trackball;Scroll;
Keywords=Trackpad;Pointer;Click;Tap;Double;Button;Trackball;Scroll;
......@@ -7,11 +7,12 @@ desktop_in = configure_file(
configuration: desktop_conf
)
custom_target(
i18n.merge_file(
desktop,
type: 'desktop',
input: desktop_in,
output: desktop,
command: intltool_desktop_cmd,
po_dir: po_dir,
install: true,
install_dir: control_center_desktopdir
)
......
[Desktop Entry]
_Name=Network
_Comment=Control how you connect to the Internet
Name=Network
Comment=Control how you connect to the Internet
Exec=gnome-control-center network
Icon=network-workgroup
Terminal=false
......@@ -14,4 +14,4 @@ X-GNOME-Bugzilla-Product=gnome-control-center
X-GNOME-Bugzilla-Component=network
X-GNOME-Bugzilla-Version=@VERSION@
# Translators: those are keywords for the network control-center panel
_Keywords=Network;Wireless;Wi-Fi;Wifi;IP;LAN;Proxy;WAN;Broadband;Modem;Bluetooth;vpn;DNS;
Keywords=Network;Wireless;Wi-Fi;Wifi;IP;LAN;Proxy;WAN;Broadband;Modem;Bluetooth;vpn;DNS;
[Desktop Entry]
_Name=Wi-Fi
_Comment=Control how you connect to Wi-Fi networks
Name=Wi-Fi
Comment=Control how you connect to Wi-Fi networks
Exec=gnome-control-center wifi
Icon=network-wireless
Terminal=false
......@@ -14,4 +14,4 @@ X-GNOME-Bugzilla-Product=gnome-control-center
X-GNOME-Bugzilla-Component=network
X-GNOME-Bugzilla-Version=@VERSION@
# Translators: those are keywords for the wi-fi control-center panel
_Keywords=Network;Wireless;Wi-Fi;Wifi;IP;LAN;Broadband;DNS;
Keywords=Network;Wireless;Wi-Fi;Wifi;IP;LAN;Broadband;DNS;
......@@ -22,11 +22,12 @@ foreach name: panel_names
configuration: desktop_conf
)
custom_target(
i18n.merge_file(
desktop,
type: 'desktop',
input: desktop_in,
output: desktop,
command: intltool_desktop_cmd,
po_dir: po_dir,
install: true,
install_dir: control_center_desktopdir
)
......
[Desktop Entry]
_Name=Notifications
_Comment=Control which notifications are displayed and what they show
Name=Notifications
Comment=Control which notifications are displayed and what they show
Exec=gnome-control-center notifications
Icon=preferences-system-notifications
Terminal=false
......@@ -15,4 +15,4 @@ X-GNOME-Bugzilla-Component=Notifications
X-GNOME-Bugzilla-Version=@VERSION@
X-GNOME-Settings-Panel=notifications
# Translators: those are keywords for the notifications control-center panel
_Keywords=Notifications;Banner;Message;Tray;Popup;
Keywords=Notifications;Banner;Message;Tray;Popup;
......@@ -7,11 +7,12 @@ desktop_in = configure_file(
configuration: desktop_conf
)
custom_target(
i18n.merge_file(
desktop,
type: 'desktop',
input: desktop_in,
output: desktop,
command: intltool_desktop_cmd,
po_dir: po_dir,
install: true,
install_dir: control_center_desktopdir
)
......
[Desktop Entry]
_Name=Online Accounts
_Comment=Connect to your online accounts and decide what to use them for
Name=Online Accounts
Comment=Connect to your online accounts and decide what to use them for
Exec=gnome-control-center online-accounts
Icon=goa-panel
Terminal=false
......@@ -15,4 +15,4 @@ X-GNOME-Bugzilla-Component=Online Accounts
X-GNOME-Bugzilla-Version=@VERSION@
# Translators: those are keywords for the online-accounts control-center panel
# For ReadItLater and Pocket, see http://en.wikipedia.org/wiki/Pocket_(application)
_Keywords=Google;Facebook;Twitter;Yahoo;Web;Online;Chat;Calendar;Mail;Contact;ownCloud;Kerberos;IMAP;SMTP;Pocket;ReadItLater;
Keywords=Google;Facebook;Twitter;Yahoo;Web;Online;Chat;Calendar;Mail;Contact;ownCloud;Kerberos;IMAP;SMTP;Pocket;ReadItLater;
......@@ -7,11 +7,12 @@ desktop_in = configure_file(
configuration: desktop_conf
)
custom_target(
i18n.merge_file(
desktop,
type: 'desktop',
input: desktop_in,
output: desktop,
command: intltool_desktop_cmd,
po_dir: po_dir,
install: true,
install_dir: control_center_desktopdir
)
......
[Desktop Entry]
_Name=Power
_Comment=View your battery status and change power saving settings
Name=Power
Comment=View your battery status and change power saving settings
Exec=gnome-control-center power
Icon=gnome-power-manager
Terminal=false
......@@ -14,4 +14,4 @@ X-GNOME-Bugzilla-Product=gnome-control-center
X-GNOME-Bugzilla-Component=power
X-GNOME-Bugzilla-Version=@VERSION@
# Translators: those are keywords for the power control-center panel
_Keywords=Power;Sleep;Suspend;Hibernate;Battery;Brightness;Dim;Blank;Monitor;DPMS;Idle;
Keywords=Power;Sleep;Suspend;Hibernate;Battery;Brightness;Dim;Blank;Monitor;DPMS;Idle;
......@@ -7,11 +7,12 @@ desktop_in = configure_file(
configuration: desktop_conf
)
custom_target(
i18n.merge_file(
desktop,
type: 'desktop',
input: desktop_in,
output: desktop,
command: intltool_desktop_cmd,
po_dir: po_dir,
install: true,
install_dir: control_center_desktopdir
)
......
[Desktop Entry]
_Name=Printers
_Comment=Add printers, view printer jobs and decide how you want to print
Name=Printers
Comment=Add printers, view printer jobs and decide how you want to print
Exec=gnome-control-center printers
Icon=printer
Terminal=false
......@@ -11,4 +11,4 @@ StartupNotify=true
Categories=GNOME;GTK;Settings;HardwareSettings;X-GNOME-Settings-Panel;X-GNOME-DevicesSettings;
OnlyShowIn=GNOME;Unity;
# Translators: those are keywords for the printing control-center panel
_Keywords=Printer;Queue;Print;Paper;Ink;Toner;
Keywords=Printer;Queue;Print;Paper;Ink;Toner;
......@@ -7,11 +7,12 @@ desktop_in = configure_file(
configuration: desktop_conf
)
custom_target(
i18n.merge_file(
desktop,
type: 'desktop',
input: desktop_in,
output: desktop,
command: intltool_desktop_cmd,
po_dir: po_dir,
install: true,
install_dir: control_center_desktopdir
)
......
[Desktop Entry]
_Name=Privacy
_Comment=Protect your personal information and control what others might see
Name=Privacy
Comment=Protect your personal information and control what others might see
Exec=gnome-control-center privacy
# FIXME
Icon=preferences-system-privacy
......@@ -15,4 +15,4 @@ X-GNOME-Bugzilla-Product=gnome-control-center
X-GNOME-Bugzilla-Component=privacy
X-GNOME-Bugzilla-Version=@VERSION@
# Translators: those are keywords for the privacy control-center panel
_Keywords=screen;lock;diagnostics;crash;private;recent;temporary;tmp;index;name;network;identity;
Keywords=screen;lock;diagnostics;crash;private;recent;temporary;tmp;index;name;network;identity;
......@@ -7,11 +7,12 @@ desktop_in = configure_file(
configuration: desktop_conf
)
custom_target(
i18n.merge_file(
desktop,
type: 'desktop',
input: desktop_in,
output: desktop,
command: intltool_desktop_cmd,
po_dir: po_dir,
install: true,
install_dir: control_center_desktopdir
)
......