Re: What should we do about the i18n repo?

2020-09-07 Thread FUJIWARA Katsunori

On Tue, 08 Sep 2020 04:24:18 +0900,
Augie Fackler wrote:
> 
> 
> 
> > On Sep 7, 2020, at 8:37 AM, David Demelier  wrote:
> > 
> > 
> >> On 7 Sep 2020, at 11:07, FUJIWARA Katsunori  wrote:
> >> 
> >> On Fri, 24 Apr 2020 09:36:14 +0900,
> >> Augie Fackler wrote:
> >>> 
> >>> [1  ]
> >>> [1.1  ]
> >>> We can do that, but I don’t think we even know who has access to i18n 
> >>> right now?
> >> 
> >> As far as I confirmed, almost all *.po files has not been changed for
> >> translation since 2015 or so. pt_BR.po and ja.po have not been changed
> >> for translation since 2018-05, too.
> >> 
> > 
> > I was searching the archive because I think I’ve already asked about 
> > translations into Mercurial. I think translations should be completely 
> > removed as we no longer have enough contributors who update all languages.
> > 
> > To be honest, I much prefer an application in English rather than partially 
> > translated.
> > 
> > Any opinions there?
> 
> Is there any easy way to figure out how many of the strings are translated? 
> It strikes me that the translations could be unchanging because our strings 
> are pretty stable, but it could also be that nobody cares. If it’s the latter 
> and the translations are incomplete I guess I’d sign off on a change to 
> remove them, but I don’t feel strongly as I’m a native English speaker so 
> it’s hard to judge what I’d want if I spoke something else.
> 

FYI: I checked statistics of translation for each languages by "msgfmt
--statistics" after msgmerge-ing with recent hg.pot.

There are 7926 translatable messages in Mercurial source tree on
stable branch head (d58a205d0672) at 2020-09-08.

== = = 
lang   translatedfuzzy untranslated
== = = 
da 1485 (18.7%)  1745 (22.0%)  4696
de 2576 (32.5%)  1813 (22.9%)  3537
el  205 ( 2.6%)   799 (10.1%)  6922
fr  257 ( 3.2%)   866 (10.9%)  6803
it 1378 (17.4%)  1810 (22.8%)  4738
ja 5257 (66.3%)  1319 (16.6%)  1350
pt_BR  6132 (77.4%)   946 (11.9%)   848
ro  502 ( 6.3%)   879 (11.1%)  6545
ru 3673 (46.3%)  2119 (26.7%)  2134
sv 1577 (19.9%)  1650 (20.8%)  4699
zh_CN   204 ( 2.6%)  1080 (13.6%)  6642
zh_TW   469 ( 5.9%)  1172 (14.8%)  6285
== = = 


Procedure to check statistics:

