[PATCH 7 of 7] debugignore: make messages translatable

Yuya Nishihara yuya at tcha.org
Sat Jun 4 00:06:09 EDT 2016


On Fri, 3 Jun 2016 11:09:26 -0400, timeless wrote:
> On Fri, Jun 3, 2016 at 10:03 AM, FUJIWARA Katsunori
> <foozy at lares.dti.ne.jp> wrote:
> >> Sounds good to me, maybe you know, except for "debuginstall".  
> >
> > because "debuginstall" is referred by some messages/documents for end
> > users, isn't it ?

Something like that. I heard "debuginstall" is a public command unlike the
other debug* commands.

> > AFAIK, there are some other references to debug* commands below. We
> > should except also these commands from target of bulk change,
> > shouldn't we ? (even though only debugcreatestreamclonebundle has
> > actual translatable messages in commands.py :-))
> >
> >   - "hg bundle" might show "use 'hg debugcreatestreamclonebundle'"
> >   - "hg unbundle" might show 'use "hg debugapplystreamclonebundle"'
> >   - "hg verify" might show 'run "hg debugrebuildfncache" to recover from corrupt fncache'  
> 
> So. I think the real question we should ask is "why don't we want
> debug messages translated?"
> 
> here are a couple of answers:
> 1. We want people sending English debugging to the list.
> 2. We don't want to waste the precious time of our localizers on
> things that most users won't see.
> 3. Debug apis aren't part of our stable contract.
> 
> For #1, it's easy enough for people to be told to run the command
> either w/ -T (if supported) or the env flag to get English output. (We
> could even add a flag for this if we find it too hard to get people to
> use the env var)
> For #2, it should be easy enough to tell localizers that they don't
> *have* to translate debug messages -- and if it isn't, I'm happy to
> write scripts to split debug stuff into a separate .pot or something
> to make it easier on them to decide what to prioritize.
> For #3, that's ok, but why should that impact our choice about
> translating the messages?

I meant #2. But given that it's unclear to say which is real debug command,
I don't think it would worth trying to get rid of _() from debug* commands.


More information about the Mercurial-devel mailing list