[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
Re: [tor-bugs] #27474 [Community/Tor Browser Manual]: update tb-manual build script
#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
_______________________________________________
tor-bugs mailing list
tor-bugs@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs