X-Original-To: alpine-devel@lists.alpinelinux.org Delivered-To: alpine-devel@mail.alpinelinux.org Received: from mail-ww0-f44.google.com (mail-ww0-f44.google.com [74.125.82.44]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client certificate requested) by mail.alpinelinux.org (Postfix) with ESMTPS id 0F732ADA325 for ; Fri, 2 Sep 2011 15:20:14 +0000 (UTC) Received: by wwf5 with SMTP id 5so2522132wwf.25 for ; Fri, 02 Sep 2011 08:20:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=FoOreIz5ZzvN267ElzkcigT3JM8KzWjjuqrajAuQOYc=; b=TV5BNCSJXtATYzpTZn4RUC91Pd7Xkwmxz+8c6r3iJTztnfpbQqyEo65HlcvYMroAzl GK0hpVPuFPfpfufhzmY+lBS4qYSPdA7rHCZTMiHP0dYofXa/Oibxxq7f2Zyy2trP2yZw cDQvFxHXj/7JSlilijibLyZjnnaZLpZ39jv8Y= X-Mailinglist: alpine-devel Precedence: list List-Id: Alpine Development List-Unsubscribe: List-Post: List-Help: List-Subscribe: MIME-Version: 1.0 Received: by 10.227.200.14 with SMTP id eu14mr1135941wbb.78.1314976811827; Fri, 02 Sep 2011 08:20:11 -0700 (PDT) Received: by 10.227.29.18 with HTTP; Fri, 2 Sep 2011 08:20:11 -0700 (PDT) In-Reply-To: <20110902113245.700ba8e8@ncopa-desktop.nor.wtbts.net> References: <20110902111413.2398fdaf@ncopa-desktop.nor.wtbts.net> <20110902113245.700ba8e8@ncopa-desktop.nor.wtbts.net> Date: Fri, 2 Sep 2011 10:20:11 -0500 Message-ID: Subject: Re: [alpine-devel] [RFC] Language packs From: Cameron Banta To: Natanael Copa Cc: alpine-devel@lists.alpinelinux.org Content-Type: multipart/alternative; boundary=00151750e9f4c1c35f04abf6e523 --00151750e9f4c1c35f04abf6e523 Content-Type: text/plain; charset=ISO-8859-1 On Fri, Sep 2, 2011 at 04:32, Natanael Copa wrote: > On Fri, 2 Sep 2011 11:14:13 +0200 > Natanael Copa wrote: > > > 1. we group by ISO 639-1 (2 char codes). > > http://en.wikipedia.org/wiki/List_of_ISO_639-1_codes > > This means we get packages like: squid-lang-no (which might hold no.nb > > and no.nn for the 2 different norwegian languages). $pkgname-lang-en > > would hold both en.GB and en.US. *-lang-es would hold spanish for both > > spain and southamerica. I think this is the easiest way to do it, but > > this might cause number of packages double in our repos. (or triple? i > > don't know). > > I just ran a test for the packages that are built in my current dev > vserver: > > ~/aports/main $ ls -d */pkg/*/usr/share/locale/[a-z]* | sed > 's:\(/[a-z][a-z]\)[_ @^/].*:\1:' | sort | uniq | wc -l > 5943 > > Option #1 means that we will get atleast more than 5943 additional > packages in the repository if we split all that potensially could be > split. (125 different packages in the test above) > > What about creating language repos? So there would be main, testing, lang/en, lang/no, etc. Then if you want a language, you just add it to your /etc/apk/repositories. This would keep the extra packages from cluttering - at the cost of more complicated repos. -Cameron --00151750e9f4c1c35f04abf6e523 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable

On Fri, Sep 2, 2011 at 04:32, Natanael C= opa <ncopa@al= pinelinux.org> wrote:
On Fri, 2 Sep 2011 11:14:13 +0200
Natanael Copa <ncopa@alpinelinu= x.org> wrote:

> 1. we group by ISO 639-1 (2 char codes).
> http://en.wikipedia.org/wiki/List_of_ISO_639-1_codes
> This means we get packages like: squid-lang-no (which might hold no.nb=
> and no.nn for the 2 different norwegian languages). $pkgname-lang-en > would hold both en.GB and en.US. *-lang-es would hold spanish for both=
> spain and southamerica. I think this is the easiest way to do it, but<= br> > this might cause number of packages double in our repos. (or triple? i=
> don't know).

I just ran a test for the packages that are built in my current dev v= server:

~/aports/main $ ls -d */pkg/*/usr/share/locale/[a-z]* | sed 's:\(/[a-z]= [a-z]\)[_ @^/].*:\1:' | sort | uniq | wc -l
5943

Option #1 means that we will get atleast more than 5943 additional
packages in the repository if we split all that potensially could be
split. (125 different packages in the test above)


What about creating language repos? So there woul= d be main, testing, lang/en, lang/no, etc. Then if you want a language, you= just add it to your /etc/apk/repositories.

This would keep the extr= a packages from cluttering - at the cost of more complicated repos.

-Cameron

--00151750e9f4c1c35f04abf6e523-- --- Unsubscribe: alpine-devel+unsubscribe@lists.alpinelinux.org Help: alpine-devel+help@lists.alpinelinux.org ---