Closed
Bug 87622
Opened 23 years ago
Closed 23 years ago
Linux n6.1: embed.jar located outside language pack in browser.xpi
Categories
(Core :: Internationalization: Localization, defect)
Tracking
()
RESOLVED
FIXED
mozilla0.9.7
People
(Reporter: rsmyth, Assigned: adamlock)
References
Details
(Keywords: l12y)
Attachments
(1 file)
2.95 KB,
patch
|
blizzard
:
review+
dveditz
:
superreview+
|
Details | Diff | Splinter Review |
N6.1 PR1 for Linux embed.jar contains localisable text and locale information
and is located in browser.xpi.
This should be in the language pack.
Comment 3•23 years ago
|
||
Assigning to chak. All bare strings should be tokenized and placed under
en-US.jar. All bare urls should be tokenized and placed under US.jar.
Assignee: amasri → chak
Comment 4•23 years ago
|
||
mass change, switching qa contact from jonrubin to ruixu.
QA Contact: jonrubin → ruixu
Comment 5•23 years ago
|
||
Msanz - This one looks untouched for a while. Any ideas? Shpoudl this one be
nsbranch- for this round?
Comment 7•23 years ago
|
||
Agree with tao - embedding's not part of the browser client
Comment 8•23 years ago
|
||
Yes, we do care, because the public response to the client will help win our
embedding efforts.
So, let's see if we can help here. Why is this marked as nsbranch, if it has
nothing to do with the client??? Looks like L10N needs this to reduce the build
costs.
Propose we either minus this one for this round, or remove the nsbranch keyword.
Reporter | ||
Comment 9•23 years ago
|
||
The strings in embed.jar are mainly tooltips for the browser toolbar. There is
also locale specific information, (locale\en-US folder and contents.rdf) which
should not reside outside the language pack.
Comment 10•23 years ago
|
||
Right. This is not an Embedding bug, the file just happens to be called
embed.jar
The strings in this file do appear in the commercial product
Assignee | ||
Comment 11•23 years ago
|
||
Why is embed.jar in there at all? AFAIK there is no reason to install that file
in the NS6.1 or Mozilla browser distributions.
I should note that embed.jar is used in two ways. First there is
mozilla/embedding/browser/chrome dir that builds an embed.jar that does have
some en-US locale stuff. Then there is the embedding distribution build that
appends files specified by the mozilla/embedding/config/embed-jar.mn manifest
file. The embed-jar.mn is locale neutral but defaults to en-US. See:
http://lxr.mozilla.org/seamonkey/source/embedding/config/embed-jar.mn
Any line that says XXXX will be replaced by whatever locale is specified when
gen_mn.pl is executed. The default is en-US but it could be anything else if
necessary.
So is this an installation issue?
Comment 12•23 years ago
|
||
Marking nsbranch- as it was decided in the August bug triage that we wouldn't
have enough time in eMojo to fix this. Let's revisit for MachV.
Keywords: nsbranch-
Comment 13•23 years ago
|
||
removed keyword nsbranch since bug now has nsbranch-, per pdt mtg.
Keywords: nsbranch
Reporter | ||
Comment 14•23 years ago
|
||
The strings in embedding.dtd in embed.jar are duplicates of strings in
navigator.dtd (in the language pack), e.g. backButton.tooltip "Go back one page"
appears in both both dtds.
The problem is the Linux build uses the strings in embed.jar and not en-US.jar.
There doesn't appear to be any reason why these strings should be duplicated in
embed.jar. Surely the Linux build should point to the strings in navigator.dtd
in the language pack and embed.jar should be removed?
removing sscruton and adding laurasl
Assignee | ||
Comment 15•23 years ago
|
||
In theory, yes we could point our strings at Navigator's strings, but that adds
an undesirable dependency and pulls in a lot of strings we don't use. Embedding
is supposed to be a client of Gecko, not a client of Navigator.
I suggest the best course of action for now is to remove embed.jar from the .xpi
file and that localisers should ignore the chrome in mozilla/embedding. The
embedding chrome is just sample chrome anyway, meant as a reference for
embedders to write their own.
Comment 16•23 years ago
|
||
OK. Thanks Adam.
Since this has no functionality we should probably remove this from the US
Mozilla and Commercial build process for Mach V.
In the meantime Owen can you modify our L10n scripts to exclude this jar from
the localised Linux builds for eMojo.
Comment 17•23 years ago
|
||
->danielmc so it can be assigned to Owen per his comments above
[sorry, i do not know Owen's email address]
Assignee: chak → danielmc
Comment 18•23 years ago
|
||
IMHO, this is *NOT* a localisation bug, but a base bug which affects localisation.
Localisation builds should follow the same structure as Base(US) builds without
making any alterations except where there is a language specific
requirement(different translations etc.). Therefore I believe that this bug
sould be fixed in the US builds rather than in any L10n builds alone.
I can remove this jar file from our localisation builds, *BUT* I am reluctant to
do so since this would create an inconsistancy between the US build and any L10N
builds.
As far as I can tell from the comments up to this stage this issue has nothing
specific to do with l10n'ing the US product. This strings as mentioned should
be in a language pack. This should be done in the US product and then
localisation should follow the lead, by making the same change.
Comment 19•23 years ago
|
||
reassigning to rchen. Ray - please reassign it to the core team as appropriate.
cc. yxia
Assignee: danielmc → rchen
Comment 20•23 years ago
|
||
Right. This jar should not be in the non-embedded product. Strings in this jar
supersceed strings in the language pack (including en-US.jar).
Comment 21•23 years ago
|
||
Please clean up and eliminate embed.jar. embedding.dtd was created and editted
by locka@iol.ie. Don't know whether he is still working on Mozilla. Reassigned
to valeski to follow up.
Assignee: rchen → valeski
Comment 23•23 years ago
|
||
as Adam mentions embed.jar is presend in Mozilla as an example for other
embedding projects so maybe there is some merit in leaving it in Mozilla. There
is no good reason to keep it in the commercial product though.
Assignee | ||
Comment 24•23 years ago
|
||
Exactly embed.jar has a purpose as a sample file so I don't want to clean up or
delete it. I can remove it from the Unix packages if you like.
I could also rename it to embed-sample.jar which would make it more
obvious and also avoid some confusion with another embed.jar we produce for the
embedding build.
Assignee | ||
Comment 25•23 years ago
|
||
Comment 26•23 years ago
|
||
Daniel' suggestion is good. Can we remove it in the commercial build?
Assignee | ||
Comment 27•23 years ago
|
||
I've looked in ns/xpinstall and embed.jar is not mentioned at all. That means
this patch should cover both commercial and non-commercial versions.
I don't believe there is a need for embed.jar (or embed-sample.jar as it is now)
to be in either version anyway. I'm CC'ing blizzard just in case there was a
legitimate reason he added it to the package list.
Comment 28•23 years ago
|
||
I think that I originally added it so that the little bits of XUL that I was
using for the gtk embedding widget would be in the browser package. I don't use
them anymore so I suspect that it can be removed.
However, I would look and make sure that you aren't going to break anything by
removing it.
Assignee | ||
Comment 29•23 years ago
|
||
The contents of embed-sample.jar are this:
content/embed/contents.rdf
content/embed/mini-nav.js
content/embed/mini-nav.xul
content/embed/simple-shell.xul
content/embed/back.gif
content/embed/forward.gif
content/embed/reload.gif
content/embed/stop.gif
locale/en-US/embed/embedding.dtd
locale/en-US/embed/contents.rdf
content/embed/simple-shell.css
content/embed/embedding.css
skin/classic/embed/contents.rdf
There is nothing outside of embedding/browser/chrome that references these
files. In fact, Unix is the only platform that this chrome even gets built for.
Comment 30•23 years ago
|
||
You know what? I'll bet we don't use any of those files at all. Can we just
delete embed.jar entirely?
Comment 31•23 years ago
|
||
I saw no ill effects on ripping it out of 6.1 (but I did not do extensive
testing...)
Assignee | ||
Comment 32•23 years ago
|
||
I would like to keep embed.jar renamed as embed-sample.jar but removing it from
the packaging. This is what the patch does.
It will become part of our "using chrome in embedding apps" story, serving as a
simple sample for embedders who want to write their own chrome. See bug 75538.
Assignee | ||
Comment 33•23 years ago
|
||
Can I have a review on this please?
I believe this patch is right and good though embed-sample.jar will probably
change further or disappear as our embedding SDK story takes shape.
Comment 34•23 years ago
|
||
Comment on attachment 56903 [details] [diff] [review]
Patch removes embed.jar from packages and renames embed.jar to embed-sample.jar. Reviews please
sr/r=blizzard
Attachment #56903 -
Flags: review+
Comment 35•23 years ago
|
||
Comment on attachment 56903 [details] [diff] [review]
Patch removes embed.jar from packages and renames embed.jar to embed-sample.jar. Reviews please
sr=dveditz
Attachment #56903 -
Flags: superreview+
Assignee | ||
Comment 36•23 years ago
|
||
Fix is in.
Status: NEW → RESOLVED
Closed: 23 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla0.9.7
Comment 37•23 years ago
|
||
Verify fixed with build 2001-11-19 trunk on JA RH7.1.
You need to log in
before you can comment on or make changes to this bug.
Description
•