Use localized start pages

Bug #66977 reported by Jonh Wendell
18
Affects Status Importance Assigned to Milestone
mozilla-firefox-locale-all (Ubuntu)
Fix Released
Medium
Martin Pitt

Bug Description

Firefox should use localized start pages, when installing any mozilla-firefox-locale-* package.

Investigating my package (mozilla-firefox-locale-pt-br), i figure out what must be changed.

The following steps i did in my machine with pt-br locale:

You need to edit locale/browser-region/region.properties file (inside pt-BR.jar) and add the following line at the end of it:

browser.startup.homepage=file:///usr/share/ubuntu-artwork/home/locales-ubuntu/index-pt_BR.html

The same can be done with all firefox locales.

This bug report was born from a discussion at bug 65223.

I hope this can be verified for edgy, once the people expect to see a "Welcome to Ubuntu" page in their languages.

Thanks.

Jonh Wendell (wendell)
Changed in mozilla-firefox-locale-all:
importance: Undecided → Medium
status: Unconfirmed → Confirmed
Revision history for this message
Matthew East (mdke) wrote :

Ian, any idea about this one?

Revision history for this message
Martin Pitt (pitti) wrote :

This worked for dapper, and in fact, it's just a small fix to the homepage adjustment script to make it work again:

--- mozilla-firefox-locale-all-2.0~rc3/debian/changelog
+++ mozilla-firefox-locale-all-2.0~rc3/debian/changelog
@@ -1,3 +1,11 @@
+mozilla-firefox-locale-all (2.0~rc3-2) edgy; urgency=low
+
+ * debian/adjust-homepage.pl: Append browser.startup.homepage if the XPI does
+ not have any home page setting at all (none of the current XPIs have).
+ Repairs correct localized start page. Closes: LP#66977
+
+ -- Martin Pitt <email address hidden> Fri, 20 Oct 2006 10:27:47 +0200
+
 mozilla-firefox-locale-all (2.0~rc3-1) edgy; urgency=low

   * Update XPIs for Firefox 2.0 RC3.
--- mozilla-firefox-locale-all-2.0~rc3/debian/adjust-homepage.pl
+++ mozilla-firefox-locale-all-2.0~rc3/debian/adjust-homepage.pl
@@ -28 +28,2 @@
-, $1.'='.$starturl ,xe;
+, $1.'='.$starturl ,xe or
+ print "$_\nbrowser.startup.homepage=$starturl\n";

Changed in mozilla-firefox-locale-all:
assignee: nobody → pitti
status: Confirmed → Fix Committed
Revision history for this message
Martin Pitt (pitti) wrote :

Explanation of the patch for RMs: the bit you see is the last part of a sed expression. The full code reads:

s,^ (
    homePageDefault |
    browser\.startup\.homepage |
    browser\.throbber\.url |
    startup\.homepage_override_url
    ) \= .*
, $1.'='.$starturl ,xe or
    print "$_\nbrowser.startup.homepage=$starturl\n";

Revision history for this message
Martin Pitt (pitti) wrote :

Fix me harder, it's a perl -pi script, and the previous patch messes it up.

Revision history for this message
Martin Pitt (pitti) wrote :

minimized delta, with this hack it works fine as well.

Revision history for this message
Martin Pitt (pitti) wrote :

 mozilla-firefox-locale-all (2.0~rc3-2) edgy; urgency=low
 .
   * debian/adjust-homepage.pl: Append browser.startup.homepage if the XPI does
     not have any home page setting at all (none of the current XPIs have).
     Closes: LP#66977

Changed in mozilla-firefox-locale-all:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.