mailer: translate more strings
This commit is contained in:
parent
5df17d2378
commit
998fa48f05
|
@ -1,3 +1,4 @@
|
||||||
|
../src/account.c
|
||||||
../src/common.c
|
../src/common.c
|
||||||
../src/compose.c
|
../src/compose.c
|
||||||
../src/compose-main.c
|
../src/compose-main.c
|
||||||
|
|
|
@ -33,6 +33,7 @@
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
|
#include <libintl.h>
|
||||||
#include <System.h>
|
#include <System.h>
|
||||||
#include "folder.h"
|
#include "folder.h"
|
||||||
#include "mailer.h"
|
#include "mailer.h"
|
||||||
|
@ -40,6 +41,8 @@
|
||||||
#include "account.h"
|
#include "account.h"
|
||||||
#include "../config.h"
|
#include "../config.h"
|
||||||
|
|
||||||
|
#define _(string) gettext(string)
|
||||||
|
|
||||||
|
|
||||||
/* constants */
|
/* constants */
|
||||||
#ifndef PREFIX
|
#ifndef PREFIX
|
||||||
|
@ -151,7 +154,7 @@ Account * account_new(Mailer * mailer, char const * type, char const * title,
|
||||||
|| account->definition->get_config == NULL)
|
|| account->definition->get_config == NULL)
|
||||||
{
|
{
|
||||||
account_delete(account);
|
account_delete(account);
|
||||||
error_set_code(1, "%s%s", "Invalid plug-in ", type);
|
error_set_code(1, "%s%s", _("Invalid plug-in "), type);
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
if(store != NULL)
|
if(store != NULL)
|
||||||
|
@ -541,7 +544,7 @@ static void _helper_event_status(Account * account, AccountEvent * event)
|
||||||
switch(event->status.status)
|
switch(event->status.status)
|
||||||
{
|
{
|
||||||
case AS_IDLE:
|
case AS_IDLE:
|
||||||
message = "Ready";
|
message = _("Ready");
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
|
@ -562,8 +565,8 @@ static char * _account_helper_authenticate(Account * account,
|
||||||
GtkWidget * widget;
|
GtkWidget * widget;
|
||||||
|
|
||||||
dialog = gtk_dialog_new();
|
dialog = gtk_dialog_new();
|
||||||
/* XXX translate this, enumerate the methods available */
|
/* XXX enumerate the methods available */
|
||||||
gtk_window_set_title(GTK_WINDOW(dialog), "Authentication");
|
gtk_window_set_title(GTK_WINDOW(dialog), _("Authentication"));
|
||||||
#if GTK_CHECK_VERSION(2, 14, 0)
|
#if GTK_CHECK_VERSION(2, 14, 0)
|
||||||
vbox = gtk_dialog_get_content_area(GTK_DIALOG(dialog));
|
vbox = gtk_dialog_get_content_area(GTK_DIALOG(dialog));
|
||||||
#else
|
#else
|
||||||
|
@ -595,12 +598,11 @@ static int _account_helper_confirm(Account * account, char const * message)
|
||||||
dialog = gtk_message_dialog_new(NULL, 0, GTK_MESSAGE_QUESTION,
|
dialog = gtk_message_dialog_new(NULL, 0, GTK_MESSAGE_QUESTION,
|
||||||
GTK_BUTTONS_YES_NO,
|
GTK_BUTTONS_YES_NO,
|
||||||
#if GTK_CHECK_VERSION(2, 6, 0)
|
#if GTK_CHECK_VERSION(2, 6, 0)
|
||||||
"%s", "Confirm");
|
"%s", _("Confirm"));
|
||||||
gtk_message_dialog_format_secondary_text(GTK_MESSAGE_DIALOG(dialog),
|
gtk_message_dialog_format_secondary_text(GTK_MESSAGE_DIALOG(dialog),
|
||||||
#endif
|
#endif
|
||||||
"%s", message);
|
"%s", message);
|
||||||
/* XXX translate this */
|
gtk_window_set_title(GTK_WINDOW(dialog), _("Confirm"));
|
||||||
gtk_window_set_title(GTK_WINDOW(dialog), "Confirm");
|
|
||||||
ret = (gtk_dialog_run(GTK_DIALOG(dialog)) == GTK_RESPONSE_YES) ? 0 : 1;
|
ret = (gtk_dialog_run(GTK_DIALOG(dialog)) == GTK_RESPONSE_YES) ? 0 : 1;
|
||||||
gtk_widget_destroy(dialog);
|
gtk_widget_destroy(dialog);
|
||||||
return ret;
|
return ret;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user