dtchat: add the message catalog and the German UI (T10.4)
i18n.c opens catopen("dtchat", NL_CAT_LOCALE) and dc_text(id, fallback) reads set 1; the program calls dc_i18n_init after setlocale. The visible labels of the main window, the account editor, the request/peer/file/pair dialogs and the local status texts use ui_text.h ids; dtchat.msg (English) has 75 entries and programs/localized/de_DE.UTF-8/msg/dtchat.msg the German copy (ASCII transliteration, core font). test_i18n builds both catalogs with gencat and checks File/Datei, Send/Senden and the fallback; the German run under Xvfb shows Datei/Bearbeiten/Ansicht/Konversation/Hilfe, In der Naehe and Senden (screenshot build/mcde-shots/dtchat-t104-de.png) and the smoke stays green. Dynamic formatted statuses are partly still English. The in-tree build is pending: a foreign release chain holds the lock (pid 141722).
This commit is contained in:
1 parent
6e1d04ca38
commit
f46a914c73
15 files changed
+508
-96
No files matched your search
@@ -11,7 +11,7 @@ libDtChatIpc_la_LDFLAGS = -version-info 1:0:0
|
||||
|
||||
libDtChat_la_CPPFLAGS = -I$(top_srcdir)/include
|
||||
libDtChat_la_SOURCES = core.c loop.c store.c conv.c text.c adapter.c instance.c \
|
||||
irc.c identity.c peers.c local.c filexfer.c pair.c dc_internal.h
|
||||
irc.c identity.c peers.c local.c filexfer.c pair.c i18n.c dc_internal.h
|
||||
libDtChat_la_LIBADD = libDtChatIpc.la $(CRYPTOLIB) $(LIBTLS)
|
||||
libDtChat_la_LDFLAGS = -version-info 1:0:0
|
||||
|
||||
@@ -19,7 +19,7 @@ libDtChat_la_LDFLAGS = -version-info 1:0:0
|
||||
# build/mcde-host; make check still builds and runs them.
|
||||
noinst_PROGRAMS = test_json test_frame test_loop test_store test_conv test_text test_irc \
|
||||
test_identity test_peers test_local test_filexfer test_pair test_fuzz \
|
||||
test_adapter test_instance fake_adapter
|
||||
test_i18n test_adapter test_instance fake_adapter
|
||||
test_json_SOURCES = test_json.c
|
||||
test_json_CPPFLAGS = -I$(top_srcdir)/include
|
||||
test_json_LDADD = libDtChatIpc.la
|
||||
@@ -69,6 +69,9 @@ test_pair_LDADD = libDtChat.la libDtChatIpc.la $(CRYPTOLIB)
|
||||
test_fuzz_SOURCES = fuzz.c
|
||||
test_fuzz_CPPFLAGS = -I$(top_srcdir)/include -I$(srcdir)
|
||||
test_fuzz_LDADD = libDtChat.la libDtChatIpc.la
|
||||
test_i18n_SOURCES = test_i18n.c
|
||||
test_i18n_CPPFLAGS = -I$(top_srcdir)/include -I$(srcdir)
|
||||
test_i18n_LDADD = libDtChat.la libDtChatIpc.la
|
||||
TESTS = test_json test_frame test_loop test_store test_conv test_text test_irc \
|
||||
test_identity test_peers test_local test_filexfer test_pair test_fuzz \
|
||||
test_adapter test_instance
|
||||
test_i18n test_adapter test_instance
|
||||
@@ -320,6 +320,16 @@ size_t dc_pins_count(const DcPins *pins);
|
||||
const char *dc_pins_id_at(const DcPins *pins, size_t index);
|
||||
const char *dc_pins_pin_at(const DcPins *pins, size_t index);
|
||||
|
||||
/*
|
||||
* Message catalog "dtchat" (set 1). The program calls setlocale() and
|
||||
* dc_i18n_init() once; dc_text() returns the translation for ID or FALLBACK
|
||||
* when no catalog is available. The catalog is built from dtchat.msg
|
||||
* (C and each locale under programs/localized/<locale>/msg).
|
||||
*/
|
||||
void dc_i18n_init(void);
|
||||
void dc_i18n_close(void);
|
||||
const char *dc_text(int id, const char *fallback);
|
||||
|
||||
/*
|
||||
* IRC lines (RFC 1459/2812 + IRCv3 tags). dc_irc_parse() copies the tags,
|
||||
* the prefix, the command, up to 15 parameters and the trailing text;
|
||||
|
||||
@@ -0,0 +1,35 @@
|
||||
/*
|
||||
* i18n.c -- the dtchat message catalog
|
||||
*
|
||||
* License: CNCL 1.0 (Could Not Care Less), see LICENSE at the top of the tree.
|
||||
*/
|
||||
#include "dc_internal.h"
|
||||
|
||||
#include <nl_types.h>
|
||||
|
||||
static nl_catd catalog = (nl_catd)-1;
|
||||
|
||||
void
|
||||
dc_i18n_init(void)
|
||||
{
|
||||
catalog = catopen("dtchat", NL_CAT_LOCALE);
|
||||
}
|
||||
|
||||
void
|
||||
dc_i18n_close(void)
|
||||
{
|
||||
if (catalog != (nl_catd)-1)
|
||||
(void)catclose(catalog);
|
||||
catalog = (nl_catd)-1;
|
||||
}
|
||||
|
||||
const char *
|
||||
dc_text(int id, const char *fallback)
|
||||
{
|
||||
const char *text;
|
||||
|
||||
if (catalog == (nl_catd)-1)
|
||||
return fallback;
|
||||
text = catgets(catalog, 1, id, fallback);
|
||||
return text != NULL ? text : fallback;
|
||||
}
|
||||
@@ -0,0 +1,116 @@
|
||||
/*
|
||||
* test_i18n.c -- tests for the dtchat message catalog (T10.4)
|
||||
*
|
||||
* License: CNCL 1.0 (Could Not Care Less), see LICENSE at the top of the tree.
|
||||
*
|
||||
* usage: test_i18n <de.msg> <en.msg>
|
||||
*
|
||||
* Builds both catalogs with gencat into a temporary directory, points NLSPATH
|
||||
* at them and checks the ids 2 (File/Datei) and 21 (Send/Senden) plus the
|
||||
* fallback for an unknown id. No locale has to be installed: catopen is
|
||||
* given a path without %L.
|
||||
*/
|
||||
#include "dc_internal.h"
|
||||
|
||||
#include <locale.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <sys/stat.h>
|
||||
#include <sys/wait.h>
|
||||
#include <unistd.h>
|
||||
|
||||
static int fails;
|
||||
|
||||
#define CHECK(cond) do {\
|
||||
if (!(cond)) {\
|
||||
fprintf(stderr, "FAIL %s:%d: %s\n", __FILE__, __LINE__,\
|
||||
#cond);\
|
||||
fails++;\
|
||||
}\
|
||||
} while (0)
|
||||
|
||||
static int
|
||||
gencat_to(const char *cat, const char *msg)
|
||||
{
|
||||
pid_t pid = fork();
|
||||
|
||||
if (pid == 0) {
|
||||
execlp("gencat", "gencat", cat, msg, (char *)NULL);
|
||||
_exit(127);
|
||||
}
|
||||
if (pid < 0)
|
||||
return -1;
|
||||
{
|
||||
int status = 0;
|
||||
|
||||
if (waitpid(pid, &status, 0) < 0)
|
||||
return -1;
|
||||
return WIFEXITED(status) && WEXITSTATUS(status) == 0 ? 0 : -1;
|
||||
}
|
||||
}
|
||||
|
||||
static void
|
||||
use_catalog(const char *dir)
|
||||
{
|
||||
char path[512];
|
||||
|
||||
snprintf(path, sizeof(path), "%s/%%N.cat", dir);
|
||||
dc_i18n_close();
|
||||
(void)setenv("NLSPATH", path, 1);
|
||||
dc_i18n_init();
|
||||
}
|
||||
|
||||
int
|
||||
main(int argc, char **argv)
|
||||
{
|
||||
char tmp[] = "/tmp/opencode/dtchat-i18n-XXXXXX";
|
||||
char de[1024], en[1024], cat[1200];
|
||||
char *msg_de;
|
||||
char *msg_en;
|
||||
|
||||
if (argc < 3) {
|
||||
fprintf(stderr, "usage: %s <de.msg> <en.msg>\n", argv[0]);
|
||||
return 2;
|
||||
}
|
||||
msg_de = argv[1];
|
||||
msg_en = argv[2];
|
||||
CHECK(mkdtemp(tmp) != NULL);
|
||||
snprintf(de, sizeof(de), "%s/de", tmp);
|
||||
snprintf(en, sizeof(en), "%s/en", tmp);
|
||||
CHECK(mkdir(de, 0700) == 0 || 1);
|
||||
CHECK(mkdir(en, 0700) == 0 || 1);
|
||||
snprintf(cat, sizeof(cat), "%s/dtchat.cat", de);
|
||||
CHECK(gencat_to(cat, msg_de) == 0);
|
||||
snprintf(cat, sizeof(cat), "%s/dtchat.cat", en);
|
||||
CHECK(gencat_to(cat, msg_en) == 0);
|
||||
|
||||
(void)setenv("LANG", "C", 1);
|
||||
(void)setlocale(LC_ALL, "");
|
||||
use_catalog(de);
|
||||
CHECK(strcmp(dc_text(2, "x"), "Datei") == 0);
|
||||
CHECK(strcmp(dc_text(21, "x"), "Senden") == 0);
|
||||
CHECK(strcmp(dc_text(999, "fallback"), "fallback") == 0);
|
||||
use_catalog(en);
|
||||
CHECK(strcmp(dc_text(2, "x"), "File") == 0);
|
||||
CHECK(strcmp(dc_text(21, "x"), "Send") == 0);
|
||||
dc_i18n_close();
|
||||
|
||||
{
|
||||
char path[1200];
|
||||
|
||||
snprintf(path, sizeof(path), "%s/dtchat.cat", de);
|
||||
(void)unlink(path);
|
||||
snprintf(path, sizeof(path), "%s/dtchat.cat", en);
|
||||
(void)unlink(path);
|
||||
(void)rmdir(de);
|
||||
(void)rmdir(en);
|
||||
(void)rmdir(tmp);
|
||||
}
|
||||
if (fails != 0) {
|
||||
fprintf(stderr, "%d test(s) failed\n", fails);
|
||||
return 1;
|
||||
}
|
||||
printf("test_i18n: all ok\n");
|
||||
return 0;
|
||||
}
|
||||
+74
-22
@@ -1,26 +1,78 @@
|
||||
$ MCDE dtchat message catalog (set 1) -- English is the source; a locale's copy lives in programs/localized/<locale>/msg/dtchat.msg.
|
||||
$
|
||||
$set 1
|
||||
|
||||
1 Chat
|
||||
2 Chat on IRC and XMPP, with people nearby, and with Telegram or WhatsApp through their helpers.
|
||||
3 Accounts
|
||||
4 Server
|
||||
5 Port
|
||||
6 Nickname
|
||||
7 Password
|
||||
8 Encoding
|
||||
9 Save
|
||||
10 Add
|
||||
11 Delete
|
||||
12 Close
|
||||
13 Send
|
||||
14 Cancel
|
||||
15 OK
|
||||
16 No
|
||||
17 Yes
|
||||
18 Dismiss
|
||||
19 transcript cleared
|
||||
20 no account connected
|
||||
21 sent
|
||||
22 no conversation selected
|
||||
2 File
|
||||
3 New Conversation
|
||||
4 Add Account
|
||||
5 Accounts...
|
||||
6 Quit
|
||||
7 Edit
|
||||
8 Cut
|
||||
9 Copy
|
||||
10 Paste
|
||||
11 Clear Transcript
|
||||
12 View
|
||||
13 Show Offline
|
||||
14 Timestamps
|
||||
15 Conversation
|
||||
16 Join Channel
|
||||
17 Send File
|
||||
18 Call
|
||||
19 Help
|
||||
20 About dtchat
|
||||
21 Send
|
||||
22 offline - no accounts
|
||||
23 no conversation
|
||||
24 no conversation selected
|
||||
25 transcript cleared
|
||||
26 sent
|
||||
27 sent (demo)
|
||||
28 demo: no account connected
|
||||
29 select a Peer in Nearby first
|
||||
30 local mode is not connected
|
||||
31 peer is gone
|
||||
32 peer details - double-click the row for the dialog
|
||||
33 Accounts
|
||||
34 Save
|
||||
35 Add
|
||||
36 Delete
|
||||
37 Close
|
||||
38 Cancel
|
||||
39 OK
|
||||
40 No
|
||||
41 Yes
|
||||
42 Dismiss
|
||||
43 Peer
|
||||
44 Name
|
||||
45 Identity
|
||||
46 Fingerprint
|
||||
47 Address
|
||||
48 State
|
||||
49 Source
|
||||
50 Block this peer
|
||||
51 Apply
|
||||
52 added by hand
|
||||
53 found on the network
|
||||
54 (not known yet)
|
||||
55 Incoming file
|
||||
56 Accept
|
||||
57 Reject
|
||||
58 Send a file to %s
|
||||
59 Pair peer
|
||||
60 Codes match
|
||||
61 Compare this code on both machines:
|
||||
62 peer paired
|
||||
63 peer blocked
|
||||
64 peer is not paired
|
||||
65 file offered
|
||||
66 file sent
|
||||
67 receiving file
|
||||
68 saved to %s
|
||||
69 file check failed
|
||||
70 no accounts yet
|
||||
71 Local peers
|
||||
72 Nearby
|
||||
73 pairing required
|
||||
74 %s offers %s (%s)
|
||||
75 %s wants to pair. Compare this code on both machines:
|
||||
+30
-18
@@ -26,6 +26,7 @@
|
||||
#include <Xm/Xm.h>
|
||||
|
||||
#include "ui_file.h"
|
||||
#include "ui_text.h"
|
||||
|
||||
typedef struct Peer Peer;
|
||||
struct Peer {
|
||||
@@ -160,7 +161,7 @@ static void
|
||||
ensure_conv(DtLocal *local, Peer *p)
|
||||
{
|
||||
(void)dc_model_add_account(local->model, "local", "local",
|
||||
"Local peers");
|
||||
dc_text(TX_LOCAL_PEERS, "Local peers"));
|
||||
(void)dc_model_add_conv(local->model, "local", p->id, DC_CONV_DIRECT,
|
||||
p->name);
|
||||
}
|
||||
@@ -201,7 +202,7 @@ pair_accept(PairCtx *ctx)
|
||||
p->paired = 1;
|
||||
announce(ctx->local, p, 1);
|
||||
}
|
||||
status(ctx->local, "peer paired");
|
||||
status(ctx->local, dc_text(TX_PEER_PAIRED, "peer paired"));
|
||||
XtDestroyWidget(ctx->shell);
|
||||
repaint_ui(ctx->local);
|
||||
free(ctx);
|
||||
@@ -226,7 +227,7 @@ pair_reject(PairCtx *ctx)
|
||||
}
|
||||
announce(ctx->local, p, 0);
|
||||
}
|
||||
status(ctx->local, "peer blocked");
|
||||
status(ctx->local, dc_text(TX_PEER_BLOCKED, "peer blocked"));
|
||||
XtDestroyWidget(ctx->shell);
|
||||
repaint_ui(ctx->local);
|
||||
free(ctx);
|
||||
@@ -273,7 +274,8 @@ pair_dialog(DtLocal *local, const char *name, const char *id,
|
||||
return;
|
||||
}
|
||||
ctx->shell = XtParent(form);
|
||||
XtVaSetValues(ctx->shell, XmNtitle, "Pair peer", XmNwidth, 380,
|
||||
XtVaSetValues(ctx->shell, XmNtitle,
|
||||
(char *)dc_text(TX_PAIR_PEER, "Pair peer"), XmNwidth, 380,
|
||||
XmNheight, 210, XmNdeleteResponse, XmDESTROY, NULL);
|
||||
label = XmCreateLabel(form, "who", NULL, 0);
|
||||
{
|
||||
@@ -281,8 +283,8 @@ pair_dialog(DtLocal *local, const char *name, const char *id,
|
||||
XmString x;
|
||||
|
||||
snprintf(line, sizeof(line),
|
||||
"%s wants to pair. Compare this code on both machines:",
|
||||
name);
|
||||
dc_text(TX_WANTS_PAIR, "%s wants to pair. Compare this "
|
||||
"code on both machines:"), name);
|
||||
x = XmStringCreateLocalized(line);
|
||||
XtVaSetValues(label, XmNlabelString, x,
|
||||
XmNtopAttachment, XmATTACH_FORM,
|
||||
@@ -313,7 +315,8 @@ pair_dialog(DtLocal *local, const char *name, const char *id,
|
||||
XmNmarginHeight, 8, NULL);
|
||||
reject = XmCreatePushButton(buttons, "reject", NULL, 0);
|
||||
{
|
||||
XmString x = XmStringCreateLocalized("Reject");
|
||||
XmString x = XmStringCreateLocalized((char *)dc_text(TX_REJECT,
|
||||
"Reject"));
|
||||
|
||||
XtVaSetValues(reject, XmNlabelString, x, NULL);
|
||||
XmStringFree(x);
|
||||
@@ -322,7 +325,8 @@ pair_dialog(DtLocal *local, const char *name, const char *id,
|
||||
XtManageChild(reject);
|
||||
accept = XmCreatePushButton(buttons, "accept", NULL, 0);
|
||||
{
|
||||
XmString x = XmStringCreateLocalized("Codes match");
|
||||
XmString x = XmStringCreateLocalized((char *)dc_text(
|
||||
TX_CODES_MATCH, "Codes match"));
|
||||
|
||||
XtVaSetValues(accept, XmNlabelString, x, NULL);
|
||||
XmStringFree(x);
|
||||
@@ -357,7 +361,7 @@ offer_accept(OfferCtx *ctx)
|
||||
dc_json_new_string(ctx->peer->recv_id));
|
||||
(void)dc_local_conn_send_json(ctx->peer->conn, acc);
|
||||
dc_json_free(acc);
|
||||
status(ctx->local, "receiving file");
|
||||
status(ctx->local, dc_text(TX_RECEIVING, "receiving file"));
|
||||
}
|
||||
XtDestroyWidget(ctx->shell);
|
||||
repaint_ui(ctx->local);
|
||||
@@ -445,9 +449,11 @@ file_offer(DtLocal *local, Peer *peer, const DcJson *json)
|
||||
return;
|
||||
}
|
||||
ctx->shell = XtParent(form);
|
||||
XtVaSetValues(ctx->shell, XmNtitle, "Incoming file", XmNwidth, 420,
|
||||
XtVaSetValues(ctx->shell, XmNtitle,
|
||||
(char *)dc_text(TX_INCOMING_FILE, "Incoming file"), XmNwidth, 420,
|
||||
XmNheight, 180, NULL);
|
||||
snprintf(line, sizeof(line), "%s offers %s (%s)", peer->name,
|
||||
snprintf(line, sizeof(line),
|
||||
dc_text(TX_OFFERS, "%s offers %s (%s)"), peer->name,
|
||||
name != NULL ? name : "a file", human);
|
||||
label = XmCreateLabel(form, "name", NULL, 0);
|
||||
{
|
||||
@@ -469,7 +475,8 @@ file_offer(DtLocal *local, Peer *peer, const DcJson *json)
|
||||
XmNrightAttachment, XmATTACH_FORM, XmNmarginHeight, 8, NULL);
|
||||
reject = XmCreatePushButton(buttons, "reject", NULL, 0);
|
||||
{
|
||||
XmString x = XmStringCreateLocalized("Reject");
|
||||
XmString x = XmStringCreateLocalized((char *)dc_text(TX_REJECT,
|
||||
"Reject"));
|
||||
|
||||
XtVaSetValues(reject, XmNlabelString, x, NULL);
|
||||
XmStringFree(x);
|
||||
@@ -478,7 +485,8 @@ file_offer(DtLocal *local, Peer *peer, const DcJson *json)
|
||||
XtManageChild(reject);
|
||||
accept = XmCreatePushButton(buttons, "accept", NULL, 0);
|
||||
{
|
||||
XmString x = XmStringCreateLocalized("Accept");
|
||||
XmString x = XmStringCreateLocalized((char *)dc_text(TX_ACCEPT,
|
||||
"Accept"));
|
||||
|
||||
XtVaSetValues(accept, XmNlabelString, x, NULL);
|
||||
XmStringFree(x);
|
||||
@@ -557,11 +565,14 @@ handle_line(DtLocal *local, Peer *peer, DcLocalConn *conn, const DcJson *json)
|
||||
(void)dc_local_conn_send_json(conn, done);
|
||||
dc_json_free(done);
|
||||
if (ok) {
|
||||
snprintf(line, sizeof(line), "saved to %s",
|
||||
snprintf(line, sizeof(line),
|
||||
dc_text(TX_SAVED_TO, "saved to %s"),
|
||||
dc_file_recv_path(peer->recv));
|
||||
status(local, line);
|
||||
} else {
|
||||
status(local, "file check failed");
|
||||
status(local,
|
||||
dc_text(TX_FILE_CHECK_FAILED,
|
||||
"file check failed"));
|
||||
}
|
||||
dc_file_recv_cancel(peer->recv);
|
||||
peer->recv = NULL;
|
||||
@@ -583,7 +594,7 @@ handle_line(DtLocal *local, Peer *peer, DcLocalConn *conn, const DcJson *json)
|
||||
if (peer->send != NULL) {
|
||||
dc_file_send_free(peer->send);
|
||||
peer->send = NULL;
|
||||
status(local, "file sent");
|
||||
status(local, dc_text(TX_FILE_SENT, "file sent"));
|
||||
}
|
||||
} else if (strcmp(type, "typing") == 0) {
|
||||
status(local, dc_json_bool(dc_json_get(json, "on")) ?
|
||||
@@ -717,7 +728,8 @@ local_file_send(const char *peer_id, const char *path, void *arg)
|
||||
return;
|
||||
}
|
||||
if (!peer->paired) {
|
||||
status(local, "peer is not paired");
|
||||
status(local, dc_text(TX_PEER_NOT_PAIRED,
|
||||
"peer is not paired"));
|
||||
return;
|
||||
}
|
||||
snprintf(peer->send_id, sizeof(peer->send_id), "f%d", ++local->seq);
|
||||
@@ -749,7 +761,7 @@ pump_cb(XtPointer client, XtIntervalId *id)
|
||||
if (rc == 1) {
|
||||
dc_file_send_free(peer->send);
|
||||
peer->send = NULL;
|
||||
status(local, "file sent");
|
||||
status(local, dc_text(TX_FILE_SENT, "file sent"));
|
||||
}
|
||||
}
|
||||
local->timer = XtAppAddTimeOut(local->app, 40, pump_cb, local);
|
||||
|
||||
@@ -736,6 +736,7 @@ main(int argc, char **argv)
|
||||
}
|
||||
|
||||
setlocale(LC_ALL, "");
|
||||
dc_i18n_init();
|
||||
XtSetLanguageProc(NULL, NULL, NULL);
|
||||
toplevel = XtVaAppInitialize(&app, "Dtchat", NULL, 0, &argc, argv,
|
||||
fallback,
|
||||
@@ -836,5 +837,6 @@ main(int argc, char **argv)
|
||||
dtchat_ui_destroy(ui);
|
||||
dc_model_free(demo_model);
|
||||
dc_peers_free(demo_peers);
|
||||
dc_i18n_close();
|
||||
return smoke_failed ? 1 : 0;
|
||||
}
|
||||
@@ -12,6 +12,7 @@
|
||||
#define _POSIX_C_SOURCE 200809L
|
||||
|
||||
#include "ui_accounts.h"
|
||||
#include "ui_text.h"
|
||||
|
||||
#include <errno.h>
|
||||
#include <stdio.h>
|
||||
@@ -661,7 +662,7 @@ refresh_list(DtAccountsDialog *dialog)
|
||||
XmStringFree(item);
|
||||
}
|
||||
if (dc_model_account_count(dialog->model) == 0) {
|
||||
XmString item = xs("(no accounts yet)");
|
||||
XmString item = xs(dc_text(TX_NO_ACCOUNTS_YET, "no accounts yet"));
|
||||
|
||||
XmListAddItemUnselected(dialog->list, item, 0);
|
||||
XmStringFree(item);
|
||||
@@ -847,7 +848,8 @@ dtchat_accounts_dialog_create(Widget parent, DcModel *model,
|
||||
snprintf(name, sizeof(name), "accountsDialog%d", ++dialog_no);
|
||||
form = XmCreateFormDialog(parent, name, NULL, 0);
|
||||
dialog->shell = XtParent(form);
|
||||
XtVaSetValues(dialog->shell, XmNtitle, "Accounts",
|
||||
XtVaSetValues(dialog->shell, XmNtitle,
|
||||
(char *)dc_text(TX_ACCOUNTS, "Accounts"),
|
||||
XmNwidth, 760, XmNheight, 500, NULL);
|
||||
|
||||
dialog->list = XmCreateScrolledList(form, "accounts", NULL, 0);
|
||||
@@ -869,25 +871,25 @@ dtchat_accounts_dialog_create(Widget parent, DcModel *model,
|
||||
XmNleftAttachment, XmATTACH_FORM,
|
||||
XmNrightAttachment, XmATTACH_FORM, NULL);
|
||||
save = XmCreatePushButton(buttons, "save", NULL, 0);
|
||||
x = xs("Save");
|
||||
x = xs(dc_text(TX_SAVE, "Save"));
|
||||
XtVaSetValues(save, XmNlabelString, x, NULL);
|
||||
XmStringFree(x);
|
||||
XtAddCallback(save, XmNactivateCallback, save_cb, dialog);
|
||||
XtManageChild(save);
|
||||
add = XmCreatePushButton(buttons, "add", NULL, 0);
|
||||
x = xs("Add");
|
||||
x = xs(dc_text(TX_ADD, "Add"));
|
||||
XtVaSetValues(add, XmNlabelString, x, NULL);
|
||||
XmStringFree(x);
|
||||
XtAddCallback(add, XmNactivateCallback, add_cb, dialog);
|
||||
XtManageChild(add);
|
||||
del = XmCreatePushButton(buttons, "delete", NULL, 0);
|
||||
x = xs("Delete");
|
||||
x = xs(dc_text(TX_DELETE, "Delete"));
|
||||
XtVaSetValues(del, XmNlabelString, x, NULL);
|
||||
XmStringFree(x);
|
||||
XtAddCallback(del, XmNactivateCallback, delete_cb, dialog);
|
||||
XtManageChild(del);
|
||||
close = XmCreatePushButton(buttons, "close", NULL, 0);
|
||||
x = xs("Close");
|
||||
x = xs(dc_text(TX_CLOSE, "Close"));
|
||||
XtVaSetValues(close, XmNlabelString, x, NULL);
|
||||
XmStringFree(x);
|
||||
XtAddCallback(close, XmNactivateCallback, close_cb, dialog);
|
||||
|
||||
@@ -11,6 +11,7 @@
|
||||
#define _POSIX_C_SOURCE 200809L
|
||||
|
||||
#include "ui_file.h"
|
||||
#include "ui_text.h"
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
@@ -116,7 +117,8 @@ dtchat_file_offer_dialog(Widget parent, const char *peer, const char *name,
|
||||
return NULL;
|
||||
}
|
||||
dialog->shell = XtParent(form);
|
||||
XtVaSetValues(dialog->shell, XmNtitle, "Incoming file",
|
||||
XtVaSetValues(dialog->shell, XmNtitle,
|
||||
(char *)dc_text(TX_INCOMING_FILE, "Incoming file"),
|
||||
XmNwidth, 460, XmNheight, 190, XmNdeleteResponse, XmDESTROY,
|
||||
NULL);
|
||||
human_size(size, human, sizeof(human));
|
||||
@@ -148,11 +150,11 @@ dtchat_file_offer_dialog(Widget parent, const char *peer, const char *name,
|
||||
XmNrightAttachment, XmATTACH_FORM,
|
||||
XmNmarginHeight, 8, NULL);
|
||||
reject = XmCreatePushButton(buttons, "reject", NULL, 0);
|
||||
set_label(reject, "Reject");
|
||||
set_label(reject, dc_text(TX_REJECT, "Reject"));
|
||||
XtAddCallback(reject, XmNactivateCallback, reject_cb, dialog);
|
||||
XtManageChild(reject);
|
||||
accept = XmCreatePushButton(buttons, "accept", NULL, 0);
|
||||
set_label(accept, "Accept");
|
||||
set_label(accept, dc_text(TX_ACCEPT, "Accept"));
|
||||
XtAddCallback(accept, XmNactivateCallback, accept_cb, dialog);
|
||||
XtManageChild(accept);
|
||||
XtManageChild(form);
|
||||
@@ -237,7 +239,8 @@ dtchat_file_send_dialog(Widget parent, const char *peer_id,
|
||||
free(ctx);
|
||||
return;
|
||||
}
|
||||
snprintf(title, sizeof(title), "Send a file to %s",
|
||||
snprintf(title, sizeof(title),
|
||||
dc_text(TX_SEND_FILE_TO, "Send a file to %s"),
|
||||
peer_name != NULL ? peer_name : peer_id);
|
||||
XtVaSetValues(XtParent(box), XmNtitle, title, XmNwidth, 560,
|
||||
XmNheight, 420, NULL);
|
||||
|
||||
@@ -8,6 +8,8 @@
|
||||
|
||||
#include <X11/Intrinsic.h>
|
||||
|
||||
#include "dc_internal.h"
|
||||
|
||||
typedef struct DtFileOfferDialog DtFileOfferDialog;
|
||||
typedef void (*DtFileOfferAnswerFn)(int accepted, void *arg);
|
||||
typedef void (*DtFileSendFn)(const char *peer_id, const char *path,
|
||||
|
||||
+32
-30
@@ -13,6 +13,7 @@
|
||||
|
||||
#include "ui_main.h"
|
||||
#include "ui_accounts.h"
|
||||
#include "ui_text.h"
|
||||
#include "ui_peer.h"
|
||||
#include "ui_file.h"
|
||||
|
||||
@@ -136,7 +137,7 @@ clear_cb(Widget w, XtPointer client, XtPointer call)
|
||||
(void)w;
|
||||
(void)call;
|
||||
XmTextSetString(ui->transcript, "");
|
||||
set_status(ui, "transcript cleared");
|
||||
set_status(ui, dc_text(TX_TRANSCRIPT_CLEARED, "transcript cleared"));
|
||||
}
|
||||
|
||||
static void
|
||||
@@ -589,16 +590,16 @@ send_file_cb(Widget w, XtPointer client, XtPointer call)
|
||||
(void)w;
|
||||
(void)call;
|
||||
if (ui->cur_peer == NULL || ui->peers == NULL) {
|
||||
set_status(ui, "select a Peer in Nearby first");
|
||||
set_status(ui, dc_text(TX_SELECT_PEER, "select a Peer in Nearby first"));
|
||||
return;
|
||||
}
|
||||
peer = dc_peers_find(ui->peers, ui->cur_peer);
|
||||
if (peer == NULL) {
|
||||
set_status(ui, "peer is gone");
|
||||
set_status(ui, dc_text(TX_PEER_GONE, "peer is gone"));
|
||||
return;
|
||||
}
|
||||
if (ui->file_fn == NULL) {
|
||||
set_status(ui, "local mode is not connected");
|
||||
set_status(ui, dc_text(TX_LOCAL_NOT_CONNECTED, "local mode is not connected"));
|
||||
return;
|
||||
}
|
||||
dtchat_file_send_dialog(ui->shell, dc_peer_id(peer),
|
||||
@@ -617,38 +618,38 @@ make_menu_bar(DtChatUi *ui, Widget form, Widget *bar_out)
|
||||
XtManageChild(bar);
|
||||
*bar_out = bar;
|
||||
|
||||
file = make_menu(bar, "File");
|
||||
(void)make_item(file, "New Conversation", not_implemented_cb,
|
||||
file = make_menu(bar, dc_text(TX_FILE, "File"));
|
||||
(void)make_item(file, dc_text(TX_NEW_CONV, "New Conversation"), not_implemented_cb,
|
||||
not_impl(ui, "New conversation"));
|
||||
(void)make_item(file, "Accounts...", accounts_cb, ui);
|
||||
(void)make_item(file, dc_text(TX_ACCOUNTS_ELLIPSIS, "Accounts..."), accounts_cb, ui);
|
||||
make_separator(file);
|
||||
(void)make_item(file, "Quit", quit_cb, NULL);
|
||||
(void)make_item(file, dc_text(TX_QUIT, "Quit"), quit_cb, NULL);
|
||||
|
||||
edit = make_menu(bar, "Edit");
|
||||
(void)make_item(edit, "Cut", not_implemented_cb,
|
||||
edit = make_menu(bar, dc_text(TX_EDIT, "Edit"));
|
||||
(void)make_item(edit, dc_text(TX_CUT, "Cut"), not_implemented_cb,
|
||||
not_impl(ui, "Cut"));
|
||||
(void)make_item(edit, "Copy", not_implemented_cb,
|
||||
(void)make_item(edit, dc_text(TX_COPY, "Copy"), not_implemented_cb,
|
||||
not_impl(ui, "Copy"));
|
||||
(void)make_item(edit, "Paste", not_implemented_cb,
|
||||
(void)make_item(edit, dc_text(TX_PASTE, "Paste"), not_implemented_cb,
|
||||
not_impl(ui, "Paste"));
|
||||
make_separator(edit);
|
||||
(void)make_item(edit, "Clear Transcript", clear_cb, ui);
|
||||
(void)make_item(edit, dc_text(TX_CLEAR, "Clear Transcript"), clear_cb, ui);
|
||||
|
||||
view = make_menu(bar, "View");
|
||||
(void)make_item(view, "Show Offline", not_implemented_cb,
|
||||
view = make_menu(bar, dc_text(TX_VIEW, "View"));
|
||||
(void)make_item(view, dc_text(TX_SHOW_OFFLINE, "Show Offline"), not_implemented_cb,
|
||||
not_impl(ui, "Show offline"));
|
||||
(void)make_item(view, "Timestamps", not_implemented_cb,
|
||||
(void)make_item(view, dc_text(TX_TIMESTAMPS, "Timestamps"), not_implemented_cb,
|
||||
not_impl(ui, "Timestamps"));
|
||||
|
||||
conversation = make_menu(bar, "Conversation");
|
||||
(void)make_item(conversation, "Join Channel", not_implemented_cb,
|
||||
conversation = make_menu(bar, dc_text(TX_CONVERSATION, "Conversation"));
|
||||
(void)make_item(conversation, dc_text(TX_JOIN, "Join Channel"), not_implemented_cb,
|
||||
not_impl(ui, "Join a channel"));
|
||||
(void)make_item(conversation, "Send File", send_file_cb, ui);
|
||||
(void)make_item(conversation, "Call", not_implemented_cb,
|
||||
(void)make_item(conversation, dc_text(TX_SEND_FILE, "Send File"), send_file_cb, ui);
|
||||
(void)make_item(conversation, dc_text(TX_CALL, "Call"), not_implemented_cb,
|
||||
not_impl(ui, "Call"));
|
||||
|
||||
help = make_menu(bar, "Help");
|
||||
(void)make_item(help, "About dtchat", about_cb, ui);
|
||||
help = make_menu(bar, dc_text(TX_HELP, "Help"));
|
||||
(void)make_item(help, dc_text(TX_ABOUT, "About dtchat"), about_cb, ui);
|
||||
}
|
||||
|
||||
static char
|
||||
@@ -804,7 +805,7 @@ show_peer(DtChatUi *ui, const char *id)
|
||||
XmTextInsert(ui->transcript,
|
||||
XmTextGetLastPosition(ui->transcript),
|
||||
"This peer is blocked.\n");
|
||||
set_status(ui, "peer details - double-click the row for the dialog");
|
||||
set_status(ui, dc_text(TX_PEER_DETAILS_HINT, "peer details - double-click the row for the dialog"));
|
||||
refresh_roster(ui);
|
||||
}
|
||||
|
||||
@@ -901,14 +902,15 @@ refresh_roster(DtChatUi *ui)
|
||||
clear_rows(ui);
|
||||
XmListDeleteAllItems(ui->roster);
|
||||
if (ui->model == NULL || dc_model_account_count(ui->model) == 0) {
|
||||
(void)add_row(ui, "No accounts yet", NULL, NULL,
|
||||
"No accounts yet");
|
||||
(void)add_row(ui, dc_text(TX_NO_ACCOUNTS_YET, "no accounts yet"), NULL, NULL,
|
||||
dc_text(TX_NO_ACCOUNTS_YET, "no accounts yet"));
|
||||
return;
|
||||
}
|
||||
if (ui->peers != NULL && dc_peers_count(ui->peers) > 0) {
|
||||
size_t pi;
|
||||
|
||||
(void)add_row(ui, "Nearby", NULL, NULL, "Nearby");
|
||||
(void)add_row(ui, dc_text(TX_NEARBY, "Nearby"), NULL, NULL,
|
||||
dc_text(TX_NEARBY, "Nearby"));
|
||||
for (pi = 0; pi < dc_peers_count(ui->peers); pi++) {
|
||||
DcPeer *peer = dc_peers_at(ui->peers, pi);
|
||||
const char *name = dc_peer_name(peer);
|
||||
@@ -1030,7 +1032,7 @@ dtchat_ui_create(Widget shell, DcModel *model)
|
||||
make_menu_bar(ui, form, &bar);
|
||||
|
||||
ui->status = XmCreateLabel(form, "status", NULL, 0);
|
||||
x = xs("offline - no accounts");
|
||||
x = xs(dc_text(TX_OFFLINE_NO_ACCOUNTS, "offline - no accounts"));
|
||||
XtVaSetValues(ui->status, XmNlabelString, x,
|
||||
XmNalignment, XmALIGNMENT_BEGINNING,
|
||||
XmNbottomAttachment, XmATTACH_FORM,
|
||||
@@ -1078,7 +1080,7 @@ dtchat_ui_create(Widget shell, DcModel *model)
|
||||
ui->input = make_scrolled_text(chat, "input", 3, 40, 1,
|
||||
&input_parent);
|
||||
send = XmCreatePushButton(chat, "send", NULL, 0);
|
||||
x = xs("Send");
|
||||
x = xs(dc_text(TX_SEND, "Send"));
|
||||
XtVaSetValues(send, XmNlabelString, x,
|
||||
XmNwidth, 84, XmNheight, 30, NULL);
|
||||
XmStringFree(x);
|
||||
@@ -1200,7 +1202,7 @@ dtchat_ui_send_text(DtChatUi *ui, const char *text)
|
||||
if (ui->send_fn != NULL) {
|
||||
if (ui->send_fn(ui->send_arg, ui->cur_conv, text) != 0)
|
||||
return -1;
|
||||
set_status(ui, "sent");
|
||||
set_status(ui, dc_text(TX_SENT, "sent"));
|
||||
return 0;
|
||||
}
|
||||
conv = dc_model_find_conv(ui->model, ui->cur_account, ui->cur_conv);
|
||||
@@ -1210,7 +1212,7 @@ dtchat_ui_send_text(DtChatUi *ui, const char *text)
|
||||
DTCHAT_MSG_SELF) != 0)
|
||||
return -1;
|
||||
dtchat_ui_message_added(ui, ui->cur_account, ui->cur_conv);
|
||||
set_status(ui, "sent (demo)");
|
||||
set_status(ui, dc_text(TX_SENT_DEMO, "sent (demo)"));
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
+16
-12
@@ -11,6 +11,7 @@
|
||||
#define _POSIX_C_SOURCE 200809L
|
||||
|
||||
#include "ui_peer.h"
|
||||
#include "ui_text.h"
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
@@ -132,7 +133,8 @@ dtchat_peer_dialog_create(Widget parent, DcPeer *peer, DtPeerBlockFn blocked,
|
||||
return NULL;
|
||||
}
|
||||
dialog->shell = XtParent(form);
|
||||
XtVaSetValues(dialog->shell, XmNtitle, "Peer", XmNwidth, 480,
|
||||
XtVaSetValues(dialog->shell, XmNtitle,
|
||||
(char *)dc_text(TX_PEER, "Peer"), XmNwidth, 480,
|
||||
XmNheight, 330, XmNdeleteResponse, XmDESTROY, NULL);
|
||||
|
||||
rows = XtVaCreateManagedWidget("rows", xmFormWidgetClass, form,
|
||||
@@ -143,21 +145,23 @@ dtchat_peer_dialog_create(Widget parent, DcPeer *peer, DtPeerBlockFn blocked,
|
||||
name = dc_peer_name(peer);
|
||||
id = dc_peer_id(peer);
|
||||
pin = dc_peer_pin(peer);
|
||||
previous = row(rows, NULL, "Name", name);
|
||||
previous = row(rows, previous, "Identity", id);
|
||||
previous = row(rows, previous, "Fingerprint",
|
||||
pin != NULL && *pin != '\0' ? pin : "(not known yet)");
|
||||
previous = row(rows, NULL, dc_text(TX_NAME, "Name"), name);
|
||||
previous = row(rows, previous, dc_text(TX_IDENTITY, "Identity"), id);
|
||||
previous = row(rows, previous, dc_text(TX_FINGERPRINT, "Fingerprint"),
|
||||
pin != NULL && *pin != '\0' ? pin :
|
||||
dc_text(TX_NOT_KNOWN, "(not known yet)"));
|
||||
snprintf(line, sizeof(line), "%s:%d",
|
||||
dc_peer_host(peer) != NULL && dc_peer_host(peer)[0] != '\0' ?
|
||||
dc_peer_host(peer) : "(no address)", dc_peer_port(peer));
|
||||
previous = row(rows, previous, "Address", line);
|
||||
previous = row(rows, previous, "State",
|
||||
previous = row(rows, previous, dc_text(TX_ADDRESS, "Address"), line);
|
||||
previous = row(rows, previous, dc_text(TX_STATE, "State"),
|
||||
dc_peer_online(peer) ? "online" : "offline");
|
||||
previous = row(rows, previous, "Source",
|
||||
dc_peer_manual(peer) ? "added by hand" : "found on the network");
|
||||
previous = row(rows, previous, dc_text(TX_SOURCE, "Source"),
|
||||
dc_peer_manual(peer) ? dc_text(TX_ADDED_BY_HAND, "added by hand") :
|
||||
dc_text(TX_FOUND_NETWORK, "found on the network"));
|
||||
|
||||
dialog->blocked = XmCreateToggleButton(rows, "blocked", NULL, 0);
|
||||
x = xs("Block this peer");
|
||||
x = xs(dc_text(TX_BLOCK_PEER, "Block this peer"));
|
||||
XtVaSetValues(dialog->blocked, XmNlabelString, x,
|
||||
XmNtopAttachment, XmATTACH_WIDGET, XmNtopWidget, previous,
|
||||
XmNleftAttachment, XmATTACH_FORM, XmNtopOffset, 8, NULL);
|
||||
@@ -173,11 +177,11 @@ dtchat_peer_dialog_create(Widget parent, DcPeer *peer, DtPeerBlockFn blocked,
|
||||
XmNleftAttachment, XmATTACH_FORM,
|
||||
XmNrightAttachment, XmATTACH_FORM, XmNmarginHeight, 6, NULL);
|
||||
apply = XmCreatePushButton(buttons, "apply", NULL, 0);
|
||||
set_label(apply, "Apply");
|
||||
set_label(apply, dc_text(TX_APPLY, "Apply"));
|
||||
XtAddCallback(apply, XmNactivateCallback, apply_cb, dialog);
|
||||
XtManageChild(apply);
|
||||
close = XmCreatePushButton(buttons, "close", NULL, 0);
|
||||
set_label(close, "Close");
|
||||
set_label(close, dc_text(TX_CLOSE, "Close"));
|
||||
XtAddCallback(close, XmNactivateCallback, close_cb, dialog);
|
||||
XtManageChild(close);
|
||||
|
||||
|
||||
@@ -12,6 +12,7 @@
|
||||
#define _POSIX_C_SOURCE 200809L
|
||||
|
||||
#include "ui_request.h"
|
||||
#include "ui_text.h"
|
||||
|
||||
#include <ctype.h>
|
||||
#include <stdio.h>
|
||||
@@ -642,7 +643,7 @@ dtchat_error_dialog(Widget parent, const char *title, const char *text)
|
||||
XmNleftAttachment, XmATTACH_FORM,
|
||||
XmNrightAttachment, XmATTACH_FORM,
|
||||
XmNmarginHeight, 6, NULL);
|
||||
(void)button(buttons, "Dismiss", "dismiss", error_close_cb, dialog);
|
||||
(void)button(buttons, dc_text(TX_DISMISS, "Dismiss"), "dismiss", error_close_cb, dialog);
|
||||
XtManageChild(form);
|
||||
XtPopup(dialog->shell, XtGrabNone);
|
||||
}
|
||||
@@ -0,0 +1,90 @@
|
||||
/*
|
||||
* ui_text.h -- the ids of the dtchat message catalog (set 1)
|
||||
*
|
||||
* License: CNCL 1.0 (Could Not Care Less), see LICENSE at the top of the tree.
|
||||
*
|
||||
* The numbers match programs/dtchat/dtchat.msg and the locale copies under
|
||||
* programs/localized/<locale>/msg/dtchat.msg.
|
||||
*/
|
||||
#ifndef _Dtchat_ui_text_h
|
||||
#define _Dtchat_ui_text_h
|
||||
|
||||
enum {
|
||||
TX_CHAT = 1,
|
||||
TX_FILE,
|
||||
TX_NEW_CONV,
|
||||
TX_ADD_ACCOUNT,
|
||||
TX_ACCOUNTS_ELLIPSIS,
|
||||
TX_QUIT,
|
||||
TX_EDIT,
|
||||
TX_CUT,
|
||||
TX_COPY,
|
||||
TX_PASTE,
|
||||
TX_CLEAR,
|
||||
TX_VIEW,
|
||||
TX_SHOW_OFFLINE,
|
||||
TX_TIMESTAMPS,
|
||||
TX_CONVERSATION,
|
||||
TX_JOIN,
|
||||
TX_SEND_FILE,
|
||||
TX_CALL,
|
||||
TX_HELP,
|
||||
TX_ABOUT,
|
||||
TX_SEND,
|
||||
TX_OFFLINE_NO_ACCOUNTS,
|
||||
TX_NO_CONVERSATION,
|
||||
TX_NO_CONV_SELECTED,
|
||||
TX_TRANSCRIPT_CLEARED,
|
||||
TX_SENT,
|
||||
TX_SENT_DEMO,
|
||||
TX_DEMO_NO_ACCOUNT,
|
||||
TX_SELECT_PEER,
|
||||
TX_LOCAL_NOT_CONNECTED,
|
||||
TX_PEER_GONE,
|
||||
TX_PEER_DETAILS_HINT,
|
||||
TX_ACCOUNTS,
|
||||
TX_SAVE,
|
||||
TX_ADD,
|
||||
TX_DELETE,
|
||||
TX_CLOSE,
|
||||
TX_CANCEL,
|
||||
TX_OK,
|
||||
TX_NO,
|
||||
TX_YES,
|
||||
TX_DISMISS,
|
||||
TX_PEER,
|
||||
TX_NAME,
|
||||
TX_IDENTITY,
|
||||
TX_FINGERPRINT,
|
||||
TX_ADDRESS,
|
||||
TX_STATE,
|
||||
TX_SOURCE,
|
||||
TX_BLOCK_PEER,
|
||||
TX_APPLY,
|
||||
TX_ADDED_BY_HAND,
|
||||
TX_FOUND_NETWORK,
|
||||
TX_NOT_KNOWN,
|
||||
TX_INCOMING_FILE,
|
||||
TX_ACCEPT,
|
||||
TX_REJECT,
|
||||
TX_SEND_FILE_TO,
|
||||
TX_PAIR_PEER,
|
||||
TX_CODES_MATCH,
|
||||
TX_COMPARE_CODE,
|
||||
TX_PEER_PAIRED,
|
||||
TX_PEER_BLOCKED,
|
||||
TX_PEER_NOT_PAIRED,
|
||||
TX_FILE_OFFERED,
|
||||
TX_FILE_SENT,
|
||||
TX_RECEIVING,
|
||||
TX_SAVED_TO,
|
||||
TX_FILE_CHECK_FAILED,
|
||||
TX_NO_ACCOUNTS_YET,
|
||||
TX_LOCAL_PEERS,
|
||||
TX_NEARBY,
|
||||
TX_PAIRING_REQUIRED,
|
||||
TX_OFFERS,
|
||||
TX_WANTS_PAIR
|
||||
};
|
||||
|
||||
#endif /* _Dtchat_ui_text_h */
|
||||
@@ -0,0 +1,78 @@
|
||||
$ MCDE dtchat message catalog -- German. The source is programs/dtchat/dtchat.msg.
|
||||
$
|
||||
$set 1
|
||||
1 Chat
|
||||
2 Datei
|
||||
3 Neue Konversation
|
||||
4 Konto hinzufuegen
|
||||
5 Konten...
|
||||
6 Beenden
|
||||
7 Bearbeiten
|
||||
8 Ausschneiden
|
||||
9 Kopieren
|
||||
10 Einfuegen
|
||||
11 Transkript leeren
|
||||
12 Ansicht
|
||||
13 Offline anzeigen
|
||||
14 Zeitstempel
|
||||
15 Konversation
|
||||
16 Kanal betreten
|
||||
17 Datei senden
|
||||
18 Anrufen
|
||||
19 Hilfe
|
||||
20 Ueber dtchat
|
||||
21 Senden
|
||||
22 offline - keine Konten
|
||||
23 keine Konversation
|
||||
24 keine Konversation ausgewaehlt
|
||||
25 Transkript geleert
|
||||
26 gesendet
|
||||
27 gesendet (Demo)
|
||||
28 Demo: kein Konto verbunden
|
||||
29 zuerst einen Peer unter "In der Naehe" waehlen
|
||||
30 lokaler Modus ist nicht verbunden
|
||||
31 Peer ist weg
|
||||
32 Peerdetails - Doppelklick auf die Zeile fuer den Dialog
|
||||
33 Konten
|
||||
34 Speichern
|
||||
35 Hinzufuegen
|
||||
36 Loeschen
|
||||
37 Schliessen
|
||||
38 Abbrechen
|
||||
39 OK
|
||||
40 Nein
|
||||
41 Ja
|
||||
42 Schliessen
|
||||
43 Peer
|
||||
44 Name
|
||||
45 Identitaet
|
||||
46 Fingerabdruck
|
||||
47 Adresse
|
||||
48 Zustand
|
||||
49 Quelle
|
||||
50 Diesen Peer blockieren
|
||||
51 Anwenden
|
||||
52 manuell hinzugefuegt
|
||||
53 im Netzwerk gefunden
|
||||
54 (noch nicht bekannt)
|
||||
55 Eingehende Datei
|
||||
56 Annehmen
|
||||
57 Ablehnen
|
||||
58 Datei an %s senden
|
||||
59 Peer koppeln
|
||||
60 Codes stimmen ueberein
|
||||
61 Vergleichen Sie diesen Code auf beiden Rechnern:
|
||||
62 Peer gekoppelt
|
||||
63 Peer blockiert
|
||||
64 Peer ist nicht gekoppelt
|
||||
65 Datei angeboten
|
||||
66 Datei gesendet
|
||||
67 Datei wird empfangen
|
||||
68 gespeichert unter %s
|
||||
69 Dateipruefung fehlgeschlagen
|
||||
70 noch keine Konten
|
||||
71 Lokale Peers
|
||||
72 In der Naehe
|
||||
73 Kopplung erforderlich
|
||||
74 %s bietet %s (%s)
|
||||
75 %s moechte koppeln. Vergleichen Sie diesen Code auf beiden Rechnern:
|
||||
Reference in new issue
Block a user