Let the applet names be translated
This commit is contained in:
parent
51c503136e
commit
0dc7eb9e06
|
@ -36,6 +36,7 @@
|
|||
#include <System.h>
|
||||
#include "Panel/applet.h"
|
||||
#define _(string) gettext(string)
|
||||
#define N_(string) string
|
||||
|
||||
|
||||
/* Battery */
|
||||
|
@ -96,7 +97,7 @@ static gboolean _battery_on_timeout(gpointer data);
|
|||
/* variables */
|
||||
PanelAppletDefinition applet =
|
||||
{
|
||||
"Battery",
|
||||
N_("Battery"),
|
||||
"battery",
|
||||
NULL,
|
||||
_battery_init,
|
||||
|
|
|
@ -32,6 +32,7 @@
|
|||
#include <System.h>
|
||||
#include "Panel/applet.h"
|
||||
#define _(string) gettext(string)
|
||||
#define N_(string) string
|
||||
|
||||
|
||||
/* Bluetooth */
|
||||
|
@ -65,7 +66,7 @@ static gboolean _bluetooth_on_timeout(gpointer data);
|
|||
/* variables */
|
||||
PanelAppletDefinition applet =
|
||||
{
|
||||
"Bluetooth",
|
||||
N_("Bluetooth"),
|
||||
"panel-applet-bluetooth",
|
||||
NULL,
|
||||
_bluetooth_init,
|
||||
|
|
|
@ -27,6 +27,7 @@
|
|||
#include <System.h>
|
||||
#include "Panel/applet.h"
|
||||
#define _(string) gettext(string)
|
||||
#define N_(string) string
|
||||
|
||||
|
||||
/* Brightness */
|
||||
|
@ -61,7 +62,7 @@ static gboolean _brightness_on_timeout(gpointer data);
|
|||
/* variables */
|
||||
PanelAppletDefinition applet =
|
||||
{
|
||||
"Brightness",
|
||||
N_("Brightness"),
|
||||
"video-display",
|
||||
NULL,
|
||||
_brightness_init,
|
||||
|
|
|
@ -26,6 +26,7 @@
|
|||
#include <System.h>
|
||||
#include "Panel/applet.h"
|
||||
#define _(string) gettext(string)
|
||||
#define N_(string) string
|
||||
|
||||
|
||||
/* Clock */
|
||||
|
@ -54,7 +55,7 @@ static gboolean _clock_on_timeout(gpointer data);
|
|||
/* variables */
|
||||
PanelAppletDefinition applet =
|
||||
{
|
||||
"Clock",
|
||||
N_("Clock"),
|
||||
"stock_calendar",
|
||||
NULL,
|
||||
_clock_init,
|
||||
|
|
|
@ -25,6 +25,7 @@
|
|||
#include <System.h>
|
||||
#include "Panel/applet.h"
|
||||
#define _(string) gettext(string)
|
||||
#define N_(string) string
|
||||
|
||||
#if !GTK_CHECK_VERSION(3, 0, 0)
|
||||
# define gdk_error_trap_pop_ignored() gdk_error_trap_pop()
|
||||
|
@ -71,7 +72,7 @@ static void _close_on_screen_changed(GtkWidget * widget, GdkScreen * previous,
|
|||
/* variables */
|
||||
PanelAppletDefinition applet =
|
||||
{
|
||||
"Close",
|
||||
N_("Close"),
|
||||
GTK_STOCK_CLOSE,
|
||||
NULL,
|
||||
_close_init,
|
||||
|
|
|
@ -30,6 +30,7 @@
|
|||
#include <System.h>
|
||||
#include "Panel/applet.h"
|
||||
#define _(string) gettext(string)
|
||||
#define N_(string) string
|
||||
|
||||
|
||||
/* CPU */
|
||||
|
@ -66,7 +67,7 @@ static gboolean _cpu_on_timeout(gpointer data);
|
|||
/* variables */
|
||||
PanelAppletDefinition applet =
|
||||
{
|
||||
"CPU",
|
||||
N_("CPU"),
|
||||
"gnome-monitor",
|
||||
NULL,
|
||||
_cpu_init,
|
||||
|
|
|
@ -29,6 +29,7 @@
|
|||
#include <System.h>
|
||||
#include "Panel/applet.h"
|
||||
#define _(string) gettext(string)
|
||||
#define N_(string) string
|
||||
|
||||
|
||||
/* Cpufreq */
|
||||
|
@ -64,7 +65,7 @@ static gboolean _cpufreq_on_timeout(gpointer data);
|
|||
/* variables */
|
||||
PanelAppletDefinition applet =
|
||||
{
|
||||
"CPU frequency",
|
||||
N_("CPU frequency"),
|
||||
"gnome-monitor",
|
||||
NULL,
|
||||
_cpufreq_init,
|
||||
|
|
|
@ -21,6 +21,7 @@
|
|||
#include <X11/X.h>
|
||||
#include "Panel/applet.h"
|
||||
#define _(string) gettext(string)
|
||||
#define N_(string) string
|
||||
|
||||
|
||||
/* Desktop */
|
||||
|
@ -41,7 +42,7 @@ static void _desktop_on_clicked(GtkWidget * widget);
|
|||
/* variables */
|
||||
PanelAppletDefinition applet =
|
||||
{
|
||||
"Desktop switch",
|
||||
N_("Desktop switch"),
|
||||
"panel-applet-desktop",
|
||||
NULL,
|
||||
_desktop_init,
|
||||
|
|
|
@ -30,6 +30,7 @@
|
|||
#endif
|
||||
#include "Panel/applet.h"
|
||||
#define _(string) gettext(string)
|
||||
#define N_(string) string
|
||||
|
||||
|
||||
/* Embed */
|
||||
|
@ -79,7 +80,7 @@ static void _embed_on_toggled(gpointer data);
|
|||
/* variables */
|
||||
PanelAppletDefinition applet =
|
||||
{
|
||||
"Embed",
|
||||
N_("Embed"),
|
||||
"gnome-window-manager",
|
||||
NULL,
|
||||
_embed_init,
|
||||
|
|
|
@ -26,6 +26,7 @@
|
|||
#include <System.h>
|
||||
#include "Panel/applet.h"
|
||||
#define _(string) gettext(string)
|
||||
#define N_(string) string
|
||||
|
||||
|
||||
/* GPS */
|
||||
|
@ -58,7 +59,7 @@ static gboolean _gps_on_timeout(gpointer data);
|
|||
/* variables */
|
||||
PanelAppletDefinition applet =
|
||||
{
|
||||
"GPS",
|
||||
N_("GPS"),
|
||||
"network-wireless", /* XXX find a better image */
|
||||
NULL,
|
||||
_gps_init,
|
||||
|
|
|
@ -26,6 +26,7 @@
|
|||
#include <System.h>
|
||||
#include "Panel/applet.h"
|
||||
#define _(string) gettext(string)
|
||||
#define N_(string) string
|
||||
|
||||
|
||||
/* GSM */
|
||||
|
@ -62,7 +63,7 @@ static gboolean _gsm_on_timeout(gpointer data);
|
|||
/* variables */
|
||||
PanelAppletDefinition applet =
|
||||
{
|
||||
"GSM",
|
||||
N_("GSM"),
|
||||
"phone", /* XXX find a better image */
|
||||
NULL,
|
||||
_gsm_init,
|
||||
|
|
|
@ -26,6 +26,7 @@
|
|||
#include <System.h>
|
||||
#include "Panel/applet.h"
|
||||
#define _(string) gettext(string)
|
||||
#define N_(string) string
|
||||
|
||||
|
||||
/* LEDs */
|
||||
|
@ -59,7 +60,7 @@ static gboolean _leds_on_timeout(gpointer data);
|
|||
/* variables */
|
||||
PanelAppletDefinition applet =
|
||||
{
|
||||
"LEDs",
|
||||
N_("LEDs"),
|
||||
GTK_STOCK_DIALOG_INFO,
|
||||
NULL,
|
||||
_leds_init,
|
||||
|
|
|
@ -22,6 +22,7 @@
|
|||
#include <System.h>
|
||||
#include "Panel/applet.h"
|
||||
#define _(string) gettext(string)
|
||||
#define N_(string) string
|
||||
|
||||
|
||||
/* Lock */
|
||||
|
@ -46,7 +47,7 @@ static void _lock_on_clicked(gpointer data);
|
|||
/* variables */
|
||||
PanelAppletDefinition applet =
|
||||
{
|
||||
"Lock screen",
|
||||
N_("Lock screen"),
|
||||
"gnome-lockscreen",
|
||||
NULL,
|
||||
_lock_init,
|
||||
|
|
|
@ -22,6 +22,7 @@
|
|||
#include <System.h>
|
||||
#include "Panel/applet.h"
|
||||
#define _(string) gettext(string)
|
||||
#define N_(string) string
|
||||
|
||||
|
||||
/* Logout */
|
||||
|
@ -46,7 +47,7 @@ static void _logout_on_clicked(gpointer data);
|
|||
/* variables */
|
||||
PanelAppletDefinition applet =
|
||||
{
|
||||
"Logout",
|
||||
N_("Logout"),
|
||||
"gnome-logout",
|
||||
NULL,
|
||||
_logout_init,
|
||||
|
|
|
@ -33,6 +33,7 @@
|
|||
#include <System.h>
|
||||
#include "Panel/applet.h"
|
||||
#define _(string) gettext(string)
|
||||
#define N_(string) string
|
||||
|
||||
|
||||
/* Memory */
|
||||
|
@ -64,7 +65,7 @@ static gboolean _memory_on_timeout(gpointer data);
|
|||
/* variables */
|
||||
PanelAppletDefinition applet =
|
||||
{
|
||||
"Memory",
|
||||
N_("Memory"),
|
||||
"gnome-monitor",
|
||||
NULL,
|
||||
_memory_init,
|
||||
|
|
|
@ -133,7 +133,7 @@ static void _menuapp_delete(MenuApp * menuapp);
|
|||
/* variables */
|
||||
PanelAppletDefinition applet =
|
||||
{
|
||||
"Main menu",
|
||||
N_("Main menu"),
|
||||
"start-here",
|
||||
NULL,
|
||||
_menu_init,
|
||||
|
|
|
@ -36,6 +36,7 @@
|
|||
#include <System.h>
|
||||
#include "Panel/applet.h"
|
||||
#define _(string) gettext(string)
|
||||
#define N_(string) string
|
||||
|
||||
|
||||
/* Mixer */
|
||||
|
@ -90,7 +91,7 @@ static void _mixer_on_toggled(GtkWidget * widget, gpointer data);
|
|||
/* variables */
|
||||
PanelAppletDefinition applet =
|
||||
{
|
||||
"Mixer",
|
||||
N_("Mixer"),
|
||||
"stock_volume",
|
||||
NULL,
|
||||
_mixer_init,
|
||||
|
|
|
@ -20,6 +20,7 @@
|
|||
#include <Desktop.h>
|
||||
#include "Panel/applet.h"
|
||||
#define _(string) gettext(string)
|
||||
#define N_(string) string
|
||||
|
||||
/* constants */
|
||||
#ifndef MPD_COMMAND_FORWARD
|
||||
|
@ -76,7 +77,7 @@ static void _mpd_on_stop(gpointer data);
|
|||
/* variables */
|
||||
PanelAppletDefinition applet =
|
||||
{
|
||||
"MPD",
|
||||
N_("MPD"),
|
||||
"multimedia",
|
||||
NULL,
|
||||
_mpd_init,
|
||||
|
|
|
@ -32,6 +32,7 @@
|
|||
#include <System.h>
|
||||
#include "Panel/applet.h"
|
||||
#define _(string) gettext(string)
|
||||
#define N_(string) string
|
||||
|
||||
|
||||
/* Network */
|
||||
|
@ -97,7 +98,7 @@ static void _networkinterface_update(NetworkInterface * ni, char const * icon,
|
|||
/* variables */
|
||||
PanelAppletDefinition applet =
|
||||
{
|
||||
"Network",
|
||||
N_("Network"),
|
||||
"network-idle",
|
||||
NULL,
|
||||
_network_init,
|
||||
|
|
|
@ -25,6 +25,7 @@
|
|||
#include <Desktop.h>
|
||||
#include "Panel/applet.h"
|
||||
#define _(string) gettext(string)
|
||||
#define N_(string) string
|
||||
|
||||
#if !GTK_CHECK_VERSION(3, 0, 0)
|
||||
# define gdk_error_trap_pop_ignored() gdk_error_trap_pop()
|
||||
|
@ -98,7 +99,7 @@ static void _pager_on_screen_changed(GtkWidget * widget, GdkScreen * previous,
|
|||
/* variables */
|
||||
PanelAppletDefinition applet =
|
||||
{
|
||||
"Pager",
|
||||
N_("Pager"),
|
||||
NULL,
|
||||
NULL,
|
||||
_pager_init,
|
||||
|
|
|
@ -25,6 +25,7 @@
|
|||
#endif
|
||||
#include <gdk/gdkx.h>
|
||||
#include "Panel/applet.h"
|
||||
#define N_(string) string
|
||||
|
||||
|
||||
/* Phone */
|
||||
|
@ -60,7 +61,7 @@ static void _phone_on_screen_changed(GtkWidget * widget, GdkScreen * previous);
|
|||
/* variables */
|
||||
PanelAppletDefinition applet =
|
||||
{
|
||||
"Phone",
|
||||
N_("Phone"),
|
||||
"phone-dialer",
|
||||
NULL,
|
||||
_phone_init,
|
||||
|
|
|
@ -19,6 +19,7 @@
|
|||
#include <System.h>
|
||||
#include "Panel/applet.h"
|
||||
#define _(string) gettext(string)
|
||||
#define N_(string) string
|
||||
|
||||
|
||||
/* Rotate */
|
||||
|
@ -43,7 +44,7 @@ static void _rotate_on_clicked(gpointer data);
|
|||
/* variables */
|
||||
PanelAppletDefinition applet =
|
||||
{
|
||||
"Rotate",
|
||||
N_("Rotate"),
|
||||
GTK_STOCK_REFRESH, /* XXX use a more adequate image */
|
||||
NULL,
|
||||
_rotate_init,
|
||||
|
|
|
@ -20,6 +20,7 @@
|
|||
#include <errno.h>
|
||||
#include <System.h>
|
||||
#include "Panel/applet.h"
|
||||
#define N_(string) string
|
||||
|
||||
|
||||
/* Separator */
|
||||
|
@ -43,7 +44,7 @@ static void _separator_destroy(Separator * separator);
|
|||
/* variables */
|
||||
PanelAppletDefinition applet =
|
||||
{
|
||||
"Separator",
|
||||
N_("Separator"),
|
||||
NULL,
|
||||
NULL,
|
||||
_separator_init,
|
||||
|
|
|
@ -22,6 +22,7 @@
|
|||
#include <System.h>
|
||||
#include "Panel/applet.h"
|
||||
#define _(string) gettext(string)
|
||||
#define N_(string) string
|
||||
|
||||
|
||||
/* Shutdown */
|
||||
|
@ -46,7 +47,7 @@ static void _shutdown_on_clicked(gpointer data);
|
|||
/* variables */
|
||||
PanelAppletDefinition applet =
|
||||
{
|
||||
"Shutdown",
|
||||
N_("Shutdown"),
|
||||
"gnome-shutdown",
|
||||
NULL,
|
||||
_shutdown_init,
|
||||
|
|
|
@ -20,6 +20,7 @@
|
|||
#include <errno.h>
|
||||
#include <System.h>
|
||||
#include "Panel/applet.h"
|
||||
#define N_(string) string
|
||||
|
||||
|
||||
/* Spacer */
|
||||
|
@ -42,7 +43,7 @@ static void _spacer_destroy(Spacer * spacer);
|
|||
/* variables */
|
||||
PanelAppletDefinition applet =
|
||||
{
|
||||
"Spacer",
|
||||
N_("Spacer"),
|
||||
NULL,
|
||||
NULL,
|
||||
_spacer_init,
|
||||
|
|
|
@ -22,6 +22,7 @@
|
|||
#include <System.h>
|
||||
#include "Panel/applet.h"
|
||||
#define _(string) gettext(string)
|
||||
#define N_(string) string
|
||||
|
||||
|
||||
/* Suspend */
|
||||
|
@ -46,7 +47,7 @@ static void _suspend_on_clicked(gpointer data);
|
|||
/* variables */
|
||||
PanelAppletDefinition applet =
|
||||
{
|
||||
"Suspend",
|
||||
N_("Suspend"),
|
||||
"gtk-media-pause", /* XXX find a better icon */
|
||||
NULL,
|
||||
_suspend_init,
|
||||
|
|
|
@ -35,6 +35,7 @@
|
|||
#include <System.h>
|
||||
#include "Panel/applet.h"
|
||||
#define _(string) gettext(string)
|
||||
#define N_(string) string
|
||||
|
||||
|
||||
/* Swap */
|
||||
|
@ -64,7 +65,7 @@ static gboolean _swap_on_timeout(gpointer data);
|
|||
/* variables */
|
||||
PanelAppletDefinition applet =
|
||||
{
|
||||
"Swap",
|
||||
N_("Swap"),
|
||||
"gnome-monitor",
|
||||
NULL,
|
||||
_swap_init,
|
||||
|
|
|
@ -27,6 +27,7 @@
|
|||
#include <X11/Xatom.h>
|
||||
#include <System.h>
|
||||
#include "Panel/applet.h"
|
||||
#define N_(string) string
|
||||
|
||||
|
||||
/* Systray */
|
||||
|
@ -63,7 +64,7 @@ static void _systray_on_screen_changed(GtkWidget * widget, GdkScreen * previous,
|
|||
/* variables */
|
||||
PanelAppletDefinition applet =
|
||||
{
|
||||
"System tray",
|
||||
N_("System tray"),
|
||||
"gnome-monitor",
|
||||
NULL,
|
||||
_systray_init,
|
||||
|
|
|
@ -146,7 +146,7 @@ static void _task_on_screen_changed(GtkWidget * widget, GdkScreen * previous,
|
|||
/* variables */
|
||||
PanelAppletDefinition applet =
|
||||
{
|
||||
"Tasks",
|
||||
N_("Tasks"),
|
||||
"application-x-executable",
|
||||
NULL,
|
||||
_tasks_init,
|
||||
|
|
|
@ -17,6 +17,8 @@
|
|||
|
||||
#include <System.h>
|
||||
#include "Panel/applet.h"
|
||||
#define _(string) gettext(string)
|
||||
#define N_(string) string
|
||||
|
||||
|
||||
/* Template */
|
||||
|
@ -39,7 +41,7 @@ static void _template_destroy(Template * template);
|
|||
/* variables */
|
||||
PanelAppletDefinition applet =
|
||||
{
|
||||
"Template",
|
||||
N_("Template"),
|
||||
"image-missing",
|
||||
NULL,
|
||||
_template_init,
|
||||
|
|
|
@ -25,7 +25,7 @@
|
|||
#include <System.h>
|
||||
#include "Panel/applet.h"
|
||||
#define _(string) gettext(string)
|
||||
#define N_(string) (string)
|
||||
#define N_(string) string
|
||||
|
||||
|
||||
/* Title */
|
||||
|
@ -71,7 +71,7 @@ static void _title_on_screen_changed(GtkWidget * widget, GdkScreen * previous,
|
|||
/* variables */
|
||||
PanelAppletDefinition applet =
|
||||
{
|
||||
"Title",
|
||||
N_("Title"),
|
||||
NULL,
|
||||
NULL,
|
||||
_title_init,
|
||||
|
|
|
@ -29,6 +29,7 @@
|
|||
#include <System.h>
|
||||
#include "Panel/applet.h"
|
||||
#define _(string) gettext(string)
|
||||
#define N_(string) string
|
||||
|
||||
|
||||
/* USB */
|
||||
|
@ -61,7 +62,7 @@ static gboolean _usb_on_timeout(gpointer data);
|
|||
/* variables */
|
||||
PanelAppletDefinition applet =
|
||||
{
|
||||
"USB",
|
||||
N_("USB"),
|
||||
"panel-applet-usb",
|
||||
NULL,
|
||||
_usb_init,
|
||||
|
|
|
@ -35,6 +35,7 @@
|
|||
#include <errno.h>
|
||||
#include <System.h>
|
||||
#include "Panel/applet.h"
|
||||
#define N_(string) string
|
||||
|
||||
|
||||
/* Volume */
|
||||
|
@ -93,7 +94,7 @@ static gboolean _volume_on_volume_timeout(gpointer data);
|
|||
/* variables */
|
||||
PanelAppletDefinition applet =
|
||||
{
|
||||
"Volume",
|
||||
N_("Volume"),
|
||||
"stock_volume",
|
||||
NULL,
|
||||
_volume_init,
|
||||
|
|
|
@ -35,6 +35,7 @@
|
|||
#include <libintl.h>
|
||||
#include "Panel/applet.h"
|
||||
#define _(string) gettext(string)
|
||||
#define N_(string) string
|
||||
|
||||
/* constants */
|
||||
#ifndef PREFIX
|
||||
|
@ -229,7 +230,7 @@ static gboolean _on_watch_can_write(GIOChannel * source, GIOCondition condition,
|
|||
/* variables */
|
||||
PanelAppletDefinition applet =
|
||||
{
|
||||
"Wifi",
|
||||
N_("Wifi"),
|
||||
"network-wireless",
|
||||
NULL,
|
||||
_wpa_init,
|
||||
|
|
Loading…
Reference in New Issue
Block a user