[Bugs] #3607 InfoSlicer UNSP: Override file message is not totally translated

Sugar Labs Bugs bugtracker-noreply at sugarlabs.org
Tue May 15 20:34:07 EDT 2012


#3607: Override file message is not totally translated
------------------------------------------+---------------------------------
    Reporter:  humitos                    |          Owner:  humitos                    
        Type:  defect                     |         Status:  new                        
    Priority:  Unspecified by Maintainer  |      Milestone:  Unspecified by Release Team
   Component:  InfoSlicer                 |        Version:  Unspecified                
    Severity:  Unspecified                |       Keywords:                             
Distribution:  Unspecified                |   Status_field:  Unconfirmed                
------------------------------------------+---------------------------------

Comment(by humitos):

 Did you test your patch?

 When I run "genpot" with your patch applied I get this error:
 {{{
 xol.py:62: warning: internationalized messages should not contain the `\r'
 escape sequence
 }}}

 I go to the {{{.pot}}} file and effectively I see the same behavior that
 this ticket mentions.

 The solution is re-encode the file as I did. We have to change the end-of-
 line style:
  * https://en.wikipedia.org/wiki/Newline

  * This is wrong for us (DOS format)
 {{{
 $ file xol.py
 xol.py: Python script, ASCII text executable, with CRLF line terminators
 }}}

  * This is right
 {{{
 $ file xol.py
 xol.py: Python script, ASCII text executable
 }}}

 How to change this:
 {{{
 vim xol.py
 :set fileformat=unix
 :wq
 }}}

 That command will modify '''all''' the lines of the file to change the
 end-of-line.

 ''We don't want to deal with DOS end-of-line style, it's from 70's'' :)

-- 
Ticket URL: <http://bugs.sugarlabs.org/ticket/3607#comment:5>
Sugar Labs <http://sugarlabs.org/>
Sugar Labs bug tracking system


More information about the Bugs mailing list