Also translating the "Player" applet

This commit is contained in:
Pierre Pronchery 2013-12-19 05:57:04 +01:00
parent 648930690d
commit 4d89a82a8b
3 changed files with 44 additions and 13 deletions

View File

@ -14,6 +14,7 @@
../src/applets/main.c
../src/applets/memory.c
../src/applets/mixer.c
../src/applets/player.c
../src/applets/rotate.c
../src/applets/swap.c
../src/applets/tasks.c

View File

@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: Panel 0.2.18\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2013-12-19 03:16+0100\n"
"POT-Creation-Date: 2013-12-19 05:56+0100\n"
"PO-Revision-Date: 2010-04-22 12:45+0200\n"
"Last-Translator: Pierre Pronchery <khorben@defora.org>\n"
"Language-Team: French\n"
@ -84,7 +84,7 @@ msgstr "Fréquence CPU : "
msgid "Show desktop"
msgstr "Afficher le bureau"
#: ../src/applets/embed.c:106
#: ../src/applets/embed.c:108
msgid "Desktop notifications"
msgstr "Notifications"
@ -100,20 +100,20 @@ msgstr "GSM actif"
msgid "Show keyboard"
msgstr "Afficher le clavier"
#: ../src/applets/keyboard.c:314 ../src/applets/lock.c:114
#: ../src/applets/keyboard.c:316 ../src/applets/lock.c:114
#: ../src/applets/mixer.c:280 ../src/run.c:110
msgid "Command:"
msgstr "Commande :"
#: ../src/applets/keyboard.c:325 ../src/applets/mixer.c:291
#: ../src/applets/keyboard.c:327 ../src/applets/mixer.c:291
msgid "Width:"
msgstr "Largeur :"
#: ../src/applets/keyboard.c:336 ../src/applets/mixer.c:302
#: ../src/applets/keyboard.c:338 ../src/applets/mixer.c:302
msgid "Height:"
msgstr "Hauteur :"
#: ../src/applets/keyboard.c:347 ../src/applets/mixer.c:313
#: ../src/applets/keyboard.c:349 ../src/applets/mixer.c:313
msgid "Keep ratio"
msgstr "Respecter les proportions"
@ -170,6 +170,34 @@ msgstr "memory: Plate-forme non supportée"
msgid "Show mixer"
msgstr "Afficher le mixer"
#: ../src/applets/player.c:85
msgid "Previous"
msgstr "Précédent"
#: ../src/applets/player.c:87
msgid "Rewind"
msgstr "Reculer"
#: ../src/applets/player.c:89
msgid "Play"
msgstr "Lecture"
#: ../src/applets/player.c:91
msgid "Pause"
msgstr "Pause"
#: ../src/applets/player.c:93
msgid "Stop"
msgstr "Stop"
#: ../src/applets/player.c:95
msgid "Forward"
msgstr "Avancer"
#: ../src/applets/player.c:97
msgid "Next"
msgstr "Suivant"
#: ../src/applets/rotate.c:73
msgid "Rotate the screen"
msgstr "Réorienter l'écran"

View File

@ -15,10 +15,12 @@
#include <libintl.h>
#include <System.h>
#include <Desktop.h>
#include <Desktop/Player.h>
#include "Panel.h"
#define _(string) gettext(string)
/* Player */
@ -80,19 +82,19 @@ static Player * _player_init(PanelAppletHelper * helper, GtkWidget ** widget)
/* FIXME choose the adequate orientation */
player->widget = gtk_hbox_new(FALSE, 0);
_init_add(player->widget, GTK_STOCK_MEDIA_PREVIOUS, helper->icon_size,
"Previous", _player_on_previous);
_("Previous"), _player_on_previous);
_init_add(player->widget, GTK_STOCK_MEDIA_REWIND, helper->icon_size,
"Rewind", _player_on_rewind);
_("Rewind"), _player_on_rewind);
_init_add(player->widget, GTK_STOCK_MEDIA_PLAY, helper->icon_size,
"Play", _player_on_play);
_("Play"), _player_on_play);
_init_add(player->widget, GTK_STOCK_MEDIA_PAUSE, helper->icon_size,
"Pause", _player_on_pause);
_("Pause"), _player_on_pause);
_init_add(player->widget, GTK_STOCK_MEDIA_STOP, helper->icon_size,
"Stop", _player_on_stop);
_("Stop"), _player_on_stop);
_init_add(player->widget, GTK_STOCK_MEDIA_FORWARD, helper->icon_size,
"Forward", _player_on_forward);
_("Forward"), _player_on_forward);
_init_add(player->widget, GTK_STOCK_MEDIA_NEXT, helper->icon_size,
"Next", _player_on_next);
_("Next"), _player_on_next);
gtk_widget_show_all(player->widget);
*widget = player->widget;
return player;