Re: [phpslash-users] bug in Mailinglist.class, localization etc.
Brought to you by:
joestewart,
nhruby
From: Joe S. <jo...@be...> - 2002-01-07 15:11:43
|
On Mon, Jan 07, 2002 at 09:38:19AM +0100, Mark Smeets wrote: > Hi, > > First let me thank you all for assisting me in my "comments won't show up" > problem. Yes, it was the "default pending" option which I had set to true. > > I got phpslash from CVS for better localization support (thanks Joe!) and > after playing with it for a few days, I have the following remarks: > > In Mailinglist.class at line 211 and somewhere before that, a function > psgetText() is called. This seems to be a typo, it should read pslgetText(). > The function is only called in strange situations which, ofcourse, I had to > encounter during my tests. > typo will be gone immediately. > There are references to pslgetText() in the class directory. For better > separation of business and presentation logic, shouldn't they be moved > outside the class directory? > Didn't follow here. > Attached you will find a file nl.php3, for dutch localization. Although I've > made this file, could you explain me how to activate it? It seems none of > the words are translated. I'm not particularly good at dutch (which is a > difficult language to write, btw) but I don't believe it contains any > errors. So go ahead and add it to CVS if you like. > Thank you. Place it alongside the other files in class/locale. If the client browser's language preference is Dutch, this is the language they will see. To change the default language for the site look in config.php3: $_PSL[language] = "nl"; // default language ( ISO format) > Furthermore, here in the Netherlands we say "7 januari" instead of "January > 7". Is there a way to configure this? > These lines in Story_base.class should control the date formats for stories. var $article_dateformat = "\"%W %M %d, %Y \@ %h:%i%p\""; // date for the article page var $index_dateformat = "\"%W %M %d %Y \@ %h:%i%p\""; // date for the index page var $admin_dateformat = "\"%d-%b-%Y %H:%i\""; // date for the admin page search.php3 has it's own format in the query. Block_render_cal also. > regards, > > Mark > <<nl.php3>> |