Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
Re: Switching main HTML files
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Switching main HTML files



I believe that Dashboard for every src-attribute (for example <script src="" />) searches the widget root folder first, and if the file isn't found there it goes into the locale folders according to the settings in Mac os.

You might want to try iframes, since those also have an src attribute. Make your index.html contain nothing but an iframe that points to main.html and then place a localized copy of main.html in each locale-folder that you require. For example:

/index.html (with <iframe src="" /> )
/en.lproj/main.html
/de.lproj/main.html
/fr.lproj/main.html

Not sure if it works (and localizing just the strings generally is a better solution) but it might be a quick (and dirty) fix for your problem.

/ Gustav

2007/12/19, Steve Madsen <email@hidden>:
On Dec 18, 2007, at 6:10 PM, Andrew Hedges wrote:
> One option would be to put the various versions of your HTML into
> strings in localized _javascript_ files, then use that as the basis
> for your different layouts.

I fear that would be a maintenance nightmare, but you're right, it
would work.

If I have to go the route of localized _javascript_ strings files, it
probably makes more sense to fully commit to Dashcode and duplicate
the main CSS file in each .lproj folder.  Adding new elements to the
layout presents problems, but Dashcode is smart enough to put
modifications in a locale in its CSS file, rather than the one at the
top level.

--
Steve Madsen <email@hidden>
Light Year Software, LLC  http://lightyearsoftware.com
ZingLists: Stay organized, and share lists online.   http://zinglists.com


_______________________________________________
Do not post admin requests to the list. They will be ignored.
Dashboard-dev mailing list      (

This email sent to email@hidden

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Dashboard-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >Switching main HTML files (From: Steve Madsen <email@hidden>)
 >Re: Switching main HTML files (From: Andrew Hedges <email@hidden>)
 >Re: Switching main HTML files (From: Steve Madsen <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.