$ make update-pot
$ msgfmt --statistics i18n/hg.pot
$ for po in i18n/*.po; do msgmerge -o $po.x $po i18n/hg.pot; done
$ for po in i18n/*.po; do echo " $po"; msgfmt --statistic $po.x; done

# cleanup temporary files
$ rm i18n/*.po.x


> > -- 
> > David
> > 
> 
> ___
> Mercurial-devel mailing list
> Mercurial-devel@mercurial-scm.org
> https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel

-- 
--
[FUJIWARA Katsunori] fo...@lares.dti.ne.jp
___
Mercurial-devel mailing list
Mercurial-devel@mercurial-scm.org
https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel


D8999: git: fix index handling of removed files during commit (issue6398)

2020-09-07 Thread durin42 (Augie Fackler)
durin42 created this revision.
Herald added a reviewer: hg-reviewers.
Herald added a subscriber: mercurial-patches.

REVISION SUMMARY
  Other changes in this series also changed the behavior here in
  positive ways, but this was the final step that actually fixed things.

REPOSITORY
  rHG Mercurial

BRANCH
  default

REVISION DETAIL
  https://phab.mercurial-scm.org/D8999

AFFECTED FILES
  hgext/git/dirstate.py
  tests/test-git-interop.t

CHANGE DETAILS

diff --git a/tests/test-git-interop.t b/tests/test-git-interop.t
--- a/tests/test-git-interop.t
+++ b/tests/test-git-interop.t
@@ -270,3 +270,8 @@
   +++ b/beta   Mon Jan 01 00:00:11 2007 +
   @@ -0,0 +1,1 @@
   +beta
+
+
+Deleting files should also work (this was issue6398)
+  $ hg rm beta
+  $ hg ci -m 'remove beta'
diff --git a/hgext/git/dirstate.py b/hgext/git/dirstate.py
--- a/hgext/git/dirstate.py
+++ b/hgext/git/dirstate.py
@@ -301,8 +301,10 @@
 def drop(self, f):
 index = self.git.index
 index.read()
-index.remove(pycompat.fsdecode(f))
-index.write()
+fs = pycompat.fsdecode(f)
+if fs in index:
+index.remove(fs)
+index.write()
 
 def remove(self, f):
 index = self.git.index



To: durin42, #hg-reviewers
Cc: mercurial-patches, mercurial-devel
___
Mercurial-devel mailing list
Mercurial-devel@mercurial-scm.org
https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel


D8998: git: make dirstate actually support listclean parameter

2020-09-07 Thread durin42 (Augie Fackler)
durin42 created this revision.
Herald added a reviewer: hg-reviewers.
Herald added a subscriber: mercurial-patches.

REVISION SUMMARY
  As far as I can tell listignored and listunknown should already
  work. I'm vexed that there doesn't seem to be a way to get clean files
  out of the pygit2 status method, but this at least makes things work
  better.

REPOSITORY
  rHG Mercurial

BRANCH
  default

REVISION DETAIL
  https://phab.mercurial-scm.org/D8998

AFFECTED FILES
  hgext/git/dirstate.py

CHANGE DETAILS

diff --git a/hgext/git/dirstate.py b/hgext/git/dirstate.py
--- a/hgext/git/dirstate.py
+++ b/hgext/git/dirstate.py
@@ -129,6 +129,7 @@
 return False
 
 def status(self, match, subrepos, ignored, clean, unknown):
+listignored, listclean, listunknown = ignored, clean, unknown
 # TODO handling of clean files - can we get that from git.status()?
 modified, added, removed, deleted, unknown, ignored, clean = (
 [],
@@ -168,6 +169,20 @@
 b'unhandled case: status for %r is %r' % (path, status)
 )
 
+if listclean:
+observed = set(modified + added + removed + deleted + unknown + 
ignored)
+index = self.git.index
+index.read()
+for entry in index:
+path = pycompat.fsencode(entry.path)
+if not match(path):
+continue
+if path in observed:
+continue # already in some other set
+if path[-1] == b'/':
+continue # directory
+clean.append(path)
+
 # TODO are we really always sure of status here?
 return (
 False,



To: durin42, #hg-reviewers
Cc: mercurial-patches, mercurial-devel
___
Mercurial-devel mailing list
Mercurial-devel@mercurial-scm.org
https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel


D8994: localrepo: use functools.wraps() in unfilteredmethod decorator

2020-09-07 Thread durin42 (Augie Fackler)
durin42 created this revision.
Herald added a reviewer: hg-reviewers.
Herald added a subscriber: mercurial-patches.

REVISION SUMMARY
  This makes it easier to figure out what function you're holding on to
  when doing printf-style debugging.

REPOSITORY
  rHG Mercurial

BRANCH
  default

REVISION DETAIL
  https://phab.mercurial-scm.org/D8994

AFFECTED FILES
  mercurial/localrepo.py

CHANGE DETAILS

diff --git a/mercurial/localrepo.py b/mercurial/localrepo.py
--- a/mercurial/localrepo.py
+++ b/mercurial/localrepo.py
@@ -8,6 +8,7 @@
 from __future__ import absolute_import
 
 import errno
+import functools
 import os
 import random
 import sys
@@ -193,6 +194,7 @@
 def unfilteredmethod(orig):
 """decorate method that always need to be run on unfiltered version"""
 
+@functools.wraps(orig)
 def wrapper(repo, *args, **kwargs):
 return orig(repo.unfiltered(), *args, **kwargs)
 



To: durin42, #hg-reviewers
Cc: mercurial-patches, mercurial-devel
___
Mercurial-devel mailing list
Mercurial-devel@mercurial-scm.org
https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel


D8997: git: make dirstate status() respect matcher

2020-09-07 Thread durin42 (Augie Fackler)
durin42 created this revision.
Herald added a reviewer: hg-reviewers.
Herald added a subscriber: mercurial-patches.

REVISION SUMMARY
  As with other changes in this stack, we appear to have been getting
  lucky in the past. An upcoming change behaved _very_ oddly without
  this fix.

REPOSITORY
  rHG Mercurial

BRANCH
  default

REVISION DETAIL
  https://phab.mercurial-scm.org/D8997

AFFECTED FILES
  hgext/git/dirstate.py

CHANGE DETAILS

diff --git a/hgext/git/dirstate.py b/hgext/git/dirstate.py
--- a/hgext/git/dirstate.py
+++ b/hgext/git/dirstate.py
@@ -142,6 +142,8 @@
 gstatus = self.git.status()
 for path, status in gstatus.items():
 path = pycompat.fsencode(path)
+if not match(path):
+continue
 if status == pygit2.GIT_STATUS_IGNORED:
 if path.endswith(b'/'):
 continue



To: durin42, #hg-reviewers
Cc: mercurial-patches, mercurial-devel
___
Mercurial-devel mailing list
Mercurial-devel@mercurial-scm.org
https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel


D8996: git: fix up dirstate use of index

2020-09-07 Thread durin42 (Augie Fackler)
durin42 created this revision.
Herald added a reviewer: hg-reviewers.
Herald added a subscriber: mercurial-patches.

REVISION SUMMARY
  This was super-broken before, and somehow none of the existing
  attempts to use this code tripped on the defects here. Sigh.

REPOSITORY
  rHG Mercurial

BRANCH
  default

REVISION DETAIL
  https://phab.mercurial-scm.org/D8996

AFFECTED FILES
  hgext/git/dirstate.py

CHANGE DETAILS

diff --git a/hgext/git/dirstate.py b/hgext/git/dirstate.py
--- a/hgext/git/dirstate.py
+++ b/hgext/git/dirstate.py
@@ -276,13 +276,22 @@
 pass
 
 def add(self, f):
-self.git.index.add(pycompat.fsdecode(f))
+index = self.git.index
+index.read()
+index.add(pycompat.fsdecode(f))
+index.write()
 
 def drop(self, f):
-self.git.index.remove(pycompat.fsdecode(f))
+index = self.git.index
+index.read()
+index.remove(pycompat.fsdecode(f))
+index.write()
 
 def remove(self, f):
-self.git.index.remove(pycompat.fsdecode(f))
+index = self.git.index
+index.read()
+index.remove(pycompat.fsdecode(f))
+index.write()
 
 def copied(self, path):
 # TODO: track copies?



To: durin42, #hg-reviewers
Cc: mercurial-patches, mercurial-devel
___
Mercurial-devel mailing list
Mercurial-devel@mercurial-scm.org
https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel


D8995: git: correctly handle "nothing changed" commits

2020-09-07 Thread durin42 (Augie Fackler)
durin42 created this revision.
Herald added a reviewer: hg-reviewers.
Herald added a subscriber: mercurial-patches.

REVISION SUMMARY
  I guess localrepo.commit() actually returns an Optional[node], which
  is a bit of a surprise to me.

REPOSITORY
  rHG Mercurial

BRANCH
  default

REVISION DETAIL
  https://phab.mercurial-scm.org/D8995

AFFECTED FILES
  hgext/git/__init__.py

CHANGE DETAILS

diff --git a/hgext/git/__init__.py b/hgext/git/__init__.py
--- a/hgext/git/__init__.py
+++ b/hgext/git/__init__.py
@@ -297,6 +297,10 @@
 
 def commit(self, *args, **kwargs):
 ret = orig.commit(self, *args, **kwargs)
+if ret is None:
+# there was nothing to commit, so we should skip
+# the index fixup logic we'd otherwise do.
+return None
 tid = self.store.git[gitutil.togitnode(ret)].tree.id
 # DANGER! This will flush any writes staged to the
 # index in Git, but we're sidestepping the index in a



To: durin42, #hg-reviewers
Cc: mercurial-patches, mercurial-devel
___
Mercurial-devel mailing list
Mercurial-devel@mercurial-scm.org
https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel


D8993: git: actually copy treemanifest instances in .copy() (issue6398)

2020-09-07 Thread durin42 (Augie Fackler)
durin42 created this revision.
Herald added a reviewer: hg-reviewers.
Herald added a subscriber: mercurial-patches.

REVISION SUMMARY
  The implementation here is so simple I honestly have no idea why I
  didn't do it at the time. Hopefully there's not some nuance past-me
  forgot to write down.

REPOSITORY
  rHG Mercurial

BRANCH
  default

REVISION DETAIL
  https://phab.mercurial-scm.org/D8993

AFFECTED FILES
  hgext/git/manifest.py

CHANGE DETAILS

diff --git a/hgext/git/manifest.py b/hgext/git/manifest.py
--- a/hgext/git/manifest.py
+++ b/hgext/git/manifest.py
@@ -1,6 +1,7 @@
 from __future__ import absolute_import
 
 from mercurial import (
+error,
 match as matchmod,
 pathutil,
 pycompat,
@@ -217,7 +218,7 @@
 return b''
 
 def copy(self):
-pass
+return gittreemanifest(self._git_repo, self._tree, 
dict(self._pending_changes))
 
 def items(self):
 for f in self:



To: durin42, #hg-reviewers
Cc: mercurial-patches, mercurial-devel
___
Mercurial-devel mailing list
Mercurial-devel@mercurial-scm.org
https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel


D8992: git: restore basic functionality after b3040b6739ce

2020-09-07 Thread durin42 (Augie Fackler)
durin42 created this revision.
Herald added a reviewer: hg-reviewers.
Herald added a subscriber: mercurial-patches.

REVISION SUMMARY
  We don't yet have a formal interface for the changelog, but it's
  mostly specified. Sadly, b3040b6739ce 
 
added a semi-private pseudo-enum
  that we need to cope with, so it's probably high time that someone
  (me?) attempts to define that interface to prevent future backsliding.

REPOSITORY
  rHG Mercurial

BRANCH
  default

REVISION DETAIL
  https://phab.mercurial-scm.org/D8992

AFFECTED FILES
  hgext/git/gitlog.py

CHANGE DETAILS

diff --git a/hgext/git/gitlog.py b/hgext/git/gitlog.py
--- a/hgext/git/gitlog.py
+++ b/hgext/git/gitlog.py
@@ -96,6 +96,10 @@
 
 # TODO: an interface for the changelog type?
 class changelog(baselog):
+# TODO: this appears to be an enumerated type, and should probably
+# be part of the public changelog interface
+_copiesstorage = b'extra'
+
 def __contains__(self, rev):
 try:
 self.node(rev)



To: durin42, #hg-reviewers
Cc: mercurial-patches, mercurial-devel
___
Mercurial-devel mailing list
Mercurial-devel@mercurial-scm.org
https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel


D8991: git: convert tz offset to int (issue6359)

2020-09-07 Thread durin42 (Augie Fackler)
durin42 created this revision.
Herald added a reviewer: hg-reviewers.
Herald added a subscriber: mercurial-patches.

REPOSITORY
  rHG Mercurial

BRANCH
  default

REVISION DETAIL
  https://phab.mercurial-scm.org/D8991

AFFECTED FILES
  hgext/git/gitlog.py

CHANGE DETAILS

diff --git a/hgext/git/gitlog.py b/hgext/git/gitlog.py
--- a/hgext/git/gitlog.py
+++ b/hgext/git/gitlog.py
@@ -386,7 +386,7 @@
 encoding.unifromlocal(stringutil.person(user)),
 encoding.unifromlocal(stringutil.email(user)),
 timestamp,
--(tz // 60),
+-int(tz // 60),
 )
 oid = self.gitrepo.create_commit(
 None, sig, sig, desc, gitutil.togitnode(manifest), parents



To: durin42, #hg-reviewers
Cc: mercurial-patches, mercurial-devel
___
Mercurial-devel mailing list
Mercurial-devel@mercurial-scm.org
https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel


mercurial@45410: 12 new changesets

2020-09-07 Thread Mercurial Commits
12 new changesets in mercurial:

https://www.mercurial-scm.org/repo/hg/rev/e7c5735433ac
changeset:   45399:e7c5735433ac
parent:  45395:e666f601b3ea
user:Pulkit Goyal <7895pul...@gmail.com>
date:Sat Aug 29 14:28:34 2020 +0530
summary: extdiff: pass full paths of `dir1a` and `dir1b` to 
`_runperfilediff()`

https://www.mercurial-scm.org/repo/hg/rev/1bed1b00b18d
changeset:   45400:1bed1b00b18d
user:Pulkit Goyal <7895pul...@gmail.com>
date:Sat Aug 29 14:32:26 2020 +0530
summary: extdiff: remove dir2root and pass full path as dir2 in 
_runperfilediff()

https://www.mercurial-scm.org/repo/hg/rev/451e13cc6d85
changeset:   45401:451e13cc6d85
user:Pulkit Goyal <7895pul...@gmail.com>
date:Sat Aug 29 14:35:18 2020 +0530
summary: extdiff: move single file handling inside `not per-file` 
conditional

https://www.mercurial-scm.org/repo/hg/rev/684083d104f9
changeset:   45402:684083d104f9
user:Antoine Cezar 
date:Mon Aug 10 15:50:22 2020 +0200
summary: documentation: add `zstd` compression to the internal `revlogs` 
documentation

https://www.mercurial-scm.org/repo/hg/rev/6a0e7bf73bb2
changeset:   45403:6a0e7bf73bb2
user:Matt Harbison 
date:Tue Sep 01 22:28:41 2020 -0400
summary: registrar: fix a documentation typo

https://www.mercurial-scm.org/repo/hg/rev/c4a4a49589bf
changeset:   45404:c4a4a49589bf
user:Joerg Sonnenberger 
date:Tue Jul 21 22:41:45 2020 +0200
summary: storageutil: allow modern hash sizes for fileids

https://www.mercurial-scm.org/repo/hg/rev/601ec3faeb6b
changeset:   45405:601ec3faeb6b
user:Sushil khanchi 
date:Thu Aug 27 12:21:24 2020 +0530
summary: tests: remove a sub-test since we are done with it in 
test-run-tests.t

https://www.mercurial-scm.org/repo/hg/rev/fa1a5527f642
changeset:   45406:fa1a5527f642
user:Sushil khanchi 
date:Thu Aug 27 12:24:57 2020 +0530
summary: tests: add a --retest test to demonstrate a fix in next patch

https://www.mercurial-scm.org/repo/hg/rev/de9ec12ee53c
changeset:   45407:de9ec12ee53c
user:Sushil khanchi 
date:Sat Aug 22 16:31:34 2020 +0530
summary: run-tests: refactor filtering logic for --retest flag

https://www.mercurial-scm.org/repo/hg/rev/543e446204c6
changeset:   45408:543e446204c6
user:Sushil khanchi 
date:Wed Sep 02 23:09:45 2020 +0530
summary: run-tests: extract logic to get errpath in a utility func

https://www.mercurial-scm.org/repo/hg/rev/a28da102fd36
changeset:   45409:a28da102fd36
user:Pulkit Goyal <7895pul...@gmail.com>
date:Wed Sep 02 19:17:31 2020 +0530
summary: extdiff: reorder an if-else conditional

https://www.mercurial-scm.org/repo/hg/rev/2d08dcf8fd9e
changeset:   45410:2d08dcf8fd9e
bookmark:@
tag: tip
user:Pulkit Goyal <7895pul...@gmail.com>
date:Wed Sep 02 19:46:55 2020 +0530
summary: extdiff: refactor cmdline and gui calculation login in a separate 
fn

-- 
Repository URL: https://www.mercurial-scm.org/repo/hg
___
Mercurial-devel mailing list
Mercurial-devel@mercurial-scm.org
https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel


Re: What should we do about the i18n repo?

2020-09-07 Thread Augie Fackler


> On Sep 7, 2020, at 8:37 AM, David Demelier  wrote:
> 
> 
>> On 7 Sep 2020, at 11:07, FUJIWARA Katsunori  wrote:
>> 
>> On Fri, 24 Apr 2020 09:36:14 +0900,
>> Augie Fackler wrote:
>>> 
>>> [1  ]
>>> [1.1  ]
>>> We can do that, but I don’t think we even know who has access to i18n right 
>>> now?
>> 
>> As far as I confirmed, almost all *.po files has not been changed for
>> translation since 2015 or so. pt_BR.po and ja.po have not been changed
>> for translation since 2018-05, too.
>> 
> 
> I was searching the archive because I think I’ve already asked about 
> translations into Mercurial. I think translations should be completely 
> removed as we no longer have enough contributors who update all languages.
> 
> To be honest, I much prefer an application in English rather than partially 
> translated.
> 
> Any opinions there?

Is there any easy way to figure out how many of the strings are translated? It 
strikes me that the translations could be unchanging because our strings are 
pretty stable, but it could also be that nobody cares. If it’s the latter and 
the translations are incomplete I guess I’d sign off on a change to remove 
them, but I don’t feel strongly as I’m a native English speaker so it’s hard to 
judge what I’d want if I spoke something else.

> 
> -- 
> David
> 

___
Mercurial-devel mailing list
Mercurial-devel@mercurial-scm.org
https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel


Re: [PATCH 03 of 15] commitctx: extract copy information encoding into extra into commit.py

2020-09-07 Thread Augie Fackler


> On Jul 29, 2020, at 12:57 PM, Pierre-Yves David 
>  wrote:
> 
> # HG changeset patch
> # User Pierre-Yves David 
> # Date 1595682805 -7200
> #  Sat Jul 25 15:13:25 2020 +0200
> # Node ID 3e4e9837d03bd1345438e69ae154b72daa5cee6b
> # Parent  a926f7ac92a4024511389ea5c5d9a8e8eae065d4
> # EXP-Topic files-change
> # Available At https://foss.heptapod.net/octobus/mercurial-devel/
> #  hg pull https://foss.heptapod.net/octobus/mercurial-devel/ -r 
> 3e4e9837d03b
> commitctx: extract copy information encoding into extra into commit.py

[snip]

> --- a/mercurial/commit.py
> +++ b/mercurial/commit.py
> @@ -69,6 +69,20 @@ def commitctx(repo, ctx, error=False, or
> 
> extra = ctx.extra().copy()
> 
> +files = sorted(files)
> +if extra is not None:
> +for name in (
> +b'p1copies',
> +b'p2copies',
> +b'filesadded',
> +b'filesremoved',
> +):
> +extra.pop(name, None)
> +if repo.changelog._copiesstorage == b'extra':

This kind of abstraction-breaking needs to stop being a crutch in our codebase: 
this broke the git extension because it bypasses the revlog interface, and 
probably also broke the sql storage extension. I’ll see about mailing a 
workaround.

(I’m not very upset, but wanted to bring this up since it’s not the first time 
I’ve observed this kind of architectural backsliding in low-level core code in 
2020.)

> +extra = _extra_with_copies(
> +repo, extra, files, p1copies, p2copies, filesadded, 
> filesremoved
> +)
> +



___
Mercurial-devel mailing list
Mercurial-devel@mercurial-scm.org
https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel


Re: What should we do about the i18n repo?

2020-09-07 Thread David Demelier

> On 7 Sep 2020, at 11:07, FUJIWARA Katsunori  wrote:
> 
> On Fri, 24 Apr 2020 09:36:14 +0900,
> Augie Fackler wrote:
>> 
>> [1  ]
>> [1.1  ]
>> We can do that, but I don’t think we even know who has access to i18n right 
>> now?
> 
> As far as I confirmed, almost all *.po files has not been changed for
> translation since 2015 or so. pt_BR.po and ja.po have not been changed
> for translation since 2018-05, too.
> 

I was searching the archive because I think I’ve already asked about 
translations into Mercurial. I think translations should be completely removed 
as we no longer have enough contributors who update all languages.

To be honest, I much prefer an application in English rather than partially 
translated.

Any opinions there?

-- 
David

___
Mercurial-devel mailing list
Mercurial-devel@mercurial-scm.org
https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel


Re: What should we do about the i18n repo?

2020-09-07 Thread FUJIWARA Katsunori
On Fri, 24 Apr 2020 09:36:14 +0900,
Augie Fackler wrote:
> 
> [1  ]
> [1.1  ]
> We can do that, but I don’t think we even know who has access to i18n right 
> now?

As far as I confirmed, almost all *.po files has not been changed for
translation since 2015 or so. pt_BR.po and ja.po have not been changed
for translation since 2018-05, too.

Therefore, it seems reasonable to reset access permission for NEW
i18n-repo under www.mercurial-scm.org/repo/, IMHO. And how about the
process below ?

  0. admin creates NEW i18n-repo under www.mercurial-scm.org/repo/
 without any access permission for translation coordinators

  1. translators should post the request of permission for i18n-repo
 (with SSH public key?) to devel-ML, if they were previously
 translation coordinator

 (previous) translation coordinators for each languages are listed in
 
https://www.mercurial-scm.org/wiki/TranslatingMercurial#Existing_Translations

 It is reasonable to assume that they can work well for
 translation, even without trial.

 Then, they will work for translation with i18n-repo instead of
 https://bitbucket.org/mg/hg-i18n/, after permitted by admin.

  2. otherwise:

 2-1. translators should contact to the coordinator for
  corresponded language, if there is already permitted
  coordinator for that language

  Translations for each languages may be managed in
  per-language repositories other than i18n-repo.

 2-2. otherwise, translators should post translation changes
  directly to devel-ML (or Phabricator)

  After some (or the first?) importing, they will become the
  NEW coordinator for that language.

  If the OLD coordinator requests permission after election of
  the NEW one, make them coordinate themselves :-)


FYI, date and summary line of the last 5 commits for each *.po files,
which have "i18n-LANG:" summary line (to omit non translation
changes), are shown below.

 da
2015-09-17: i18n-da: include translation of DEPRECATED
2013-06-25: i18n-da: add missing format character and fix translation
2013-06-25: i18n-da: remove extra trailing newline and fix translation
2013-06-25: i18n-da: add missing newline
2013-06-25: i18n-da: remove extra trailing newline
 de
2014-05-07: i18n-de: translation improvement for gpg extension
2014-01-30: i18n-de: update many fuzzy entries and translate some simple 
ones
2014-01-29: i18n-de: update po file for showing the effect of changed 
posplit
2014-01-22: i18n-de: updated po file with 427d672c0e4e
2014-01-22: i18n-de: remove locations
 el
2013-06-29: i18n-el: add missing indention for literal block
2013-06-24: i18n-el: remove extra newline
2013-06-23: i18n-el: remove duplicate paragraphs
2010-06-19: i18n-el: split messages into paragraphs
2009-12-05: i18n-el: translate Mercurial's copyright info message
 fr
2015-09-17: i18n-fr: reject translation which is missing DEPRECATED
2013-06-25: i18n-fr: remove extra trailing newline
2013-06-25: i18n-fr: fix malformed literal blocks
2013-06-25: i18n-fr: remove extra empty line at end of msgtr
2013-06-25: i18n-fr: remove duplicate paragraphs
 it
2015-09-17: i18n-it: include translation of DEPRECATED
2013-07-25: i18n-it: do not translate rst syntax
2013-06-25: i18n-it: remove extra trailing newlines
2013-04-05: hg-i18n-it: minor fixes
2011-10-26: i18n-it: fixed wrong message
 ja
2018-05-04: i18n-ja: fix block indentation
2018-05-01: i18n-ja: synchronized with 32a75a8a5b0f
2017-05-01: i18n-ja: synchronized with 6e0368b6e0bb
2017-03-01: i18n-ja: synchronized with 7074589cf22a
2016-12-31: i18n-ja: synchronized with 5f33116cd787
 pt_BR
2018-05-04: i18n-pt_BR: synchronized with 32a75a8a5b0f
2018-01-31: i18n-pt_BR: synchronized with 373fb3f5922c
2017-11-21: i18n-pt_BR: synchronized with cabc840ffdee
2017-11-01: i18n-pt_BR: synchronized with cab34bda259e
2017-07-31: i18n-pt_BR: synchronized with 850d2ec2cf6a
 ro
2015-09-17: i18n-ro: use ()s instead of [] for DEPRECATED
2015-09-17: i18n-ro: include translation of DEPRECATED
2011-06-08: i18n-ro: synchronized with 3c7907dc95ca
2011-06-08: i18n-ro: outstanding changes
2010-08-26: i18n-ro: ongoing translation
 ru
2014-10-13: i18n-ru: synchronized with 6b4dc7968bf0
2014-08-09: i18n-ru: fix RST breakage spotted by test-gendoc
2014-08-09: i18n-ru: undo fix buildbot breakage
2014-08-04: i18n-ru: syncronized with 45a01832cad1
2014-08-04: i18n-ru: sync with ad56fc55cbc3 (fuzzies)
 sv
2015-09-17: i18n-sv: select a single definition of DEPRECATED
2013-06-25: i18n-sv: fix malformed literal block
2012-07-28: i18n-sv: continue translating mq extension
2012-07-28: i18n-sv: translated record extension
2012-07-28: i18n-sv: synchronized