madeon (madeon) wrote in changelog,
madeon
madeon
changelog

[livejournal] r20417: LJSUP-10089: months names stored as arra...

Committer: sbelyaev
LJSUP-10089: months names stored as array
U   trunk/htdocs/editjournal.bml
U   trunk/htdocs/update.bml
Modified: trunk/htdocs/editjournal.bml
===================================================================
--- trunk/htdocs/editjournal.bml	2011-10-24 11:05:47 UTC (rev 20416)
+++ trunk/htdocs/editjournal.bml	2011-10-24 11:20:04 UTC (rev 20417)
@@ -62,14 +62,11 @@
                             entryform.choose_date/);
     }
 
-    # append months names tranlation to Site.ml_text['entryform.choose_date']    
-    my $ml_months_texts;
+    # append months names tranlation to Site.ml_text['month.names.long']  
     my @ml_months = map { LJ::Lang::month_long_langcode($_) } (1 .. 12);
-    foreach my $month_ml_name (@ml_months) {
-        $ml_months_texts->{$month_ml_name} = LJ::Lang::ml($month_ml_name);
-    }
+    my @ml_months_texts = map { LJ::Lang::ml($_) } @ml_months;
 
-    $LJ::JSML{'entryform.choose_date'} = $ml_months_texts;
+    $LJ::JSML{'month.names.long'} = \@ml_months_texts;
 
     return LJ::bad_input("You must be authenticated as a person.")
         unless $remote->is_personal || $remote->is_identity;

Modified: trunk/htdocs/update.bml
===================================================================
--- trunk/htdocs/update.bml	2011-10-24 11:05:47 UTC (rev 20416)
+++ trunk/htdocs/update.bml	2011-10-24 11:20:04 UTC (rev 20417)
@@ -759,14 +759,11 @@
   
     LJ::need_string('entryform.close.confirm'); 
     
-    # append months names tranlation to Site.ml_text['entryform.choose_date']  
-    my $ml_months_texts;
+    # append months names tranlation to Site.ml_text['month.names.long']  
     my @ml_months = map { LJ::Lang::month_long_langcode($_) } (1 .. 12);
-    foreach my $month_ml_name (@ml_months) {
-        $ml_months_texts->{$month_ml_name} = LJ::Lang::ml($month_ml_name);
-    }
+    my @ml_months_texts = map { LJ::Lang::ml($_) } @ml_months;
 
-    $LJ::JSML{'entryform.choose_date'} = $ml_months_texts; 
+    $LJ::JSML{'month.names.long'} = \@ml_months_texts; 
 
     $ret .= qq^
     <script type="text/javascript">

Tags: bml, livejournal, madeon, sbelyaev
Subscribe
  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

  • 0 comments