LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Where can I find localized source files for mozillla-firefox? (https://www.linuxquestions.org/questions/slackware-14/where-can-i-find-localized-source-files-for-mozillla-firefox-4175480634/)

Didier Spaier 10-13-2013 04:07 PM

Where can I find localized source files for mozillla-firefox?
 
I try to build a localized mozilla-firefox esr24 using Slackware64-current's slackbuild, but the script fails to fetch the localization with mercurial, as something has changed in repositories' layout.

I'm unable to find the new location of localized sources (in my case for fr).

Any clue?

Nh3xus 10-13-2013 04:41 PM

Hi Didier,

Here's the related xpi file for the French translation :

http://ftp.mozilla.org/pub/mozilla.o..._64/xpi/fr.xpi

This FTP server comes handy. :)

mancha 10-13-2013 04:44 PM

ici, peut-être?

--mancha

Didier Spaier 10-13-2013 06:18 PM

Quote:

Originally Posted by mancha (Post 5045067)
ici, peut-être?

--mancha

Oui, merci!

Now building, results expected tomorrow.

PS
Code:

bash-4.2# cat /tmp/result.txt
Le paquet Slackware /tmp/mozilla-firefox-24.0esr-x86_64-1_fr.txz a été créé.

;)

ruario 10-14-2013 03:42 AM

Quote:

Originally Posted by Didier Spaier (Post 5045087)
Now building, results expected tomorrow.

You could have saved yourself a lot of time by just repacking the French binary version that Mozilla provides and you would have got a faster (PGO) build as an added bonus:

Code:

$ wget www.panix.com/~ruari/latest-firefox
$ FFESR=Y FFLANG=fr bash latest-firefox

EDIT: If you don't want ESR, don't bother setting FFESR and you if want another language you could choose to set FFLANG to any one of the following: ach, af, ak, ar, as, ast, be, bg, bn-BD, bn-IN, br, bs, ca, cs, csb, cy, da, de, el, en-GB, en-US, en-ZA, eo, es-AR, es-CL, es-ES, es-MX, et, eu, fa, ff, fi, fr, fy-NL, ga-IE, gd, gl, gu-IN, he, hi-IN, hr, hu, hy-AM, id, is, it, ja, kk, km, kn, ko, ku, lg, lij, lt, lv, mai, mk, ml, mr, nb-NO, nl, nn-NO, nso, or, pa-IN, pl, pt-BR, pt-PT, rm, ro, ru, si, sk, sl, son, sq, sr, sv-SE, ta-LK, ta, te, th, tr, uk, vi, xpi, zh-CN, zh-TW, zu

Didier Spaier 10-14-2013 03:54 AM

Thanks for the tip and the script, Ruarí.

I slept while it was compiling but I could have saved some electrical energy ;)

ponce 10-14-2013 04:33 AM

when I sent to Pat the code to get the localization sources, esr releases weren't available as mercurial tags, so I choose to get the not-esr tags and the code was like this
Code:

  LOC_TAG="FIREFOX_$( echo $VERSION | sed 's|esr||' | tr \. _ )_RELEASE"
  rm -f $LOC_TAG.tar.bz2
  wget https://hg.mozilla.org/releases/l10n/mozilla-$MOZVERS/$MOZLOCALIZE/archive/$LOC_TAG.tar.bz2

now that they are available, just cutting off the interested sed should be enough
Code:

  LOC_TAG="FIREFOX_$( echo $VERSION | tr \. _ )_RELEASE"
  rm -f $LOC_TAG.tar.bz2
  wget https://hg.mozilla.org/releases/l10n/mozilla-$MOZVERS/$MOZLOCALIZE/archive/$LOC_TAG.tar.bz2

BTW, I spotted that Pat re-enabled PGO building for x86_64 (so, if you have built it with the latest sources on x86_64 you should still have a PGO build) ;)

ruario 10-14-2013 04:53 AM

Quote:

Originally Posted by ponce (Post 5045298)
BTW, I spotted that Pat re-enabled PGO building for x86_64 (so, if you have built it with the later sources on x86_64 you should still have a PGO build) ;)

Go to know! ;)

Didier Spaier 10-14-2013 05:08 AM

@ ponce: Yes, but still it seems that URL has changed. As suggested by mancha I used:
Code:

https://hg.mozilla.org/releases/l10n/mozilla-release/fr/archive/FIREFOX_24_0esr_RELEASE.tar.bz2
so instead of:
Code:

https://hg.mozilla.org/releases/l10n/mozilla-$MOZVERS/$MOZLOCALIZE/archive/$LOC_TAG.tar.bz2
I wrote:
Code:

https://hg.mozilla.org/releases/l10n/mozilla-release/$MOZLOCALIZE/archive/$LOC_TAG.tar.bz2

ponce 10-14-2013 05:10 AM

Quote:

Originally Posted by ponce (Post 5045298)
now that they are available, just cutting off the interested sed should be enough
Code:

  LOC_TAG="FIREFOX_$( echo $VERSION | tr \. _ )_RELEASE"
  rm -f $LOC_TAG.tar.bz2
  wget https://hg.mozilla.org/releases/l10n/mozilla-$MOZVERS/$MOZLOCALIZE/archive/$LOC_TAG.tar.bz2


I talked too early: the block has to be changed like this
Code:

  LOC_TAG="FIREFOX_$( echo $VERSION | tr \. _ )_RELEASE"
  rm -f $LOC_TAG.tar.bz2
  if echo $MOZVERS | grep -q esr ; then LOC_VERS=release ; else LOC_VERS=$MOZVERS ; fi
  wget https://hg.mozilla.org/releases/l10n/mozilla-$LOC_VERS/$MOZLOCALIZE/archive/$LOC_TAG.tar.bz2

EDIT: yep, sorry Didier

ponce 10-14-2013 11:11 AM

I can confirm that with the above mod works fine :)

volkerdi 10-14-2013 03:04 PM

Thanks ponce!


All times are GMT -5. The time now is 10:22 PM.