[prev in list] [next in list] [prev in thread] [next in thread]
List: squirrelmail-i18n
Subject: [SM-I18N] newuser_wiz 1.3 draft
From: jam () qv90 ! de
Date: 2006-01-06 12:08:30
Message-ID: 64656.84.177.17.194.1136549310.squirrel () qv90 ! dyndns ! org
[Download RAW message or body]
Hi,
I added international language support to newuser_wiz plugin (and a
german translation). Would be great if somebody takes care about
publishing it into production...
Append patch:
$ patch -p0 -d $sm/plugins < ./patch/newuser_wiz.diff
Live long and prosper
Jam
["newuser_wiz.diff" (application/octet-stream)]
diff -Naur /tmp/org/newuser_wiz-1.2/functions.php \
/usr/share/smtest/plugins/newuser_wiz/functions.php
--- newuser_wiz-1.2/functions.php 2005-07-07 19:58:19.000000000 +0200
+++ newuser_wiz/functions.php 2006-01-06 12:47:45.000000000 +0100
@@ -18,22 +18,25 @@
$full_name = getPref($data_dir, $username, 'full_name');
$email_address = getPref($data_dir, $username, 'email_address');
- if (! $full_name || \
!eregi("^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,3})$",$email_address)) \
{ + if (!eregi("^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,3})$",$email_address)) \
{ if ($compose_call) {
echo ">\n";
echo "</form>\n";
}
- echo "<center><img src=\"$org_logo\"></center>\n";
- echo "<center>Welcome to $org_title!</center><br>\n";
- echo "<center>Since it appears as though you're new to this system, please fill in \
the following information.</center><br>\n";
- echo "<form method=\"POST\" action=\"../plugins/newuser_wiz/wiz-submit.php\">\n";
- echo "<center>Full Name: <input name=\"new_full_name\" type=\"text\" size=\"50\" \
value=\"$full_name\"></center><br>\n";
- echo "<center>Email Address: <input name=\"new_email_address\" type=\"text\" \
size=\"50\" value=\"$email_address\"></center><br>\n";
-// echo "<center><a href=\"../plugins/change_pass/options.php\">Change your \
Password</a></center><br>\n";
- echo "<center><input type=\"submit\" value=\"Submit\"></center><br>\n";
- echo "</body></html>\n";
- exit;
+ bindtextdomain('newuser_wiz', SM_PATH . 'locale');
+ textdomain('newuser_wiz');
+ echo "<center><img src=\"$org_logo\"></center>\n";
+ echo "<center>" . _("Welcome to") . " $org_title!</center><br>\n";
+ echo "<center>" . _("Since it appears as though you're new to this system, please \
fill in the following information.") . "</center><br>\n"; + echo "<form \
method=\"POST\" action=\"../plugins/newuser_wiz/wiz-submit.php\">\n"; + echo \
"<center>" . _("Full Name:") . " <input name=\"new_full_name\" type=\"text\" \
size=\"50\" value=\"$full_name\"></center><br>\n"; + echo "<center>" . _("Email \
Address:") . " <input name=\"new_email_address\" type=\"text\" size=\"50\" \
value=\"$email_address\"></center><br>\n"; + echo "<center><a \
href=\"../plugins/change_passwd/options.php\">" . _("Change your Password") . \
"</a></center><br>\n"; + echo "<center><input type=\"submit\" value=\"" . \
_("Submit") . "\"></center><br>\n"; + echo "</body></html>\n";
+ bindtextdomain('squirrelmail', SM_PATH . 'locale');
+ textdomain('squirrelmail');
}
}
diff -Naur /tmp/org/newuser_wiz-1.2/README \
/usr/share/smtest/plugins/newuser_wiz/README
--- newuser_wiz-1.2/README 2005-07-07 20:05:10.000000000 +0200
+++ newuser_wiz/README 2006-01-06 12:56:00.461231681 +0100
@@ -3,6 +3,8 @@
modifications by David Minor <dave@dminor.com>
Angelo Bertolli <angelo.bertolli@gmail.com>
v1.2 (c) 2002-2005 (GNU GPL - see ../../COPYING)
+modifications by Florian Daeumling <jam@qv90.de>
+v1.3 (c) 2006 (GNU GPL - see ../../COPYING)
This plugin prompts new users to enter their full name and email address.
diff -Naur /tmp/org/newuser_wiz-1.2/setup.php \
/usr/share/smtest/plugins/newuser_wiz/setup.php
--- newuser_wiz-1.2/setup.php 2003-04-23 20:17:35.000000000 +0200
+++ newuser_wiz/setup.php 2006-01-06 12:56:30.997169853 +0100
@@ -55,6 +55,6 @@
function newuser_wiz_version() {
- return '1.1';
+ return '1.3';
}
diff -Naur /tmp/org/newuser_wiz-1.2/version \
/usr/share/smtest/plugins/newuser_wiz/version
--- newuser_wiz-1.2/version 2005-07-07 19:59:40.000000000 +0200
+++ newuser_wiz/version 2006-01-06 12:56:06.129292108 +0100
@@ -1,2 +1,2 @@
New User Wizard
-1.2
+1.3
["newuser_wiz.po" (application/octet-stream)]
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
--
squirrelmail-i18n mailing list
Posting guidelines: http://squirrelmail.org/wiki/MailingListPostingGuidelines
Information about translations:
http://www.squirrelmail.org/wiki/LanguageTranslation
List address: squirrelmail-i18n@lists.sourceforge.net
List archives: http://news.gmane.org/gmane.mail.squirrelmail.internationalization
List info (Subscribe/Unsubscribe/Change options):
https://lists.sourceforge.net/lists/listinfo/squirrelmail-i18n
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic