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).
91 lines
1.4 KiB
C
91 lines
1.4 KiB
C
/*
|
|
* 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 */
|