RE: phpslash in spanish...

"Luis M" <[email protected]> Fri, 05 Mar 2004 02:59:06 -0500
Newsgroups gmane.comp.cms.phpslash.user
Message-ID <[email protected]>
(forward a copy to -users since this information can help others)

>Pedro Mar Wrote:
>Luis, the good news is that I was able to change to site into spanish and 
>I'm translating the tpl files. Once, I'm done, I would like to contribute 
>them to the pshslash community, so people could save time and have a 
>spanish version of the site ready as soon as phpslash is installed. I have 
>also found a few translations errors in es.php, which I have corrected. 
>Please let me know what is the process to follow for submitting those file 
>to the phpslash community.
>

Nice, especially if these are the same skins without any additional HTML 
added, just translated. Pack that in a .tar.gz and send them to me.

>Now, I have a few questions:
>1. How can I put a table similar to the one that you have in your site on 
>your right hand side?

on the right-hand-side you can add blocks from the admin interface. blocks 
can have RSS, Cal, HTML, or customize types. Making new blocks is very 
simple, but, you might not have to since you can easily cook a .tpl file and 
pass that as an argument for a given block. I believe you can see the 
documentation for phpslash online at http://phpslash.sf.net but, you can get 
most good examples out of looking at the source itself. The only files that 
you are concern with are inside the "class" directory. Check the 
Block_render_*.class files.

>2. For some reason cobarde anonimo is displayed as cobarde an&oacute;nimo 
>on the home page next to enviado por. Have you seen this before?

Check that your slashHead.tpl file has the right encoding set. Though, it 
could be the case that the string & got escaped when put in the database and 
un-escaped when displayed back... My best suggestion would be to edit the 
es.php locale file and make sure that you use propper accented vowels 
instead of HTML equivalents like &aacute or the like. é.
Now, in my case (latinomixed.com) i have functions that parse the &aacute; 
stuff for the propper á when i'm sending plain text emails to subscribed 
users. I believe these functions got commited to the phpslash-dev repository 
(CVS), which is the one we used the most nowadays.

http://cvs.sourceforge.net/viewcvs.py/phpslash/phpslash-dev/

The functions should be in functions.inc or somewhere in the class directory 
(it skips my mind at this time). However, the easiest is to just make sure 
that the es.php file is encoded in the same format as the site uses for 
charset (iso whatever or UTF-8). Lately I use all my clients and text 
editors in UTF-8 and I believe the charset for the HTML files should also be 
in that charset, so, something to look at for the future...

>3. On the home page where the articles are listed, I get the following text 
>for every articule: Contributed by god on Wednesday March , 2004 12:30PM If 
>you notice, it does not tell you if it is march 15, 20, etc. Where can I 
>change the day format to reflect that?

That's weird, however, the string used for making up that date is in the 
"class" directory. Maybe the functions.inc file... or one of those tz_* 
files. I have no idea. However, make sure that you have the propper things 
setup in your config.ini.php file:
LC_TIME="en_US"
LC_MESSAGE="en" // or whatever you want

and under [timezone] make sure that your engine is on and those other 
variables are set correctly:

;;;
;; Timezone Options
[timezone]
;; Set this to something true if you want times to be calculated in a
;; different time zone.
engine = true
;;
;; Now you have to choose the implementation of time zones.  If you are
;; on a UNIX platform and can set environment variables, native is probably
;; the implemention for you.
native = true
;;
;; Otherwise, you can use the time zone classes which interface the
;; time zone database, if you have one.  Specify the directory here (good
;; to do even if you are using native time zones):
dir = "/usr/share/zoneinfo"
;; For MacOSX Users: some files are missing in the time zone database
;; installation.  Uncomment these lines (and correct the directory) to use
;; the PHPSlash-distributed copies.
; zone_file = "/home/username/phpslash-0.7/contrib/zone.tab"
; country_file = "/home/username/phpslash-0.7/contrib/iso3166.tab"
;;
;; If you can't do that either, you are stuck specifying time zones as
;; POSIX-compatible strings; see below.  In any case, you need to
;; specify the server's default time zone.  If you are using native
;; timezones and want the default to be the actual server's setting,
;; enter it this way (find the right path):
default = ":/etc/localtime";

Maybe somebody else has a better solution for this problem.

>4. Where are you hosting your site? I have not decided of a hosting place 
>yet. I would appreciate any information about it like monthly payments, 
>space, gb transfer, etc.
>

I have my own server. A slow uplink, but, it works perfectly so far. I guess 
you can try pair.com or any of those hosting sites that give you a bunch of 
things for X price a year.

>Thanks for all your help.

No problem

----)(-----
Luis Mondesi
System Administrator
LatinoMixed.com

"We think basically you watch television to turn your brain off, and you 
work on your computer when you want to turn your brain on" -- Steve Jobs in 
an interview for MacWorld Magazine 2004-Feb

No .doc: http://www.fsf.org/philosophy/no-word-attachments.es.html

_________________________________________________________________
MSN Search, le moteur de recherche qui pense comme vous ! 
http://search.msn.fr/worldwide.asp



-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click