Closed Bug 293736 Opened 20 years ago Closed 20 years ago

Firefox l10n build script for MacOSX en-GB tries to move en.lproj to en.lproj and fails

Categories

(Firefox Build System :: General, defect)

PowerPC
macOS
defect
Not set
major

Tracking

(Not tracked)

RESOLVED FIXED
Firefox1.5

People

(Reporter: mamozrk, Unassigned)

References

()

Details

Attachments

(1 file, 2 obsolete files)

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.0; en-GB; rv:1.8b) Gecko/20050217
Build Identifier: n/a

See tinderbox url above.

The build script moves/renames the file "en.lproj" to [ab].lproj.
When it tries this on the en-GB build, ab == en and so the script
is trying to rename en.lproj to en.lproj.  (Thanks to MMx for describing this on
#l10n).

Reproducible: Always

Steps to Reproduce:
0. See tinderbox results of automated builds for Mac trunk Fx.
The makefile to blame is in /browser/locales, checking if Thunderbird l10n is
affected, too
Status: UNCONFIRMED → NEW
Ever confirmed: true
Does Thunderbird l10n also use /browser/locales/Makefile.in?
I can't find an equivalent to
http://lxr.mozilla.org/mozilla/source/browser/locales/Makefile.in#192 in /mail

Furthermore, the renaming scheme is not good. It always renames to ab.lproj,
even for locales that _need_ the region identifier, or did I misunderstand the code?
I would suggest using the code that is used for the app, in ab_CD form. (no
further extensions though, like dialects or things like "ja_JP_mac") Otherwise,
Languages like Chinese will break. 
Severity: normal → major
Target Milestone: --- → Firefox1.1
Version: unspecified → Trunk
The problem with using en_US.lproj / en_GB.lproj is that the mac does not
recognize them and fallback gracefully: "U.S. English" is not in the default
international list for English Mac OS X, while "English" is. I'm certainly
willing to try other naming schemes, but I tend to think that the en-GB build
ought to be using en.lproj, not en_GB.lproj.
Flags: blocking1.8b3+
yes, convinced. I dug a little deeper into the Apple docs and found this:
http://developer.apple.com/documentation/CoreFoundation/Conceptual/CFLocales/Articles/CFLocaleConcepts.html#//apple_ref/doc/uid/20002240-164446-BCIGEEJE

If I understand "locale hirarchies" right, it is save for us to only provide a
two/three letter code for the language ("For language designations, Mac OS X
supports both ISO 639-1 and ISO 639-2 conventions.") and no region at all. Mac
OS X should select the region according to user preferences then.
proposed patch to test whether we have $(AB) == en here - not trying to rename
en.lproj in that case.
I will run a build with that patch later to see if it works as expected.
Attachment #183482 - Flags: review?(gandalf)
Comment on attachment 183482 [details] [diff] [review]
proposed patch for /browser/locales/Makefile.in

-ifeq (en,$(AB))
-ifneq (en,$(AB))
Attachment #183482 - Flags: review?(gandalf) → review-
sorry, got a little confused there %-(
Attachment #183482 - Attachment is obsolete: true
Attachment #183483 - Flags: review?(gandalf)
Comment on attachment 183483 [details] [diff] [review]
updated patch, this time the right check

looks good
Attachment #183483 - Flags: superreview?
Attachment #183483 - Flags: review?(gandalf)
Attachment #183483 - Flags: review+
Comment on attachment 183483 [details] [diff] [review]
updated patch, this time the right check

umm, sorry for spam
Attachment #183483 - Flags: superreview?
I tested the patch and found out that the "ifneq ... endif" block that I
introduced should not be indented. Fixed that and now it works as expected.
Attachment #183483 - Attachment is obsolete: true
Attachment #183533 - Flags: review?(gandalf)
Attachment #183483 - Flags: review+
Attachment #183533 - Flags: review?(gandalf) → review+
Attachment #183533 - Flags: superreview?(benjamin)
Attachment #183533 - Flags: superreview?(benjamin) → superreview+
Attachment #183533 - Flags: approval-aviary1.1a1?
Comment on attachment 183533 [details] [diff] [review]
new patch, fixing bustage

a short explanation: 
This patch is needed to turn the en-GB Mac-tinderbox green (or anything but
red) - so it would be great if it could go in soon.
Comment on attachment 183533 [details] [diff] [review]
new patch, fixing bustage

a=shaver.
Attachment #183533 - Flags: approval-aviary1.1a1? → approval-aviary1.1a1+
Checked in on trunk.
Status: NEW → RESOLVED
Closed: 20 years ago
Resolution: --- → FIXED
Component: Build Config → General
Product: Firefox → Firefox Build System
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: