Isn't lang_map of securityguide effective?

Petr Kovar pkovar at redhat.com
Wed Oct 5 12:35:33 UTC 2011


Hi,

On Tue, 4 Oct 2011 21:15:57 -0400
"Eric H. Christensen" <sparks at fedoraproject.org> wrote:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> On Wed, Oct 05, 2011 at 04:47:12AM +0900, Tadashi Jokagi wrote:
> > Hi Eric,
> > 
> > i official publisher of Japanes team. i do the check about securityguide.
> > 
> > i used tx client. securityguide's lang_map (in .tx/config) is not
> > effective.it seems that the place probably described is bad.
> > 
> > Please describe "lang_map" below "host" directive.
> > It seems that then, it becomes expected action.
> > 
> > ============================================================
> > $ git diff .tx/config
> > diff --git a/.tx/config b/.tx/config
> > index 908f129..40b2c1a 100644
> > --- a/.tx/config
> > +++ b/.tx/config
> > @@ -1,6 +1,7 @@
> >  [main]
> > 
> >  host = https://www.transifex.net
> > +lang_map = aln:aln-AL, ar:ar-SA, as:as-IN, bal:bal-PK, bg:bg-BG,
> > bn:bn-BD, bn_IN:bn-IN, bs_BA:bs-BA, ca:ca-ES, cs:cs-CZ,
> > da:da-DK,de_CH:de-CH, de:de-DE, el:el-GR, en_GB:en-GB, es:es-ES,
> > fa:fa-IR, fi:fi-FI,fr:fr-FR, gu:gu-IN, he:he-IL, hi:hi-IN, hr:hr-H
> > 
> >  [fedora-security-guide.7_Zip]
> >  file_filter = <lang>/7_Zip.po
> > @@ -192,5 +193,3 @@ file_filter = <lang>/Yubikey.po
> >  source_file = pot/Yubikey.pot
> >  source_lang = en
> > 
> > -lang_map = aln:aln-AL, ar:ar-SA, as:as-IN, bal:bal-PK, bg:bg-BG,
> > bn:bn-BD, bn_IN:bn-IN, bs_BA:bs-BA, ca:ca-ES, cs:cs-CZ,
> > da:da-DK,de_CH:de-CH, de:de-DE, el:el-GR, en_GB:en-GB, es:es-ES,
> > fa:fa-IR, fi:fi-FI,fr:fr-FR, gu:gu-IN, he:he-IL, hi:hi-IN, hr:hr-H
> > -
> > ============================================================
> > 
> > * expect result
> > $ tx pull -l ja
> > Pulling new translations for resource
> > fedora-security-guide.Security_Introduction (source:
> > pot/Security_Introduction.pot)
> >  -> ja: ja-JP/Security_Introduction.po
> >         ~~~~~ (OK: ja-JP)
> > 
> > * actual result
> > $ tx pull -l ja
> > Pulling new translations for resource
> > fedora-security-guide.Security_Introduction (source:
> > pot/Security_Introduction.pot)
> >  -> ja: ja/Security_Introduction.po
> >         ~~ (NG: ja)
> > 
> > 
> > in the related talk, ja is unnecessary.
> > as for Japanese, ja-JP should just exist.
> > i perform the work relevant to this.
> 
> You certainly have been busy!  Please feel free to change the .tx/config file to anyway that will work for you (and commit the change).  I was having problems getting it to work properly so any help you can give is much appreciated!

The issue was that there were duplicated lang codes stored in both Tx.net
and Git repo for some languages, including Japanese. I've fixed the problem
so that the tx pull command should now work as expected.

Best,
Petr Kovar


More information about the trans mailing list