release v0.3.2

This commit is contained in:
lars 2007-01-08 05:55:23 +00:00
parent 0b163061f5
commit dd557f7866
719 changed files with 100817 additions and 0 deletions

104
v0.3.2/plugins/date/date.py Normal file
View file

@ -0,0 +1,104 @@
#
# Copyright 2006 sense.lab e.V.
#
# This file is part of the CryptoBox.
#
# The CryptoBox is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# The CryptoBox is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with the CryptoBox; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
#
"""Change date and time.
"""
__revision__ = "$Id"
import cryptobox.plugins.base
class date(cryptobox.plugins.base.CryptoBoxPlugin):
"""The date feature of the CryptoBox.
"""
plugin_capabilities = [ "system" ]
plugin_visibility = [ "preferences" ]
request_auth = False
rank = 10
def do_action(self, store=None, year=0, month=0, day=0, hour=0, minute=0):
"""The action handler.
"""
import datetime
if store:
try:
year, month, day = int(year), int(month), int(day)
hour, minute = int(hour), int(minute)
## check if the values are valid
datetime.datetime(year, month, day, hour, minute)
except ValueError:
self.hdf["Data.Warning"] = "Plugins.date.InvalidDate"
else:
date = "%02d%02d%02d%02d%d" % (month, day, hour, minute, year)
if self.__set_date(date):
self.cbox.log.info("changed date to: %s" % date)
self.hdf["Data.Success"] = "Plugins.date.DateChanged"
else:
## a failure should usually be an invalid date (we do not check it really)
self.cbox.log.info("failed to set date: %s" % date)
self.hdf["Data.Warning"] = "Plugins.date.InvalidDate"
self.__prepare_form_data()
return "form_date"
def get_status(self):
"""Retrieve the status of the feature.
"""
now = self.__get_current_date()
return "%d/%d/%d/%d/%d/%d" % \
(now.year, now.month, now.day, now.hour, now.minute, now.second)
def __prepare_form_data(self):
"""Set some hdf values.
"""
cur_date = self.__get_current_date()
self.hdf[self.hdf_prefix + "year"] = cur_date.year
self.hdf[self.hdf_prefix + "month"] = cur_date.month
self.hdf[self.hdf_prefix + "day"] = cur_date.day
self.hdf[self.hdf_prefix + "hour"] = cur_date.hour
self.hdf[self.hdf_prefix + "minute"] = cur_date.minute
def __get_current_date(self):
"""Retrieve the current date and time.
"""
import datetime
return datetime.datetime(2000, 1, 1).now()
def __set_date(self, date):
"""Set a new date and time.
"""
import subprocess
import os
proc = subprocess.Popen(
shell = False,
args = [
self.cbox.prefs["Programs"]["super"],
self.cbox.prefs["Programs"]["CryptoBoxRootActions"],
"plugin",
os.path.join(self.plugin_dir, "root_action.py"),
date])
proc.wait()
return proc.returncode == 0

View file

@ -0,0 +1,46 @@
<?cs # $Id$ ?>
<h1><?cs var:html_escape(Lang.Plugins.date.Title.ConfigDate) ?></h1>
<?cs call:handle_messages() ?>
<?cs call:show_help(Lang.Plugins.date.Help.ChangeDate) ?>
<?cs call:print_form_header("set_date", "date") ?>
<p><label for="date"><?cs var:html_escape(Lang.Plugins.date.Text.Date) ?>: </label><br/>
<select id="date" name="day" tabindex="1" size="0"><?cs
loop: x = #1, #31, #1 ?>
<?cs if:x == Data.Plugins.date.day ?><option selected="selected"><?cs
else ?><option><?cs /if ?><?cs var:x ?></option><?cs /loop ?>
</select>
<select name="month" tabindex="2" size="0"><?cs
loop: x = #1, #12, #1 ?>
<?cs if:x == Data.Plugins.date.month ?><option selected="selected" <?cs
else ?><option <?cs /if ?>value="<?cs var:x ?>"><?cs
var:html_escape(Lang.Plugins.date.Text.Months[x]) ?></option><?cs /loop ?>
</select>
<select name="year" tabindex="3" size="0"><?cs
loop: x = #2006, #2025, #1 ?>
<?cs if:x == Data.Plugins.date.year ?><option selected="selected"><?cs
else ?><option><?cs /if ?><?cs var:x ?></option><?cs /loop ?>
</select></p>
<p><label for="time"><?cs var:html_escape(Lang.Plugins.date.Text.Time) ?>: </label><br/>
<select id="time" name="hour" tabindex="4" size="0"><?cs
loop: x = #0, #23, #1 ?>
<?cs if:x == Data.Plugins.date.hour ?><option selected="selected"><?cs
else ?><option><?cs /if ?><?cs if:x<10 ?>0<?cs /if ?><?cs var:x ?></option><?cs /loop ?>
</select>&nbsp;:&nbsp;
<select name="minute" tabindex="5" size="0"><?cs
loop: x = #0, #59, #1 ?>
<?cs if:x == Data.Plugins.date.minute ?><option selected="selected"><?cs
else ?><option><?cs /if ?><?cs if:x<10 ?>0<?cs /if ?><?cs var:x ?></option><?cs /loop ?>
</select></p>
<p><input type="hidden" name="store" value="yes" />
<button type="submit" tabindex="6"><?cs var:html_escape(Lang.Plugins.date.Button.ConfigDate) ?></button></p>
</form>

View file

@ -0,0 +1,91 @@
#: Name
msgid "Change date and time"
msgstr ""
#: Link
msgid "Set date/time"
msgstr ""
#: Title.ConfigDate
msgid "Date and time setting"
msgstr ""
#: Button.ConfigDate
msgid "Set date and time"
msgstr ""
#: Text.Date
msgid "Date"
msgstr ""
#: Text.Time
msgid "Time"
msgstr ""
#: Text.Months.1
msgid "January"
msgstr ""
#: Text.Months.2
msgid "February"
msgstr ""
#: Text.Months.3
msgid "March"
msgstr ""
#: Text.Months.4
msgid "April"
msgstr ""
#: Text.Months.5
msgid "May"
msgstr ""
#: Text.Months.6
msgid "June"
msgstr ""
#: Text.Months.7
msgid "July"
msgstr ""
#: Text.Months.8
msgid "August"
msgstr ""
#: Text.Months.9
msgid "September"
msgstr ""
#: Text.Months.10
msgid "October"
msgstr ""
#: Text.Months.11
msgid "November"
msgstr ""
#: Text.Months.12
msgid "December"
msgstr ""
#: Help.ChangeDate
msgid "Change the time and date for the CryptoBox server."
msgstr ""
#: SuccessMessage.DateChanged.Title
msgid "Date changed"
msgstr ""
#: SuccessMessage.DateChanged.Text
msgid "The date was changed successfully."
msgstr ""
#: WarningMessage.InvalidDate.Title
msgid "Invalid value"
msgstr ""
#: WarningMessage.InvalidDate.Text
msgid "An invalid value for date or time was supplied. Please try again."
msgstr ""

View file

@ -0,0 +1,106 @@
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: CryptoBox-Server 0.3\n"
"Report-Msgid-Bugs-To: translate@cryptobox.org\n"
"POT-Creation-Date: 2006-12-18 11:50+0100\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
"X-Generator: Translate Toolkit 0.10.1\n"
#: Name
msgid "Change date and time"
msgstr ""
#: Link
msgid "Set date/time"
msgstr ""
#: Title.ConfigDate
msgid "Date and time setting"
msgstr ""
#: Button.ConfigDate
msgid "Set date and time"
msgstr ""
#: Text.Date
msgid "Date"
msgstr ""
#: Text.Time
msgid "Time"
msgstr ""
#: Text.Months.1
msgid "January"
msgstr ""
#: Text.Months.2
msgid "February"
msgstr ""
#: Text.Months.3
msgid "March"
msgstr ""
#: Text.Months.4
msgid "April"
msgstr ""
#: Text.Months.5
msgid "May"
msgstr ""
#: Text.Months.6
msgid "June"
msgstr ""
#: Text.Months.7
msgid "July"
msgstr ""
#: Text.Months.8
msgid "August"
msgstr ""
#: Text.Months.9
msgid "September"
msgstr ""
#: Text.Months.10
msgid "October"
msgstr ""
#: Text.Months.11
msgid "November"
msgstr ""
#: Text.Months.12
msgid "December"
msgstr ""
#: Help.ChangeDate
msgid "Change the time and date for the CryptoBox server."
msgstr ""
#: SuccessMessage.DateChanged.Title
msgid "Date changed"
msgstr ""
#: SuccessMessage.DateChanged.Text
msgid "The date was changed successfully."
msgstr ""
#: WarningMessage.InvalidDate.Title
msgid "Invalid value"
msgstr ""
#: WarningMessage.InvalidDate.Text
msgid "An invalid value for date or time was supplied. Please try again."
msgstr ""

View file

@ -0,0 +1,106 @@
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: CryptoBox-Server 0.3\n"
"Report-Msgid-Bugs-To: translate@cryptobox.org\n"
"POT-Creation-Date: 2006-12-18 11:50+0100\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
"X-Generator: Translate Toolkit 0.10.1\n"
#: Name
msgid "Change date and time"
msgstr ""
#: Link
msgid "Set date/time"
msgstr ""
#: Title.ConfigDate
msgid "Date and time setting"
msgstr ""
#: Button.ConfigDate
msgid "Set date and time"
msgstr ""
#: Text.Date
msgid "Date"
msgstr ""
#: Text.Time
msgid "Time"
msgstr ""
#: Text.Months.1
msgid "January"
msgstr ""
#: Text.Months.2
msgid "February"
msgstr ""
#: Text.Months.3
msgid "March"
msgstr ""
#: Text.Months.4
msgid "April"
msgstr ""
#: Text.Months.5
msgid "May"
msgstr ""
#: Text.Months.6
msgid "June"
msgstr ""
#: Text.Months.7
msgid "July"
msgstr ""
#: Text.Months.8
msgid "August"
msgstr ""
#: Text.Months.9
msgid "September"
msgstr ""
#: Text.Months.10
msgid "October"
msgstr ""
#: Text.Months.11
msgid "November"
msgstr ""
#: Text.Months.12
msgid "December"
msgstr ""
#: Help.ChangeDate
msgid "Change the time and date for the CryptoBox server."
msgstr ""
#: SuccessMessage.DateChanged.Title
msgid "Date changed"
msgstr ""
#: SuccessMessage.DateChanged.Text
msgid "The date was changed successfully."
msgstr ""
#: WarningMessage.InvalidDate.Title
msgid "Invalid value"
msgstr ""
#: WarningMessage.InvalidDate.Text
msgid "An invalid value for date or time was supplied. Please try again."
msgstr ""

View file

