ssfs rev 74

Add POT files for client side tools
author Christophe Lincoln <pankso@slitaz.org>
date Mon Jun 13 22:38:23 2011 +0200 (2011-06-13)
parents 3a2f682ce267
children 1d296888e4ce
files Makefile po/ssfs.pot ssfs
line diff
     1.1 --- a/Makefile	Mon Jun 13 20:57:43 2011 +0200
     1.2 +++ b/Makefile	Mon Jun 13 22:38:23 2011 +0200
     1.3 @@ -5,7 +5,7 @@
     1.4  DESTDIR?=
     1.5  
     1.6  PACKAGE=ssfs
     1.7 -VERSION=0.1-beta
     1.8 +VERSION=1.0
     1.9  LINGUAS?=fr
    1.10  
    1.11  all: msgmerge
    1.12 @@ -14,9 +14,13 @@
    1.13  
    1.14  pot:
    1.15  	xgettext -o po/ssfs.pot -L Shell \
    1.16 -		--package-name="Ssfs" \
    1.17 +		--package-name="Ssfs Client" \
    1.18  		--package-version="$(VERSION)" \
    1.19  		./ssfs ./ssfs-box
    1.20 +	#xgettext -o po/ssfs-server.pot -L Shell \
    1.21 +		#--package-name="Ssfs Server" \
    1.22 +		#--package-version="$(VERSION)" \
    1.23 +		#./ssfs-server
    1.24  
    1.25  msgmerge:
    1.26  	@for l in $(LINGUAS); do \
     2.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.2 +++ b/po/ssfs.pot	Mon Jun 13 22:38:23 2011 +0200
     2.3 @@ -0,0 +1,133 @@
     2.4 +# SOME DESCRIPTIVE TITLE.
     2.5 +# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
     2.6 +# This file is distributed under the same license as the PACKAGE package.
     2.7 +# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
     2.8 +#
     2.9 +#, fuzzy
    2.10 +msgid ""
    2.11 +msgstr ""
    2.12 +"Project-Id-Version: Ssfs Client 1.0\n"
    2.13 +"Report-Msgid-Bugs-To: \n"
    2.14 +"POT-Creation-Date: 2011-06-13 22:37+0200\n"
    2.15 +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
    2.16 +"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
    2.17 +"Language-Team: LANGUAGE <LL@li.org>\n"
    2.18 +"Language: \n"
    2.19 +"MIME-Version: 1.0\n"
    2.20 +"Content-Type: text/plain; charset=CHARSET\n"
    2.21 +"Content-Transfer-Encoding: 8bit\n"
    2.22 +
    2.23 +#: ssfs:41 ssfs:99
    2.24 +msgid "Usage:"
    2.25 +msgstr ""
    2.26 +
    2.27 +#: ssfs:43
    2.28 +msgid "Commands:"
    2.29 +msgstr ""
    2.30 +
    2.31 +#: ssfs:44
    2.32 +msgid "Display this short help usage."
    2.33 +msgstr ""
    2.34 +
    2.35 +#: ssfs:45
    2.36 +msgid "Display configuration settings."
    2.37 +msgstr ""
    2.38 +
    2.39 +#: ssfs:46
    2.40 +msgid "Setup client configuration and RSA key."
    2.41 +msgstr ""
    2.42 +
    2.43 +#: ssfs:47
    2.44 +msgid "Sync from server and start daemon."
    2.45 +msgstr ""
    2.46 +
    2.47 +#: ssfs:48
    2.48 +msgid "Stop monitoring ~/Sync folder."
    2.49 +msgstr ""
    2.50 +
    2.51 +#: ssfs:49
    2.52 +msgid "Connect to remote host via SSH."
    2.53 +msgstr ""
    2.54 +
    2.55 +#: ssfs:51
    2.56 +msgid "Options:"
    2.57 +msgstr ""
    2.58 +
    2.59 +#: ssfs:52
    2.60 +msgid "Login name on remote host."
    2.61 +msgstr ""
    2.62 +
    2.63 +#: ssfs:53
    2.64 +msgid "Server host name or IP."
    2.65 +msgstr ""
    2.66 +
    2.67 +#: ssfs:93
    2.68 +msgid "RSA key   :"
    2.69 +msgstr ""
    2.70 +
    2.71 +#: ssfs:94
    2.72 +msgid "Sync size :"
    2.73 +msgstr ""
    2.74 +
    2.75 +#: ssfs:113
    2.76 +msgid "Sending RSA secure key to:"
    2.77 +msgstr ""
    2.78 +
    2.79 +#: ssfs:114
    2.80 +msgid "Please enter your Ssfs password."
    2.81 +msgstr ""
    2.82 +
    2.83 +#: ssfs:118
    2.84 +msgid "Client is setup you can now sync"
    2.85 +msgstr ""
    2.86 +
    2.87 +#: ssfs:122
    2.88 +msgid "Missing config file"
    2.89 +msgstr ""
    2.90 +
    2.91 +#: ssfs:127
    2.92 +msgid "Syncing from:"
    2.93 +msgstr ""
    2.94 +
    2.95 +#: ssfs:137
    2.96 +msgid "Starting lsyncd daemon..."
    2.97 +msgstr ""
    2.98 +
    2.99 +#: ssfs:142
   2.100 +msgid "Daemon is not running\\n"
   2.101 +msgstr ""
   2.102 +
   2.103 +#: ssfs:145
   2.104 +msgid "Stopping"
   2.105 +msgstr ""
   2.106 +
   2.107 +#: ssfs-box:41
   2.108 +msgid "<b>Welcome to the Ssfs Client user interface</b>"
   2.109 +msgstr ""
   2.110 +
   2.111 +#: ssfs-box:46
   2.112 +msgid "Value"
   2.113 +msgstr ""
   2.114 +
   2.115 +#: ssfs-box:47
   2.116 +msgid "Setup client"
   2.117 +msgstr ""
   2.118 +
   2.119 +#: ssfs-box:48
   2.120 +msgid "Edit config"
   2.121 +msgstr ""
   2.122 +
   2.123 +#: ssfs-box:49
   2.124 +msgid "Browse files"
   2.125 +msgstr ""
   2.126 +
   2.127 +#: ssfs-box:78
   2.128 +msgid ""
   2.129 +"<b>Welcome to the Ssfs Setup</b>\\n\n"
   2.130 +"Any account on a server yet ? You can vist www.slitaz.org\n"
   2.131 +"services or setup your own server in a few minutes!\\n"
   2.132 +msgstr ""
   2.133 +
   2.134 +#: ssfs-box:105
   2.135 +msgid "Ssfs Live Sync storage"
   2.136 +msgstr ""
     3.1 --- a/ssfs	Mon Jun 13 20:57:43 2011 +0200
     3.2 +++ b/ssfs	Mon Jun 13 22:38:23 2011 +0200
     3.3 @@ -96,7 +96,7 @@
     3.4  	setup)
     3.5  		# We need a login and host name or IP.
     3.6  		if [ -z "$login" ] || [ -z "$host" ]; then
     3.7 -			gettext -e "\nUsage:"; echo -e \
     3.8 +			gettext "Usage:"; echo -e \
     3.9  				" $(basename $0) setup --login=user --host=server\n" && exit 0
    3.10  		fi
    3.11  		gen_config
    3.12 @@ -119,11 +119,12 @@
    3.13  	sync)
    3.14  		# Sync can be called at session startup or from cmdline to retrive
    3.15  		# files from the server.
    3.16 -		[ ! -f "$config" ] && gettext -e "Missing config file\n" && exit 1
    3.17 +		[ ! -f "$config" ] && gettext "Missing config file" && \
    3.18 +			echo "" && exit 1
    3.19  		at=$(fgrep host $config | cut -d '"' -f 2)
    3.20  		login=${at%@*}
    3.21  		host=${at#*@}
    3.22 -		gettext -e "\nSyncing from:"; echo " $login@$host"
    3.23 +		echo "" && gettext "Syncing from:"; echo " $login@$host"
    3.24  		
    3.25  		# First sync host with server.
    3.26  		rsync -r -a -v -h -z -u --delete \
    3.27 @@ -138,7 +139,8 @@
    3.28  		echo "" ;;
    3.29  	stop)
    3.30  		# Kill daemon and remove pidfile.
    3.31 -		[ ! -s "$pid" ] && gettext -e "Daemon is not running\n" && exit 0
    3.32 +		[ ! -s "$pid" ] && gettext "Daemon is not running\n" && \
    3.33 +			echo "" && exit 0
    3.34  		kill=$(cat $pid)
    3.35  		gettext "Stopping"; echo " $app PID: $kill"
    3.36  		kill $kill 2>/dev/null