Mesh translations

This commit is contained in:
Bob Mottram 2015-12-11 17:35:37 +00:00
parent 6a977fb8f3
commit 215ee869a7
7 changed files with 62 additions and 15 deletions

View File

@ -1,5 +1,9 @@
{
"Blogging on the Mesh": "",
"A decentralized discussion group": "",
"Mail for the Mesh": "",
"IPFS could not be initialised": "",
"${MY_USERNAME}'s Blog": "",
"Address: $ZERONET_BLOG_ADDRESS": "",
"Public key: $ZERONET_BLOG_PRIVATE_KEY": "",
"Unable to find site directory: $ZERONET_DIR/data/$ZERONET_BLOG_ADDRESS": "",
@ -7,6 +11,12 @@
"Blog private key: $ZERONET_BLOG_PRIVATE_KEY": "",
"ZeroNet Blog address: $ZERONET_BLOG_ADDRESS": "",
"ZeroNet Blog private key: $ZERONET_BLOG_PRIVATE_KEY": "",
"${MY_USERNAME}'s Mail": "",
"Address: $ZERONET_MAIL_ADDRESS": "",
"Public key: $ZERONET_MAIL_PRIVATE_KEY": "",
"Unable to find site directory: /opt/zeronet/data/$ZERONET_MAIL_ADDRESS": "",
"ZeroNet Mail address: $ZERONET_MAIL_ADDRESS": "",
"ZeroNet Mail private key: $ZERONET_MAIL_PRIVATE_KEY": "",
"Address: $ZERONET_FORUM_ADDRESS": "",
"Public key: $ZERONET_FORUM_PRIVATE_KEY": "",
"Unable to find site directory: $ZERONET_DIR/data/$ZERONET_FORUM_ADDRESS": "",

View File

@ -20,6 +20,11 @@
"Unable to find site directory: /opt/zeronet/data/$ZERONET_BLOG_ADDRESS": "",
"ZeroNet Blog address: $ZERONET_BLOG_ADDRESS": "",
"ZeroNet Blog private key: $ZERONET_BLOG_PRIVATE_KEY": "",
"Address: $ZERONET_MAIL_ADDRESS": "",
"Public key: $ZERONET_MAIL_PRIVATE_KEY": "",
"Unable to find site directory: /opt/zeronet/data/$ZERONET_MAIL_ADDRESS": "",
"ZeroNet Mail address: $ZERONET_MAIL_ADDRESS": "",
"ZeroNet Mail private key: $ZERONET_MAIL_PRIVATE_KEY": "",
"Address: $ZERONET_FORUM_ADDRESS": "",
"Public key: $ZERONET_FORUM_PRIVATE_KEY": "",
"Unable to find site directory: /opt/zeronet/data/$ZERONET_FORUM_ADDRESS": "",

View File

@ -1,5 +1,9 @@
{
"Blogging on the Mesh": "",
"A decentralized discussion group": "",
"Mail for the Mesh": "",
"IPFS could not be initialised": "",
"${MY_USERNAME}'s Blog": "",
"Address: $ZERONET_BLOG_ADDRESS": "",
"Public key: $ZERONET_BLOG_PRIVATE_KEY": "",
"Unable to find site directory: $ZERONET_DIR/data/$ZERONET_BLOG_ADDRESS": "",
@ -7,6 +11,12 @@
"Blog private key: $ZERONET_BLOG_PRIVATE_KEY": "",
"ZeroNet Blog address: $ZERONET_BLOG_ADDRESS": "",
"ZeroNet Blog private key: $ZERONET_BLOG_PRIVATE_KEY": "",
"${MY_USERNAME}'s Mail": "",
"Address: $ZERONET_MAIL_ADDRESS": "",
"Public key: $ZERONET_MAIL_PRIVATE_KEY": "",
"Unable to find site directory: /opt/zeronet/data/$ZERONET_MAIL_ADDRESS": "",
"ZeroNet Mail address: $ZERONET_MAIL_ADDRESS": "",
"ZeroNet Mail private key: $ZERONET_MAIL_PRIVATE_KEY": "",
"Address: $ZERONET_FORUM_ADDRESS": "",
"Public key: $ZERONET_FORUM_PRIVATE_KEY": "",
"Unable to find site directory: $ZERONET_DIR/data/$ZERONET_FORUM_ADDRESS": "",

View File

@ -20,6 +20,11 @@
"Unable to find site directory: /opt/zeronet/data/$ZERONET_BLOG_ADDRESS": "",
"ZeroNet Blog address: $ZERONET_BLOG_ADDRESS": "",
"ZeroNet Blog private key: $ZERONET_BLOG_PRIVATE_KEY": "",
"Address: $ZERONET_MAIL_ADDRESS": "",
"Public key: $ZERONET_MAIL_PRIVATE_KEY": "",
"Unable to find site directory: /opt/zeronet/data/$ZERONET_MAIL_ADDRESS": "",
"ZeroNet Mail address: $ZERONET_MAIL_ADDRESS": "",
"ZeroNet Mail private key: $ZERONET_MAIL_PRIVATE_KEY": "",
"Address: $ZERONET_FORUM_ADDRESS": "",
"Public key: $ZERONET_FORUM_PRIVATE_KEY": "",
"Unable to find site directory: /opt/zeronet/data/$ZERONET_FORUM_ADDRESS": "",

View File

@ -1,5 +1,9 @@
{
"Blogging on the Mesh": "",
"A decentralized discussion group": "",
"Mail for the Mesh": "",
"IPFS could not be initialised": "",
"${MY_USERNAME}'s Blog": "",
"Address: $ZERONET_BLOG_ADDRESS": "",
"Public key: $ZERONET_BLOG_PRIVATE_KEY": "",
"Unable to find site directory: $ZERONET_DIR/data/$ZERONET_BLOG_ADDRESS": "",
@ -7,6 +11,12 @@
"Blog private key: $ZERONET_BLOG_PRIVATE_KEY": "",
"ZeroNet Blog address: $ZERONET_BLOG_ADDRESS": "",
"ZeroNet Blog private key: $ZERONET_BLOG_PRIVATE_KEY": "",
"${MY_USERNAME}'s Mail": "",
"Address: $ZERONET_MAIL_ADDRESS": "",
"Public key: $ZERONET_MAIL_PRIVATE_KEY": "",
"Unable to find site directory: /opt/zeronet/data/$ZERONET_MAIL_ADDRESS": "",
"ZeroNet Mail address: $ZERONET_MAIL_ADDRESS": "",
"ZeroNet Mail private key: $ZERONET_MAIL_PRIVATE_KEY": "",
"Address: $ZERONET_FORUM_ADDRESS": "",
"Public key: $ZERONET_FORUM_PRIVATE_KEY": "",
"Unable to find site directory: $ZERONET_DIR/data/$ZERONET_FORUM_ADDRESS": "",

View File

@ -20,6 +20,11 @@
"Unable to find site directory: /opt/zeronet/data/$ZERONET_BLOG_ADDRESS": "",
"ZeroNet Blog address: $ZERONET_BLOG_ADDRESS": "",
"ZeroNet Blog private key: $ZERONET_BLOG_PRIVATE_KEY": "",
"Address: $ZERONET_MAIL_ADDRESS": "",
"Public key: $ZERONET_MAIL_PRIVATE_KEY": "",
"Unable to find site directory: /opt/zeronet/data/$ZERONET_MAIL_ADDRESS": "",
"ZeroNet Mail address: $ZERONET_MAIL_ADDRESS": "",
"ZeroNet Mail private key: $ZERONET_MAIL_PRIVATE_KEY": "",
"Address: $ZERONET_FORUM_ADDRESS": "",
"Public key: $ZERONET_FORUM_PRIVATE_KEY": "",
"Unable to find site directory: /opt/zeronet/data/$ZERONET_FORUM_ADDRESS": "",

View File

@ -27,9 +27,9 @@ TRACKER_PORT=6969
MY_USERNAME=$USER
ZERONET_DIR=/home/$MY_USERNAME/zeronet
UPDATED="no"
ZERONET_DEFAULT_BLOG_TAGLINE="Blogging on the Mesh"
ZERONET_DEFAULT_FORUM_TAGLINE="A decentralized discussion group"
ZERONET_DEFAULT_MAIL_TAGLINE="Mail for the Mesh"
ZERONET_DEFAULT_BLOG_TAGLINE=$"Blogging on the Mesh"
ZERONET_DEFAULT_FORUM_TAGLINE=$"A decentralized discussion group"
ZERONET_DEFAULT_MAIL_TAGLINE=$"Mail for the Mesh"
IPFS_PORT=4001
@ -117,7 +117,7 @@ function install_zeronet_blog {
exit 736
fi
ZERONET_DEFAULT_BLOG_TITLE="${MY_USERNAME}'s Blog"
ZERONET_DEFAULT_BLOG_TITLE=$"${MY_USERNAME}'s Blog"
cd $ZERONET_DIR
python zeronet.py --batch siteCreate 2> $ZERONET_DIR/blog.txt
@ -154,8 +154,8 @@ function install_zeronet_blog {
echo $'ZeroBlog repo could not be cloned'
exit 6739
fi
cd /opt/zeronet/ZeroBlog
git checkout $ZERONET_BLOG_COMMIT -b $ZERONET_BLOG_COMMIT
cd /opt/zeronet/ZeroBlog
git checkout $ZERONET_BLOG_COMMIT -b $ZERONET_BLOG_COMMIT
echo $"Blog address: $ZERONET_BLOG_ADDRESS"
echo $"Blog private key: $ZERONET_BLOG_PRIVATE_KEY"
@ -209,11 +209,11 @@ function install_zeronet_mail {
fi
if [ ! -d /etc/avahi ]; then
echo 'Avahi is not installed'
echo $'Avahi is not installed'
exit 736
fi
ZERONET_DEFAULT_MAIL_TITLE="${MY_USERNAME}'s Mail"
ZERONET_DEFAULT_MAIL_TITLE=$"${MY_USERNAME}'s Mail"
cd /opt/zeronet
python zeronet.py --batch siteCreate 2> /opt/zeronet/mail.txt
@ -247,7 +247,7 @@ function install_zeronet_mail {
git clone $ZERONET_MAIL_REPO ZeroMail
if [ ! -d /opt/zeronet/ZeroMail ]; then
echo 'ZeroMail repo could not be cloned'
echo $'ZeroMail repo could not be cloned'
exit 6739
fi
cd /opt/zeronet/ZeroMail
@ -292,6 +292,8 @@ function install_zeronet_mail {
echo "ZeroNet Mail address: $ZERONET_MAIL_ADDRESS" >> /home/$MY_USERNAME/README
echo "ZeroNet Mail private key: $ZERONET_MAIL_PRIVATE_KEY" >> /home/$MY_USERNAME/README
fi
echo $'Zeronet mail installed'
}
function install_zeronet_forum {
@ -345,10 +347,10 @@ function install_zeronet_forum {
echo $'ZeroTalk repo could not be cloned'
exit 6739
fi
cd /opt/zeronet/ZeroTalk
git checkout $ZERONET_FORUM_COMMIT -b $ZERONET_FORUM_COMMIT
cd /opt/zeronet/ZeroTalk
git checkout $ZERONET_FORUM_COMMIT -b $ZERONET_FORUM_COMMIT
echo $"Forum address: $ZERONET_FORUM_ADDRESS"
echo $"Forum address: $ZERONET_FORUM_ADDRESS"
echo $"Forum private key: $ZERONET_FORUM_PRIVATE_KEY"
cp -r $ZERONET_DIR/ZeroTalk/* $ZERONET_DIR/data/$ZERONET_FORUM_ADDRESS
sed -i "s/ZeroBoard/$ZERONET_DEFAULT_FORUM_TITLE/g" $ZERONET_DIR/data/$ZERONET_FORUM_ADDRESS/index.html
@ -428,8 +430,8 @@ function install_zeronet {
if [ ! -d $ZERONET_DIR ]; then
exit 56823
fi
cd $ZERONET_DIR
git checkout $ZERONET_COMMIT -b $ZERONET_COMMIT
cd $ZERONET_DIR
git checkout $ZERONET_COMMIT -b $ZERONET_COMMIT
#cd $ZERONET_DIR
#git checkout bashrc/bootstrap-file
# Hack to ensure that the file access port is opened
@ -460,7 +462,7 @@ if [[ $SERVER_INSTALLATION == "no" ]]; then
install_zeronet_blog
install_zeronet_mail
install_zeronet_forum
install_ipfs
#install_ipfs
sudo batman start
if [ ! "$?" = "0" ]; then
exit 2