Also translating panelctl
This commit is contained in:
parent
f41df82018
commit
2353525414
|
@ -18,5 +18,6 @@
|
|||
../src/applets/usb.c
|
||||
../src/main.c
|
||||
../src/panel.c
|
||||
../src/panelctl.c
|
||||
../src/run.c
|
||||
../src/window.c
|
||||
|
|
9
po/fr.po
9
po/fr.po
|
@ -7,7 +7,7 @@ msgid ""
|
|||
msgstr ""
|
||||
"Project-Id-Version: Panel 0.0.5\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2011-11-02 02:12+0100\n"
|
||||
"POT-Creation-Date: 2011-11-07 23:03+0100\n"
|
||||
"PO-Revision-Date: 2010-04-22 12:45+0200\n"
|
||||
"Last-Translator: Pierre Pronchery <khorben@defora.org>\n"
|
||||
"Language-Team: French\n"
|
||||
|
@ -284,6 +284,13 @@ msgstr "Arrêter"
|
|||
msgid "Restart"
|
||||
msgstr "Redémarrer"
|
||||
|
||||
#: ../src/panelctl.c:71
|
||||
msgid ""
|
||||
"Usage: panelctl -S\n"
|
||||
" -S\tDisplay or change settings\n"
|
||||
msgstr "Usage: panelctl -S\n"
|
||||
" -S\tAfficher ou modifier les préférences\n"
|
||||
|
||||
#: ../src/run.c:102 ../src/run.c:114
|
||||
msgid "Run program..."
|
||||
msgstr "Exécuter..."
|
||||
|
|
|
@ -49,7 +49,7 @@ window.o: window.c common.h window.h
|
|||
main.o: main.c common.h ../config.h
|
||||
$(CC) $(panel_CFLAGS) -c main.c
|
||||
|
||||
panelctl.o: panelctl.c
|
||||
panelctl.o: panelctl.c ../config.h
|
||||
$(CC) $(panelctl_CFLAGS) -c panelctl.c
|
||||
|
||||
run.o: run.c
|
||||
|
|
|
@ -18,8 +18,24 @@
|
|||
#include <unistd.h>
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
#include <locale.h>
|
||||
#include <libintl.h>
|
||||
#include <gtk/gtk.h>
|
||||
#include "common.h"
|
||||
#include "../config.h"
|
||||
#define _(string) gettext(string)
|
||||
|
||||
|
||||
/* constants */
|
||||
#ifndef PREFIX
|
||||
# define PREFIX "/usr/local"
|
||||
#endif
|
||||
#ifndef DATADIR
|
||||
# define DATADIR PREFIX "/share"
|
||||
#endif
|
||||
#ifndef LOCALEDIR
|
||||
# define LOCALEDIR DATADIR "/locale"
|
||||
#endif
|
||||
|
||||
|
||||
/* panelctl */
|
||||
|
@ -52,8 +68,8 @@ static int _panelctl(PanelMessageShow show)
|
|||
/* usage */
|
||||
static int _usage(void)
|
||||
{
|
||||
fputs("Usage: panelctl -S\n"
|
||||
" -S Display or change settings\n", stderr);
|
||||
fputs(_("Usage: panelctl -S\n"
|
||||
" -S Display or change settings\n"), stderr);
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
@ -66,6 +82,9 @@ int main(int argc, char * argv[])
|
|||
int o;
|
||||
int show = -1;
|
||||
|
||||
setlocale(LC_ALL, "");
|
||||
bindtextdomain(PACKAGE, LOCALEDIR);
|
||||
textdomain(PACKAGE);
|
||||
gtk_init(&argc, &argv);
|
||||
while((o = getopt(argc, argv, "S")) != -1)
|
||||
switch(o)
|
||||
|
|
|
@ -30,6 +30,9 @@ cflags=`pkg-config --cflags gtk+-2.0`
|
|||
ldflags=`pkg-config --libs gtk+-2.0`
|
||||
install=$(BINDIR)
|
||||
|
||||
[panelctl.c]
|
||||
depends=../config.h
|
||||
|
||||
[run]
|
||||
type=binary
|
||||
sources=run.c
|
||||
|
|
Loading…
Reference in New Issue
Block a user