@ -0,0 +1,105 @@
msgid ""
msgstr ""
"Project-Id-Version: CryptoBox-Server 0.3\n"
"Report-Msgid-Bugs-To: translate@cryptobox.org\n"
"POT-Creation-Date: 2006-12-18 11:50+0100\n"
"PO-Revision-Date: 2006-12-14 03:43+0100\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
"X-Generator: Translate Toolkit 0.10.1\n"
#: Name
msgid "Change date and time"
msgstr "Datum und Uhrzeit ändern"
#: Link
msgid "Set date/time"
msgstr "Datum / Uhrzeit"
#: Title.ConfigDate
msgid "Date and time setting"
msgstr "Datum und Uhrzeit einstellen"
#: Button.ConfigDate
msgid "Set date and time"
msgstr "Uhrzeit und Datum ändern"
#: Text.Date
msgid "Date"
msgstr "Datum"
#: Text.Time
msgid "Time"
msgstr "Uhrzeit"
#: Text.Months.1
msgid "January"
msgstr "Januar"
#: Text.Months.2
msgid "February"
msgstr "Februar"
#: Text.Months.3
msgid "March"
msgstr "März"
#: Text.Months.4
msgid "April"
msgstr "April"
#: Text.Months.5
msgid "May"
msgstr "Mai"
#: Text.Months.6
msgid "June"
msgstr "Juni"
#: Text.Months.7
msgid "July"
msgstr "Juli"
#: Text.Months.8
msgid "August"
msgstr "August"
#: Text.Months.9
msgid "September"
msgstr "September"
#: Text.Months.10
msgid "October"
msgstr "Oktober"
#: Text.Months.11
msgid "November"
msgstr "November"
#: Text.Months.12
msgid "December"
msgstr "Dezember"
#: Help.ChangeDate
msgid "Change the time and date for the CryptoBox server."
msgstr "Einstellen der Uhrzeit und des Datums des CryptoBox-Servers."
#: SuccessMessage.DateChanged.Title
msgid "Date changed"
msgstr "Datum gesetzt"
#: SuccessMessage.DateChanged.Text
msgid "The date was changed successfully."
msgstr "Das Datum wurde erfolgreich geändert."
#: WarningMessage.InvalidDate.Title
msgid "Invalid value"
msgstr "Ungültiger Eingabewert"
#: WarningMessage.InvalidDate.Text
msgid "An invalid value for date or time was supplied. Please try again."
msgstr "Es wurde ein ungültiger Wert für das Datum oder die Uhrzeit eingegeben. Bitte versuche es erneut."

View file

@ -0,0 +1,92 @@
#: Name
msgid "Change date and time"
msgstr "Change date and time"
#: Link
msgid "Set date/time"
msgstr "Set date/time"
#: Title.ConfigDate
msgid "Date and time setting"
msgstr "Date and time setting"
#: Button.ConfigDate
msgid "Set date and time"
msgstr "Set date and time"
#: Text.Date
msgid "Date"
msgstr "Date"
#: Text.Time
msgid "Time"
msgstr "Time"
#: Text.Months.1
msgid "January"
msgstr "January"
#: Text.Months.2
msgid "February"
msgstr "February"
#: Text.Months.3
msgid "March"
msgstr "March"
#: Text.Months.4
msgid "April"
msgstr "April"
#: Text.Months.5
msgid "May"
msgstr "May"
#: Text.Months.6
msgid "June"
msgstr "June"
#: Text.Months.7
msgid "July"
msgstr "July"
#: Text.Months.8
msgid "August"
msgstr "August"
#: Text.Months.9
msgid "September"
msgstr "September"
#: Text.Months.10
msgid "October"
msgstr "October"
#: Text.Months.11
msgid "November"
msgstr "November"
#: Text.Months.12
msgid "December"
msgstr "December"
#: Help.ChangeDate
msgid "Change the time and date for the CryptoBox server."
msgstr "Change the time and date for the CryptoBox server."
#: SuccessMessage.DateChanged.Title
msgid "Date changed"
msgstr "Date changed"
#: SuccessMessage.DateChanged.Text
msgid "The date was changed successfully."
msgstr "The date was changed successfully."
#: WarningMessage.InvalidDate.Title
msgid "Invalid value"
msgstr "Invalid value"
#: WarningMessage.InvalidDate.Text
msgid "An invalid value for date or time was supplied. Please try again."
msgstr "An invalid value for date or time was supplied. Please try again."

View file

@ -0,0 +1,106 @@
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: CryptoBox-Server 0.3\n"
"Report-Msgid-Bugs-To: translate@cryptobox.org\n"
"POT-Creation-Date: 2006-12-18 11:50+0100\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
"X-Generator: Translate Toolkit 0.10.1\n"
#: Name
msgid "Change date and time"
msgstr ""
#: Link
msgid "Set date/time"
msgstr ""
#: Title.ConfigDate
msgid "Date and time setting"
msgstr ""
#: Button.ConfigDate
msgid "Set date and time"
msgstr ""
#: Text.Date
msgid "Date"
msgstr ""
#: Text.Time
msgid "Time"
msgstr ""
#: Text.Months.1
msgid "January"
msgstr ""
#: Text.Months.2
msgid "February"
msgstr ""
#: Text.Months.3
msgid "March"
msgstr ""
#: Text.Months.4
msgid "April"
msgstr ""
#: Text.Months.5
msgid "May"
msgstr ""
#: Text.Months.6
msgid "June"
msgstr ""
#: Text.Months.7
msgid "July"
msgstr ""
#: Text.Months.8
msgid "August"
msgstr ""
#: Text.Months.9
msgid "September"
msgstr ""
#: Text.Months.10
msgid "October"
msgstr ""
#: Text.Months.11
msgid "November"
msgstr ""
#: Text.Months.12
msgid "December"
msgstr ""
#: Help.ChangeDate
msgid "Change the time and date for the CryptoBox server."
msgstr ""
#: SuccessMessage.DateChanged.Title
msgid "Date changed"
msgstr ""
#: SuccessMessage.DateChanged.Text
msgid "The date was changed successfully."
msgstr ""
#: WarningMessage.InvalidDate.Title
msgid "Invalid value"
msgstr ""
#: WarningMessage.InvalidDate.Text
msgid "An invalid value for date or time was supplied. Please try again."
msgstr ""

View file

@ -0,0 +1,106 @@
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: CryptoBox-Server 0.3\n"
"Report-Msgid-Bugs-To: translate@cryptobox.org\n"
"POT-Creation-Date: 2006-12-18 11:50+0100\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
"X-Generator: Translate Toolkit 0.10.1\n"
#: Name
msgid "Change date and time"
msgstr ""
#: Link
msgid "Set date/time"
msgstr ""
#: Title.ConfigDate
msgid "Date and time setting"
msgstr ""
#: Button.ConfigDate
msgid "Set date and time"
msgstr ""
#: Text.Date
msgid "Date"
msgstr ""
#: Text.Time
msgid "Time"
msgstr ""
#: Text.Months.1
msgid "January"
msgstr ""
#: Text.Months.2
msgid "February"
msgstr ""
#: Text.Months.3
msgid "March"
msgstr ""
#: Text.Months.4
msgid "April"
msgstr ""
#: Text.Months.5
msgid "May"
msgstr ""
#: Text.Months.6
msgid "June"
msgstr ""
#: Text.Months.7
msgid "July"
msgstr ""
#: Text.Months.8
msgid "August"
msgstr ""
#: Text.Months.9
msgid "September"
msgstr ""
#: Text.Months.10
msgid "October"
msgstr ""
#: Text.Months.11
msgid "November"
msgstr ""
#: Text.Months.12
msgid "December"
msgstr ""
#: Help.ChangeDate
msgid "Change the time and date for the CryptoBox server."
msgstr ""
#: SuccessMessage.DateChanged.Title
msgid "Date changed"
msgstr ""
#: SuccessMessage.DateChanged.Text
msgid "The date was changed successfully."
msgstr ""
#: WarningMessage.InvalidDate.Title
msgid "Invalid value"
msgstr ""
#: WarningMessage.InvalidDate.Text
msgid "An invalid value for date or time was supplied. Please try again."
msgstr ""

View file

@ -0,0 +1,106 @@
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: CryptoBox-Server 0.3\n"
"Report-Msgid-Bugs-To: translate@cryptobox.org\n"
"POT-Creation-Date: 2006-12-18 11:50+0100\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
"X-Generator: Translate Toolkit 0.10.1\n"
#: Name
msgid "Change date and time"
msgstr ""
#: Link
msgid "Set date/time"
msgstr ""
#: Title.ConfigDate
msgid "Date and time setting"
msgstr ""
#: Button.ConfigDate
msgid "Set date and time"
msgstr ""
#: Text.Date
msgid "Date"
msgstr ""
#: Text.Time
msgid "Time"
msgstr ""
#: Text.Months.1
msgid "January"
msgstr ""
#: Text.Months.2
msgid "February"
msgstr ""
#: Text.Months.3
msgid "March"
msgstr ""
#: Text.Months.4
msgid "April"
msgstr ""
#: Text.Months.5
msgid "May"
msgstr ""
#: Text.Months.6
msgid "June"
msgstr ""
#: Text.Months.7
msgid "July"
msgstr ""
#: Text.Months.8
msgid "August"
msgstr ""
#: Text.Months.9
msgid "September"
msgstr ""
#: Text.Months.10
msgid "October"
msgstr ""
#: Text.Months.11
msgid "November"
msgstr ""
#: Text.Months.12
msgid "December"
msgstr ""
#: Help.ChangeDate
msgid "Change the time and date for the CryptoBox server."
msgstr ""
#: SuccessMessage.DateChanged.Title
msgid "Date changed"
msgstr ""
#: SuccessMessage.DateChanged.Text
msgid "The date was changed successfully."
msgstr ""
#: WarningMessage.InvalidDate.Title
msgid "Invalid value"
msgstr ""
#: WarningMessage.InvalidDate.Text
msgid "An invalid value for date or time was supplied. Please try again."
msgstr ""

View file

@ -0,0 +1,106 @@
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: CryptoBox-Server 0.3\n"
"Report-Msgid-Bugs-To: translate@cryptobox.org\n"
"POT-Creation-Date: 2006-12-18 11:50+0100\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
"X-Generator: Translate Toolkit 0.10.1\n"
#: Name
msgid "Change date and time"
msgstr ""
#: Link
msgid "Set date/time"
msgstr ""
#: Title.ConfigDate
msgid "Date and time setting"
msgstr ""
#: Button.ConfigDate
msgid "Set date and time"
msgstr ""
#: Text.Date
msgid "Date"
msgstr ""
#: Text.Time
msgid "Time"
msgstr ""
#: Text.Months.1
msgid "January"
msgstr ""
#: Text.Months.2
msgid "February"
msgstr ""
#: Text.Months.3
msgid "March"
msgstr ""
#: Text.Months.4
msgid "April"
msgstr ""
#: Text.Months.5
msgid "May"
msgstr ""
#: Text.Months.6
msgid "June"
msgstr ""
#: Text.Months.7
msgid "July"
msgstr ""
#: Text.Months.8
msgid "August"
msgstr ""
#: Text.Months.9
msgid "September"
msgstr ""
#: Text.Months.10
msgid "October"
msgstr ""
#: Text.Months.11
msgid "November"
msgstr ""
#: Text.Months.12
msgid "December"
msgstr ""
#: Help.ChangeDate
msgid "Change the time and date for the CryptoBox server."
msgstr ""
#: SuccessMessage.DateChanged.Title
msgid "Date changed"
msgstr ""
#: SuccessMessage.DateChanged.Text
msgid "The date was changed successfully."
msgstr ""
#: WarningMessage.InvalidDate.Title
msgid "Invalid value"
msgstr ""
#: WarningMessage.InvalidDate.Text
msgid "An invalid value for date or time was supplied. Please try again."
msgstr ""

View file

@ -0,0 +1,106 @@
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: CryptoBox-Server 0.3\n"
"Report-Msgid-Bugs-To: translate@cryptobox.org\n"
"POT-Creation-Date: 2006-12-18 11:50+0100\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
"X-Generator: Translate Toolkit 0.10.1\n"
#: Name
msgid "Change date and time"
msgstr ""
#: Link
msgid "Set date/time"
msgstr ""
#: Title.ConfigDate
msgid "Date and time setting"
msgstr ""
#: Button.ConfigDate
msgid "Set date and time"
msgstr ""
#: Text.Date
msgid "Date"
msgstr ""
#: Text.Time
msgid "Time"
msgstr ""
#: Text.Months.1
msgid "January"
msgstr ""
#: Text.Months.2
msgid "February"
msgstr ""
#: Text.Months.3
msgid "March"
msgstr ""
#: Text.Months.4
msgid "April"
msgstr ""
#: Text.Months.5
msgid "May"
msgstr ""
#: Text.Months.6
msgid "June"
msgstr ""
#: Text.Months.7
msgid "July"
msgstr ""
#: Text.Months.8
msgid "August"
msgstr ""
#: Text.Months.9
msgid "September"
msgstr ""
#: Text.Months.10
msgid "October"
msgstr ""
#: Text.Months.11
msgid "November"
msgstr ""
#: Text.Months.12
msgid "December"
msgstr ""
#: Help.ChangeDate
msgid "Change the time and date for the CryptoBox server."
msgstr ""
#: SuccessMessage.DateChanged.Title
msgid "Date changed"
msgstr ""
#: SuccessMessage.DateChanged.Text
msgid "The date was changed successfully."
msgstr ""
#: WarningMessage.InvalidDate.Title
msgid "Invalid value"
msgstr ""
#: WarningMessage.InvalidDate.Text
msgid "An invalid value for date or time was supplied. Please try again."
msgstr ""

View file

@ -0,0 +1,106 @@
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: CryptoBox-Server 0.3\n"
"Report-Msgid-Bugs-To: translate@cryptobox.org\n"
"POT-Creation-Date: 2006-12-18 11:50+0100\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
"X-Generator: Translate Toolkit 0.10.1\n"
#: Name
msgid "Change date and time"
msgstr ""
#: Link
msgid "Set date/time"
msgstr ""
#: Title.ConfigDate
msgid "Date and time setting"
msgstr ""
#: Button.ConfigDate
msgid "Set date and time"
msgstr ""
#: Text.Date
msgid "Date"
msgstr ""
#: Text.Time
msgid "Time"
msgstr ""
#: Text.Months.1
msgid "January"
msgstr ""
#: Text.Months.2
msgid "February"
msgstr ""
#: Text.Months.3
msgid "March"
msgstr ""
#: Text.Months.4
msgid "April"
msgstr ""
#: Text.Months.5
msgid "May"
msgstr ""
#: Text.Months.6
msgid "June"
msgstr ""
#: Text.Months.7
msgid "July"
msgstr ""
#: Text.Months.8
msgid "August"
msgstr ""
#: Text.Months.9
msgid "September"
msgstr ""
#: Text.Months.10
msgid "October"
msgstr ""
#: Text.Months.11
msgid "November"
msgstr ""
#: Text.Months.12
msgid "December"
msgstr ""
#: Help.ChangeDate
msgid "Change the time and date for the CryptoBox server."
msgstr ""
#: SuccessMessage.DateChanged.Title
msgid "Date changed"
msgstr ""
#: SuccessMessage.DateChanged.Text
msgid "The date was changed successfully."
msgstr ""
#: WarningMessage.InvalidDate.Title
msgid "Invalid value"
msgstr ""
#: WarningMessage.InvalidDate.Text
msgid "An invalid value for date or time was supplied. Please try again."
msgstr ""

View file

@ -0,0 +1,106 @@
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: CryptoBox-Server 0.3\n"
"Report-Msgid-Bugs-To: translate@cryptobox.org\n"
"POT-Creation-Date: 2006-12-18 11:50+0100\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
"X-Generator: Translate Toolkit 0.10.1\n"
#: Name
msgid "Change date and time"
msgstr ""
#: Link
msgid "Set date/time"
msgstr ""
#: Title.ConfigDate
msgid "Date and time setting"
msgstr ""
#: Button.ConfigDate
msgid "Set date and time"
msgstr ""
#: Text.Date
msgid "Date"
msgstr ""
#: Text.Time
msgid "Time"
msgstr ""
#: Text.Months.1
msgid "January"
msgstr ""
#: Text.Months.2
msgid "February"
msgstr ""
#: Text.Months.3
msgid "March"
msgstr ""
#: Text.Months.4
msgid "April"
msgstr ""
#: Text.Months.5
msgid "May"
msgstr ""
#: Text.Months.6
msgid "June"
msgstr ""
#: Text.Months.7
msgid "July"
msgstr ""
#: Text.Months.8
msgid "August"
msgstr ""
#: Text.Months.9
msgid "September"
msgstr ""
#: Text.Months.10
msgid "October"
msgstr ""
#: Text.Months.11
msgid "November"
msgstr ""
#: Text.Months.12
msgid "December"
msgstr ""
#: Help.ChangeDate
msgid "Change the time and date for the CryptoBox server."
msgstr ""
#: SuccessMessage.DateChanged.Title
msgid "Date changed"
msgstr ""
#: SuccessMessage.DateChanged.Text
msgid "The date was changed successfully."
msgstr ""
#: WarningMessage.InvalidDate.Title
msgid "Invalid value"
msgstr ""
#: WarningMessage.InvalidDate.Text
msgid "An invalid value for date or time was supplied. Please try again."
msgstr ""

View file

@ -0,0 +1,106 @@
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: CryptoBox-Server 0.3\n"
"Report-Msgid-Bugs-To: translate@cryptobox.org\n"
"POT-Creation-Date: 2006-12-18 11:50+0100\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
"X-Generator: Translate Toolkit 0.10.1\n"
#: Name
msgid "Change date and time"
msgstr ""
#: Link
msgid "Set date/time"
msgstr ""
#: Title.ConfigDate
msgid "Date and time setting"
msgstr ""
#: Button.ConfigDate
msgid "Set date and time"
msgstr ""
#: Text.Date
msgid "Date"
msgstr ""
#: Text.Time
msgid "Time"
msgstr ""
#: Text.Months.1
msgid "January"
msgstr ""
#: Text.Months.2
msgid "February"
msgstr ""
#: Text.Months.3
msgid "March"
msgstr ""
#: Text.Months.4
msgid "April"
msgstr ""
#: Text.Months.5
msgid "May"
msgstr ""
#: Text.Months.6
msgid "June"
msgstr ""
#: Text.Months.7
msgid "July"
msgstr ""
#: Text.Months.8
msgid "August"
msgstr ""
#: Text.Months.9
msgid "September"
msgstr ""
#: Text.Months.10
msgid "October"
msgstr ""
#: Text.Months.11
msgid "November"
msgstr ""
#: Text.Months.12
msgid "December"
msgstr ""
#: Help.ChangeDate
msgid "Change the time and date for the CryptoBox server."
msgstr ""
#: SuccessMessage.DateChanged.Title
msgid "Date changed"
msgstr ""
#: SuccessMessage.DateChanged.Text
msgid "The date was changed successfully."
msgstr ""
#: WarningMessage.InvalidDate.Title
msgid "Invalid value"
msgstr ""
#: WarningMessage.InvalidDate.Text
msgid "An invalid value for date or time was supplied. Please try again."
msgstr ""

View file

@ -0,0 +1,106 @@
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: CryptoBox-Server 0.3\n"
"Report-Msgid-Bugs-To: translate@cryptobox.org\n"
"POT-Creation-Date: 2006-12-18 11:50+0100\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
"X-Generator: Translate Toolkit 0.10.1\n"
#: Name
msgid "Change date and time"
msgstr ""
#: Link
msgid "Set date/time"
msgstr ""
#: Title.ConfigDate
msgid "Date and time setting"
msgstr ""
#: Button.ConfigDate
msgid "Set date and time"
msgstr ""
#: Text.Date
msgid "Date"
msgstr ""
#: Text.Time
msgid "Time"
msgstr ""
#: Text.Months.1
msgid "January"
msgstr ""
#: Text.Months.2
msgid "February"
msgstr ""
#: Text.Months.3
msgid "March"
msgstr ""
#: Text.Months.4
msgid "April"
msgstr ""
#: Text.Months.5
msgid "May"
msgstr ""
#: Text.Months.6
msgid "June"
msgstr ""
#: Text.Months.7
msgid "July"
msgstr ""
#: Text.Months.8
msgid "August"
msgstr ""
#: Text.Months.9
msgid "September"
msgstr ""
#: Text.Months.10
msgid "October"
msgstr ""
#: Text.Months.11
msgid "November"
msgstr ""
#: Text.Months.12
msgid "December"
msgstr ""
#: Help.ChangeDate
msgid "Change the time and date for the CryptoBox server."
msgstr ""
#: SuccessMessage.DateChanged.Title
msgid "Date changed"
msgstr ""
#: SuccessMessage.DateChanged.Text
msgid "The date was changed successfully."
msgstr ""
#: WarningMessage.InvalidDate.Title
msgid "Invalid value"
msgstr ""
#: WarningMessage.InvalidDate.Text
msgid "An invalid value for date or time was supplied. Please try again."
msgstr ""

View file

@ -0,0 +1,106 @@
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: CryptoBox-Server 0.3\n"
"Report-Msgid-Bugs-To: translate@cryptobox.org\n"
"POT-Creation-Date: 2006-12-18 11:50+0100\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
"X-Generator: Translate Toolkit 0.10.1\n"
#: Name
msgid "Change date and time"
msgstr ""
#: Link
msgid "Set date/time"
msgstr ""
#: Title.ConfigDate
msgid "Date and time setting"
msgstr ""
#: Button.ConfigDate
msgid "Set date and time"
msgstr ""
#: Text.Date
msgid "Date"
msgstr ""
#: Text.Time
msgid "Time"
msgstr ""
#: Text.Months.1
msgid "January"
msgstr ""
#: Text.Months.2
msgid "February"
msgstr ""
#: Text.Months.3
msgid "March"
msgstr ""
#: Text.Months.4
msgid "April"
msgstr ""
#: Text.Months.5
msgid "May"
msgstr ""
#: Text.Months.6
msgid "June"
msgstr ""
#: Text.Months.7
msgid "July"
msgstr ""
#: Text.Months.8
msgid "August"
msgstr ""
#: Text.Months.9
msgid "September"
msgstr ""
#: Text.Months.10
msgid "October"
msgstr ""
#: Text.Months.11
msgid "November"
msgstr ""
#: Text.Months.12
msgid "December"
msgstr ""
#: Help.ChangeDate
msgid "Change the time and date for the CryptoBox server."
msgstr ""
#: SuccessMessage.DateChanged.Title
msgid "Date changed"
msgstr ""
#: SuccessMessage.DateChanged.Text
msgid "The date was changed successfully."
msgstr ""
#: WarningMessage.InvalidDate.Title
msgid "Invalid value"
msgstr ""
#: WarningMessage.InvalidDate.Text
msgid "An invalid value for date or time was supplied. Please try again."
msgstr ""

View file

@ -0,0 +1,105 @@
msgid ""
msgstr ""
"Project-Id-Version: CryptoBox-Server 0.3\n"
"Report-Msgid-Bugs-To: translate@cryptobox.org\n"
"POT-Creation-Date: 2006-12-18 11:50+0100\n"
"PO-Revision-Date: 2006-12-19 15:32+0100\n"
"Last-Translator: tenzin <clavdiaa@yahoo.com>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=4; plural=(n%100==1 ? 0 : n%100==2 ? 1 : n%100==3 || n%100==4 ? 2 : 3);\n"
"X-Generator: Pootle 0.10.1\n"
#: Name
msgid "Change date and time"
msgstr "Spremeni datum in čas"
#: Link
msgid "Set date/time"
msgstr "Nastavi datum in čas"
#: Title.ConfigDate
msgid "Date and time setting"
msgstr "Nastavitve datum/čas"
#: Button.ConfigDate
msgid "Set date and time"
msgstr "Nastavi datum/čas"
#: Text.Date
msgid "Date"
msgstr "Datum"
#: Text.Time
msgid "Time"
msgstr "Čas"
#: Text.Months.1
msgid "January"
msgstr "Januar"
#: Text.Months.2
msgid "February"
msgstr "Februar"
#: Text.Months.3
msgid "March"
msgstr "Marec"
#: Text.Months.4
msgid "April"
msgstr "April"
#: Text.Months.5
msgid "May"
msgstr "Maj"
#: Text.Months.6
msgid "June"
msgstr "Junij"
#: Text.Months.7
msgid "July"
msgstr "Julij"
#: Text.Months.8
msgid "August"
msgstr "Avgust"
#: Text.Months.9
msgid "September"
msgstr "September"
#: Text.Months.10
msgid "October"
msgstr "Oktober"
#: Text.Months.11
msgid "November"
msgstr "November"
#: Text.Months.12
msgid "December"
msgstr "December"
#: Help.ChangeDate
msgid "Change the time and date for the CryptoBox server."
msgstr "Spremeni čas in datum za Cryptobox server"
#: SuccessMessage.DateChanged.Title
msgid "Date changed"
msgstr "Datum je spremenjen"
#: SuccessMessage.DateChanged.Text
msgid "The date was changed successfully."
msgstr "Datum je bil uspešno spremenjen"
#: WarningMessage.InvalidDate.Title
msgid "Invalid value"
msgstr "Neveljavna vrednost"
#: WarningMessage.InvalidDate.Text
msgid "An invalid value for date or time was supplied. Please try again."
msgstr "Nepravilen vnos datuma ali časa. Prosimo poskusite ponovno."

View file

@ -0,0 +1,106 @@
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: CryptoBox-Server 0.3\n"
"Report-Msgid-Bugs-To: translate@cryptobox.org\n"
"POT-Creation-Date: 2006-12-18 11:50+0100\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
"X-Generator: Translate Toolkit 0.10.1\n"
#: Name
msgid "Change date and time"
msgstr ""
#: Link
msgid "Set date/time"
msgstr ""
#: Title.ConfigDate
msgid "Date and time setting"
msgstr ""
#: Button.ConfigDate
msgid "Set date and time"
msgstr ""
#: Text.Date
msgid "Date"
msgstr ""
#: Text.Time
msgid "Time"
msgstr ""
#: Text.Months.1
msgid "January"
msgstr ""
#: Text.Months.2
msgid "February"
msgstr ""
#: Text.Months.3
msgid "March"
msgstr ""
#: Text.Months.4
msgid "April"
msgstr ""
#: Text.Months.5
msgid "May"
msgstr ""
#: Text.Months.6
msgid "June"
msgstr ""
#: Text.Months.7
msgid "July"
msgstr ""
#: Text.Months.8
msgid "August"
msgstr ""
#: Text.Months.9
msgid "September"
msgstr ""
#: Text.Months.10
msgid "October"
msgstr ""
#: Text.Months.11
msgid "November"
msgstr ""
#: Text.Months.12
msgid "December"
msgstr ""
#: Help.ChangeDate
msgid "Change the time and date for the CryptoBox server."
msgstr ""
#: SuccessMessage.DateChanged.Title
msgid "Date changed"
msgstr ""
#: SuccessMessage.DateChanged.Text
msgid "The date was changed successfully."
msgstr ""
#: WarningMessage.InvalidDate.Title
msgid "Invalid value"
msgstr ""
#: WarningMessage.InvalidDate.Text
msgid "An invalid value for date or time was supplied. Please try again."
msgstr ""

View file

@ -0,0 +1,39 @@
Name = Change date and time
Link = Set date/time
Title.ConfigDate = Date and time setting
Button.ConfigDate = Set date and time
Text.Date = Date
Text.Time = Time
Text.Months {
1 = January
2 = February
3 = March
4 = April
5 = May
6 = June
7 = July
8 = August
9 = September
10 = October
11 = November
12 = December
}
Help.ChangeDate = Change the time and date for the CryptoBox server.
SuccessMessage {
DateChanged {
Title = Date changed
Text = The date was changed successfully.
}
}
WarningMessage {
InvalidDate {
Title = Invalid value
Text = An invalid value for date or time was supplied. Please try again.
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.2 KiB

View file

@ -0,0 +1,58 @@
#!/usr/bin/env python
#
# Copyright 2006 sense.lab e.V.
#
# This file is part of the CryptoBox.
#
# The CryptoBox is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# The CryptoBox is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with the CryptoBox; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
#
__revision__ = "$Id"
## necessary: otherwise CryptoBoxRootActions.py will refuse to execute this script
PLUGIN_TYPE = "cryptobox"
DATE_BIN = "/bin/date"
import subprocess
import re
import sys
import os
if __name__ == "__main__":
args = sys.argv[1:]
self_bin = sys.argv[0]
if len(args) > 1:
sys.stderr.write("%s: too many arguments (%s)\n" % (self_bin, args))
sys.exit(1)
if len(args) == 0:
sys.stderr.write("%s: no argument supplied\n" % self_bin)
sys.exit(1)
if re.search(r'\D', args[0]):
sys.stderr.write("%s: illegal argument (%s)\n" % (self_bin, args[0]))
sys.exit(1)
proc = subprocess.Popen(
shell = False,
stdout = subprocess.PIPE,
args = [DATE_BIN, args[0]])
proc.wait()
sys.exit(proc.returncode)

View file

@ -0,0 +1,97 @@
#
# Copyright 2006 sense.lab e.V.
#
# This file is part of the CryptoBox.
#
# The CryptoBox is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# The CryptoBox is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with the CryptoBox; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
#
__revision__ = "$Id"
from cryptobox.tests.base import WebInterfaceTestClass
class unittests(WebInterfaceTestClass):
def test_get_date(self):
"""retrieve the current date"""
date = self._get_current_date()
def test_change_date(self):
"""set the date back and forth"""
now = self._get_current_date()
## copy current time
new_date = dict(now)
## move three minutes forward (more is not nice because of screensavers)
new_date["minute"] = (now["minute"] + 3) % 60
## in case of minute-overflow we also have to move the hour a little bit forward
new_date["hour"] = now["hour"] + ((now["minute"] + 3) / 60)
## move forward ...
self._setDate(new_date)
self.assertEquals(new_date, self._get_current_date())
## ... and backward
self._setDate(now)
self.assertEquals(now, self._get_current_date())
def test_try_broken_date(self):
"""expect error messages for invalid dates"""
self._setDate({"hour":12, "minute":40, "year":2004, "month":7, "day":0})
self.cmd.find("invalid value for date")
self._setDate({"hour":12, "minute":40, "year":"x", "month":7, "day":2})
self.cmd.find("invalid value for date")
self._setDate({"hour":12, "minute":40, "year":2004, "month":2, "day":31})
self.cmd.find("invalid value for date")
def _get_current_date(self):
date_url = self.url + "date"
self.register_auth(date_url)
self.cmd.go(date_url)
self.cmd.find("Data.Status.Plugins.date=([0-9]+/[0-9]+/[0-9]+/[0-9]+/[0-9]+/[0-9]+)$", "m")
dateNumbers = self.locals["__match__"].split("/")
self.assertEquals(len(dateNumbers), 6)
## we ignore seconds
dateField = {
"year" : int(dateNumbers[0]),
"month" : int(dateNumbers[1]),
"day" : int(dateNumbers[2]),
"hour" : int(dateNumbers[3]),
"minute" : int(dateNumbers[4])}
return dateField
def _setDate(self, date):
"""for now we have to use this function instead of the one below"""
date_url = self.url + "date?weblang=en&store=1&year=%s&month=%s&day=%s&hour=%s&minute=%s"\
% (str(date["year"]), str(date["month"]), str(date["day"]),
str(date["hour"]), str(date["minute"]))
self.register_auth(date_url)
self.cmd.go(date_url)
def _setDateBroken(self, date):
"""this should work, but the parsing of twill seems to be broken
as soon as the twill bug is fixed, we should use this function"""
date_url = self.url + "date"
self.register_auth(date_url)
self.cmd.go(date_url)
self.cmd.formvalue("set_date", "year", str(date["year"]))
self.cmd.formvalue("set_date", "month", str(date["month"]))
self.cmd.formvalue("set_date", "day", str(date["day"]))
self.cmd.formvalue("set_date", "hour", str(date["hour"]))
self.cmd.formvalue("set_date", "minute", str(date["minute"]))
self.cmd.submit()

View file

@ -0,0 +1,15 @@
<?cs # $Id$ ?>
<h1><?cs var:html_escape(Lang.Plugins.disks.Title.Disks) ?></h1>
<?cs call:handle_messages() ?>
<?cs if:subcount(Data.Disks) == 0 ?>
<?cs call:hint("Plugins.disks.NoDisksAvailable") ?>
<?cs else ?>
<?cs # we use "loop" instead of "each" to keep the order of the disks ?>
<?cs loop: index = #0, subcount(Data.Disks)-1, #1 ?>
<?cs call:show_volume(Data.Disks[index]) ?>
<?cs /loop ?>
<?cs /if ?>

View file

@ -0,0 +1,48 @@
#
# Copyright 2006 sense.lab e.V.
#
# This file is part of the CryptoBox.
#
# The CryptoBox is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# The CryptoBox is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with the CryptoBox; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
#
"""The disks feature of the CryptoBox.
"""
__revision__ = "$Id"
import cryptobox.plugins.base
class disks(cryptobox.plugins.base.CryptoBoxPlugin):
"""The disk feature of the CryptoBox.
"""
plugin_capabilities = [ "system" ]
plugin_visibility = [ "menu" ]
request_auth = False
rank = 10
def do_action(self):
"""The action handler.
"""
self.cbox.reread_container_list()
return "disks"
def get_status(self):
"""Retrieve the current status of the feature.
"""
return ":".join([e.get_device() for e in self.cbox.get_container_list()])

View file

@ -0,0 +1,15 @@
#: Name
msgid "Disk overview"
msgstr ""
#: Link
msgid "Disks"
msgstr ""
#: Title.Disks
msgid "Available disks"
msgstr ""
#: AdviceMessage.NoDisksAvailable.Text
msgid "No available disks were found!"
msgstr ""

View file

@ -0,0 +1,30 @@
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: CryptoBox-Server 0.3\n"
"Report-Msgid-Bugs-To: translate@cryptobox.org\n"
"POT-Creation-Date: 2006-12-18 11:50+0100\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
"X-Generator: Translate Toolkit 0.10.1\n"
#: Name
msgid "Disk overview"
msgstr ""
#: Link
msgid "Disks"
msgstr ""
#: Title.Disks
msgid "Available disks"
msgstr ""
#: AdviceMessage.NoDisksAvailable.Text
msgid "No available disks were found!"
msgstr ""

View file

@ -0,0 +1,30 @@
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: CryptoBox-Server 0.3\n"
"Report-Msgid-Bugs-To: translate@cryptobox.org\n"
"POT-Creation-Date: 2006-12-18 11:50+0100\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
"X-Generator: Translate Toolkit 0.10.1\n"
#: Name
msgid "Disk overview"
msgstr ""
#: Link
msgid "Disks"
msgstr ""
#: Title.Disks
msgid "Available disks"
msgstr ""
#: AdviceMessage.NoDisksAvailable.Text
msgid "No available disks were found!"
msgstr ""

View file

@ -0,0 +1,29 @@
msgid ""
msgstr ""
"Project-Id-Version: CryptoBox-Server 0.3\n"
"Report-Msgid-Bugs-To: translate@cryptobox.org\n"
"POT-Creation-Date: 2006-12-18 11:50+0100\n"
"PO-Revision-Date: 2006-12-14 03:46+0100\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
"X-Generator: Translate Toolkit 0.10.1\n"
#: Name
msgid "Disk overview"
msgstr "Datenträgerübersicht"
#: Link
msgid "Disks"
msgstr "Datenträger"
#: Title.Disks
msgid "Available disks"
msgstr "Verfügbare Datenträger"
#: AdviceMessage.NoDisksAvailable.Text
msgid "No available disks were found!"
msgstr "Keine verfügbaren Daträger gefunden!"

View file

@ -0,0 +1,25 @@
#: Name
msgid "Disk overview"
msgstr "Disk overview"
#: Link
msgid "Disks"
msgstr "Disks"
#: Title.Disks
msgid "Available disks"
msgstr "Available disks"
#: AdviceMessage.NoDisksAvailable.Text
msgid "No available disks were found!"
msgstr "No available disks were found!"
#~ msgid "Volumes"
#~ msgstr "Volumes"
#~ msgid "Available volumes"
#~ msgstr "Available volumes"
#~ msgid "There is no volume available!"
#~ msgstr "There is no volume available!"

View file

@ -0,0 +1,30 @@
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: CryptoBox-Server 0.3\n"
"Report-Msgid-Bugs-To: translate@cryptobox.org\n"
"POT-Creation-Date: 2006-12-18 11:50+0100\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
"X-Generator: Translate Toolkit 0.10.1\n"
#: Name
msgid "Disk overview"
msgstr ""
#: Link
msgid "Disks"
msgstr ""
#: Title.Disks
msgid "Available disks"
msgstr ""
#: AdviceMessage.NoDisksAvailable.Text
msgid "No available disks were found!"
msgstr ""

View file

@ -0,0 +1,30 @@
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: CryptoBox-Server 0.3\n"
"Report-Msgid-Bugs-To: translate@cryptobox.org\n"
"POT-Creation-Date: 2006-12-18 11:50+0100\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
"X-Generator: Translate Toolkit 0.10.1\n"
#: Name
msgid "Disk overview"
msgstr ""
#: Link
msgid "Disks"
msgstr ""
#: Title.Disks
msgid "Available disks"
msgstr ""
#: AdviceMessage.NoDisksAvailable.Text
msgid "No available disks were found!"
msgstr ""

View file

@ -0,0 +1,30 @@
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: CryptoBox-Server 0.3\n"
"Report-Msgid-Bugs-To: translate@cryptobox.org\n"
"POT-Creation-Date: 2006-12-18 11:50+0100\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
"X-Generator: Translate Toolkit 0.10.1\n"
#: Name
msgid "Disk overview"
msgstr ""
#: Link
msgid "Disks"
msgstr ""
#: Title.Disks
msgid "Available disks"
msgstr ""
#: AdviceMessage.NoDisksAvailable.Text
msgid "No available disks were found!"
msgstr ""

View file

@ -0,0 +1,30 @@
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: CryptoBox-Server 0.3\n"
"Report-Msgid-Bugs-To: translate@cryptobox.org\n"
"POT-Creation-Date: 2006-12-18 11:50+0100\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
"X-Generator: Translate Toolkit 0.10.1\n"
#: Name
msgid "Disk overview"
msgstr ""
#: Link
msgid "Disks"
msgstr ""
#: Title.Disks
msgid "Available disks"
msgstr ""
#: AdviceMessage.NoDisksAvailable.Text
msgid "No available disks were found!"
msgstr ""

View file

@ -0,0 +1,30 @@
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: CryptoBox-Server 0.3\n"
"Report-Msgid-Bugs-To: translate@cryptobox.org\n"
"POT-Creation-Date: 2006-12-18 11:50+0100\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
"X-Generator: Translate Toolkit 0.10.1\n"
#: Name
msgid "Disk overview"
msgstr ""
#: Link
msgid "Disks"
msgstr ""
#: Title.Disks
msgid "Available disks"
msgstr ""
#: AdviceMessage.NoDisksAvailable.Text
msgid "No available disks were found!"
msgstr ""

View file

@ -0,0 +1,30 @@
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: CryptoBox-Server 0.3\n"
"Report-Msgid-Bugs-To: translate@cryptobox.org\n"
"POT-Creation-Date: 2006-12-18 11:50+0100\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
"X-Generator: Translate Toolkit 0.10.1\n"
#: Name
msgid "Disk overview"
msgstr ""
#: Link
msgid "Disks"
msgstr ""
#: Title.Disks
msgid "Available disks"
msgstr ""
#: AdviceMessage.NoDisksAvailable.Text
msgid "No available disks were found!"
msgstr ""

View file

@ -0,0 +1,30 @@
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: CryptoBox-Server 0.3\n"
"Report-Msgid-Bugs-To: translate@cryptobox.org\n"
"POT-Creation-Date: 2006-12-18 11:50+0100\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
"X-Generator: Translate Toolkit 0.10.1\n"
#: Name
msgid "Disk overview"
msgstr ""
#: Link
msgid "Disks"
msgstr ""
#: Title.Disks
msgid "Available disks"
msgstr ""
#: AdviceMessage.NoDisksAvailable.Text
msgid "No available disks were found!"
msgstr ""

View file

@ -0,0 +1,30 @@
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: CryptoBox-Server 0.3\n"
"Report-Msgid-Bugs-To: translate@cryptobox.org\n"
"POT-Creation-Date: 2006-12-18 11:50+0100\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
"X-Generator: Translate Toolkit 0.10.1\n"
#: Name
msgid "Disk overview"
msgstr ""
#: Link
msgid "Disks"
msgstr ""
#: Title.Disks
msgid "Available disks"
msgstr ""
#: AdviceMessage.NoDisksAvailable.Text
msgid "No available disks were found!"
msgstr ""

View file

@ -0,0 +1,30 @@
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: CryptoBox-Server 0.3\n"
"Report-Msgid-Bugs-To: translate@cryptobox.org\n"
"POT-Creation-Date: 2006-12-18 11:50+0100\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
"X-Generator: Translate Toolkit 0.10.1\n"
#: Name
msgid "Disk overview"
msgstr ""
#: Link
msgid "Disks"
msgstr ""
#: Title.Disks
msgid "Available disks"
msgstr ""
#: AdviceMessage.NoDisksAvailable.Text
msgid "No available disks were found!"
msgstr ""

View file

@ -0,0 +1,30 @@
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: CryptoBox-Server 0.3\n"
"Report-Msgid-Bugs-To: translate@cryptobox.org\n"
"POT-Creation-Date: 2006-12-18 11:50+0100\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
"X-Generator: Translate Toolkit 0.10.1\n"
#: Name
msgid "Disk overview"
msgstr ""
#: Link
msgid "Disks"
msgstr ""
#: Title.Disks
msgid "Available disks"
msgstr ""
#: AdviceMessage.NoDisksAvailable.Text
msgid "No available disks were found!"
msgstr ""

View file

@ -0,0 +1,29 @@
msgid ""
msgstr ""
"Project-Id-Version: CryptoBox-Server 0.3\n"
"Report-Msgid-Bugs-To: translate@cryptobox.org\n"
"POT-Creation-Date: 2006-12-18 11:50+0100\n"
"PO-Revision-Date: 2006-12-21 15:01+0100\n"
"Last-Translator: tenzin <clavdiaa@yahoo.com>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=4; plural=(n%100==1 ? 0 : n%100==2 ? 1 : n%100==3 || n%100==4 ? 2 : 3);\n"
"X-Generator: Pootle 0.10.1\n"
#: Name
msgid "Disk overview"
msgstr "Pregled diska"
#: Link
msgid "Disks"
msgstr "Diski"
#: Title.Disks
msgid "Available disks"
msgstr "Razpoložljivi diski"
#: AdviceMessage.NoDisksAvailable.Text
msgid "No available disks were found!"
msgstr "Noben disk ni na razpolago"

View file

@ -0,0 +1,30 @@
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: CryptoBox-Server 0.3\n"
"Report-Msgid-Bugs-To: translate@cryptobox.org\n"
"POT-Creation-Date: 2006-12-18 11:50+0100\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
"X-Generator: Translate Toolkit 0.10.1\n"
#: Name
msgid "Disk overview"
msgstr ""
#: Link
msgid "Disks"
msgstr ""
#: Title.Disks
msgid "Available disks"
msgstr ""
#: AdviceMessage.NoDisksAvailable.Text
msgid "No available disks were found!"
msgstr ""

View file

@ -0,0 +1,10 @@
Name = Disk overview
Link = Disks
Title.Disks = Available disks
AdviceMessage {
NoDisksAvailable {
Text = No available disks were found!
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.1 KiB

View file

@ -0,0 +1,43 @@
#
# Copyright 2006 sense.lab e.V.
#
# This file is part of the CryptoBox.
#
# The CryptoBox is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# The CryptoBox is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with the CryptoBox; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
#
__revision__ = "$Id"
from cryptobox.tests.base import WebInterfaceTestClass
class unittests(WebInterfaceTestClass):
def test_read_form(self):
'''display all devices'''
self.register_auth(self.url)
self.cmd.go(self.url + "disks?weblang=en")
self.cmd.find("Available disks")
def test_is_device_in_list(self):
"""check if the device-under-test is in the device list"""
self.register_auth(self.url)
self.cmd.go(self.url + "disks?weblang=en")
self.cmd.find("Available disks")
self.cmd.find(r'Data.Status.Plugins.disks=(.*)$', "m")
devices = self.locals["__match__"].split(":")
self.assertTrue(len(devices)>0)
self.assertTrue(self.device in devices)

View file

@ -0,0 +1,9 @@
<?cs # $Id$ ?>
<?cs call:handle_messages() ?>
<div id="doc">
<?cs include:Settings.DocDir + '/' + Data.Plugins.help.Language + '/' + Data.Plugins.help.Page + '.html' ?>
</div>

View file

@ -0,0 +1,81 @@
#
# Copyright 2006 sense.lab e.V.
#
# This file is part of the CryptoBox.
#
# The CryptoBox is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# The CryptoBox is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with the CryptoBox; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
#
"""The help feature of the CryptoBox.
"""
__revision__ = "$Id"
import cryptobox.plugins.base
class help(cryptobox.plugins.base.CryptoBoxPlugin):
"""The help feature of the CryptoBox.
"""
#plugin_capabilities = [ "system" ]
#TODO: enable this plugin as soon as the user documentation is ready again
plugin_capabilities = [ ]
plugin_visibility = [ "menu" ]
request_auth = False
rank = 80
default_lang = 'en'
default_page = "CryptoBoxUser"
def do_action(self, page=""):
'''prints the offline wikipage
'''
import re, os
## check for invalid characters and if the page exists in the default language
if page and \
not re.search(r'\W', page) and \
os.path.isfile(os.path.join(self.cbox.prefs["Locations"]["DocDir"],
self.default_lang, page + '.html')):
## everything is ok
pass
else:
## display this page as default help page
page = self.default_page
if page:
## issue warning
self.cbox.log.info("could not find the selected documentation page: %s" % str(page))
## store the name of the page
self.hdf[self.hdf_prefix + "Page"] = page
## choose the right language
for lang in self.site.lang_order:
if os.path.isfile(os.path.join(self.cbox.prefs["Locations"]["DocDir"],
lang, page + '.html')):
doc_lang = lang
break
else:
doc_lang = self.default_lang
self.hdf[self.hdf_prefix + "Language"] = doc_lang
## store the current setting for a later "getStatus" call
self.current_lang = doc_lang
self.current_page = page
return "doc"
def get_status(self):
"""Retrieve the current status of the feature.
"""
return "%s:%s" % (self.current_lang, self.current_page)

View file

@ -0,0 +1,7 @@
#: Name
msgid "User manual"
msgstr ""
#: Link
msgid "Help"
msgstr ""

View file

@ -0,0 +1,22 @@
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: CryptoBox-Server 0.3\n"
"Report-Msgid-Bugs-To: translate@cryptobox.org\n"
"POT-Creation-Date: 2006-12-18 11:39+0100\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
"X-Generator: Translate Toolkit 0.10.1\n"
#: Name
msgid "User manual"
msgstr ""
#: Link
msgid "Help"
msgstr ""

View file

@ -0,0 +1,22 @@
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: CryptoBox-Server 0.3\n"
"Report-Msgid-Bugs-To: translate@cryptobox.org\n"
"POT-Creation-Date: 2006-12-18 11:39+0100\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
"X-Generator: Translate Toolkit 0.10.1\n"
#: Name
msgid "User manual"
msgstr ""
#: Link
msgid "Help"
msgstr ""

View file

@ -0,0 +1,21 @@
msgid ""
msgstr ""
"Project-Id-Version: CryptoBox-Server 0.3\n"
"Report-Msgid-Bugs-To: translate@cryptobox.org\n"
"POT-Creation-Date: 2006-12-18 11:39+0100\n"
"PO-Revision-Date: 2006-12-14 03:47+0100\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
"X-Generator: Translate Toolkit 0.10.1\n"
#: Name
msgid "User manual"
msgstr "Nutzerhandbuch"
#: Link
msgid "Help"
msgstr "Hilfe"

View file

@ -0,0 +1,8 @@
#: Name
msgid "User manual"
msgstr "User manual"
#: Link
msgid "Help"
msgstr "Help"

View file

@ -0,0 +1,22 @@
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: CryptoBox-Server 0.3\n"
"Report-Msgid-Bugs-To: translate@cryptobox.org\n"
"POT-Creation-Date: 2006-12-18 11:39+0100\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
"X-Generator: Translate Toolkit 0.10.1\n"
#: Name
msgid "User manual"
msgstr ""
#: Link
msgid "Help"
msgstr ""

View file

@ -0,0 +1,22 @@
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: CryptoBox-Server 0.3\n"
"Report-Msgid-Bugs-To: translate@cryptobox.org\n"
"POT-Creation-Date: 2006-12-18 11:39+0100\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
"X-Generator: Translate Toolkit 0.10.1\n"
#: Name
msgid "User manual"
msgstr ""
#: Link
msgid "Help"
msgstr ""

View file

@ -0,0 +1,22 @@
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: CryptoBox-Server 0.3\n"
"Report-Msgid-Bugs-To: translate@cryptobox.org\n"
"POT-Creation-Date: 2006-12-18 11:39+0100\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
"X-Generator: Translate Toolkit 0.10.1\n"
#: Name
msgid "User manual"
msgstr ""
#: Link
msgid "Help"
msgstr ""

View file

@ -0,0 +1,22 @@
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: CryptoBox-Server 0.3\n"
"Report-Msgid-Bugs-To: translate@cryptobox.org\n"
"POT-Creation-Date: 2006-12-18 11:39+0100\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
"X-Generator: Translate Toolkit 0.10.1\n"
#: Name
msgid "User manual"
msgstr ""
#: Link
msgid "Help"
msgstr ""

View file

@ -0,0 +1,22 @@
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: CryptoBox-Server 0.3\n"
"Report-Msgid-Bugs-To: translate@cryptobox.org\n"
"POT-Creation-Date: 2006-12-18 11:39+0100\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
"X-Generator: Translate Toolkit 0.10.1\n"
#: Name
msgid "User manual"
msgstr ""
#: Link
msgid "Help"
msgstr ""

View file

@ -0,0 +1,22 @@
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: CryptoBox-Server 0.3\n"
"Report-Msgid-Bugs-To: translate@cryptobox.org\n"
"POT-Creation-Date: 2006-12-18 11:39+0100\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
"X-Generator: Translate Toolkit 0.10.1\n"
#: Name
msgid "User manual"
msgstr ""
#: Link
msgid "Help"
msgstr ""

View file

@ -0,0 +1,22 @@
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: CryptoBox-Server 0.3\n"
"Report-Msgid-Bugs-To: translate@cryptobox.org\n"
"POT-Creation-Date: 2006-12-18 11:39+0100\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
"X-Generator: Translate Toolkit 0.10.1\n"
#: Name
msgid "User manual"
msgstr ""
#: Link
msgid "Help"
msgstr ""

View file

@ -0,0 +1,22 @@
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: CryptoBox-Server 0.3\n"
"Report-Msgid-Bugs-To: translate@cryptobox.org\n"
"POT-Creation-Date: 2006-12-18 11:39+0100\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
"X-Generator: Translate Toolkit 0.10.1\n"
#: Name
msgid "User manual"
msgstr ""
#: Link
msgid "Help"
msgstr ""

View file

@ -0,0 +1,22 @@
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: CryptoBox-Server 0.3\n"
"Report-Msgid-Bugs-To: translate@cryptobox.org\n"
"POT-Creation-Date: 2006-12-18 11:39+0100\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
"X-Generator: Translate Toolkit 0.10.1\n"
#: Name
msgid "User manual"
msgstr ""
#: Link
msgid "Help"
msgstr ""

View file

@ -0,0 +1,22 @@
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: CryptoBox-Server 0.3\n"
"Report-Msgid-Bugs-To: translate@cryptobox.org\n"
"POT-Creation-Date: 2006-12-18 11:39+0100\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
"X-Generator: Translate Toolkit 0.10.1\n"
#: Name
msgid "User manual"
msgstr ""
#: Link
msgid "Help"
msgstr ""

View file

@ -0,0 +1,21 @@
msgid ""
msgstr ""
"Project-Id-Version: CryptoBox-Server 0.3\n"
"Report-Msgid-Bugs-To: translate@cryptobox.org\n"
"POT-Creation-Date: 2006-12-18 11:39+0100\n"
"PO-Revision-Date: 2006-12-09 16:28+0100\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=4; plural=(n%100==1 ? 0 : n%100==2 ? 1 : n%100==3 || n%100==4 ? 2 : 3);\n"
"X-Generator: Translate Toolkit 0.10.1\n"
#: Name
msgid "User manual"
msgstr "Uporabniški priročnik"
#: Link
msgid "Help"
msgstr "Pomoč"

View file

@ -0,0 +1,22 @@
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: CryptoBox-Server 0.3\n"
"Report-Msgid-Bugs-To: translate@cryptobox.org\n"
"POT-Creation-Date: 2006-12-18 11:39+0100\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
"X-Generator: Translate Toolkit 0.10.1\n"
#: Name
msgid "User manual"
msgstr ""
#: Link
msgid "Help"
msgstr ""

View file

@ -0,0 +1,5 @@
Name = User manual
Link = Help
Title.Help = User manual

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

View file

@ -0,0 +1,94 @@
#
# Copyright 2006 sense.lab e.V.
#
# This file is part of the CryptoBox.
#
# The CryptoBox is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# The CryptoBox is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with the CryptoBox; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
#
__revision__ = "$Id"
from cryptobox.tests.base import WebInterfaceTestClass
from twill.errors import *
class unittests(WebInterfaceTestClass):
def test_help_language_texts(self):
'''help pages should be available in different languages'''
## check english help pages
self.cmd.go(self.url + "help?weblang=en")
self.cmd.find("Table of Contents")
self.cmd.find("Getting started")
(lang,page) = self._getHelpStatus()
self.assertTrue(lang == "en")
self.assertTrue(page == "CryptoBoxUser")
## check german help pages
self.cmd.go(self.url + "help?weblang=de")
self.cmd.find("Table of Contents")
self.cmd.find("Wie geht es los")
(lang,page) = self._getHelpStatus()
self.assertTrue(lang == "de")
self.assertTrue(page == "CryptoBoxUser")
## check slovene help pages
self.cmd.go(self.url + "help?weblang=sl")
self.assertRaises(TwillAssertionError, self.cmd.notfind, "Table of Contents")
## add a slovene text here, as soon as the help is translated
(lang,page) = self._getHelpStatus()
## change this to "sl" as soon as the help is translated
self.assertTrue(lang == "en")
self.assertTrue(page == "CryptoBoxUser")
## check french help pages
self.cmd.go(self.url + "help?weblang=fr")
self.assertRaises(TwillAssertionError, self.cmd.notfind, "Table of Contents")
## add a french text here, as soon as the help is translated
(lang,page) = self._getHelpStatus()
## change this to "fr" as soon as the help is translated
self.assertTrue(lang == "en")
self.assertTrue(page == "CryptoBoxUser")
## test a random language - it should fall back to english
self.cmd.go(self.url + "help?weblang=foobar")
self.assertRaises(TwillAssertionError, self.cmd.notfind, "Table of Contents")
(lang,page) = self._getHelpStatus()
self.assertTrue(lang == "en")
self.assertTrue(page == "CryptoBoxUser")
def test_help_pages(self):
"""check invalid page requests"""
self.cmd.go(self.url + "help?page=foobar")
(lang,page) = self._getHelpStatus()
self.assertTrue(page == "CryptoBoxUser")
self.cmd.go(self.url + "help?page=CryptoBoxUser")
(lang,page) = self._getHelpStatus()
self.assertTrue(page == "CryptoBoxUser")
def test_help_default_languages(self):
"""check invalid page requests"""
self.cmd.go(self.url + "help?weblang=foobar")
(lang,page) = self._getHelpStatus()
self.assertTrue(lang == "en")
def _getHelpStatus(self):
self.cmd.find(r'Data.Status.Plugins.help=(.*)$', "m")
return tuple(self.locals["__match__"].split(":"))

View file

@ -0,0 +1,15 @@
#: Name
msgid "Choose interface language"
msgstr ""
#: Link
msgid "Languages"
msgstr ""
#: Title.Language
msgid "Choose an interface language"
msgstr ""
#: Help.Select
msgid "Choose your preferred interface language. This setting will be kept for your browsing session."
msgstr ""

View file

@ -0,0 +1,29 @@
msgid ""
msgstr ""
"Project-Id-Version: CryptoBox-Server 0.3\n"
"Report-Msgid-Bugs-To: translate@cryptobox.org\n"
"POT-Creation-Date: 2006-12-18 11:39+0100\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
"X-Generator: Translate Toolkit 0.10.1\n"
#: Name
msgid "Choose interface language"
msgstr ""
#: Link
msgid "Languages"
msgstr ""
#: Title.Language
msgid "Choose an interface language"
msgstr ""
#: Help.Select
msgid "Choose your preferred interface language. This setting will be kept for your browsing session."
msgstr ""

View file

@ -0,0 +1,29 @@
msgid ""
msgstr ""
"Project-Id-Version: CryptoBox-Server 0.3\n"
"Report-Msgid-Bugs-To: translate@cryptobox.org\n"
"POT-Creation-Date: 2006-12-18 11:39+0100\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
"X-Generator: Translate Toolkit 0.10.1\n"
#: Name
msgid "Choose interface language"
msgstr ""
#: Link
msgid "Languages"
msgstr ""
#: Title.Language
msgid "Choose an interface language"
msgstr ""
#: Help.Select
msgid "Choose your preferred interface language. This setting will be kept for your browsing session."
msgstr ""

View file

@ -0,0 +1,29 @@
msgid ""
msgstr ""
"Project-Id-Version: CryptoBox-Server 0.3\n"
"Report-Msgid-Bugs-To: translate@cryptobox.org\n"
"POT-Creation-Date: 2006-12-18 11:39+0100\n"
"PO-Revision-Date: 2006-12-14 03:53+0100\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
"X-Generator: Translate Toolkit 0.10.1\n"
#: Name
msgid "Choose interface language"
msgstr "Wähle eine Nutzersprache"
#: Link
msgid "Languages"
msgstr "Sprachen"
#: Title.Language
msgid "Choose an interface language"
msgstr "Wähle eine Nutzersprache"
#: Help.Select
msgid "Choose your preferred interface language. This setting will be kept for your browsing session."
msgstr "Wähle deine bevorzugte Nutzersprache. Diese Einstellung wird für die Dauer deiner Sitzung gepeichert."

View file

@ -0,0 +1,19 @@
#: Name
msgid "Choose interface language"
msgstr "Choose interface language"
#: Link
msgid "Languages"
msgstr "Languages"
#: Title.Language
msgid "Choose an interface language"
msgstr "Choose an interface language"
#: Help.Select
msgid "Choose your preferred interface language. This setting will be kept for your browsing session."
msgstr "Choose your preferred interface language. This setting will be kept for your browsing session."
#~ msgid "Choose your interface language"
#~ msgstr "Choose youur interface language"

View file

@ -0,0 +1,30 @@
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: CryptoBox-Server 0.3\n"
"Report-Msgid-Bugs-To: translate@cryptobox.org\n"
"POT-Creation-Date: 2006-12-18 11:39+0100\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
"X-Generator: Translate Toolkit 0.10.1\n"
#: Name
msgid "Choose interface language"
msgstr ""
#: Link
msgid "Languages"
msgstr ""
#: Title.Language
msgid "Choose an interface language"
msgstr ""
#: Help.Select
msgid "Choose your preferred interface language. This setting will be kept for your browsing session."
msgstr ""

View file

@ -0,0 +1,30 @@
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: CryptoBox-Server 0.3\n"
"Report-Msgid-Bugs-To: translate@cryptobox.org\n"
"POT-Creation-Date: 2006-12-18 11:39+0100\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
"X-Generator: Translate Toolkit 0.10.1\n"
#: Name
msgid "Choose interface language"
msgstr ""
#: Link
msgid "Languages"
msgstr ""
#: Title.Language
msgid "Choose an interface language"
msgstr ""
#: Help.Select
msgid "Choose your preferred interface language. This setting will be kept for your browsing session."
msgstr ""

View file

@ -0,0 +1,30 @@
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: CryptoBox-Server 0.3\n"
"Report-Msgid-Bugs-To: translate@cryptobox.org\n"
"POT-Creation-Date: 2006-12-18 11:39+0100\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
"X-Generator: Translate Toolkit 0.10.1\n"
#: Name
msgid "Choose interface language"
msgstr ""
#: Link
msgid "Languages"
msgstr ""
#: Title.Language
msgid "Choose an interface language"
msgstr ""
#: Help.Select
msgid "Choose your preferred interface language. This setting will be kept for your browsing session."
msgstr ""

View file

@ -0,0 +1,30 @@
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: CryptoBox-Server 0.3\n"
"Report-Msgid-Bugs-To: translate@cryptobox.org\n"
"POT-Creation-Date: 2006-12-18 11:39+0100\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
"X-Generator: Translate Toolkit 0.10.1\n"
#: Name
msgid "Choose interface language"
msgstr ""
#: Link
msgid "Languages"
msgstr ""
#: Title.Language
msgid "Choose an interface language"
msgstr ""
#: Help.Select
msgid "Choose your preferred interface language. This setting will be kept for your browsing session."
msgstr ""

View file

@ -0,0 +1,30 @@
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: CryptoBox-Server 0.3\n"
"Report-Msgid-Bugs-To: translate@cryptobox.org\n"
"POT-Creation-Date: 2006-12-18 11:39+0100\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
"X-Generator: Translate Toolkit 0.10.1\n"
#: Name
msgid "Choose interface language"
msgstr ""
#: Link
msgid "Languages"
msgstr ""
#: Title.Language
msgid "Choose an interface language"
msgstr ""
#: Help.Select
msgid "Choose your preferred interface language. This setting will be kept for your browsing session."
msgstr ""

View file

@ -0,0 +1,30 @@
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: CryptoBox-Server 0.3\n"
"Report-Msgid-Bugs-To: translate@cryptobox.org\n"
"POT-Creation-Date: 2006-12-18 11:39+0100\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
"X-Generator: Translate Toolkit 0.10.1\n"
#: Name
msgid "Choose interface language"
msgstr ""
#: Link
msgid "Languages"
msgstr ""
#: Title.Language
msgid "Choose an interface language"
msgstr ""
#: Help.Select
msgid "Choose your preferred interface language. This setting will be kept for your browsing session."
msgstr ""

View file

@ -0,0 +1,30 @@
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: CryptoBox-Server 0.3\n"
"Report-Msgid-Bugs-To: translate@cryptobox.org\n"
"POT-Creation-Date: 2006-12-18 11:39+0100\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
"X-Generator: Translate Toolkit 0.10.1\n"
#: Name
msgid "Choose interface language"
msgstr ""
#: Link
msgid "Languages"
msgstr ""
#: Title.Language
msgid "Choose an interface language"
msgstr ""
#: Help.Select
msgid "Choose your preferred interface language. This setting will be kept for your browsing session."
msgstr ""

View file

@ -0,0 +1,30 @@
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: CryptoBox-Server 0.3\n"
"Report-Msgid-Bugs-To: translate@cryptobox.org\n"
"POT-Creation-Date: 2006-12-18 11:39+0100\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
"X-Generator: Translate Toolkit 0.10.1\n"
#: Name
msgid "Choose interface language"
msgstr ""
#: Link
msgid "Languages"
msgstr ""
#: Title.Language
msgid "Choose an interface language"
msgstr ""
#: Help.Select
msgid "Choose your preferred interface language. This setting will be kept for your browsing session."
msgstr ""

View file

@ -0,0 +1,30 @@
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: CryptoBox-Server 0.3\n"
"Report-Msgid-Bugs-To: translate@cryptobox.org\n"
"POT-Creation-Date: 2006-12-18 11:39+0100\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
"X-Generator: Translate Toolkit 0.10.1\n"
#: Name
msgid "Choose interface language"
msgstr ""
#: Link
msgid "Languages"
msgstr ""
#: Title.Language
msgid "Choose an interface language"
msgstr ""
#: Help.Select
msgid "Choose your preferred interface language. This setting will be kept for your browsing session."
msgstr ""

View file

@ -0,0 +1,30 @@
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: CryptoBox-Server 0.3\n"
"Report-Msgid-Bugs-To: translate@cryptobox.org\n"
"POT-Creation-Date: 2006-12-18 11:39+0100\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
"X-Generator: Translate Toolkit 0.10.1\n"
#: Name
msgid "Choose interface language"
msgstr ""
#: Link
msgid "Languages"
msgstr ""
#: Title.Language
msgid "Choose an interface language"
msgstr ""
#: Help.Select
msgid "Choose your preferred interface language. This setting will be kept for your browsing session."
msgstr ""

View file

@ -0,0 +1,29 @@
msgid ""
msgstr ""
"Project-Id-Version: CryptoBox-Server 0.3\n"
"Report-Msgid-Bugs-To: translate@cryptobox.org\n"
"POT-Creation-Date: 2006-12-18 11:39+0100\n"
"PO-Revision-Date: 2006-12-19 15:31+0100\n"
"Last-Translator: tenzin <clavdiaa@yahoo.com>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=4; plural=(n%100==1 ? 0 : n%100==2 ? 1 : n%100==3 || n%100==4 ? 2 : 3);\n"
"X-Generator: Pootle 0.10.1\n"
#: Name
msgid "Choose interface language"
msgstr "Izberite jezik"
#: Link
msgid "Languages"
msgstr "Jezik"
#: Title.Language
msgid "Choose an interface language"
msgstr "Izberite Jezik"
#: Help.Select
msgid "Choose your preferred interface language. This setting will be kept for your browsing session."
msgstr "Izberite jezik, ki ga želite nastaviti. Nastavitve bodo shranjene med vašim smukanjem po strani :)"

View file

@ -0,0 +1,30 @@
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: CryptoBox-Server 0.3\n"
"Report-Msgid-Bugs-To: translate@cryptobox.org\n"
"POT-Creation-Date: 2006-12-18 11:39+0100\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
"X-Generator: Translate Toolkit 0.10.1\n"
#: Name
msgid "Choose interface language"
msgstr ""
#: Link
msgid "Languages"
msgstr ""
#: Title.Language
msgid "Choose an interface language"
msgstr ""
#: Help.Select
msgid "Choose your preferred interface language. This setting will be kept for your browsing session."
msgstr ""

View file

@ -0,0 +1,7 @@
Name = Choose interface language
Link = Languages
Title.Language = Choose an interface language
Help.Select = Choose your preferred interface language. This setting will be kept for your browsing session.

View file

@ -0,0 +1,22 @@
<?cs # $Id$ ?>
<h1><?cs var:html_escape(Lang.Plugins.language_selection.Title.Language) ?></h1>
<?cs call:handle_messages() ?>
<?cs call:show_help(Lang.Plugins.language_selection.Help.Select) ?>
<div id="lang">
<ul>
<?cs loop:index = #0, subcount(Data.Languages)-1, #1 ?>
<li><a href="<?cs
call:link("language_selection", 'weblang', Data.Languages[index].name, '','') ?>" title="<?cs
var:html_escape(Data.Languages[index].link) ?>" ><?cs
var:html_escape(Data.Languages[index].link) ?></a>
<?cs if:Settings.Language == Data.Languages[index].name ?>
&nbsp;<img src="icons/language_selection?image=list_marker_tango.gif"
alt="symbol: current language" style="vertical-align:middle" />
<?cs /if ?>
</li><?cs /loop ?>
</ul>
</div>

View file

@ -0,0 +1,48 @@
#
# Copyright 2006 sense.lab e.V.
#
# This file is part of the CryptoBox.
#
# The CryptoBox is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# The CryptoBox is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with the CryptoBox; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
#
"""The language_selection feature of the CryptoBox.
"""
__revision__ = "$Id"
import cryptobox.plugins.base
class language_selection(cryptobox.plugins.base.CryptoBoxPlugin):
"""The language_selection feature of the CryptoBox.
"""
plugin_capabilities = [ "system" ]
plugin_visibility = [ "menu", "preferences" ]
request_auth = False
rank = 60
def do_action(self):
"""Show all available languages.
"""
return "language_selection"
def get_status(self):
"""The current status of the feature is defined as the current language.
"""
return ":".join(self.site.lang_order)

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.3 KiB

View file

@ -0,0 +1,46 @@
#
# Copyright 2006 sense.lab e.V.
#
# This file is part of the CryptoBox.
#
# The CryptoBox is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# The CryptoBox is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with the CryptoBox; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
#
__revision__ = "$Id"
from cryptobox.tests.base import WebInterfaceTestClass
class unittests(WebInterfaceTestClass):
def test_read_form(self):
"""Check if the 'language_selection' plugin works.
"""
url = self.url + "language_selection?weblang=en"
self.register_auth(url)
self.cmd.go(url)
self.cmd.find('Choose an interface language')
def test_check_language_list(self):
"""Check the list of available languages.
"""
url = self.url + "language_selection?weblang=en"
self.register_auth(url)
self.cmd.go(url)
self.cmd.find(r'Data.Status.Plugins.language_selection=(.*)$', "m")
langs = self.locals["__match__"].split(":")
self.assertTrue(len(langs)>1)
self.assertTrue(langs[0] == "en")

View file

@ -0,0 +1,59 @@
#: Name
msgid "Event log"
msgstr ""
#: Title.Log
msgid "CryptoBox event log"
msgstr ""
#: Text.ShowAll
msgid "Show all messages"
msgstr ""
#: Text.AtLeastWarnings
msgid "Show warnings and errors"
msgstr ""
#: Text.OnlyErrors
msgid "Show errors only"
msgstr ""
#: Text.AgeOfEvent
msgid "Time passed"
msgstr ""
#: Text.EventText
msgid "Description"
msgstr ""
#: Text.TimeUnits.Days
msgid "days"
msgstr ""
#: Text.TimeUnits.Hours
msgid "hours"
msgstr ""
#: Text.TimeUnits.Minutes
msgid "minutes"
msgstr ""
#: Text.TimeUnits.Seconds
msgid "seconds"
msgstr ""
#: Help.EventLog
msgid "Here you can see the event log of the CryptoBox. Every message belongs to one of the following groups: information/warning/error as represented by the symbol in the leftmost column. You may choose to see all or only some selected messages. If you encounter any problems with the CryptoBox then you should send the most recent warnings and errors besides a detailed description to info@cryptobox.org."
msgstr ""
#: AdviceMessage.EmptyLog.Text
msgid "There are no messages available."
msgstr ""
#: AdviceMessage.NoLogFileConfigured.Title
msgid "No log file configured"
msgstr ""
#: AdviceMessage.NoLogFileConfigured.Text
msgid "The CryptoBox is not configured to log events to a file. Thus it is not possible to review log events."
msgstr ""

View file

@ -0,0 +1,78 @@
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: CryptoBox-Server 0.3\n"
"Report-Msgid-Bugs-To: translate@cryptobox.org\n"
"POT-Creation-Date: 2006-12-18 11:40+0100\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
"X-Generator: Translate Toolkit 0.10.1\n"
#: Name
msgid "Show event log"
msgstr ""
#: Link
msgid "Event log"
msgstr ""
#: Title.Log
msgid "CryptoBox event log"
msgstr ""
#: Text.ShowAll
msgid "Show all messages"
msgstr ""
#: Text.AtLeastWarnings
msgid "Show warnings and errors"
msgstr ""
#: Text.OnlyErrors
msgid "Show errors only"
msgstr ""
#: Text.AgeOfEvent
msgid "Time passed"
msgstr ""
#: Text.EventText
msgid "Description"
msgstr ""
#: Text.TimeUnits.Days
msgid "days"
msgstr ""
#: Text.TimeUnits.Hours
msgid "hours"
msgstr ""
#: Text.TimeUnits.Minutes
msgid "minutes"
msgstr ""
#: Text.TimeUnits.Seconds
msgid "seconds"
msgstr ""
#: Help.EventLog
msgid "Here you can see the event log of the CryptoBox. Every message belongs to one of the following groups: information/warning/error as represented by the symbol in the leftmost column. You may choose to see all or only some selected messages. If you encounter any problems with the CryptoBox then you should send the most recent warnings and errors besides a detailed description to info@cryptobox.org."
msgstr ""
#: AdviceMessage.EmptyLog.Text
msgid "There are no messages available."
msgstr ""
#: AdviceMessage.NoLogFileConfigured.Title
msgid "No log file configured"
msgstr ""
#: AdviceMessage.NoLogFileConfigured.Text
msgid "The CryptoBox is not configured to log events to a file. Thus it is not possible to review log events."
msgstr ""

View file

@ -0,0 +1,78 @@
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: CryptoBox-Server 0.3\n"
"Report-Msgid-Bugs-To: translate@cryptobox.org\n"
"POT-Creation-Date: 2006-12-18 11:40+0100\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
"X-Generator: Translate Toolkit 0.10.1\n"
#: Name
msgid "Show event log"
msgstr ""
#: Link
msgid "Event log"
msgstr ""
#: Title.Log
msgid "CryptoBox event log"
msgstr ""
#: Text.ShowAll
msgid "Show all messages"
msgstr ""
#: Text.AtLeastWarnings
msgid "Show warnings and errors"
msgstr ""
#: Text.OnlyErrors
msgid "Show errors only"
msgstr ""
#: Text.AgeOfEvent
msgid "Time passed"
msgstr ""
#: Text.EventText
msgid "Description"
msgstr ""
#: Text.TimeUnits.Days
msgid "days"
msgstr ""
#: Text.TimeUnits.Hours
msgid "hours"
msgstr ""
#: Text.TimeUnits.Minutes
msgid "minutes"
msgstr ""
#: Text.TimeUnits.Seconds
msgid "seconds"
msgstr ""
#: Help.EventLog
msgid "Here you can see the event log of the CryptoBox. Every message belongs to one of the following groups: information/warning/error as represented by the symbol in the leftmost column. You may choose to see all or only some selected messages. If you encounter any problems with the CryptoBox then you should send the most recent warnings and errors besides a detailed description to info@cryptobox.org."
msgstr ""
#: AdviceMessage.EmptyLog.Text
msgid "There are no messages available."
msgstr ""
#: AdviceMessage.NoLogFileConfigured.Title
msgid "No log file configured"
msgstr ""
#: AdviceMessage.NoLogFileConfigured.Text
msgid "The CryptoBox is not configured to log events to a file. Thus it is not possible to review log events."
msgstr ""

View file

@ -0,0 +1,77 @@
msgid ""
msgstr ""
"Project-Id-Version: CryptoBox-Server 0.3\n"
"Report-Msgid-Bugs-To: translate@cryptobox.org\n"
"POT-Creation-Date: 2006-12-18 11:40+0100\n"
"PO-Revision-Date: 2006-12-18 10:48+0100\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
"X-Generator: Pootle 0.10.1\n"
#: Name
msgid "Show event log"
msgstr "Zeige Ereignis-Protokoll"
#: Link
msgid "Event log"
msgstr "Protokoll"
#: Title.Log
msgid "CryptoBox event log"
msgstr "CryptoBox Ereignis-Protokoll"
#: Text.ShowAll
msgid "Show all messages"
msgstr "Zeige alle Ereignisse"
#: Text.AtLeastWarnings
msgid "Show warnings and errors"
msgstr "Zeige Warnungen und Fehler"
#: Text.OnlyErrors
msgid "Show errors only"
msgstr "Zeige nur Fehler"
#: Text.AgeOfEvent
msgid "Time passed"
msgstr "vergangene Zeit"
#: Text.EventText
msgid "Description"
msgstr "Beschreibung"
#: Text.TimeUnits.Days
msgid "days"
msgstr "Tage"
#: Text.TimeUnits.Hours
msgid "hours"
msgstr "Stunden"
#: Text.TimeUnits.Minutes
msgid "minutes"
msgstr "Minuten"
#: Text.TimeUnits.Seconds
msgid "seconds"
msgstr "Sekunden"
#: Help.EventLog
msgid "Here you can see the event log of the CryptoBox. Every message belongs to one of the following groups: information/warning/error as represented by the symbol in the leftmost column. You may choose to see all or only some selected messages. If you encounter any problems with the CryptoBox then you should send the most recent warnings and errors besides a detailed description to info@cryptobox.org."
msgstr "Hier kannst du das Ereignis-Protokoll der CryptoBox verfolgen. Jedes Ereignis gehört zu einer der folgenden Gruppen: Information / Warnung / Fehler - sie werden durch die Symbole in der linke Spalte repräsentiert. Du kannst wählen, ob (1) alle Ereignisse, (2) Warnungen und Fehler oder (3) nur Fehler angezeigt werden sollen. Falls du irgendwelche Probleme mit der CryptoBox hast, dann sende bitte die aktuellsten Warnungen und Fehler inklusive einer detaillierten Beschreibung des Problems an info@cryptobox.org."
#: AdviceMessage.EmptyLog.Text
msgid "There are no messages available."
msgstr "Es sind keine Ereignisse vorhanden."
#: AdviceMessage.NoLogFileConfigured.Title
msgid "No log file configured"
msgstr "Keine Protokoll-Datei konfiguriert"
#: AdviceMessage.NoLogFileConfigured.Text
msgid "The CryptoBox is not configured to log events to a file. Thus it is not possible to review log events."
msgstr "Die CryptoBox ist nicht konfiguriert, um das Ereignis-Protokoll in einer Datei abzuspeichern. Deshalb ist es nicht möglich, das Ereignis-Protokoll nachzuvollziehen."

View file

@ -0,0 +1,79 @@
#: Name
msgid "Event log"
msgstr "Event log"
#: Title.Log
msgid "CryptoBox event log"
msgstr "CryptoBox event log"
#: Text.ShowAll
msgid "Show all messages"
msgstr "Show all messages"
#: Text.AtLeastWarnings
msgid "Show warnings and errors"
msgstr "Show warnings and errors"
#: Text.OnlyErrors
msgid "Show errors only"
msgstr "Show errors only"
#: Text.AgeOfEvent
msgid "Time passed"
msgstr "Time passed"
#: Text.EventText
msgid "Description"
msgstr "Description"
#: Text.TimeUnits.Days
msgid "days"
msgstr "days"
#: Text.TimeUnits.Hours
msgid "hours"
msgstr "hours"
#: Text.TimeUnits.Minutes
msgid "minutes"
msgstr "minutes"
#: Text.TimeUnits.Seconds
msgid "seconds"
msgstr "seconds"
#: Help.EventLog
#, fuzzy
msgid "Here you can see the event log of the CryptoBox. Every message belongs to one of the following groups: information/warning/error as represented by the symbol in the leftmost column. You may choose to see all or only some selected messages. If you encounter any problems with the CryptoBox then you should send the most recent warnings and errors besides a detailed description to info@cryptobox.org."
msgstr "Here you can see the event log of the CryptoBox. Every message belongs to one of the following groups: information/warning/error as represented by the symbol in the leftmost column. You may choose to see all or only some selected messages. If you encounter any problems with the CryptoBox then you should send the most recent warnings and errors besides a detailed description to info@cryptobox.org."
#: AdviceMessage.EmptyLog.Text
msgid "There are no messages available."
msgstr "There are no messages available."
#: AdviceMessage.NoLogFileConfigured.Title
msgid "No log file configured"
msgstr "No log file configured"
#: AdviceMessage.NoLogFileConfigured.Text
msgid "The CryptoBox is not configured to log events to a file. Thus it is not possible to review log events."
msgstr "The CryptoBox is not configured to log events to a file. Thus it is not possible to review log events."
#~ msgid "Show event log"
#~ msgstr "Show event log"
#~ msgid "Show the content of the log file"
#~ msgstr "Show the content of the log file"
#~ msgid "Show log file"
#~ msgstr "Show log file"
#~ msgid "CryptoBox logfiles"
#~ msgstr "CryptoBox logfiles"
#~ msgid "The logfile of the CryptoBox is empty."
#~ msgstr "The logfile of the CryptoBox is empty."
#~ msgid "Refresh"
#~ msgstr "Refresh"

View file

@ -0,0 +1,78 @@
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: CryptoBox-Server 0.3\n"
"Report-Msgid-Bugs-To: translate@cryptobox.org\n"
"POT-Creation-Date: 2006-12-18 11:40+0100\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
"X-Generator: Translate Toolkit 0.10.1\n"
#: Name
msgid "Show event log"
msgstr ""
#: Link
msgid "Event log"
msgstr ""
#: Title.Log
msgid "CryptoBox event log"
msgstr ""
#: Text.ShowAll
msgid "Show all messages"
msgstr ""
#: Text.AtLeastWarnings
msgid "Show warnings and errors"
msgstr ""
#: Text.OnlyErrors
msgid "Show errors only"
msgstr ""
#: Text.AgeOfEvent
msgid "Time passed"
msgstr ""
#: Text.EventText
msgid "Description"
msgstr ""
#: Text.TimeUnits.Days
msgid "days"
msgstr ""
#: Text.TimeUnits.Hours
msgid "hours"
msgstr ""
#: Text.TimeUnits.Minutes
msgid "minutes"
msgstr ""
#: Text.TimeUnits.Seconds
msgid "seconds"
msgstr ""
#: Help.EventLog
msgid "Here you can see the event log of the CryptoBox. Every message belongs to one of the following groups: information/warning/error as represented by the symbol in the leftmost column. You may choose to see all or only some selected messages. If you encounter any problems with the CryptoBox then you should send the most recent warnings and errors besides a detailed description to info@cryptobox.org."
msgstr ""
#: AdviceMessage.EmptyLog.Text
msgid "There are no messages available."
msgstr ""
#: AdviceMessage.NoLogFileConfigured.Title
msgid "No log file configured"
msgstr ""
#: AdviceMessage.NoLogFileConfigured.Text
msgid "The CryptoBox is not configured to log events to a file. Thus it is not possible to review log events."
msgstr ""

Some files were not shown because too many files have changed in this diff Show more