LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 03-24-2011, 12:38 PM   #1
bonixavier
Member
 
Registered: Sep 2010
Distribution: Slackware
Posts: 320

Rep: Reputation: 69
Does anybody know the difference between Slack's Firefox and Mozilla's binary?


Firefox's Brazilian Portuguese Language Pack has not yet been ported to Firefox 4 so I got Mozilla's Firefox binary in my language, used Pat's Slackbuild for 13.1 and replaced Slack's Firefox with it. I tried compiling it localized from source using the Slackbuild in /source, but all I found to add to the configure options was a "--with-l10n-base=directory" option, which I made point to the pt-BR locale I'd downloaded from Mozilla, but it still compiled in en-US.

My question is: am I missing out on something like the cairo-tee option? If I am, has anyone had success in building a localized version of Firefox around here? How?
 
Old 03-24-2011, 02:31 PM   #2
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,297

Rep: Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322
Hello from Ireland.

Be aware that deep in the bowels of /etc, Slackware is set up as en_US. This might trick automagic things like configure scripts into thinking you are using en_US.

I ran into this over here (wanting en_IE). I forget where it is. grep in profile.d/ and /etc/rc.d. Sorry can't be more help.
 
1 members found this post helpful.
Old 03-24-2011, 03:12 PM   #3
Totoro-kun
Member
 
Registered: Nov 2010
Location: Kaunas, Lithuania
Distribution: Slackware
Posts: 234

Rep: Reputation: 125Reputation: 125
Like business_kid said, you probably need to set up your locale, for that you should run "locale -a" to see what locales are available, and then edit your "/etc/profile.d/lang.sh" and "/etc/profile.d/lang.csh" there are plenty explanations in these files, so you should be OK in there. I just do not remember how to apply those locales without system reboot

Anyways, after you have applied locale settings to your system, you can run Slackbuild for Firefox again, and that should result in localized version. At least i think so.

Last edited by Totoro-kun; 03-24-2011 at 03:15 PM.
 
1 members found this post helpful.
Old 03-24-2011, 08:49 PM   #4
bonixavier
Member
 
Registered: Sep 2010
Distribution: Slackware
Posts: 320

Original Poster
Rep: Reputation: 69
Thank you business_kid and Totoro-kun for your help. I had already set /etc/profile.d/lang.sh as pt_BR-UTF-8. I did the same to lang.csh. BTW, what's the difference between them? Is the latter for the c shell or am I way off here? My Slack was already localized, CUPS management page was in Portuguese as were all the X apps and bash understood well the alphabet. I'll try again now with lang.csh set as pt_BR as well.

If that doesn't work, does anyone have any suggestions? I'll post back tomorrow morning.
 
Old 04-07-2011, 02:56 PM   #5
bonixavier
Member
 
Registered: Sep 2010
Distribution: Slackware
Posts: 320

Original Poster
Rep: Reputation: 69
Success!!!

I was able to build Firefox in pt-BR this afternoon. I had a rough couple of weeks so I couldn't try it before. This is how I did it:

My locale was already set in /etc/profile.d/lang.sh. I don't use csh or tcsh, but I set my locale in lang.csh as well. That didn't work. Firefox was still built in English. Then I googled some more and saw that the language that gets built is not a configure option. (configure may have an option for that, but I couldn't find any references to that). What you have to do is two things:

1- Download the language source. What you can do by running
Code:
hg clone http://hg.mozilla.org/releases/l10n-mozilla-2.0/pt-BR/
replacing pt-BR with your language.

After that, you open Pat's Slackbuild and add the option
Code:
--with-l10n-base=/home \
Its full path was /home/pt-BR, but you have to use the directory above it or the compile will fail.

2- Find the line that says
Code:
cd mozilla-$MOZVERS || exit 1
and, after that, you add
Code:
echo "ac_add_options --enable-ui-locale=pt-BR" > .mozconfig
Evidently, replacing pt-BR with your language.

Then you run the script. I am now very proudly running Firefox in Brazilian Portuguese.
 
1 members found this post helpful.
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Difference between installing from source or binary proton666 Linux - Newbie 8 05-27-2013 12:40 AM
LXer: Mozilla Thunderbird to Find New Home as Mozilla Foundation Focuses on Mozilla Firefox LXer Syndicated Linux News 0 07-27-2007 09:16 AM
What´s the difference between konqueror, mozilla and firefox muzza Linux - Software 7 03-30-2005 05:21 AM
How I enabled Java plugin for Mozilla-firefox in Slack 10 rsamurti Slackware - Installation 1 08-07-2004 02:30 AM
mozilla firefox ping difference problem C++Boar Linux - Software 0 04-13-2004 05:58 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 05:59 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration