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