Browse Source

Prepare for translations

jessie
Bob Mottram 6 years ago
parent
commit
6fc3017853
  1. 5
      src/freedombone
  2. 7
      src/freedombone-addcert
  3. 5
      src/freedombone-addemail
  4. 5
      src/freedombone-addlist
  5. 9
      src/freedombone-addsipuser
  6. 5
      src/freedombone-adduser
  7. 7
      src/freedombone-addxmpp
  8. 5
      src/freedombone-client
  9. 5
      src/freedombone-clientcert
  10. 5
      src/freedombone-config
  11. 5
      src/freedombone-controlpanel
  12. 5
      src/freedombone-deploy
  13. 4
      src/freedombone-format
  14. 5
      src/freedombone-ignore
  15. 4
      src/freedombone-image
  16. 3
      src/freedombone-image-customise
  17. 5
      src/freedombone-image-hardware-setup
  18. 5
      src/freedombone-image-make
  19. 5
      src/freedombone-image-vmdebootstrap
  20. 4
      src/freedombone-keydrive
  21. 5
      src/freedombone-logging
  22. 5
      src/freedombone-mesh
  23. 5
      src/freedombone-meshweb
  24. 5
      src/freedombone-prep
  25. 5
      src/freedombone-recoverkey
  26. 5
      src/freedombone-remote
  27. 5
      src/freedombone-renew-cert
  28. 5
      src/freedombone-rmemail
  29. 5
      src/freedombone-rmlist
  30. 5
      src/freedombone-rmsipuser
  31. 5
      src/freedombone-rmuser
  32. 5
      src/freedombone-rmxmpp
  33. 13
      src/freedombone-sec
  34. 5
      src/freedombone-sipfreeext
  35. 5
      src/freedombone-splitkey
  36. 5
      src/freedombone-unignore
  37. 5
      src/freedombone-xmpp-pass
  38. 5
      src/zeronetavahi

5
src/freedombone

@ -30,6 +30,11 @@
NO_OF_ARGS=$#
PROJECT_NAME='freedombone'
export TEXTDOMAIN=$PROJECT_NAME
export TEXTDOMAINDIR="/usr/share/locale"
# Web site
FREEDOMBONE_WEBSITE="http://freedombone.uk.to"

7
src/freedombone-addcert

@ -28,6 +28,11 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
PROJECT_NAME='freedombone'
export TEXTDOMAIN=$PROJECT_NAME
export TEXTDOMAINDIR="/usr/share/locale"
HOSTNAME=
LETSENCRYPT_HOSTNAME=
COUNTRY_CODE="US"
@ -177,7 +182,7 @@ if [ $LETSENCRYPT_HOSTNAME ]; then
fi
sed -i "s|ssl_certificate /etc/ssl/certs/${LETSENCRYPT_HOSTNAME}.bundle.crt|ssl_certificate /etc/ssl/certs/${LETSENCRYPT_HOSTNAME}.pem|g" /etc/nginx/sites-available/$LETSENCRYPT_HOSTNAME
sed -i "s|ssl_certificate /etc/ssl/certs/${LETSENCRYPT_HOSTNAME}.crt|ssl_certificate /etc/ssl/certs/${LETSENCRYPT_HOSTNAME}.pem|g" /etc/nginx/sites-available/$LETSENCRYPT_HOSTNAME
# link the private key
if [ -f /etc/ssl/private/${LETSENCRYPT_HOSTNAME}.key ]; then
if [ ! -f /etc/ssl/private/${LETSENCRYPT_HOSTNAME}.key.old ]; then

5
src/freedombone-addemail

@ -29,6 +29,11 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
PROJECT_NAME='freedombone'
export TEXTDOMAIN=$PROJECT_NAME
export TEXTDOMAINDIR="/usr/share/locale"
MYUSERNAME=$USER
EMAILADDRESS=
GROUP_NAME=

5
src/freedombone-addlist

@ -29,6 +29,11 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
PROJECT_NAME='freedombone'
export TEXTDOMAIN=$PROJECT_NAME
export TEXTDOMAINDIR="/usr/share/locale"
MYUSERNAME=$USER
MAILINGLIST=
SUBJECTTAG=

9
src/freedombone-addsipuser

@ -29,6 +29,11 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
PROJECT_NAME='freedombone'
export TEXTDOMAIN=$PROJECT_NAME
export TEXTDOMAINDIR="/usr/share/locale"
MY_USERNAME=
EXTENSION=
PASSWORD=
@ -71,11 +76,11 @@ function update_sip_user {
fi
if [[ "$line" == *"<secret>"* ]]; then
line="<secret>$PASSWORD</secret>"
fi
fi
if [[ "$line" == *"<display>"* ]]; then
line="<display>$MY_USERNAME $EXTENSION</display>"
USER_FOUND=
fi
fi
fi
echo $line >> $NEW_CONFIG_FILE
done < $CONFIG_FILE

5
src/freedombone-adduser

@ -29,6 +29,11 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
PROJECT_NAME='freedombone'
export TEXTDOMAIN=$PROJECT_NAME
export TEXTDOMAINDIR="/usr/share/locale"
MY_USERNAME=$1
SSH_PUBLIC_KEY="$2"
GPG_KEYSERVER='hkp://keys.gnupg.net'

7
src/freedombone-addxmpp

@ -29,6 +29,11 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
PROJECT_NAME='freedombone'
export TEXTDOMAIN=$PROJECT_NAME
export TEXTDOMAINDIR="/usr/share/locale"
EMAIL_ADDRESS=
NEW_USER_PASSWORD=
@ -77,7 +82,7 @@ if [ ! $NEW_USER_PASSWORD ]; then
else
USERNAME=$(echo $EMAIL_ADDRESS | awk -F '@' '{print $1}')
DOMAIN_NAME=$(echo $EMAIL_ADDRESS | awk -F '@' '{print $2}')
prosodyctl register $USERNAME $DOMAIN_NAME "$NEW_USER_PASSWORD"
prosodyctl register $USERNAME $DOMAIN_NAME "$NEW_USER_PASSWORD"
if [ ! "$?" = "0" ]; then
exit 2
fi

5
src/freedombone-client

@ -26,6 +26,11 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
PROJECT_NAME='freedombone'
export TEXTDOMAIN=$PROJECT_NAME
export TEXTDOMAINDIR="/usr/share/locale"
CURR_USER=$USER
# Version number of this script

5
src/freedombone-clientcert

@ -32,6 +32,11 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
PROJECT_NAME='freedombone'
export TEXTDOMAIN=$PROJECT_NAME
export TEXTDOMAINDIR="/usr/share/locale"
USERNAME=
COUNTRY_CODE="US"
AREA="Free Speech Zone"

5
src/freedombone-config

@ -31,6 +31,11 @@
NO_OF_ARGS=$#
PROJECT_NAME='freedombone'
export TEXTDOMAIN=$PROJECT_NAME
export TEXTDOMAINDIR="/usr/share/locale"
# Web site
FREEDOMBONE_WEBSITE="http://freedombone.uk.to"

5
src/freedombone-controlpanel

@ -28,6 +28,11 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
PROJECT_NAME='freedombone'
export TEXTDOMAIN=$PROJECT_NAME
export TEXTDOMAINDIR="/usr/share/locale"
COMPLETION_FILE=$HOME/freedombone-completed.txt
SELECTED_USERNAME=
SIP_CONFIG_FILE=/etc/sipwitch.conf

5
src/freedombone-deploy

@ -29,6 +29,11 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
PROJECT_NAME='freedombone'
export TEXTDOMAIN=$PROJECT_NAME
export TEXTDOMAINDIR="/usr/share/locale"
# Default username for disk images
DEFAULT_IMAGE_USERNAME='freedom'

4
src/freedombone-format

@ -28,6 +28,10 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
PROJECT_NAME='freedombone'
export TEXTDOMAIN=$PROJECT_NAME
export TEXTDOMAINDIR="/usr/share/locale"
if [ ! $1 ]; then
echo 'Specify a drive, such as sdb, sdc, etc'

5
src/freedombone-ignore

@ -30,6 +30,11 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
PROJECT_NAME='freedombone'
export TEXTDOMAIN=$PROJECT_NAME
export TEXTDOMAINDIR="/usr/share/locale"
MYUSERNAME=$USER
EMAIL_ADDRESS=
SUBJECT_TEXT=

4
src/freedombone-image

@ -29,6 +29,10 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
PROJECT_NAME='freedombone'
export TEXTDOMAIN=$PROJECT_NAME
export TEXTDOMAINDIR="/usr/share/locale"
IMAGE_TYPE='beaglebone'
CURR_DIR=$(pwd)
CURR_USER=$(echo $USER)

3
src/freedombone-image-customise

@ -31,6 +31,9 @@ set -x
PROJECT_NAME='freedombone'
export TEXTDOMAIN=$PROJECT_NAME
export TEXTDOMAINDIR="/usr/share/locale"
MY_USERNAME='debian'
MY_PASSWORD='freedombone'

5
src/freedombone-image-hardware-setup

@ -26,6 +26,11 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
PROJECT_NAME='freedombone'
export TEXTDOMAIN=$PROJECT_NAME
export TEXTDOMAINDIR="/usr/share/locale"
enable_serial_console() {
# By default, spawn a console on the serial port
device="$1"

5
src/freedombone-image-make

@ -29,6 +29,11 @@
set -e # Exit on first error
PROJECT_NAME='freedombone'
export TEXTDOMAIN=$PROJECT_NAME
export TEXTDOMAINDIR="/usr/share/locale"
#set -x # Enable debugging
IMAGE=$1

5
src/freedombone-image-vmdebootstrap

@ -26,6 +26,11 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
PROJECT_NAME='freedombone'
export TEXTDOMAIN=$PROJECT_NAME
export TEXTDOMAINDIR="/usr/share/locale"
mkdir -p vendor
if [ -d vendor/vmdebootstrap ] ; then
(cd vendor/vmdebootstrap; git checkout .; git pull)

4
src/freedombone-keydrive

@ -28,6 +28,10 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
PROJECT_NAME='freedombone'
export TEXTDOMAIN=$PROJECT_NAME
export TEXTDOMAINDIR="/usr/share/locale"
USB_DRIVE=/dev/sdb1
USB_MOUNT=/mnt/usb

5
src/freedombone-logging

@ -28,6 +28,11 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
PROJECT_NAME='freedombone'
export TEXTDOMAIN=$PROJECT_NAME
export TEXTDOMAINDIR="/usr/share/locale"
WEBSERVER_LOG_LEVEL='warn'
if [ ! "$1" ]; then

5
src/freedombone-mesh

@ -28,6 +28,11 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
PROJECT_NAME='freedombone'
export TEXTDOMAIN=$PROJECT_NAME
export TEXTDOMAINDIR="/usr/share/locale"
MUMBLE_PATH=/usr/bin/mumble
TOXIC_PATH=/usr/bin/toxic
DHTNODES=/usr/share/toxic/DHTnodes

5
src/freedombone-meshweb

@ -1,5 +1,10 @@
#!/bin/bash
PROJECT_NAME='freedombone'
export TEXTDOMAIN=$PROJECT_NAME
export TEXTDOMAINDIR="/usr/share/locale"
# client or server installations sounds odd for a mesh, but this
# indicates whether this is a dedicated mesh peer ("yes") or
# a 'client' such as a laptop or desktop machine with

5
src/freedombone-prep

@ -32,6 +32,11 @@
# The number of arguments
NO_OF_ARGS=$#
PROJECT_NAME='freedombone'
export TEXTDOMAIN=$PROJECT_NAME
export TEXTDOMAINDIR="/usr/share/locale"
# Version number of this script
VERSION="1.01"

5
src/freedombone-recoverkey

@ -28,6 +28,11 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
PROJECT_NAME='freedombone'
export TEXTDOMAIN=$PROJECT_NAME
export TEXTDOMAINDIR="/usr/share/locale"
FRIENDS_SERVERS_LIST=
MY_USERNAME=
GPG_USB_DRIVE='sdb1'

5
src/freedombone-remote

@ -30,6 +30,11 @@
NO_OF_ARGS=$#
PROJECT_NAME='freedombone'
export TEXTDOMAIN=$PROJECT_NAME
export TEXTDOMAINDIR="/usr/share/locale"
# User to create the list for
MY_USERNAME=$USER

5
src/freedombone-renew-cert

@ -28,6 +28,11 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
PROJECT_NAME='freedombone'
export TEXTDOMAIN=$PROJECT_NAME
export TEXTDOMAINDIR="/usr/share/locale"
HOSTNAME=
PROVIDER='startssl'
DH_KEYLENGTH=2048

5
src/freedombone-rmemail

@ -29,6 +29,11 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
PROJECT_NAME='freedombone'
export TEXTDOMAIN=$PROJECT_NAME
export TEXTDOMAINDIR="/usr/share/locale"
MYUSERNAME=$USER
function show_help {

5
src/freedombone-rmlist

@ -29,6 +29,11 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
PROJECT_NAME='freedombone'
export TEXTDOMAIN=$PROJECT_NAME
export TEXTDOMAINDIR="/usr/share/locale"
MYUSERNAME=$USER
MAILINGLIST=
LIST_ADDRESS=

5
src/freedombone-rmsipuser

@ -29,6 +29,11 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
PROJECT_NAME='freedombone'
export TEXTDOMAIN=$PROJECT_NAME
export TEXTDOMAINDIR="/usr/share/locale"
MY_USERNAME=$1
CONFIG_FILE=/etc/sipwitch.conf
USER_EXISTS="no"

5
src/freedombone-rmuser

@ -1,5 +1,10 @@
#!/bin/bash
PROJECT_NAME='freedombone'
export TEXTDOMAIN=$PROJECT_NAME
export TEXTDOMAINDIR="/usr/share/locale"
MY_USERNAME=$1
COMPLETION_FILE=$HOME/freedombone-completed.txt

5
src/freedombone-rmxmpp

@ -29,6 +29,11 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
PROJECT_NAME='freedombone'
export TEXTDOMAIN=$PROJECT_NAME
export TEXTDOMAINDIR="/usr/share/locale"
EMAIL_ADDRESS=
function show_help {

13
src/freedombone-sec

@ -28,6 +28,11 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
PROJECT_NAME='freedombone'
export TEXTDOMAIN=$PROJECT_NAME
export TEXTDOMAINDIR="/usr/share/locale"
SSL_PROTOCOLS=
SSL_CIPHERS=
SSH_CIPHERS=
@ -404,11 +409,11 @@ function renew_startssl {
--msgbox "An existing certificate for $renew_domain was not found" 6 40
return
fi
if [[ $renew_domain != *"."* ]]; then
dialog --title "Renew a StartSSL certificate" \
--msgbox "Invalid domain name: $renew_domain" 6 40
return
return
fi
freedombone-renew-cert -h $renew_domain -p startssl
@ -445,11 +450,11 @@ function renew_letsencrypt {
--msgbox "An existing certificate for $renew_domain was not found" 6 40
return
fi
if [[ $renew_domain != *"."* ]]; then
dialog --title "Renew a Let's Encrypt certificate" \
--msgbox "Invalid domain name: $renew_domain" 6 40
return
return
fi
freedombone-renew-cert -h $renew_domain -p 'letsencrypt'

5
src/freedombone-sipfreeext

@ -29,6 +29,11 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
PROJECT_NAME='freedombone'
export TEXTDOMAIN=$PROJECT_NAME
export TEXTDOMAINDIR="/usr/share/locale"
CONFIG_FILE=/etc/sipwitch.conf
maxnum=201

5
src/freedombone-splitkey

@ -34,6 +34,11 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
PROJECT_NAME='freedombone'
export TEXTDOMAIN=$PROJECT_NAME
export TEXTDOMAINDIR="/usr/share/locale"
KEY_FRAGMENTS=3
MY_USERNAME=
MY_EMAIL_ADDRESS=

5
src/freedombone-unignore

@ -30,6 +30,11 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
PROJECT_NAME='freedombone'
export TEXTDOMAIN=$PROJECT_NAME
export TEXTDOMAINDIR="/usr/share/locale"
MYUSERNAME=$USER
EMAIL_ADDRESS=
SUBJECT_TEXT=

5
src/freedombone-xmpp-pass

@ -29,6 +29,11 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
PROJECT_NAME='freedombone'
export TEXTDOMAIN=$PROJECT_NAME
export TEXTDOMAINDIR="/usr/share/locale"
EMAIL_ADDRESS=
function show_help {

5
src/zeronetavahi

@ -31,6 +31,11 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
PROJECT_NAME='freedombone'
export TEXTDOMAIN=$PROJECT_NAME
export TEXTDOMAINDIR="/usr/share/locale"
WEB_PAGE_TITLE="Freedombone Mesh"
TRACKER_PORT=6969
ZERONET_INSTALL=/opt/zeronet

Loading…
Cancel
Save