Cass
|
| Posted: 12/27/2004, 11:21 PM |
|
Hi all,
Thought I would run this one by the forums before going to support... only had two days with codecharge, so I might be missing something.
So, I am wanting to have a site that needs to have things that I so far can only do with manual coding (the notepad version of the app!). What I need to is to have the language (like English or Spanish etc) selectable by each user to the website. This will mean that all screen output, text and error messages, etc. will then be sent to each individual user according to their taste. The same user-selectable settings would also be applied to a colur cascading-style-sheet theme. These things are not so difficult when controlling everything oneself with a manuallu-written app, but is this possible with CodeCharge Studio?
I cannot see an easy solution to the language thing. The stylesheet problem could be overcome by putting code in at the head of each page to load in a specific stylesheet based on a session variable holding the user's choice, with the stylesheet class names being the same in each of the linked sheets, but their values different.
But the language problem... hmmmm... Looks like CCS generates any messages at design time rather than run time. I would have to find all the output that CCS puts out to he screen, like its error messages etc, and make those things dynamic somehow (either with include files or database tables).
I tell you, I'm a fussy sort for sure. If only I could design my own web-design program. It would have the following one characteristic:-
My dream... The heart of this great system would be:- Everything, and I mean every parameter for every type of object that existed or was created, could be set to be from 'any' datasource (a literal, a database, a variable, form/qerystring, application, session, cookie, global, local variable, whatever). This could be so simple to implement. Anything that takes a value has a dropdown/ellipses... that allows the value to come from anything... Like, take a wizard that asks me to design my login form, it could have an advanced section that allows any prompts or error messages that go to the screen or dialogue boxes to e changed, either set as a literal (like 'Incorrect User Login', or a variable like 'session("myLoginErrVar")', or a db query, like 'sql("SELECT errorMsg FROM tableMsg WHERE fldMsg = 'msgLoginErr'). Or something simplere, the 'width' parameter for a TD html tag: why can't it be specifid as anything that can be generated on the server, any variable, any db field, anything at all? Dynamic, dynamic; dynamic everything, that's what we really need...
Anyway, I digress... sorry. Any thoughts on my problems above I'd much appreciate?
Many thanks in advance,
Cass.
|
|
|
 |
peterr
Posts: 5971
|
| Posted: 12/27/2004, 11:32 PM |
|
Quote :like CCS generates any messages at design time rather than run time.
Not exactly. All internationalized output is stored in C:\Program Files\CodeChargeStudio\Components\Translations\Site
However, it is true that CCS doesn't have yet all features that everyone may want, and internationalization is one of them. It will be offered in a future version of the product.
Currently there are some workarounds and I've seen users using various methods to achieve this, either by using different templates for each language, or using labels for displaying internationalized output.
Take a look at: http://forums.codecharge.com/posts.php?post_id=43159 http://forums.codecharge.com/posts.php?post_id=25701
_________________
Peter R.
YesSoftware Forums Moderator
For product support please visit http://support.yessoftware.com |
 |
 |
Cass
Posts: 26
|
| Posted: 12/28/2004, 5:26 AM |
|
Hi Peterr,
Thanks for the reply.
I did have a bit of a think about the problem of dynamic language, and I have an idea in the back of my silly head that might make this quite an easy thing to do. I need to try it this next day or so and will let you know my solution. Still getting familiar with CCS, but if my solution works the way I think, it should be quite elegant...
... famous last words 
By the way, I do think that CCS is in fact a very good piece of software, and my wish-list for the future is intended only as hints for the Yes team developers. I am still having a bit of a play with the current version of the software to see if I can start using it now for my current project instead of waiting for V3 to arrive...
Will get back to you soon. Thanks again,
Cass.
|
 |
 |
|