Thread: Re: [COMMITTERS] pgsql: Translation updates

Re: [COMMITTERS] pgsql: Translation updates

From
Alvaro Herrera
Date:
Alvaro Herrera wrote:
> Log Message:
> -----------
> Translation updates

I just now remembered that we have a new rule about including only >80%
files, so some of these files may need to be removed.  Sorry for the
mess :-(

-- 
Alvaro Herrera                                http://www.CommandPrompt.com/
The PostgreSQL Company - Command Prompt, Inc.


Re: [COMMITTERS] pgsql: Translation updates

From
Alvaro Herrera
Date:
Alvaro Herrera wrote:
> Alvaro Herrera wrote:
> > Log Message:
> > -----------
> > Translation updates
> 
> I just now remembered that we have a new rule about including only >80%
> files, so some of these files may need to be removed.  Sorry for the
> mess :-(

This is the list of files that would be removed in the backend if we
enforced this policy:

af.po: 91 (2%) remove
cs.po: 564 (18%) remove
de.po: 2808 (91%)
es.po: 3075 (99%)
fr.po: 3057 (99%)
hr.po: 1682 (54%) remove
hu.po: 477 (15%) remove
it.po: 471 (15%) remove
ja.po: 2832 (91%)
ko.po: 2179 (70%) remove
nb.po: 200 (6%) remove
nl.po: 409 (13%) remove
pl.po: 919 (29%) remove
pt_BR.po: 2829 (91%)
ro.po: 422 (13%) remove
ru.po: 1272 (41%) remove
sk.po: 2073 (67%) remove
sl.po: 374 (12%) remove
sv.po: 1856 (60%) remove
tr.po: 2571 (83%)
zh_CN.po: 1878 (60%) remove
zh_TW.po: 1128 (36%) remove

It is a long list of files to remove so I'm not sure about removing them
hastily for today's beta.  We can further discuss this before the 8.4
release.

These numbers come from this snippet:

for i in *po; do  all=$(LC_ALL=C msgfmt -c -v $i 2>&1)  translated=$(echo $all | sed -e 's/\([0-9]*\) translated
messages.*/\1/') percent=$(echo "$translated 100 * $total / p" | dc)  echo -n "$i: $translated ($percent%)"  if [
$percent-lt 80 ]; then     echo " remove"  else     echo ""  fi
 
done

$total has been previously set manually (to 3083).

-- 
Alvaro Herrera                                http://www.CommandPrompt.com/
The PostgreSQL Company - Command Prompt, Inc.


Re: [COMMITTERS] pgsql: Translation updates

From
Tom Lane
Date:
Alvaro Herrera <alvherre@commandprompt.com> writes:
>> I just now remembered that we have a new rule about including only >80%
>> files, so some of these files may need to be removed.  Sorry for the
>> mess :-(

> It is a long list of files to remove so I'm not sure about removing them
> hastily for today's beta.  We can further discuss this before the 8.4
> release.

I don't see any reason not to include partial translations in the beta
--- maybe it would help motivate some people to contribute to the
translations.  Whether the 80% rule is appropriate for full releases
is a different question.
        regards, tom lane