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'm not sure if this is the best way to do
what you're asking, but it's one way!
I am trying to localize a pre-Dashcode widget. Since it's pre-
Dashcode, all of the layout work was done in a more old school web
style, i.e. without absolute positioning.
I have tried using window.location to reload the widget's main HTML
when the language changes via a field on the back, but this breaks
almost everything. I've looked in the archives and I understand
that there is no way to programmatically restart a single widget, a
la command-R.
Normally, I can see that localizing is done by putting custom
resources in an .lproj folder. My problem is that since the layout
is done more based on HTML flow, putting a custom CSS in the lproj
isn't going to help in cases where the fields are rearranged for a
given localization. I really would like to be able to put a custom
main HTML file in the lproj, but this does not appear to work.
Is my best option to rebuild the UI of this widget in Dashcode, so
I get absolutely positioned elements, and then move the individual
CSS files into lproj folders and use the localized strings facilities?
--
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 (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden