#9428: Internationalize the Sage Notebook
-------------------------------------------------+--------------------------
   Reporter:  timdumol                           |       Owner:  jason, was
       Type:  enhancement                        |      Status:  needs_work
   Priority:  major                              |   Milestone:  sage-4.6  
  Component:  notebook                           |    Keywords:            
     Author:  Luiz Aquino, Dan Drake, Tim Dumol  |    Upstream:  N/A       
   Reviewer:                                     |      Merged:            
Work_issues:                                     |  
-------------------------------------------------+--------------------------

Comment(by LuizAquino):

 Hi Tim,

 It seems you updated the package. I tried to install it and I got some
 errors. To solve them, I changed the files:

 #sagenb/notebook/template.py, line 142

 From:
 {{{
 env.filters['_'] = lambda x: return x
 }}}
 To:
 {{{
 env.filters['_'] = lambda x: x
 }}}

 #sagenb/data/sage/js/localization.js, line 5

 There is a open comment tag "{#", but there isn't a close comment tag
 "#}". So, I typed "#}" in the line 7.

 I notice that you forgot to put the strings "Problem inserting new input
 cell before current input cell." and "Problem inserting new text cell
 before current input cell." in the files localization.js and translated-
 messages.js.

 After install, I notice that the date below the title of a worksheet (at
 the worksheet page) appears as "None". To solve it, I changed the file:

 #sagenb/notebook/worksheet.js

 line 4166: I commented this line.

 line 4168 (solve an 'exceptions.UnicodeEncodeError' in Czech and the text
 "None" below the title of a worksheet):

 From:
 {{{
 time.strftime(month+' %d, %Y %I:%M %p', time.localtime(float(t)))
 }}}
 To:
 {{{
 return month + time.strftime(' %d, %Y %I:%M %p', time.localtime(float(t)))
 }}}

 After all, it seems that the issues pointed in above comment 26 are
 solved! :)

 I updated the pt_BR localization files (translating the name of months)
 and the .pot file. Please add this to the next package:

 
http://sites.google.com/site/lcmaquino/sage/sagenb_pt_BR.tar.gz?attredirects=0&d=1

 https://sites.google.com/site/lcmaquino/sage/sagenb.pot?attredirects=0&d=1

 By the way, please remove the file "sagenb/notebook/conf_lcma.py" (as you
 did before).

 I think we're ready to ask for another localization files! What do you
 think?

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/9428#comment:28>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica, 
and MATLAB

-- 
You received this message because you are subscribed to the Google Groups 
"sage-trac" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/sage-trac?hl=en.

Reply via email to