[tor-bugs] #27474 [Community/Tor Browser Manual]: update tb-manual build script

Tor Bug Tracker & Wiki blackhole at torproject.org
Wed Sep 5 18:53:36 UTC 2018


#27474: update tb-manual build script
------------------------------------------+-----------------------
 Reporter:  traumschule                   |          Owner:  phoul
     Type:  defect                        |         Status:  new
 Priority:  Medium                        |      Milestone:
Component:  Community/Tor Browser Manual  |        Version:
 Severity:  Normal                        |     Resolution:
 Keywords:                                |  Actual Points:
Parent ID:                                |         Points:
 Reviewer:                                |        Sponsor:
------------------------------------------+-----------------------

Comment (by traumschule):

 With the temporary hack in https://github.com/traumschule/tor-tb-
 manual/tree/fix-configure

 and adding this script to user-manual/add_lang (and {{{chmod +x
 add_lang}}})
 {{{
 lang=$1
 echo $lang
 if ! test -f "$lang/$lang.po"; then \
   (cd "$lang/" && \
     itstool -o "$lang.po.tmp" ../C/about-tor-browser.page
 ../C/bridges.page ../C/circumvention.page ../C/downloading.page ../C
 /first-time.page ../C/index.page ../C/known-issues.page ../C/managing-
 identities.page ../C/onionsites.page ../C/plugins.page ../C/secure-
 connections.page ../C/security-slider.page ../C/translate.page
 ../C/transports.page ../C/troubleshooting.page ../C/uninstalling.page
 ../C/updating.page && \
     mv "$lang.po.tmp" "$lang.po"); \
 else \
   (cd "$lang/" && \
     itstool -o "$lang.po.tmp" ../C/about-tor-browser.page
 ../C/bridges.page ../C/circumvention.page ../C/downloading.page ../C
 /first-time.page ../C/index.page ../C/known-issues.page ../C/managing-
 identities.page ../C/onionsites.page ../C/plugins.page ../C/secure-
 connections.page ../C/security-slider.page ../C/translate.page
 ../C/transports.page ../C/troubleshooting.page ../C/uninstalling.page
 ../C/updating.page && \
     msgmerge -o "$lang.po" "$lang.po" "$lang.po.tmp" && \
     rm "$lang.po.tmp"); \
 fi
 }}}
 i was able to build it with:
 {{{for lang in da ca ga-IE he id is ja nb-NO sv-SE zh-TW; do ./add_lang
 $lang; done; make}}}

--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/27474#comment:1>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online


More information about the tor-bugs mailing list