[Bugs] #2913 UNSP: ./setup build failing to generate locale files due to duplicate string definitions in .po files

Sugar Labs Bugs bugtracker-noreply at sugarlabs.org
Mon Jun 20 08:14:59 EDT 2011


#2913: ./setup build failing to generate locale files due to duplicate string
definitions in .po files
------------------------------------------+---------------------------------
    Reporter:  garycmartin                |          Owner:  RafaelOrtiz                
        Type:  defect                     |         Status:  new                        
    Priority:  Unspecified by Maintainer  |      Milestone:  Unspecified by Release Team
   Component:  localization               |        Version:  Unspecified                
    Severity:  Blocker                    |       Keywords:                             
Distribution:  Unspecified                |   Status_field:  Unconfirmed                
------------------------------------------+---------------------------------

Comment(by garycmartin):

 Wow I discoverd today how much I dislike writing multi line sed scripts ;)
 Here's the quick fix to get a release out today that removes one of the
 duplicate "Moon" strings from each .po file:

 {{{
 for f in *.po; do sed '/^\#\: \.\.\/moon\.py\:71/{ N;N;N;d;}' $f > temp;
 cp temp $f; done; rm temp
 }}}

 So ./steup.py build is happier now, though I still need to manually fixup
 some of the .po files as they have multiple strings that don't match the
 /n line endings:

 {{{
 [garycmartin at localhost Moon.activity]$ ./setup.py build
 /home/garycmartin/Activities/Moon.activity/po/ps.po:68: `msgid' and
 `msgstr' entries do not both end with '\n'
 /home/garycmartin/Activities/Moon.activity/po/ps.po:76: `msgid' and
 `msgstr' entries do not both end with '\n'
 /home/garycmartin/Activities/Moon.activity/po/ps.po:84: `msgid' and
 `msgstr' entries do not both end with '\n'
 /home/garycmartin/Activities/Moon.activity/po/ps.po:92: `msgid' and
 `msgstr' entries do not both end with '\n'
 /home/garycmartin/Activities/Moon.activity/po/ps.po:100: `msgid' and
 `msgstr' entries do not both end with '\n'
 /home/garycmartin/Activities/Moon.activity/po/ps.po:108: `msgid' and
 `msgstr' entries do not both end with '\n'
 /home/garycmartin/Activities/Moon.activity/po/ps.po:127: `msgid' and
 `msgstr' entries do not both end with '\n'
 /home/garycmartin/Activities/Moon.activity/po/ps.po:135: `msgid' and
 `msgstr' entries do not both end with '\n'
 /home/garycmartin/Activities/Moon.activity/po/ps.po:143: `msgid' and
 `msgstr' entries do not both end with '\n'
 /home/garycmartin/Activities/Moon.activity/po/ps.po:151: `msgid' and
 `msgstr' entries do not both end with '\n'
 msgfmt: found 10 fatal errors
 ERROR - msgfmt failed with return code 1.
 /home/garycmartin/Activities/Moon.activity/po/bg.po:70: `msgid' and
 `msgstr' entries do not both end with '\n'
 msgfmt: found 1 fatal error
 ERROR - msgfmt failed with return code 1.
 /home/garycmartin/Activities/Moon.activity/po/te.po:92: `msgid' and
 `msgstr' entries do not both end with '\n'
 msgfmt: found 1 fatal error
 ERROR - msgfmt failed with return code 1.
 /home/garycmartin/Activities/Moon.activity/po/sw.po:76: `msgid' and
 `msgstr' entries do not both end with '\n'
 /home/garycmartin/Activities/Moon.activity/po/sw.po:144: `msgid' and
 `msgstr' entries do not both end with '\n'
 /home/garycmartin/Activities/Moon.activity/po/sw.po:173: `msgid' and
 `msgstr' entries do not both end with '\n'
 msgfmt: found 3 fatal errors
 ERROR - msgfmt failed with return code 1.
 }}}

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


More information about the Bugs mailing list