RE: [PHP] software localization with PHP
Check http://stphp.sourceforge.net Maciek -Original Message- From: Tao [mailto:[EMAIL PROTECTED]] Sent: Wednesday, March 14, 2001 8:14 PM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: [PHP] software localization with PHP Kevin, Thanks for the reply. This will not solve my problem. The problem is, for some languages the sentence structure may be different. For example, the sentence may need to be, $greeting = "$first_name, welcome!" as opposed to, $greeting = "Welcome, $first_name!" Or, it can come in a different form, like, $greeting = "Good morning, $first_name." These specificity need to be in the language file, not the scripts. Tao Leavell Digital Design wrote: You can use constants: in your language file define("HELLO", OLA); in your script which includes the language file you can write $greeting = HELLO . " $first_name"; print $greeting; Kevin Leavell [EMAIL PROTECTED] P 406.829.8989 C 406.240.4595 --- -Original Message- --- From: Tao [mailto:[EMAIL PROTECTED]] --- Sent: Tuesday, March 13, 2001 9:50 PM --- To: [EMAIL PROTECTED] --- Subject: [PHP] software localization with PHP --- --- --- Hi all, --- --- I have a question about localizing PHP scripts. I understand --- that for basic --- localization one can have a "strings" file for each language, --- which contains --- string variables and values such as: --- ?php --- $title = "Welcome!"; --- $error = "An error occurred."; --- ? --- --- Then, in the scripts just "include" the language file at the --- beginning and --- simply call the strings by their variable names. The issue I --- have is when --- embedding variables within these strings. Suppose I need to --- call the user --- by his/her first name, in the strings file I would have a variable like --- this: --- $greeting = "Welcome! $first_name"; --- --- The problem is, the strings file is loaded at the beginning of --- the script --- before $first_name was set, so the $greeting string will come out as --- "Welcome! ", with $first_name being an empty string. Even if --- I loaded the --- strings file after the $first_name variable is set, the problem still --- remains - when $first_name variable is changed, the strings --- file has to be --- reloaded. --- --- What is the best way of dealing with this problem? Is there a --- place to find --- "best practices" on localizing PHP software? --- --- Tao --- --- --- --- -- --- PHP General Mailing List (http://www.php.net/) --- To unsubscribe, e-mail: [EMAIL PROTECTED] --- For additional commands, e-mail: [EMAIL PROTECTED] --- To contact the list administrators, e-mail: --- [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] ob_gzhandler and shtml files
Could anybody interested comment the following statement: Apache doesn't correctly serve .shtml files if ob_gzhandler is enabled (the output is distorted then). Not related, perhaps? This is my experience, though. The newest Apache, the newest PHP. Just want to hear something before I file a bug. Maciek -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] db forms creator?
try http://phpmyedit.sourceforge.net/ Maciek -Original Message- From: Jaxon [mailto:[EMAIL PROTECTED]] Sent: Monday, February 05, 2001 12:18 AM To: [EMAIL PROTECTED] Subject: [PHP] db forms creator? Hi, can anyone point me towards an easy way to generate forms to update a mysql database? I've seen some sites where I can specify a list of table fields and the datatype for each, and get an output of: 1. the sql to create the table 2. a php form that can be used to update the table problem is I can't find the site now :) has anyone else found this? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] Fetching Local Weather
try http://www.gimpster.com/php/phpweather/index.php it's not simple solution though... Maciek -Original Message- From: JB [mailto:[EMAIL PROTECTED]] Sent: Friday, February 09, 2001 10:50 PM To: [EMAIL PROTECTED] Subject: [PHP] Fetching Local Weather Hey Coders, I know there's a couple premade scripts to grab weather on hotscripts.com. I wanted to know if anyone has a simple method to fetch the day's local weather from something like yahoo. All I really need is the temperature, condition (rainy, sunny)and maybe windspeed. If I could include the icon for the condition that would be good too. Anyone have a simple solution for this that I can dump into my code? Thanks. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] PHP code beautifier?
Yes, I know it should be written correctly from the beginning. But, in case it isn't: what do you use to format ugly looking scripts? Maciek -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] building a language pack
try http://stphp.sourceforge.net Maciek -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 24, 2001 7:09 PM To: [EMAIL PROTECTED] Subject: [PHP] building a language pack I'm the author of an opensource php auctioning system and have recently been receving alot of emails concerning the availibility of different languages. I was wondering what the best way to build a sort of language pack would be (one file for french, one for english, one for german, etc). Something like replacing one file containing the language specs translations would translate the entire system. I'm just looking for recommendations before I start asking volunteers to translate the words. Thanks. ___ Send a cool gift with your E-Card http://www.bluemountain.com/giftcenter/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] disable_functions and httpd.conf
Is disable_functions supposed to work from httpd.conf? I tried the following: php_value disable_functions "phpinfo" php_value max_execution_time 300 The time is changed from 30 to 300 as expected, however phpinfo is _not_ disabled. I tried also php_value disable_functions phpinfo php_value disable_functions "phpinfo()" php_value disable_functions phpinfo() without effect... How to make it work? Maciek -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] disable_functions and httpd.conf
Sorry to answer myself, but here goes another question: php_admin_value disable_functions phpinfo() or php_admin_value disable_functions phpinfo change the value displayed by phpinfo() but... if I can see the result of phpinfo() it means it's not disabled... What goes on here? Maciek -Original Message- From: Maciek Uhlig [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 18, 2001 9:34 PM To: [EMAIL PROTECTED] Subject: [PHP] disable_functions and httpd.conf Is disable_functions supposed to work from httpd.conf? I tried the following: -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] template API for standard PHP
In Tobias Ratschiller Till Gerken book (Web Application Development) the authors mention at least two times about Andrei Zmievski plan to incorporate template API in standard PHP. I'd like to ask if the plan is in the works and if it will be implemented. Maciek -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] Another q, this time eregi_replace
check http://www.php.net/strip_tags -Original Message- From: James, Yz [mailto:[EMAIL PROTECTED]] Sent: Sunday, January 14, 2001 11:05 PM To: [EMAIL PROTECTED] Subject: [PHP] Another q, this time eregi_replace I'd like to strip out everything but the link name, so if someone inputs: a href="http://www.php.net"PHP!/a It replaces it with: PHP! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] PHP3 vs PHP4?
PHP4 is better than PHP3. Because it is newer. Bugs are fixed and new features are implemented on a daily basis. PHP3 is simpler, but /me personally prefer PHP4 because of output buffering feature. Yes, PHP4 offers these features. Undoubtedly. It allows you to produce many pages with a single script. :-) Maciek -Original Message- From: ncook [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 11, 2001 10:16 PM To: Php List Subject: [PHP] PHP3 vs PHP4? Which is better php3 or php4? Why? Are there pluses and minuses to each? Does php4 offer features that are useful for everyday web scripting? --- .:: Nathan Cook office: 208.343.3110 email: [EMAIL PROTECTED] pager: 208.387.9983 --- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] How to add a user of LDAP?
You might want to look at http://www.zend.com/codex.php?id=113single=1 Maciek -Original Message- From: Huang Wenhai [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 11, 2001 3:53 AM To: [EMAIL PROTECTED] Subject: [PHP] How to add a user of LDAP? I want to add a user of my Netscape Messaging server(ldap) with php,who can give me a example of such using,including userid,password,email and so on! Thanks a lot! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]