Closed Bug 38583 Opened 26 years ago Closed 26 years ago

File type needs to get fixed [was: Items in GlobalOverlay.dtd are not localizable]

Categories

(SeaMonkey :: UI Design, defect, P1)

PowerPC
Mac System 8.6
defect

Tracking

(Not tracked)

VERIFIED DUPLICATE of bug 36396

People

(Reporter: momoi, Assigned: samir_bugzilla)

References

Details

(Whiteboard: [nsbeta2-])

** Observed with 5/8/2000 Mac build ** Items in the chrome:global:locale:globalOverlay.dtd are supposed to control the way menu language works on the Browser window, e.g. definition of fileMenu.label would change the way the menu item "File" would read depending on what language it is. But when you translate items in this file, it has no effect on the menu. "File", "Edit", etc. still all display as English words. I tried the same modifications on the 5/3/2000 Mac build and they work as intended and menu item names are changed. I tried the same modifications on 5/8/2000 Windows build, and the modifcations are reflected correctly on the menu item names. But on 5/8/2000 Mac build, this does not work. You can change a few items into another English word, e.g. "File" into "Filing" and you see that it has no effect at all. Thus, it seems that "globalOverlay.dtd" file is not used for these menu items for Mac. This needs to be corrected. We cannot have these files work differently on different platforms. These are cross-platform files. Additional Info: One thing that seems to have changed a lot lately is the file types under Mac distribution. Most .dtd files used to be Code Warrior type, "Netscape" used to be an pplication type file, etc., but not so in today's build.
This is definitely needed for nsbeta2 -- in fact a lot sooner. Nominating for nsbeta2.
Keywords: nsbeta2
QA contact to teruko.
QA Contact: sairuh → teruko
I tried 2 other files under the global:locale directory, brand.properties and helpMenu.dtd and changing items in these files had no effect while doing the same thing under the same day's Windows build (5/8/2000) reflected changes. There is something going on under the global directory.
OS: Windows 98 → Mac System 8.6
Is that true this is cause by the file type creator type problem that it didn't use the xul file from your application directory now ?
As Frank points out, this problem was caused by "file" type problem found in the particular buidl I used for 5/8/2000. There was a second build on 5/8/2000 (2000050820) in which at least the applicatio file type has been fixed for "Netscape" executable. Without this file type fix, it was bringing up 5/3/2000 build I had on the hard drive instead of the real 5/8 build. By the way, .dtd files and .properties files under the chrome are still "Type:???? Creator:MOSS". This is not easily editable and would not be a god idea for L10n purposes. JJ, please fix the file type to "TEXT".
Status: NEW → RESOLVED
Closed: 26 years ago
Resolution: --- → WORKSFORME
Re-opening to assing it to jj for the .dtd and .properties file type problem.
Status: RESOLVED → REOPENED
Resolution: WORKSFORME → ---
Sending it to jj@netscape.com.
Assignee: don → jj
Status: REOPENED → NEW
Summary: Items in GlobalOverlay.dtd are not localizable → File type needs to get fixed: [was: Items in GlobalOverlay.dtd are not localizable]
Putting on [nsbeta2+] radar for beta2 fix.
Whiteboard: [nsbeta2+]
cc'ing Samir. Sam, is it possible that XPinstall is messing with file types at extraction? i think we already discussed this, but here we have yet another case. I checked on the build machine, and all text files (including .dtd and .properties) have a type creator of "TEXT/CWIE" (CodeWarrior). "navigator.dtd" is an exeption because it is modified by Perl to add the build ID, and inherits MPW's default type/creator: "TEXT/MPS ". In any case, i don't see why some files would end up with "????/MOSS". I even extracted browser.xpi "manually" using zipit, and the file types & creators I mentioned were preserved. Any clue ?
Most interesting. However, the AppleSingle decoding code has not changed since it was first implemented. I don't see how this could have regressed. The only possibility is that the files were text only and so we didn't AppleSingle decode them. Sorry if I'm not being of much help.
Correction. My second last sentence should have stated more clearly: The only possibility is that the files were text only and so we didn't AppleSingle __encode__ them at build time.
Exactly: all text files have no resource fork (I zap it as part of the packaging process) so they don't get AppleSingle encoded. I was not suspecting the encoding process to be the culprit, but more likely the _extraction_ process in XPinstall. Kat, I don't know if this can help, but if you grab any netscape6-mac.sea.bin (self-extracting build), you should be able to verify that all text files have the correct file type/creator. I think this bug should go back to Samir.
No, this is how the XPInstall engine works. It is by design. If you don't AppleSingle decode a file it is considered raw binary/ASCII and will lose the Finder Info because every file's Finder Info is encoded in the AppleSingle format (that which XPInstall supports). Therefore, only AppleSingle encoded files will preserve there Finder Info. Preserving Finder Info in the .sea.bin files is done by Aladdin's own mechanism (MacBinary II's spec has this as I recall). Hence, it is not a fair analogy to compare what one would get from using StuffIt Expander to open the .sea.bin versus using pure AppleSingle encoding of raw text and then subsequent decoding. Preserving Finder Info in the XPInstall engine may be possible but will require two things: 1> feature enhancement to the XPInstall engine 2> extra encoding by ASEncoder for raw text files Both of these are feature requests. And we know how PDT will love features this late in the game. :o) Having said that, one workaround would be to add an empty resource to every file whose cvs resources you nuke. That way the files will be encoded by ASEncoder and the Finder Info will be preserved. My memory fails me so I don't remember why we decided to nuke the cvs resources. My suggestion may be a moot one given the context of the original reason to nuke cvs resources. JJ, please jog my memory. If you think this is feasible I would imagine it's a couple of lines of AppleScript to implement this in your build system. Let me know if this works.
You guessed right. Adding back a resource to text files in order to force the encoding (and consequently preserve the Finder info) would be the exact opposite effect from the process implemented a while ago, which removes _all_ resources from files that don't require any, this in order to save significant time in the decoding process... This is the chicken and the egg problem. I suppose file types & creators are assigned at install time based on the user's preferences (file exchange and/or internet config control panels). This is why text file might end up with "????/MOSS" on some mahcines, but not all. To follow your suggestion, instead of "adding" a resource to file that don't have any, we might as well "not remove" them and disable that feature. this way, we'll preserve all files type & creator, but will lose considerably in installation time. Back to square one. -- I don't know if this is clear enough, but I'll stop here for now. I'm using a laptop on battery and it's going to shut down in a few minutes. We can continue the discussion when I find my charger ;-)
Status: NEW → ASSIGNED
Right, jj. Now I remember. Thanks. OK, so adding resources is out the door. If this simply has to happen, we can discuss exposing the type and creator codes into XPInstall's js context through our addFile() and addDirectory() APIs. I have discussed at some length with dveditz and ssu and have filed a feature request: bug 39455. If this really must happen we will need PDT approval for this feature. So, those who feel strongly can lobby, nominate the bug etc. Note, however, that this may end up slowing us down at install time. If the performance hit from stat'ing individual files and setting Finder Info is too grave this solution (RFE 39455) may be unacceptable.
Depends on: 39455
Per today's PDT, moving from [nsbeta2+] to [nsbeta2-]
Summary: File type needs to get fixed: [was: Items in GlobalOverlay.dtd are not localizable] → File type needs to tems in GlobalOverlay.dtd are not localizable]get fixed: [was: Items in GlobalOverlay.dtd are not localizable]
Whiteboard: [nsbeta2+] → [nsbeta2-]
Samir, this one seems pretty close to 36396. I'll reassign it to you as well, so that you can decide if it's a duplicate or a dependency :-)
Assignee: jj → sgehani
Status: ASSIGNED → NEW
Summary: File type needs to tems in GlobalOverlay.dtd are not localizable]get fixed: [was: Items in GlobalOverlay.dtd are not localizable] → File type needs to get fixed [was: Items in GlobalOverlay.dtd are not localizable]
Status: NEW → ASSIGNED
*** This bug has been marked as a duplicate of 36396 ***
Status: ASSIGNED → RESOLVED
Closed: 26 years ago → 26 years ago
Priority: P3 → P1
Resolution: --- → DUPLICATE
Verified as dup.
Status: RESOLVED → VERIFIED
Product: Core → Mozilla Application Suite
You need to log in before you can comment on or make changes to this bug.