From: "Шакиров Ленар" <shakirov@cg.ru>
To: ALT Linux Team development discussions <devel@lists.altlinux.org>
Subject: Re: [devel] Перевод нелокализованных элементов приложения. Помогите разобраться.
Date: Tue, 22 Sep 2009 14:31:58 +0400
Message-ID: <200909221431.58738.shakirov@cg.ru> (raw)
In-Reply-To: <9aef269c0909220318y1dd94830mecf2a8a17739342c@mail.gmail.com>
В сообщении от Tuesday 22 September 2009 14:18:53 Денис Корявов написал(а):
> Добрый день,
>
> В процессе доработки перевода текстового редактора medit, нашел
> несколько нелокализованных элементов.
> Это "Изменить->Параметры", пункты "Editor" и "Plugins". И в пункте
> "Plugins" заголовки таблицы "Enabled" и "Plugin".
>
> "Наблатыкавшись", что локализация работает если слово взять в скобки с
> подчеркиванием, пробую сделать то же самое
> и тут. Пробую изменить пункт "Plugins" - в файле
> medit/moo/mooedit/mooplugin.c изменяю "Plugins" на _("Plugins"):
>
> MooPrefsDialogPage *page;
> ...
> page = moo_prefs_dialog_page_new_from_xml (_("Plugins"),
> MOO_STOCK_PLUGINS, NULL, moopluginprefs_glade_xml, "page",
> MOO_PLUGIN_PREFS_ROOT); ...
> и пробую скомпилировать. Получаю следующую ошибку:
>
> ../moo/mooedit/libmooedit.a(libmooedit_a-mooplugin.o): In function
> `moo_plugin_attach_prefs':
> /home/dkoryavov/RPM/medit/moo/mooedit/mooplugin.c:1479: undefined
> reference to `_'
> collect2: ld returned 1 exit status
>
> то же самое происходит если пытаюсь локализовать столбец таблицы (в
> этом же файле):
> ....
> gtk_tree_view_insert_column_with_attributes (treeview, 1, _("Plugin"),
> cell, "text",
> COLUMN_PLUGIN_NAME, NULL);
> ...
>
> Т.к я не программирую на С, я понятия не имею в проблема. Есть ли в
> рассылке программисты на С, кто может подсказать в чем ошибка и как мне
> таки сделать вышеуказанные
> пункты локализованными?
День добрый!
В medit/moo/mooedit/mooplugin.c не хватает
#include "mooutils/mooi18n.h"
?
С уважением, инженер отдела ИИС ООО «Центр»
Шакиров Ленар Наилевич
shakirov@cg.ru
(843) 533-88-14
Российская Федерация
Казань, ул. Зинина, 3а
420029, а/я 81
http://www.cg.ru/
next prev parent reply other threads:[~2009-09-22 10:31 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-09-22 10:18 Денис Корявов
2009-09-22 10:31 ` Шакиров Ленар [this message]
2009-09-22 11:54 ` Денис Корявов
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200909221431.58738.shakirov@cg.ru \
--to=shakirov@cg.ru \
--cc=devel@lists.altlinux.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
ALT Linux Team development discussions
This inbox may be cloned and mirrored by anyone:
git clone --mirror http://lore.altlinux.org/devel/0 devel/git/0.git
# If you have public-inbox 1.1+ installed, you may
# initialize and index your mirror using the following commands:
public-inbox-init -V2 devel devel/ http://lore.altlinux.org/devel \
devel@altlinux.org devel@altlinux.ru devel@lists.altlinux.org devel@lists.altlinux.ru devel@linux.iplabs.ru mandrake-russian@linuxteam.iplabs.ru sisyphus@linuxteam.iplabs.ru
public-inbox-index devel
Example config snippet for mirrors.
Newsgroup available over NNTP:
nntp://lore.altlinux.org/org.altlinux.lists.devel
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git