[prev in list] [next in list] [prev in thread] [next in thread]
List: squirrelmail-cvs
Subject: [SM-CVS] CVS: squirrelmail/include/options display.php,1.50,1.51
From: Tomas Kuliavas <tokul () users ! sourceforge ! net>
Date: 2005-10-31 17:30:12
Message-ID: E1EWdU4-00022o-2B () sc8-pr-cvs1 ! sourceforge ! net
[Download RAW message or body]
Update of /cvsroot/squirrelmail/squirrelmail/include/options
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv7639
Modified Files:
display.php
Log Message:
don't show language option when only two language options (default and English) are available
Index: display.php
===================================================================
RCS file: /cvsroot/squirrelmail/squirrelmail/include/options/display.php,v
retrieving revision 1.50
retrieving revision 1.51
diff -u -w -r1.50 -r1.51
--- display.php 18 Sep 2005 10:25:50 -0000 1.50
+++ display.php 31 Oct 2005 17:30:08 -0000 1.51
@@ -122,7 +122,9 @@
array_merge(array('' => _("Default")), $language_values);
$language = $squirrelmail_language;
- // TODO: maybe we can add count($language_values) check here
+ // add language selection only when more than 2 languages are available
+ // (default, English and some other)
+ if (count($language_values)>2) {
$optvals[SMOPT_GRP_GENERAL][] = array(
'name' => 'language',
'caption' => _("Language"),
@@ -131,6 +133,7 @@
'posvals' => $language_values,
'htmlencoded' => true
);
+ }
/* Set values for the "use javascript" option. */
$optvals[SMOPT_GRP_GENERAL][] = array(
-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc.
Get Certified Today * Register for a JBoss Training Course
Free Certification Exam for All Training Attendees Through End of 2005
Visit http://www.jboss.com/services/certification for more information
--
squirrelmail-cvs mailing list
List Address: squirrelmail-cvs@lists.sourceforge.net
List Info: https://lists.sourceforge.net/lists/listinfo/squirrelmail-cvs
http://squirrelmail.org/cvs
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic