create new translation branch for v0.4

This commit is contained in:
lars 2008-04-07 23:08:43 +00:00
parent 9b4e353af7
commit 0a1d2a2e00
795 changed files with 134715 additions and 0 deletions

View file

@ -0,0 +1,49 @@
#: Name
msgid "Automatic opening"
msgstr ""
#: Title.AutoMountVolume
msgid "Open during startup"
msgstr ""
#: Help.AutoMount
msgid ""
"You may enable automatic activation for any non-encrypted volume. It will "
"get opened automatically when you turn on the CryptoNAS server."
msgstr ""
#: Button.AutoMountOn
msgid "Enable automatic opening"
msgstr ""
#: Button.AutoMountOff
msgid "Disable automatic opening"
msgstr ""
#: Text.AutoIsOn
msgid "Currently automatic opening is enabled"
msgstr ""
#: Text.AutoIsOff
msgid "Currently automatic opening is disabled"
msgstr ""
#: SuccessMessage.AutoMountEnabled.Title
msgid "Automatic activation enabled"
msgstr ""
#: SuccessMessage.AutoMountEnabled.Text
msgid "This volume will get opened during startup."
msgstr ""
#: SuccessMessage.AutoMountDisabled.Title
msgid "Automatic activation disabled"
msgstr ""
#: SuccessMessage.AutoMountDisabled.Text
msgid "This volume will not get opened during startup."
msgstr ""
#: AdviceMessage.NoAutoMountForEncryptedVolumes.Text
msgid "Automatic activation is not possible for encrypted volumes."
msgstr ""

View file

@ -0,0 +1,64 @@
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: CryptoBox-Server 0.3\n"
"Report-Msgid-Bugs-To: translate@cryptobox.org\n"
"POT-Creation-Date: 2008-04-07 04:44+0200\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 "Automatic opening"
msgstr ""
#: Title.AutoMountVolume
msgid "Open during startup"
msgstr ""
#: Help.AutoMount
msgid ""
"You may enable automatic activation for any non-encrypted volume. It will "
"get opened automatically when you turn on the CryptoNAS server."
msgstr ""
#: Button.AutoMountOn
msgid "Enable automatic opening"
msgstr ""
#: Button.AutoMountOff
msgid "Disable automatic opening"
msgstr ""
#: Text.AutoIsOn
msgid "Currently automatic opening is enabled"
msgstr ""
#: Text.AutoIsOff
msgid "Currently automatic opening is disabled"
msgstr ""
#: SuccessMessage.AutoMountEnabled.Title
msgid "Automatic activation enabled"
msgstr ""
#: SuccessMessage.AutoMountEnabled.Text
msgid "This volume will get opened during startup."
msgstr ""
#: SuccessMessage.AutoMountDisabled.Title
msgid "Automatic activation disabled"
msgstr ""
#: SuccessMessage.AutoMountDisabled.Text
msgid "This volume will not get opened during startup."
msgstr ""
#: AdviceMessage.NoAutoMountForEncryptedVolumes.Text
msgid "Automatic activation is not possible for encrypted volumes."
msgstr ""

View file

@ -0,0 +1,64 @@
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: CryptoBox-Server 0.3\n"
"Report-Msgid-Bugs-To: translate@cryptobox.org\n"
"POT-Creation-Date: 2008-04-07 04:44+0200\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 "Automatic opening"
msgstr ""
#: Title.AutoMountVolume
msgid "Open during startup"
msgstr ""
#: Help.AutoMount
msgid ""
"You may enable automatic activation for any non-encrypted volume. It will "
"get opened automatically when you turn on the CryptoNAS server."
msgstr ""
#: Button.AutoMountOn
msgid "Enable automatic opening"
msgstr ""
#: Button.AutoMountOff
msgid "Disable automatic opening"
msgstr ""
#: Text.AutoIsOn
msgid "Currently automatic opening is enabled"
msgstr ""
#: Text.AutoIsOff
msgid "Currently automatic opening is disabled"
msgstr ""
#: SuccessMessage.AutoMountEnabled.Title
msgid "Automatic activation enabled"
msgstr ""
#: SuccessMessage.AutoMountEnabled.Text
msgid "This volume will get opened during startup."
msgstr ""
#: SuccessMessage.AutoMountDisabled.Title
msgid "Automatic activation disabled"
msgstr ""
#: SuccessMessage.AutoMountDisabled.Text
msgid "This volume will not get opened during startup."
msgstr ""
#: AdviceMessage.NoAutoMountForEncryptedVolumes.Text
msgid "Automatic activation is not possible for encrypted volumes."
msgstr ""

View file

@ -0,0 +1,71 @@
msgid ""
msgstr ""
"Project-Id-Version: CryptoBox-Server 0.3\n"
"Report-Msgid-Bugs-To: translate@cryptobox.org\n"
"POT-Creation-Date: 2008-04-07 04:44+0200\n"
"PO-Revision-Date: 2006-12-18 08: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=2; plural=(n != 1);\n"
"X-Generator: Pootle 0.10.1\n"
#: Name
msgid "Automatic opening"
msgstr "Automatisches Öffnen"
#: Title.AutoMountVolume
msgid "Open during startup"
msgstr "Öffnen beim CryptoBox-Start"
#: Help.AutoMount
#, fuzzy
msgid ""
"You may enable automatic activation for any non-encrypted volume. It will "
"get opened automatically when you turn on the CryptoNAS server."
msgstr ""
"Die automatische Öffnung kann für jeden unverschlüsselten Datenträger "
"aktiviert werden. Der Datenträger wird dadurch automatisch geöffnet, wenn "
"die CryptoBox eingeschaltet wird."
#: Button.AutoMountOn
msgid "Enable automatic opening"
msgstr "Aktiviere automatisches Öffnen"
#: Button.AutoMountOff
msgid "Disable automatic opening"
msgstr "Deaktiviere automatisches Öffnen"
#: Text.AutoIsOn
msgid "Currently automatic opening is enabled"
msgstr "Das automatische Öffnen ist derzeit eingeschaltet"
#: Text.AutoIsOff
msgid "Currently automatic opening is disabled"
msgstr "Das automatische Öffnen ist derzeit abgeschaltet"
#: SuccessMessage.AutoMountEnabled.Title
msgid "Automatic activation enabled"
msgstr "Automatisches Öffnen aktiviert"
#: SuccessMessage.AutoMountEnabled.Text
msgid "This volume will get opened during startup."
msgstr ""
"Der Datenträger wird nun bei jedem Start des CryptoBox-Servers geöffnet."
#: SuccessMessage.AutoMountDisabled.Title
msgid "Automatic activation disabled"
msgstr "Automatisches Öffnen deaktiviert"
#: SuccessMessage.AutoMountDisabled.Text
msgid "This volume will not get opened during startup."
msgstr ""
"Der Datenträger wird nun nicht mehr automatisch beim Start des CryptoBox-"
"Servers geöffnet."
#: AdviceMessage.NoAutoMountForEncryptedVolumes.Text
msgid "Automatic activation is not possible for encrypted volumes."
msgstr ""
"Das automatische Öffnen ist für verschlüsselte Datenträger nicht verfügbar."

View file

@ -0,0 +1,60 @@
#, fuzzy
msgid ""
"_: \n"
""
msgstr ""
#: Name
msgid "Automatic opening"
msgstr "Automatic opening"
#: Title.AutoMountVolume
msgid "Open during startup"
msgstr "Open during startup"
#: Help.AutoMount
#, fuzzy
msgid ""
"You may enable automatic activation for any non-encrypted volume. It will "
"get opened automatically when you turn on the CryptoNAS server."
msgstr ""
"You may enable automatic activation for any non-encrypted volume. It will "
"get opened automatically when you turn on the CryptoNAS server."
#: Button.AutoMountOn
msgid "Enable automatic opening"
msgstr "Enable automatic opening"
#: Button.AutoMountOff
msgid "Disable automatic opening"
msgstr "Disable automatic opening"
#: Text.AutoIsOn
msgid "Currently automatic opening is enabled"
msgstr "Currently automatic opening is enabled"
#: Text.AutoIsOff
msgid "Currently automatic opening is disabled"
msgstr "Currently automatic opening is disabled"
#: SuccessMessage.AutoMountEnabled.Title
msgid "Automatic activation enabled"
msgstr "Automatic activation enabled"
#: SuccessMessage.AutoMountEnabled.Text
#, fuzzy
msgid "This volume will get opened during startup."
msgstr "This volume will get opened during startup."
#: SuccessMessage.AutoMountDisabled.Title
msgid "Automatic activation disabled"
msgstr "Automatic activation disabled"
#: SuccessMessage.AutoMountDisabled.Text
#, fuzzy
msgid "This volume will not get opened during startup."
msgstr "This volume will not get opened during startup."
#: AdviceMessage.NoAutoMountForEncryptedVolumes.Text
msgid "Automatic activation is not possible for encrypted volumes."
msgstr "Automatic activation is not possible for encrypted volumes."

View file

@ -0,0 +1,64 @@
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: CryptoBox-Server 0.3\n"
"Report-Msgid-Bugs-To: translate@cryptobox.org\n"
"POT-Creation-Date: 2008-04-07 04:44+0200\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 "Automatic opening"
msgstr ""
#: Title.AutoMountVolume
msgid "Open during startup"
msgstr ""
#: Help.AutoMount
msgid ""
"You may enable automatic activation for any non-encrypted volume. It will "
"get opened automatically when you turn on the CryptoNAS server."
msgstr ""
#: Button.AutoMountOn
msgid "Enable automatic opening"
msgstr ""
#: Button.AutoMountOff
msgid "Disable automatic opening"
msgstr ""
#: Text.AutoIsOn
msgid "Currently automatic opening is enabled"
msgstr ""
#: Text.AutoIsOff
msgid "Currently automatic opening is disabled"
msgstr ""
#: SuccessMessage.AutoMountEnabled.Title
msgid "Automatic activation enabled"
msgstr ""
#: SuccessMessage.AutoMountEnabled.Text
msgid "This volume will get opened during startup."
msgstr ""
#: SuccessMessage.AutoMountDisabled.Title
msgid "Automatic activation disabled"
msgstr ""
#: SuccessMessage.AutoMountDisabled.Text
msgid "This volume will not get opened during startup."
msgstr ""
#: AdviceMessage.NoAutoMountForEncryptedVolumes.Text
msgid "Automatic activation is not possible for encrypted volumes."
msgstr ""

View file

@ -0,0 +1,64 @@
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: CryptoBox-Server 0.3\n"
"Report-Msgid-Bugs-To: translate@cryptobox.org\n"
"POT-Creation-Date: 2008-04-07 04:44+0200\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 "Automatic opening"
msgstr ""
#: Title.AutoMountVolume
msgid "Open during startup"
msgstr ""
#: Help.AutoMount
msgid ""
"You may enable automatic activation for any non-encrypted volume. It will "
"get opened automatically when you turn on the CryptoNAS server."
msgstr ""
#: Button.AutoMountOn
msgid "Enable automatic opening"
msgstr ""
#: Button.AutoMountOff
msgid "Disable automatic opening"
msgstr ""
#: Text.AutoIsOn
msgid "Currently automatic opening is enabled"
msgstr ""
#: Text.AutoIsOff
msgid "Currently automatic opening is disabled"
msgstr ""
#: SuccessMessage.AutoMountEnabled.Title
msgid "Automatic activation enabled"
msgstr ""
#: SuccessMessage.AutoMountEnabled.Text
msgid "This volume will get opened during startup."
msgstr ""
#: SuccessMessage.AutoMountDisabled.Title
msgid "Automatic activation disabled"
msgstr ""
#: SuccessMessage.AutoMountDisabled.Text
msgid "This volume will not get opened during startup."
msgstr ""
#: AdviceMessage.NoAutoMountForEncryptedVolumes.Text
msgid "Automatic activation is not possible for encrypted volumes."
msgstr ""

View file

@ -0,0 +1,64 @@
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: CryptoBox-Server 0.3\n"
"Report-Msgid-Bugs-To: translate@cryptobox.org\n"
"POT-Creation-Date: 2008-04-07 04:44+0200\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 "Automatic opening"
msgstr ""
#: Title.AutoMountVolume
msgid "Open during startup"
msgstr ""
#: Help.AutoMount
msgid ""
"You may enable automatic activation for any non-encrypted volume. It will "
"get opened automatically when you turn on the CryptoNAS server."
msgstr ""
#: Button.AutoMountOn
msgid "Enable automatic opening"
msgstr ""
#: Button.AutoMountOff
msgid "Disable automatic opening"
msgstr ""
#: Text.AutoIsOn
msgid "Currently automatic opening is enabled"
msgstr ""
#: Text.AutoIsOff
msgid "Currently automatic opening is disabled"
msgstr ""
#: SuccessMessage.AutoMountEnabled.Title
msgid "Automatic activation enabled"
msgstr ""
#: SuccessMessage.AutoMountEnabled.Text
msgid "This volume will get opened during startup."
msgstr ""
#: SuccessMessage.AutoMountDisabled.Title
msgid "Automatic activation disabled"
msgstr ""
#: SuccessMessage.AutoMountDisabled.Text
msgid "This volume will not get opened during startup."
msgstr ""
#: AdviceMessage.NoAutoMountForEncryptedVolumes.Text
msgid "Automatic activation is not possible for encrypted volumes."
msgstr ""

View file

@ -0,0 +1,64 @@
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: CryptoBox-Server 0.3\n"
"Report-Msgid-Bugs-To: translate@cryptobox.org\n"
"POT-Creation-Date: 2008-04-07 04:44+0200\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 "Automatic opening"
msgstr ""
#: Title.AutoMountVolume
msgid "Open during startup"
msgstr ""
#: Help.AutoMount
msgid ""
"You may enable automatic activation for any non-encrypted volume. It will "
"get opened automatically when you turn on the CryptoNAS server."
msgstr ""
#: Button.AutoMountOn
msgid "Enable automatic opening"
msgstr ""
#: Button.AutoMountOff
msgid "Disable automatic opening"
msgstr ""
#: Text.AutoIsOn
msgid "Currently automatic opening is enabled"
msgstr ""
#: Text.AutoIsOff
msgid "Currently automatic opening is disabled"
msgstr ""
#: SuccessMessage.AutoMountEnabled.Title
msgid "Automatic activation enabled"
msgstr ""
#: SuccessMessage.AutoMountEnabled.Text
msgid "This volume will get opened during startup."
msgstr ""
#: SuccessMessage.AutoMountDisabled.Title
msgid "Automatic activation disabled"
msgstr ""
#: SuccessMessage.AutoMountDisabled.Text
msgid "This volume will not get opened during startup."
msgstr ""
#: AdviceMessage.NoAutoMountForEncryptedVolumes.Text
msgid "Automatic activation is not possible for encrypted volumes."
msgstr ""

View file

@ -0,0 +1,64 @@
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: CryptoBox-Server 0.3\n"
"Report-Msgid-Bugs-To: translate@cryptobox.org\n"
"POT-Creation-Date: 2008-04-07 04:44+0200\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=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n"
"X-Generator: Translate Toolkit 0.10.1\n"
#: Name
msgid "Automatic opening"
msgstr ""
#: Title.AutoMountVolume
msgid "Open during startup"
msgstr ""
#: Help.AutoMount
msgid ""
"You may enable automatic activation for any non-encrypted volume. It will "
"get opened automatically when you turn on the CryptoNAS server."
msgstr ""
#: Button.AutoMountOn
msgid "Enable automatic opening"
msgstr ""
#: Button.AutoMountOff
msgid "Disable automatic opening"
msgstr ""
#: Text.AutoIsOn
msgid "Currently automatic opening is enabled"
msgstr ""
#: Text.AutoIsOff
msgid "Currently automatic opening is disabled"
msgstr ""
#: SuccessMessage.AutoMountEnabled.Title
msgid "Automatic activation enabled"
msgstr ""
#: SuccessMessage.AutoMountEnabled.Text
msgid "This volume will get opened during startup."
msgstr ""
#: SuccessMessage.AutoMountDisabled.Title
msgid "Automatic activation disabled"
msgstr ""
#: SuccessMessage.AutoMountDisabled.Text
msgid "This volume will not get opened during startup."
msgstr ""
#: AdviceMessage.NoAutoMountForEncryptedVolumes.Text
msgid "Automatic activation is not possible for encrypted volumes."
msgstr ""

View file

@ -0,0 +1,64 @@
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: CryptoBox-Server 0.3\n"
"Report-Msgid-Bugs-To: translate@cryptobox.org\n"
"POT-Creation-Date: 2008-04-07 04:44+0200\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 "Automatic opening"
msgstr ""
#: Title.AutoMountVolume
msgid "Open during startup"
msgstr ""
#: Help.AutoMount
msgid ""
"You may enable automatic activation for any non-encrypted volume. It will "
"get opened automatically when you turn on the CryptoNAS server."
msgstr ""
#: Button.AutoMountOn
msgid "Enable automatic opening"
msgstr ""
#: Button.AutoMountOff
msgid "Disable automatic opening"
msgstr ""
#: Text.AutoIsOn
msgid "Currently automatic opening is enabled"
msgstr ""
#: Text.AutoIsOff
msgid "Currently automatic opening is disabled"
msgstr ""
#: SuccessMessage.AutoMountEnabled.Title
msgid "Automatic activation enabled"
msgstr ""
#: SuccessMessage.AutoMountEnabled.Text
msgid "This volume will get opened during startup."
msgstr ""
#: SuccessMessage.AutoMountDisabled.Title
msgid "Automatic activation disabled"
msgstr ""
#: SuccessMessage.AutoMountDisabled.Text
msgid "This volume will not get opened during startup."
msgstr ""
#: AdviceMessage.NoAutoMountForEncryptedVolumes.Text
msgid "Automatic activation is not possible for encrypted volumes."
msgstr ""

View file

@ -0,0 +1,66 @@
msgid ""
msgstr ""
"Project-Id-Version: CryptoBox-Server 0.3\n"
"Report-Msgid-Bugs-To: translate@cryptobox.org\n"
"POT-Creation-Date: 2008-04-07 04:44+0200\n"
"PO-Revision-Date: 2007-03-20 12:50+0100\n"
"Last-Translator: Fabrizio Tarizzo <software@fabriziotarizzo.org>\n"
"Language-Team: Italian <software@fabriziotarizzo.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 "Automatic opening"
msgstr "Apertura automatica"
#: Title.AutoMountVolume
msgid "Open during startup"
msgstr "Apertura durante l'avvio del sistema"
#: Help.AutoMount
#, fuzzy
msgid ""
"You may enable automatic activation for any non-encrypted volume. It will "
"get opened automatically when you turn on the CryptoNAS server."
msgstr ""
"È possibile attivare l'apertura automatica per ogni volume non cifrato. Il "
"volume sarà aperto automaticamente all'avvio del server CryptoBox."
#: Button.AutoMountOn
msgid "Enable automatic opening"
msgstr "Attiva l'apertura automatica."
#: Button.AutoMountOff
msgid "Disable automatic opening"
msgstr "Disattiva l'apertura automatica."
#: Text.AutoIsOn
msgid "Currently automatic opening is enabled"
msgstr "L'apertura automatica è attualmente attivata"
#: Text.AutoIsOff
msgid "Currently automatic opening is disabled"
msgstr "L'apertura automatica è attualmente disattivata"
#: SuccessMessage.AutoMountEnabled.Title
msgid "Automatic activation enabled"
msgstr "Apertura automatica attivata"
#: SuccessMessage.AutoMountEnabled.Text
msgid "This volume will get opened during startup."
msgstr "Il volume sarà aperto automaticamente durante l'avvio del sistema."
#: SuccessMessage.AutoMountDisabled.Title
msgid "Automatic activation disabled"
msgstr "Apertura automatica disattivata"
#: SuccessMessage.AutoMountDisabled.Text
msgid "This volume will not get opened during startup."
msgstr "Il volume non sarà aperto automaticamente durante l'avvio del sistema."
#: AdviceMessage.NoAutoMountForEncryptedVolumes.Text
msgid "Automatic activation is not possible for encrypted volumes."
msgstr "L'attivazione automatica non è possibile per i volumi cifrati."

View file

@ -0,0 +1,64 @@
msgid ""
msgstr ""
"Project-Id-Version: CryptoBox-Server 0.3\n"
"Report-Msgid-Bugs-To: translate@cryptobox.org\n"
"POT-Creation-Date: 2008-04-07 04:44+0200\n"
"PO-Revision-Date: 2007-02-26 07:38+0100\n"
"Last-Translator: kinneko <kinneko@gmail.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=1; plural=0;\n"
"X-Generator: Pootle 0.10.1\n"
#: Name
msgid "Automatic opening"
msgstr "自動で開く"
#: Title.AutoMountVolume
msgid "Open during startup"
msgstr "起動時に開く"
#: Help.AutoMount
#, fuzzy
msgid ""
"You may enable automatic activation for any non-encrypted volume. It will "
"get opened automatically when you turn on the CryptoNAS server."
msgstr "暗号化されていない領域は、自動的に有効にすることができます。クリプトボックスを起動すると、それらは自動的に開かれます。"
#: Button.AutoMountOn
msgid "Enable automatic opening"
msgstr "自動的に開くのを有効にする"
#: Button.AutoMountOff
msgid "Disable automatic opening"
msgstr "自動的に開くのを無効にする"
#: Text.AutoIsOn
msgid "Currently automatic opening is enabled"
msgstr "自動的に開くのは有効です"
#: Text.AutoIsOff
msgid "Currently automatic opening is disabled"
msgstr "自動的に開くのは無効です"
#: SuccessMessage.AutoMountEnabled.Title
msgid "Automatic activation enabled"
msgstr "自動的に有効化するよう設定しました"
#: SuccessMessage.AutoMountEnabled.Text
msgid "This volume will get opened during startup."
msgstr "この領域は、起動時に自動的に開かれます。"
#: SuccessMessage.AutoMountDisabled.Title
msgid "Automatic activation disabled"
msgstr "自動的に有効化しないよう設定しました"
#: SuccessMessage.AutoMountDisabled.Text
msgid "This volume will not get opened during startup."
msgstr "この領域は、起動時に自動的には開かれません。"
#: AdviceMessage.NoAutoMountForEncryptedVolumes.Text
msgid "Automatic activation is not possible for encrypted volumes."
msgstr "自動での有効化は、暗号化した領域には適用することができません。"

View file

@ -0,0 +1,64 @@
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: CryptoBox-Server 0.3\n"
"Report-Msgid-Bugs-To: translate@cryptobox.org\n"
"POT-Creation-Date: 2008-04-07 04:44+0200\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 "Automatic opening"
msgstr ""
#: Title.AutoMountVolume
msgid "Open during startup"
msgstr ""
#: Help.AutoMount
msgid ""
"You may enable automatic activation for any non-encrypted volume. It will "
"get opened automatically when you turn on the CryptoNAS server."
msgstr ""
#: Button.AutoMountOn
msgid "Enable automatic opening"
msgstr ""
#: Button.AutoMountOff
msgid "Disable automatic opening"
msgstr ""
#: Text.AutoIsOn
msgid "Currently automatic opening is enabled"
msgstr ""
#: Text.AutoIsOff
msgid "Currently automatic opening is disabled"
msgstr ""
#: SuccessMessage.AutoMountEnabled.Title
msgid "Automatic activation enabled"
msgstr ""
#: SuccessMessage.AutoMountEnabled.Text
msgid "This volume will get opened during startup."
msgstr ""
#: SuccessMessage.AutoMountDisabled.Title
msgid "Automatic activation disabled"
msgstr ""
#: SuccessMessage.AutoMountDisabled.Text
msgid "This volume will not get opened during startup."
msgstr ""
#: AdviceMessage.NoAutoMountForEncryptedVolumes.Text
msgid "Automatic activation is not possible for encrypted volumes."
msgstr ""

View file

@ -0,0 +1,67 @@
msgid ""
msgstr ""
"Project-Id-Version: CryptoBox-Server 0.3\n"
"Report-Msgid-Bugs-To: translate@cryptobox.org\n"
"POT-Creation-Date: 2008-04-07 04:44+0200\n"
"PO-Revision-Date: 2007-03-29 20:42+0200\n"
"Last-Translator: Andrzej S. Kaznowski <andrzej@kaznowski.com>\n"
"Language-Team: POLSKI <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=3; plural=(n==1 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n"
"X-Generator: Pootle 0.10.1\n"
#: Name
msgid "Automatic opening"
msgstr "Otwieranie automatyczne"
#: Title.AutoMountVolume
msgid "Open during startup"
msgstr "Otwieranie podczas uruchomienia"
#: Help.AutoMount
#, fuzzy
msgid ""
"You may enable automatic activation for any non-encrypted volume. It will "
"get opened automatically when you turn on the CryptoNAS server."
msgstr ""
"Możesz włączyć automatyczną aktywację dla dowolnego nieszyfrowanego "
"woluminu. Wolumin otworzy się automatycznie podczas uruchomienia serwera "
"CryptoBox."
#: Button.AutoMountOn
msgid "Enable automatic opening"
msgstr "Włącz automatyczne otwieranie"
#: Button.AutoMountOff
msgid "Disable automatic opening"
msgstr "Wyłącz automatyczne otwieranie"
#: Text.AutoIsOn
msgid "Currently automatic opening is enabled"
msgstr "Automatyczne otwieranie jest włączone"
#: Text.AutoIsOff
msgid "Currently automatic opening is disabled"
msgstr "Automatyczne otwieranie jest wyłączone"
#: SuccessMessage.AutoMountEnabled.Title
msgid "Automatic activation enabled"
msgstr "Automatyczna aktywacja jest włączona"
#: SuccessMessage.AutoMountEnabled.Text
msgid "This volume will get opened during startup."
msgstr "Ten wolumin otworzy się podczas uruchomienia."
#: SuccessMessage.AutoMountDisabled.Title
msgid "Automatic activation disabled"
msgstr "Automatyczna aktywacja jest wyłączona"
#: SuccessMessage.AutoMountDisabled.Text
msgid "This volume will not get opened during startup."
msgstr "Ten wolumin nie otworzy się podczas uruchomienia."
#: AdviceMessage.NoAutoMountForEncryptedVolumes.Text
msgid "Automatic activation is not possible for encrypted volumes."
msgstr "Automatyczna aktywacja nie jest możliwa dla szyfrowanych woluminów."

View file

@ -0,0 +1,64 @@
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: CryptoBox-Server 0.3\n"
"Report-Msgid-Bugs-To: translate@cryptobox.org\n"
"POT-Creation-Date: 2008-04-07 04:44+0200\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 "Automatic opening"
msgstr ""
#: Title.AutoMountVolume
msgid "Open during startup"
msgstr ""
#: Help.AutoMount
msgid ""
"You may enable automatic activation for any non-encrypted volume. It will "
"get opened automatically when you turn on the CryptoNAS server."
msgstr ""
#: Button.AutoMountOn
msgid "Enable automatic opening"
msgstr ""
#: Button.AutoMountOff
msgid "Disable automatic opening"
msgstr ""
#: Text.AutoIsOn
msgid "Currently automatic opening is enabled"
msgstr ""
#: Text.AutoIsOff
msgid "Currently automatic opening is disabled"
msgstr ""
#: SuccessMessage.AutoMountEnabled.Title
msgid "Automatic activation enabled"
msgstr ""
#: SuccessMessage.AutoMountEnabled.Text
msgid "This volume will get opened during startup."
msgstr ""
#: SuccessMessage.AutoMountDisabled.Title
msgid "Automatic activation disabled"
msgstr ""
#: SuccessMessage.AutoMountDisabled.Text
msgid "This volume will not get opened during startup."
msgstr ""
#: AdviceMessage.NoAutoMountForEncryptedVolumes.Text
msgid "Automatic activation is not possible for encrypted volumes."
msgstr ""

View file

@ -0,0 +1,64 @@
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: CryptoBox-Server 0.3\n"
"Report-Msgid-Bugs-To: translate@cryptobox.org\n"
"POT-Creation-Date: 2008-04-07 04:44+0200\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 "Automatic opening"
msgstr ""
#: Title.AutoMountVolume
msgid "Open during startup"
msgstr ""
#: Help.AutoMount
msgid ""
"You may enable automatic activation for any non-encrypted volume. It will "
"get opened automatically when you turn on the CryptoNAS server."
msgstr ""
#: Button.AutoMountOn
msgid "Enable automatic opening"
msgstr ""
#: Button.AutoMountOff
msgid "Disable automatic opening"
msgstr ""
#: Text.AutoIsOn
msgid "Currently automatic opening is enabled"
msgstr ""
#: Text.AutoIsOff
msgid "Currently automatic opening is disabled"
msgstr ""
#: SuccessMessage.AutoMountEnabled.Title
msgid "Automatic activation enabled"
msgstr ""
#: SuccessMessage.AutoMountEnabled.Text
msgid "This volume will get opened during startup."
msgstr ""
#: SuccessMessage.AutoMountDisabled.Title
msgid "Automatic activation disabled"
msgstr ""
#: SuccessMessage.AutoMountDisabled.Text
msgid "This volume will not get opened during startup."
msgstr ""
#: AdviceMessage.NoAutoMountForEncryptedVolumes.Text
msgid "Automatic activation is not possible for encrypted volumes."
msgstr ""

View file

@ -0,0 +1,66 @@
msgid ""
msgstr ""
"Project-Id-Version: CryptoBox-Server 0.3\n"
"Report-Msgid-Bugs-To: translate@cryptobox.org\n"
"POT-Creation-Date: 2008-04-07 04:44+0200\n"
"PO-Revision-Date: 2007-01-09 13:55+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 "Automatic opening"
msgstr "Odpri avtomatično"
#: Title.AutoMountVolume
msgid "Open during startup"
msgstr "Odpri med zagonom"
#: Help.AutoMount
#, fuzzy
msgid ""
"You may enable automatic activation for any non-encrypted volume. It will "
"get opened automatically when you turn on the CryptoNAS server."
msgstr ""
"Omogočite lahko avtomatičen zagon za katerokoli ne-kriptirano vsebino. "
"Odprta bo samodejno ko boste zagnali cryptobox strežnik."
#: Button.AutoMountOn
msgid "Enable automatic opening"
msgstr "omogoči samodejno (avtomatično) odpiranje"
#: Button.AutoMountOff
msgid "Disable automatic opening"
msgstr "Onemogoči samodejno (avtomatično) odpiranje"
#: Text.AutoIsOn
msgid "Currently automatic opening is enabled"
msgstr "Samodejno (avtomatično) odpiranje je trenutno omogočeno."
#: Text.AutoIsOff
msgid "Currently automatic opening is disabled"
msgstr "Samodejno (avtomatično) odpiranje je trenutno onemogočeno."
#: SuccessMessage.AutoMountEnabled.Title
msgid "Automatic activation enabled"
msgstr "Samodejna (avtomatična) aktivacija omogočena"
#: SuccessMessage.AutoMountEnabled.Text
msgid "This volume will get opened during startup."
msgstr "Ta vsebina bo odprta med zagonom"
#: SuccessMessage.AutoMountDisabled.Title
msgid "Automatic activation disabled"
msgstr "Samodejna (avtomatična) aktivacija onemogočena"
#: SuccessMessage.AutoMountDisabled.Text
msgid "This volume will not get opened during startup."
msgstr "Ta vsebina ne bo odprta med zagonom"
#: AdviceMessage.NoAutoMountForEncryptedVolumes.Text
msgid "Automatic activation is not possible for encrypted volumes."
msgstr "Samodejna (avtomatična) aktivacija ni mogoča za kriptirane vsebine"

View file

@ -0,0 +1,64 @@
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: CryptoBox-Server 0.3\n"
"Report-Msgid-Bugs-To: translate@cryptobox.org\n"
"POT-Creation-Date: 2008-04-07 04:44+0200\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 "Automatic opening"
msgstr ""
#: Title.AutoMountVolume
msgid "Open during startup"
msgstr ""
#: Help.AutoMount
msgid ""
"You may enable automatic activation for any non-encrypted volume. It will "
"get opened automatically when you turn on the CryptoNAS server."
msgstr ""
#: Button.AutoMountOn
msgid "Enable automatic opening"
msgstr ""
#: Button.AutoMountOff
msgid "Disable automatic opening"
msgstr ""
#: Text.AutoIsOn
msgid "Currently automatic opening is enabled"
msgstr ""
#: Text.AutoIsOff
msgid "Currently automatic opening is disabled"
msgstr ""
#: SuccessMessage.AutoMountEnabled.Title
msgid "Automatic activation enabled"
msgstr ""
#: SuccessMessage.AutoMountEnabled.Text
msgid "This volume will get opened during startup."
msgstr ""
#: SuccessMessage.AutoMountDisabled.Title
msgid "Automatic activation disabled"
msgstr ""
#: SuccessMessage.AutoMountDisabled.Text
msgid "This volume will not get opened during startup."
msgstr ""
#: AdviceMessage.NoAutoMountForEncryptedVolumes.Text
msgid "Automatic activation is not possible for encrypted volumes."
msgstr ""

View file

@ -0,0 +1,64 @@
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: CryptoBox-Server 0.3\n"
"Report-Msgid-Bugs-To: translate@cryptobox.org\n"
"POT-Creation-Date: 2008-04-07 04:44+0200\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 "Automatic opening"
msgstr ""
#: Title.AutoMountVolume
msgid "Open during startup"
msgstr ""
#: Help.AutoMount
msgid ""
"You may enable automatic activation for any non-encrypted volume. It will "
"get opened automatically when you turn on the CryptoNAS server."
msgstr ""
#: Button.AutoMountOn
msgid "Enable automatic opening"
msgstr ""
#: Button.AutoMountOff
msgid "Disable automatic opening"
msgstr ""
#: Text.AutoIsOn
msgid "Currently automatic opening is enabled"
msgstr ""
#: Text.AutoIsOff
msgid "Currently automatic opening is disabled"
msgstr ""
#: SuccessMessage.AutoMountEnabled.Title
msgid "Automatic activation enabled"
msgstr ""
#: SuccessMessage.AutoMountEnabled.Text
msgid "This volume will get opened during startup."
msgstr ""
#: SuccessMessage.AutoMountDisabled.Title
msgid "Automatic activation disabled"
msgstr ""
#: SuccessMessage.AutoMountDisabled.Text
msgid "This volume will not get opened during startup."
msgstr ""
#: AdviceMessage.NoAutoMountForEncryptedVolumes.Text
msgid "Automatic activation is not possible for encrypted volumes."
msgstr ""

View file

@ -0,0 +1,41 @@
Name = Automatic opening
Link = Automatic opening
Title {
AutoMountVolume = Open during startup
}
Help.AutoMount = You may enable automatic activation for any non-encrypted volume. It will get opened automatically when you turn on the CryptoNAS server.
Button {
AutoMountOn = Enable automatic opening
AutoMountOff = Disable automatic opening
}
Text {
AutoIsOn = Currently automatic opening is enabled
AutoIsOff = Currently automatic opening is disabled
}
SuccessMessage {
AutoMountEnabled {
Title = Automatic activation enabled
Text = This volume will get opened during startup.
}
AutoMountDisabled {
Title = Automatic activation disabled
Text = This volume will not get opened during startup.
}
}
AdviceMessage {
NoAutoMountForEncryptedVolumes {
Text = Automatic activation is not possible for encrypted volumes.
}
}

View file

@ -0,0 +1,56 @@
#
# 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):
"""try to read automount form"""
url = self.url + "volume_automount?weblang=en&device=" + self.device_html
self.register_auth(url)
## first: turn it off
self.cmd.go(url + "&action=disable")
self.cmd.go(url)
self.cmd.find('is disabled')
def test_toggle(self):
"""try to toggle automount property"""
url = self.url + "volume_automount"
self.register_auth(url)
self.cmd.go(url + "?device=%s&action=disable" % self.device_html)
self.cmd.find("Automatic activation disabled")
self.cmd.find("is disabled")
self.cmd.go(url + "?device=%s&action=enable" % self.device_html)
self.cmd.find("Automatic activation enabled")
self.cmd.find("is enabled")
def test_invalid_input(self):
"""check invalid inputs"""
url = self.url + "volume_automount"
self.register_auth(url)
self.cmd.go(url + "?device=%s&action=foobar" % self.device_html)
self.cmd.notfind("Automatic activation disabled")
self.cmd.notfind("Automatic activation enabled")

View file

@ -0,0 +1,30 @@
<!-- <?cs # $Id$ ?>
<<?cs var:plugin_heading ?>><?cs var:html_escape(Lang.Plugins.volume_automount.Title.AutoMountVolume) ?></<?cs var:plugin_heading ?>>
-->
<?cs call:handle_messages() ?>
<fieldset>
<legend><?cs var:html_escape(Lang.Plugins.volume_automount.Title.AutoMountVolume) ?> </legend>
<?cs call:show_help(Lang.Plugins.volume_automount.Help.AutoMount) ?>
<?cs if:!Data.CurrentDisk.encryption ?>
<?cs call:print_form_header("automount", "volume_automount") ?>
<p><input type="hidden" name="device" value="<?cs var:html_escape(Data.CurrentDisk.device) ?>" />
<?cs if:Data.Plugins.volume_automount.automount_setting ?>
<?cs var:html_escape(Lang.Plugins.volume_automount.Text.AutoIsOn) ?><br/>
<input type="hidden" name="action" value="disable" />
<button type="submit"><?cs var:html_escape(Lang.Plugins.volume_automount.Button.AutoMountOff) ?></button>
<?cs else ?>
<?cs var:html_escape(Lang.Plugins.volume_automount.Text.AutoIsOff) ?>
<input type="hidden" name="action" value="enable" />
<button type="submit"><?cs var:html_escape(Lang.Plugins.volume_automount.Button.AutoMountOn) ?></button>
<?cs /if ?></p>
</form>
<?cs else ?>
<?cs call:hint("Plugins.volume_automount.NoAutoMountForEncryptedVolumes") ?>
<?cs /if ?>
</fieldset>

View file

@ -0,0 +1,120 @@
#
# 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$"
import cryptobox.plugins.base
import cryptobox.core.container
from cryptobox.core.exceptions import *
class volume_automount(cryptobox.plugins.base.CryptoBoxPlugin):
plugin_capabilities = [ "volume" ]
plugin_visibility = [ "properties" ]
request_auth = False
rank = 80
true_string = "yes"
false_string = "no"
def do_action(self, action=None):
container = self.cbox.get_container(self.device)
if action is None:
pass
elif action == "enable":
self.__set_auto_mount(container, True)
self.hdf["Data.Success"] = "Plugins.volume_automount.AutoMountEnabled"
self.cbox.log.info("volume_automount: enabled for device '%s'" % self.device)
elif action == "disable":
self.__set_auto_mount(container, False)
self.hdf["Data.Success"] = "Plugins.volume_automount.AutoMountDisabled"
self.cbox.log.info("volume_automount: disabled for device '%s'" % self.device)
else:
self.cbox.log.info("volume_automount: invalid action (%s)" % str(action))
self.__prepare_hdf()
return "volume_automount"
def handle_event(self, event, event_info=None):
"""Override bootup behaviour.
Mount all volumes marked as 'automount'.
"""
cryptobox.plugins.base.CryptoBoxPlugin.handle_event(self, event, event_info)
if event == "bootup":
for cont in self.cbox.get_container_list():
if self.__is_auto_mount(cont) and not cont.is_mounted():
cont.mount()
def is_useful(self, device):
"""Automount does not work for encrypted volumes.
"""
cont = self.cbox.get_container(device)
if not cont:
return False
if cont.get_type() != cryptobox.core.container.CONTAINERTYPES["luks"]:
return True
return False
def get_status(self):
return str(self.__is_auto_mount(self.cbox.get_container(self.device)))
def __prepare_hdf(self):
if self.__is_auto_mount(self.cbox.get_container(self.device)):
self.hdf[self.hdf_prefix + "automount_setting"] = "1"
else:
self.hdf[self.hdf_prefix + "automount_setting"] = "0"
def __is_auto_mount(self, container):
if not container:
return False
## only valid for plain volumes
if container.get_type() != cryptobox.core.container.CONTAINERTYPES["plain"]:
return False
if "_automount_names" in self.prefs:
if container.get_name() in self.prefs["_automount_names"]:
return True
else:
return False
else:
return False
def __set_auto_mount(self, container, state):
if state == self.__is_auto_mount(container):
return
name = container.get_name()
if not "_automount_names" in self.prefs:
self.prefs["_automount_names"] = []
if state:
self.prefs["_automount_names"].append(name)
else:
self.prefs["_automount_names"].remove(name)
try:
self.cbox.prefs.plugin_conf.write()
except IOError:
self.cbox.log.warn("Failed to store plugin configuration")