Культурный офтопик
 help / color / mirror / Atom feed
From: evg@krastel.ru (Терешков Евгений)
To: "культурный офтопик" <smoke-room@lists.altlinux.org>
Subject: Re: [room] Gettext
Date: Sun, 15 Jan 2006 19:53:07 +0700
Message-ID: <m31wz9ps98.fsf@evg.krasnoyarsk.ru> (raw)
In-Reply-To: <op.s3e4ybj914emt7@alex-yu6szrxc7l> (rope-walker@yandex.ru's message of "Sun, 15 Jan 2006 14:00:01 +0200")

Alexander <rope-walker@yandex.ru> writes:

> Может кто-нибудь поможет с использованием gettext для локализыции
> программы?
> Не пойму что нужно где прописать (в исходном коде) чтобы все заработало.
> Уже есть готовые *.mo файлы с переводом, осталось только прописать что-то в
> главной функции, как написано в хелпе по gettext. Но не написано
> конкретно  что.

Зависит от. Например от язвка программирования.Чаще всего используют
функцию "_". Типа вместо "hello" пишут _("hello"). Рецепт для вашего
случая:

$apt-get install gettext-tools
$cd /usr/share/doc/gettext-*/examples
$ls
$cd <ваш язык>
$ls

Я скорее помочь не смогу, т.к. только несколько раз питоновые проги с
помощью gettext локализовывал. Но примеры, как помнится, там вменяемые.



  reply	other threads:[~2006-01-15 12:53 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-01-15 12:00 Alexander
2006-01-15 12:53 ` Терешков Евгений [this message]
2006-01-15 13:54   ` Andrey Rahmatullin
2006-01-15 15:41     ` Терешков Евгений
2006-01-15 12:58 ` php-coder
2006-01-15 13:48   ` Alexander
2006-01-15 14:30     ` php-coder
2006-01-15 14:32       ` Alexander

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=m31wz9ps98.fsf@evg.krasnoyarsk.ru \
    --to=evg@krastel.ru \
    --cc=smoke-room@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

Культурный офтопик

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/smoke-room/0 smoke-room/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 smoke-room smoke-room/ http://lore.altlinux.org/smoke-room \
		smoke-room@lists.altlinux.org smoke-room@lists.altlinux.ru smoke-room@lists.altlinux.com smoke-room@altlinux.ru smoke-room@altlinux.org smoke-room@altlinux.com
	public-inbox-index smoke-room

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.smoke-room


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git