[LON-CAPA-cvs] cvs: loncom /interface loncommon.pm lonpreferences.pm

bisitz bisitz at source.lon-capa.org
Fri Jan 18 07:58:43 EST 2013


bisitz		Fri Jan 18 12:58:43 2013 EDT

  Modified files:              
    /loncom/interface	loncommon.pm lonpreferences.pm 
  Log:
  Internationalization: Added missing &mt() call
  
  
Index: loncom/interface/loncommon.pm
diff -u loncom/interface/loncommon.pm:1.1111 loncom/interface/loncommon.pm:1.1112
--- loncom/interface/loncommon.pm:1.1111	Tue Jan 15 17:37:45 2013
+++ loncom/interface/loncommon.pm	Fri Jan 18 12:58:42 2013
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # a pile of common routines
 #
-# $Id: loncommon.pm,v 1.1111 2013/01/15 17:37:45 raeburn Exp $
+# $Id: loncommon.pm,v 1.1112 2013/01/18 12:58:42 bisitz Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -993,7 +993,7 @@
     my ($name,$selected,$includeempty) = @_;
     my %langchoices;
     if ($includeempty) {
-        %langchoices = ('' => 'No language preference');
+        %langchoices = ('' => &mt('No language preference'));
     }
     foreach my $id (&languageids()) {
         my $code = &supportedlanguagecode($id);
Index: loncom/interface/lonpreferences.pm
diff -u loncom/interface/lonpreferences.pm:1.202 loncom/interface/lonpreferences.pm:1.203
--- loncom/interface/lonpreferences.pm:1.202	Fri Jan  4 00:23:31 2013
+++ loncom/interface/lonpreferences.pm	Fri Jan 18 12:58:42 2013
@@ -1,7 +1,7 @@
 # The LearningOnline Network
 # Preferences
 #
-# $Id: lonpreferences.pm,v 1.202 2013/01/04 00:23:31 raeburn Exp $
+# $Id: lonpreferences.pm,v 1.203 2013/01/18 12:58:42 bisitz Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -159,7 +159,7 @@
     my $language=$userenv{'languages'};
 
     my $pref=&mt('Preferred language');
-    my %langchoices=('' => 'No language preference');
+    my %langchoices=('' => &mt('No language preference'));
     foreach (&Apache::loncommon::languageids()) {
 	if (&Apache::loncommon::supportedlanguagecode($_)) {
 	    $langchoices{&Apache::loncommon::supportedlanguagecode($_)}




More information about the LON-CAPA-cvs mailing list