ALT Linux Team development discussions
 help / color / mirror / Atom feed
From: Andrey Rahmatullin <wrar-alt@mail.ru>
To: devel@lists.altlinux.org
Subject: Re: [devel] Использование fprintf и cerr
Date: Fri, 11 Nov 2005 18:41:42 +0500
Message-ID: <20051111134142.GB5433@wrars-comp.wrarsdomain> (raw)
In-Reply-To: <20051111115408.GA18676@mycomp.mydomain>

[-- Attachment #1: Type: text/plain, Size: 1247 bytes --]

On Fri, Nov 11, 2005 at 05:54:08PM +0600, php-coder wrote:
>     Програма написана на С++. Хотел бы узнать, что могло подтолкнуть
>     разработчиков на использование двух разных ф-ций для вывода в stderr?
>     Почему бы не использовать только cerr, к примеру?
Хмм, а не из-за перевода ли? (см.ниже)

>     И стОит ли это исправлять?
Даже если это неправильно, это не стоит потраченного на исправление
времени. ИМХО.

>     Также интересно, узнать ваше мнение о том, стОит ли
>     выносить то, что не нуждается в переводе? К примеру, в данном случае
>     это '(%d)'. Т.е. лучше ли и правильнее ли если переписать это так:
> 
>     cerr << "FbTk::Transparent" << _("Failed to find format for screen")
>          << "(" << screen_num << ")" << endl;

Ни в коем случае. Почитай info gettext, "c-format Flag". %d может
находиться в любой части строки, а если их несколько - они еще и порядок
могут менять. И я не знаю, как такое писать на iostream.

-- 
WBR, wRAR (ALT Linux Team)
Powered by the ALT Linux fortune(8):

> Я надеюсь в эти выходные попасть в Москву. Хотелось бы зайти в
> офис ALT в гости - пускают? :) Есть ли шансы там кого-нибудь
> встретить в выходные?
Cудя по рассылке - да.
		-- homyakov in devel@

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

  parent reply	other threads:[~2005-11-11 13:41 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-11-11 11:54 php-coder
2005-11-11 13:02 ` Vital Khilko
2005-11-11 13:38 ` Stanislav Ievlev
2005-11-11 13:41 ` Andrey Rahmatullin [this message]
2005-11-11 15:00   ` Alexander Borovsky
2005-11-11 15:59     ` Andrey Rahmatullin
2005-11-11 18:38       ` Alexander Borovsky
2005-11-11 22:59       ` Alexey Rusakov

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=20051111134142.GB5433@wrars-comp.wrarsdomain \
    --to=wrar-alt@mail.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