From: "Денис Корявов" <dkoryavov@yandex.ru>
To: ALT Linux Team development discussions <devel@lists.altlinux.org>
Subject: Re: [devel] Плагин к Thunar отказывается использовать свою же локализацию [was: Очень интересный эффект перевода или работа gettext с plural forms]
Date: Fri, 2 Oct 2009 11:10:06 +0400
Message-ID: <9aef269c0910020010i204bbcb1k9d8af9ba79a87f4d@mail.gmail.com> (raw)
In-Reply-To: <20091001161928.GA8334@newmaster.mivlgu.local>
Работает. Огромное спасибо за помощь!
> Строка, которая портила локализацию thunar раньше:
>
> - textdomain (GETTEXT_PACKAGE);
>
> Функция textdomain() выбирает набор переводов глобально для всего
> процесса, поэтому её нельзя использовать в библиотеках - только в
> основном приложении. В библиотеках и плагинах вместо gettext() с
> предварительной глобальной установкой textdomain() следует
> использовать dgettext() с явным указанием domain.
>
> В данном случае можно, например, заменить #include <glib/gi18n.h> на
> собственный файл заголовков, в котором сделать
>
> #include <libintl.h>
>
> #define _(String) dgettext(GETTEXT_PACKAGE, String)
--
WBR, Denis Koryavov.
prev parent reply other threads:[~2009-10-02 7:10 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-10-01 13:29 Денис Корявов
2009-10-01 16:19 ` Sergey Vlasov
2009-10-02 7:10 ` Денис Корявов [this message]
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=9aef269c0910020010i204bbcb1k9d8af9ba79a87f4d@mail.gmail.com \
--to=dkoryavov@yandex.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