from the i-am-never-happy dept.
Great sofware but I would like a much more customizable Squishdot.
For example I wanted to make a multlingual version of Squishdot. My first need was to make a news Web Site in French. I started to look at the DTML code and check all the words and phrases that should had to be translated in French like "Posted by" which becomes "Posté par".
I soon realized how boring it was to do this. And as I also planned to make a spanish version of the site, I try to find another solution.
So instead of replacing each word or phrase that needed to be translated by its translation, I started to replace these words by a dtml var tag.
The idea is to put all these words in properties of an object, and according to the current language, choosen by the viewer or the desginer (if it is a unilingual site), the words would be displayed in the right language.
It's not always abvious to choose which phrase to replace. For example : in "from the <!--#var dept--> dept." we cannot replace "from the " by a tag because the order of the complete phrase in French is different (as I guess, in other languages to. The French phrase would be: "du dept. de <dtml-var dept>".
Maybe it could be nice to store all these phrases and words in some kind of objects in python. I'm not an experienced programmer but I feel better the object oriented programing in python than in DTML.
I tried also to change the look and feel of my Squishdot site, and began changing the various DTML code by including some "CLASS" attributes in various HTML tags in order to use Cascading Style Sheets. So the viewer could easily change the look and feel of his new Site.
As for the translation I'm not sure that just changing the DTML code is the good approach. Maybe we should use python or ZClasses.
The last degree of customization is a step beyond the previous. Each post should be treated as an object, not only the text itself but all it's elements (header, summary...). We could have also a Class "Collection of posts". I think that doing this way would make it easier to cutomize.
As I said, I'm not a guru in python or dtml programing but if someone would like to work with me on these ideas, I would greatly appreciate.
Please don't flame me for my english, it's not my native language... and feel free to write me in Spanish or French ;)
< | >
|"Any system that depends on reliability is unreliable." -- Nogg's Postulate|
|All trademarks and copyrights on this page are
owned by their respective companies.
Comments are owned by the Poster.
The Rest ©1999
Butch Landingin, ©2000-2002