Author |
Message |
Topic: best way to build a multi-language site with smarty |
sagi
Replies: 210
Views: 1207343
|
Forum: Tips and Tricks Posted: Thu Mar 17, 2005 5:23 pm Subject: best way to build a multi-language site with smarty |
You can edit the file and fix the path to php in the first line, or you can just run "php ./tsmarty2c.php" instead. |
Topic: best way to build a multi-language site with smarty |
sagi
Replies: 210
Views: 1207343
|
Forum: Tips and Tricks Posted: Fri May 14, 2004 2:33 pm Subject: best way to build a multi-language site with smarty |
My problem is the generated code is different everytime i refresh the page.
I had this problem before. I solved it by restarting the apache server after I update the translations file.
I'm not ... |
Topic: Reference of Smarty in PEAR |
sagi
Replies: 9
Views: 18074
|
Forum: Smarty Development Posted: Fri May 07, 2004 9:38 pm Subject: Reference of Smarty in PEAR |
But then, it might be easier for newbies, who learn how to use PHP and want to use good practices like using a template engine to just run this simple 1-line installation command.
Again, I'm not sa ... |
Topic: Reference of Smarty in PEAR |
sagi
Replies: 9
Views: 18074
|
Forum: Smarty Development Posted: Fri May 07, 2004 8:54 pm Subject: Reference of Smarty in PEAR |
I believe extending PEAR is not a requirement for being a PEAR package anymore. There was lot of talk in pear-dev recently about loosening the rules for accepting new packages.
The nice thing about ... |
Topic: best way to build a multi-language site with smarty |
sagi
Replies: 210
Views: 1207343
|
Forum: Tips and Tricks Posted: Sat May 01, 2004 2:35 pm Subject: best way to build a multi-language site with smarty |
The Smarty Gettext project has been moved to SourceForge:
https://sourceforge.net/projects/smarty-gettext/
All further development will take place there. |
Topic: forms |
sagi
Replies: 10
Views: 17610
|
Forum: General Posted: Fri Apr 23, 2004 10:14 am Subject: forms |
Thanks, but I've recently started using QuickForm with smarty renderer and I'm quite satisfied with it.
It does both server and client side validation, very easy to use and it is possible to write ... |
Topic: secure_dir check bug |
sagi
Replies: 3
Views: 9280
|
Forum: Bugs Posted: Sun Apr 04, 2004 11:09 am Subject: secure_dir check bug |
I'm using Smarty with $security enabled
In core.is_secure.php:37 you use is_readable() to check if the directory is readable.
But the directory doesn't need to be readable to be secure - in many ... |
Topic: best way to build a multi-language site with smarty |
sagi
Replies: 210
Views: 1207343
|
Forum: Tips and Tricks Posted: Tue Mar 16, 2004 1:51 pm Subject: best way to build a multi-language site with smarty |
Personally I feel all variables should be translated in the PHP level.
The only other exception is |default like you say. Perhaps you could just use a regular {if}. It is also possible to add "assi ... |
Topic: best way to build a multi-language site with smarty |
sagi
Replies: 210
Views: 1207343
|
Forum: Tips and Tricks Posted: Mon Mar 01, 2004 12:24 pm Subject: best way to build a multi-language site with smarty |
Version 0.9 of smarty_gettext released
Changes:
* tsmarty2c.php:
- added support for directories (originally by Uros Gruber <uros.gruber@vizija.si>)
- fixed bug that prevented more tha ... |
Topic: best way to build a multi-language site with smarty |
sagi
Replies: 210
Views: 1207343
|
Forum: Tips and Tricks Posted: Fri Feb 27, 2004 4:18 pm Subject: best way to build a multi-language site with smarty |
Try changing the main regex (line 32) to:
preg_match_all("/{$ldq}\s*({$cmd})\s*( |
Topic: best way to build a multi-language site with smarty |
sagi
Replies: 210
Views: 1207343
|
Forum: Tips and Tricks Posted: Wed Feb 18, 2004 6:19 pm Subject: best way to build a multi-language site with smarty |
Here it is:
http://www.boom.org.il/smarty/gettext/smarty_gettext.zip
Includes a readme with basic information. |
Topic: best way to build a multi-language site with smarty |
sagi
Replies: 210
Views: 1207343
|
Forum: Tips and Tricks Posted: Wed Feb 18, 2004 2:34 pm Subject: best way to build a multi-language site with smarty |
Sorry guys, for some reason the forum software stopped notifying me on replies so I couldn't help.
I have a newer version of the script, I'll do my best to post it soon with basic doc.
Sagi |
Topic: forms |
sagi
Replies: 10
Views: 17610
|
Forum: General Posted: Wed Jan 14, 2004 1:06 pm Subject: forms |
Actually it is much easier than I thought.
I created a $errors array inside my class, and added PEAR_Errors to it like this:
$this->errors
(I could also add error codes there).
Then, I ... |
Topic: forms |
sagi
Replies: 10
Views: 17610
|
Forum: General Posted: Tue Jan 13, 2004 11:16 pm Subject: forms |
I thought about it and I decided to stick to normal html for the forms in the templates. I might use some class to make things easier in the PHP side, but I'd rather not use functions like {input} on ... |
Topic: forms |
sagi
Replies: 10
Views: 17610
|
Forum: General Posted: Mon Jan 12, 2004 6:33 pm Subject: forms |
Exactly, thats pretty much what I do right now, but without a general validation class.
One thing though, I personally think the errors text should be part of the code, and not the template. I want ... |
|