Культурный офтопик
 help / color / mirror / Atom feed
From: Alexander <rope-walker@yandex.ru>
To: "культурный офтопик" <smoke-room@lists.altlinux.org>
Subject: Re: [room] Gettext
Date: Sun, 15 Jan 2006 15:48:55 +0200
Message-ID: <op.s3e9ztuo14emt7@alex-yu6szrxc7l> (raw)
In-Reply-To: <20060115125836.GA9699@mycomp.mydomain>

On Sun, 15 Jan 2006 14:58:36 +0200, php-coder <php-coder@ngs.ru> wrote:

>
> --- Alexander 2006-01-15 14:00:01 +0200
> +++ php-coder 2006-01-15 18:53:26 +0600
>
> A> Может кто-нибудь поможет с использованием gettext для локализыции
> A> программы?
>
>     Может быть, может быть...
>
> 	Я уже достаточно долгое время занимаюсь подобной задачей. Тут
> 	подробности: http://freesource.info/wiki/TZ/fluxbox/GettextSupport
>
> A> Не пойму что нужно где прописать (в исходном коде) чтобы все  
> заработало.
>
>     info gettext
>
> A> Уже есть готовые *.mo файлы с переводом, осталось только прописать  
> что-то в
> A> главной функции, как написано в хелпе по gettext. Но не написано  
> конкретно
> A> что.
>
>     Вы всё не правильно делаете ;))) Всё должны быть наоборот. Во-первых,
> 	откуда у вас mo-файлы? Их создает msgfmt и они двоичные :) Вы,
> 	наверное, имеете ввиде po-файлы ? Во-вторых, вы вручную что ли писали
> 	эти po-файлы?

Я наверное не написал, что юзаю С++, *.mo и *.po сделал сам, как и было  
написано:
gettext(string) ну или _(string), т.е с этим нет проблем, просто не могу  
понять что еще нужно чстобы все заработало


> 	Вообщем, посмотрите примеры:
>
> 	http://www.linuxshare.ru/docs/devel/tools/auto/node1.html
> 	http://www.linuxshare.ru/docs/devel/tools/auto/node24.html
> 	http://www.linuxshare.ru/docs/devel/tools/auto/node25.html
>
>



-- 
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/


  reply	other threads:[~2006-01-15 13:48 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 ` Терешков Евгений
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 [this message]
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=op.s3e9ztuo14emt7@alex-yu6szrxc7l \
    --to=rope-walker@yandex.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