ALT Linux Sisyphus discussions
 help / color / mirror / Atom feed
From: Alexey Voinov <voins@altlinux.ru>
To: ALT Linux Sisyphus discussion list <sisyphus@altlinux.ru>
Subject: Re: [sisyphus] countable nouns
Date: Sat, 23 Jul 2005 19:33:11 +0400
Message-ID: <20050723153311.GA27418@altlinux.ru> (raw)
In-Reply-To: <20050722183810.GU24898@solemn.turbinal.org>

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

Alexey Tourbin wrote
> Как правильно (по-английски) считать существительные?
> 
> $ count()
> function> {
> function>         local n="$1"; shift
> function>         local noun="$1"; shift
> function>         local plural=
> function>         [ "$n" -gt 1 ] && plural=s
> function>         echo "$n $noun$plural"
> function> }
> $ count 1 package
> 1 package
> $ count 2 package
> 2 packages
> $ count 3 dependency
> 3 dependencys
> $
> 
> (Последнее неверно -- пишется dependencies.)
> Есть для этого какая-нибудь стандартная программа?
> 
> PS: робот! Робот хочет стать грамотным. :)
Возможно, что чтение

info '(gettext)Plural forms'

Поможет роботу.

-- 
Best Regards!
Alexey Voinov
	     
voins@voins.program.ru
voins@altlinux.ru


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

      parent reply	other threads:[~2005-07-23 15:33 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-07-22 18:38 Alexey Tourbin
2005-07-22 19:01 ` [sisyphus] " Sergey V Turchin
2005-07-22 21:48   ` Alexey Tourbin
2005-07-25  8:11     ` Mikhail Yakshin
2005-07-25 16:18       ` Alexey Tourbin
2005-07-26  9:53         ` Mikhail Yakshin
2005-07-26 14:38           ` [sisyphus] [JT] " Michael Shigorin
2005-07-22 20:37 ` [sisyphus] " Alexey Rusakov
2005-07-25 16:59   ` Ivan Adzhubey
2005-07-23 15:33 ` Alexey Voinov [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=20050723153311.GA27418@altlinux.ru \
    --to=voins@altlinux.ru \
    --cc=sisyphus@altlinux.ru \
    /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 Sisyphus discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/sisyphus/0 sisyphus/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 sisyphus sisyphus/ http://lore.altlinux.org/sisyphus \
		sisyphus@altlinux.ru sisyphus@altlinux.org sisyphus@lists.altlinux.org sisyphus@lists.altlinux.ru sisyphus@lists.altlinux.com sisyphus@linuxteam.iplabs.ru sisyphus@list.linux-os.ru
	public-inbox-index sisyphus

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


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