don't expose dataset for FileAdapter in encrypt view, small improvements to error handling

This commit is contained in:
Vincent Breitmoser 2015-06-22 15:44:15 +02:00
parent 97d45a0faa
commit 5f91c57b4a
20 changed files with 54 additions and 45 deletions

View File

@ -96,7 +96,6 @@ public class EncryptFilesFragment
private RecyclerView mSelectedFiles; private RecyclerView mSelectedFiles;
ArrayList<FilesAdapter.ViewModel> mFilesModels;
FilesAdapter mFilesAdapter; FilesAdapter mFilesAdapter;
/** /**
@ -134,8 +133,7 @@ public class EncryptFilesFragment
mSelectedFiles.setLayoutManager(new LinearLayoutManager(getActivity())); mSelectedFiles.setLayoutManager(new LinearLayoutManager(getActivity()));
mSelectedFiles.setItemAnimator(new DefaultItemAnimator()); mSelectedFiles.setItemAnimator(new DefaultItemAnimator());
mFilesModels = new ArrayList<>(); mFilesAdapter = new FilesAdapter(getActivity(), new View.OnClickListener() {
mFilesAdapter = new FilesAdapter(getActivity(), mFilesModels, new View.OnClickListener() {
@Override @Override
public void onClick(View v) { public void onClick(View v) {
addInputUri(); addInputUri();
@ -199,8 +197,8 @@ public class EncryptFilesFragment
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT) { if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT) {
FileHelper.openDocument(EncryptFilesFragment.this, "*/*", true, REQUEST_CODE_INPUT); FileHelper.openDocument(EncryptFilesFragment.this, "*/*", true, REQUEST_CODE_INPUT);
} else { } else {
FileHelper.openFile(EncryptFilesFragment.this, mFilesModels.isEmpty() ? FileHelper.openFile(EncryptFilesFragment.this, mFilesAdapter.getModelCount() == 0 ?
null : mFilesModels.get(mFilesModels.size() - 1).inputUri, null : mFilesAdapter.getModelItem(mFilesAdapter.getModelCount() - 1).inputUri,
"*/*", REQUEST_CODE_INPUT); "*/*", REQUEST_CODE_INPUT);
} }
} }
@ -222,10 +220,10 @@ public class EncryptFilesFragment
} }
private void showOutputFileDialog() { private void showOutputFileDialog() {
if (mFilesModels.size() > 1 || mFilesModels.isEmpty()) { if (mFilesAdapter.getModelCount() != 1) {
throw new IllegalStateException(); throw new IllegalStateException();
} }
FilesAdapter.ViewModel model = mFilesModels.get(0); FilesAdapter.ViewModel model = mFilesAdapter.getModelItem(0);
String targetName = String targetName =
(mEncryptFilenames ? "1" : FileHelper.getFilename(getActivity(), model.inputUri)) (mEncryptFilenames ? "1" : FileHelper.getFilename(getActivity(), model.inputUri))
+ (mUseArmor ? Constants.FILE_EXTENSION_ASC : Constants.FILE_EXTENSION_PGP_MAIN); + (mUseArmor ? Constants.FILE_EXTENSION_ASC : Constants.FILE_EXTENSION_PGP_MAIN);
@ -449,18 +447,12 @@ public class EncryptFilesFragment
// been set at a later point. // been set at a later point.
private boolean prepareOutputStreams() { private boolean prepareOutputStreams() {
if (mFilesModels.isEmpty()) {
Notify.create(getActivity(), R.string.no_file_selected, Notify.Style.ERROR)
.show(this);
return true;
}
switch (mAfterEncryptAction) { switch (mAfterEncryptAction) {
default: default:
case SHARE: case SHARE:
mOutputUris = new ArrayList<>(); mOutputUris = new ArrayList<>();
int filenameCounter = 1; int filenameCounter = 1;
for (FilesAdapter.ViewModel model : mFilesModels) { for (FilesAdapter.ViewModel model : mFilesAdapter.mDataset) {
String targetName = (mEncryptFilenames String targetName = (mEncryptFilenames
? String.valueOf(filenameCounter) : FileHelper.getFilename(getActivity(), model.inputUri)) ? String.valueOf(filenameCounter) : FileHelper.getFilename(getActivity(), model.inputUri))
+ (mUseArmor ? Constants.FILE_EXTENSION_ASC : Constants.FILE_EXTENSION_PGP_MAIN); + (mUseArmor ? Constants.FILE_EXTENSION_ASC : Constants.FILE_EXTENSION_PGP_MAIN);
@ -470,7 +462,7 @@ public class EncryptFilesFragment
return false; return false;
case SAVE: case SAVE:
if (mFilesModels.size() > 1) { if (mFilesAdapter.getModelCount() > 1) {
Notify.create(getActivity(), R.string.error_multi_files, Notify.Style.ERROR).show(this); Notify.create(getActivity(), R.string.error_multi_files, Notify.Style.ERROR).show(this);
return true; return true;
} }
@ -479,14 +471,14 @@ public class EncryptFilesFragment
case COPY: case COPY:
// nothing to do here, but make sure // nothing to do here, but make sure
if (mFilesModels.size() > 1) { if (mFilesAdapter.getModelCount() > 1) {
Notify.create(getActivity(), R.string.error_multi_clipboard, Notify.Style.ERROR).show(this); Notify.create(getActivity(), R.string.error_multi_clipboard, Notify.Style.ERROR).show(this);
return true; return true;
} }
mOutputUris = new ArrayList<>(); mOutputUris = new ArrayList<>();
String targetName = (mEncryptFilenames String targetName = (mEncryptFilenames
? String.valueOf(1) : FileHelper.getFilename(getActivity(), mFilesModels.get(0).inputUri)) ? String.valueOf(1) : FileHelper.getFilename(getActivity(),
+ Constants.FILE_EXTENSION_ASC; mFilesAdapter.getModelItem(0).inputUri)) + Constants.FILE_EXTENSION_ASC;
mOutputUris.add(TemporaryStorageProvider.createFile(getActivity(), targetName, "text/plain")); mOutputUris.add(TemporaryStorageProvider.createFile(getActivity(), targetName, "text/plain"));
return false; return false;
} }
@ -534,6 +526,11 @@ public class EncryptFilesFragment
protected SignEncryptParcel createIncompleteCryptoInput() { protected SignEncryptParcel createIncompleteCryptoInput() {
if (mFilesAdapter.getModelCount() == 0) {
Notify.create(getActivity(), R.string.error_no_file_selected, Notify.Style.ERROR).show(this);
return null;
}
// fill values for this action // fill values for this action
SignEncryptParcel data = new SignEncryptParcel(); SignEncryptParcel data = new SignEncryptParcel();
@ -556,12 +553,14 @@ public class EncryptFilesFragment
long[] encryptionKeyIds = modeFragment.getAsymmetricEncryptionKeyIds(); long[] encryptionKeyIds = modeFragment.getAsymmetricEncryptionKeyIds();
long signingKeyId = modeFragment.getAsymmetricSigningKeyId(); long signingKeyId = modeFragment.getAsymmetricSigningKeyId();
boolean gotEncryptionKeys = (encryptionKeyIds != null boolean gotEncryptionKeys = (encryptionKeyIds != null && encryptionKeyIds.length > 0);
&& encryptionKeyIds.length > 0);
if (!gotEncryptionKeys && signingKeyId == 0) { if (!gotEncryptionKeys && signingKeyId != 0) {
Notify.create(getActivity(), R.string.select_encryption_or_signature_key, Notify.Style.ERROR) Notify.create(getActivity(), R.string.error_detached_signature, Notify.Style.ERROR).show(this);
.show(this); return null;
}
if (!gotEncryptionKeys) {
Notify.create(getActivity(), R.string.select_encryption_key, Notify.Style.ERROR).show(this);
return null; return null;
} }
@ -741,9 +740,9 @@ public class EncryptFilesFragment
} }
// Provide a suitable constructor (depends on the kind of dataset) // Provide a suitable constructor (depends on the kind of dataset)
public FilesAdapter(Activity activity, List<ViewModel> myDataset, View.OnClickListener onFooterClickListener) { public FilesAdapter(Activity activity, View.OnClickListener onFooterClickListener) {
mActivity = activity; mActivity = activity;
mDataset = myDataset; mDataset = new ArrayList<>();
mFooterOnClickListener = onFooterClickListener; mFooterOnClickListener = onFooterClickListener;
} }
@ -797,7 +796,8 @@ public class EncryptFilesFragment
// Return the size of your dataset (invoked by the layout manager) // Return the size of your dataset (invoked by the layout manager)
@Override @Override
public int getItemCount() { public int getItemCount() {
return mDataset.size() + 1; // one extra for the footer!
return mDataset.size() +1;
} }
@Override @Override
@ -837,6 +837,14 @@ public class EncryptFilesFragment
} }
} }
public int getModelCount() {
return mDataset.size();
}
public ViewModel getModelItem(int position) {
return mDataset.get(position);
}
public void remove(ViewModel model) { public void remove(ViewModel model) {
int position = mDataset.indexOf(model); int position = mDataset.indexOf(model);
mDataset.remove(position); mDataset.remove(position);

View File

@ -241,7 +241,7 @@ public class EncryptTextFragment
&& encryptionKeyIds.length > 0); && encryptionKeyIds.length > 0);
if (!gotEncryptionKeys && signingKeyId == Constants.key.none) { if (!gotEncryptionKeys && signingKeyId == Constants.key.none) {
Notify.create(getActivity(), R.string.select_encryption_or_signature_key, Notify.Style.ERROR) Notify.create(getActivity(), R.string.error_no_encryption_or_signature_key, Notify.Style.ERROR)
.show(this); .show(this);
return null; return null;
} }

View File

@ -185,7 +185,7 @@
<string name="encrypt_sign_successful">Úspěšně podepsáno a/nebo zašifrováno.</string> <string name="encrypt_sign_successful">Úspěšně podepsáno a/nebo zašifrováno.</string>
<string name="encrypt_sign_clipboard_successful">Úspěšně podepsání a/nebo zašifrováno do schránky.</string> <string name="encrypt_sign_clipboard_successful">Úspěšně podepsání a/nebo zašifrováno do schránky.</string>
<string name="select_encryption_key">Vyberte alespoň jeden šifrovací klíč.</string> <string name="select_encryption_key">Vyberte alespoň jeden šifrovací klíč.</string>
<string name="select_encryption_or_signature_key">Vyberte alespoň jeden šifrovací nebo podpisový klíč.</string> <string name="error_no_encryption_or_signature_key">Vyberte alespoň jeden šifrovací nebo podpisový klíč.</string>
<string name="also_export_secret_keys">Zárověň exportovat tajný klíč</string> <string name="also_export_secret_keys">Zárověň exportovat tajný klíč</string>
<string name="reinstall_openkeychain">Narazili jste na známou chybu v Androidu. Přeinstalujte prosím OpenKeychain pokud chcete své propojit kontakty s klíči.</string> <string name="reinstall_openkeychain">Narazili jste na známou chybu v Androidu. Přeinstalujte prosím OpenKeychain pokud chcete své propojit kontakty s klíči.</string>
<string name="key_exported">Úspěšně exportován 1 klíč.</string> <string name="key_exported">Úspěšně exportován 1 klíč.</string>

View File

@ -201,7 +201,7 @@
<string name="encrypt_sign_successful">Erfolgreich signiert und/oder verschlüsselt.</string> <string name="encrypt_sign_successful">Erfolgreich signiert und/oder verschlüsselt.</string>
<string name="encrypt_sign_clipboard_successful">Erfolgreich in die Zwischenablage signiert und/oder verschlüsselt.</string> <string name="encrypt_sign_clipboard_successful">Erfolgreich in die Zwischenablage signiert und/oder verschlüsselt.</string>
<string name="select_encryption_key">Mindestens einen Schlüssel zum Verschlüsseln auswählen.</string> <string name="select_encryption_key">Mindestens einen Schlüssel zum Verschlüsseln auswählen.</string>
<string name="select_encryption_or_signature_key">Mindestens einen Schlüssel zum Verschlüsseln oder einen zum Signieren auswählen.</string> <string name="error_no_encryption_or_signature_key">Mindestens einen Schlüssel zum Verschlüsseln oder einen zum Signieren auswählen.</string>
<string name="specify_file_to_encrypt_to">Bitte angeben in welche Datei verschlüsselt werden soll.\nWARNUNG: Datei wird überschrieben, wenn sie bereits existiert.</string> <string name="specify_file_to_encrypt_to">Bitte angeben in welche Datei verschlüsselt werden soll.\nWARNUNG: Datei wird überschrieben, wenn sie bereits existiert.</string>
<string name="specify_file_to_decrypt_to">Bitte angeben in welche Datei entschlüsselt werden soll.\nWARNUNG: Datei wird überschrieben, wenn sie bereits existiert.</string> <string name="specify_file_to_decrypt_to">Bitte angeben in welche Datei entschlüsselt werden soll.\nWARNUNG: Datei wird überschrieben, wenn sie bereits existiert.</string>
<string name="specify_file_to_export_to">Bitte angeben in welche Datei exportiert werden soll.\nWARNUNG: Datei wird überschrieben, wenn sie bereits existiert.</string> <string name="specify_file_to_export_to">Bitte angeben in welche Datei exportiert werden soll.\nWARNUNG: Datei wird überschrieben, wenn sie bereits existiert.</string>

View File

@ -201,7 +201,7 @@
<string name="encrypt_sign_successful">Firmado y/o cifrado con éxito.</string> <string name="encrypt_sign_successful">Firmado y/o cifrado con éxito.</string>
<string name="encrypt_sign_clipboard_successful">Firmado y/o cifrado del portapapeles con éxito.</string> <string name="encrypt_sign_clipboard_successful">Firmado y/o cifrado del portapapeles con éxito.</string>
<string name="select_encryption_key">Selecciona al menos una clave de cifrado.</string> <string name="select_encryption_key">Selecciona al menos una clave de cifrado.</string>
<string name="select_encryption_or_signature_key">Selecciona al menos una clave de cifrado o de firma.</string> <string name="error_no_encryption_or_signature_key">Selecciona al menos una clave de cifrado o de firma.</string>
<string name="specify_file_to_encrypt_to">Por favor especifique hacia qué fichero cifrar.\nADVERTENCIA: ¡El fichero se sobreescribirá si existe!</string> <string name="specify_file_to_encrypt_to">Por favor especifique hacia qué fichero cifrar.\nADVERTENCIA: ¡El fichero se sobreescribirá si existe!</string>
<string name="specify_file_to_decrypt_to">Por favor especifique hacia qué fichero descifrar.\nADVERTENCIA: ¡El fichero se sobreescribirá si existe!</string> <string name="specify_file_to_decrypt_to">Por favor especifique hacia qué fichero descifrar.\nADVERTENCIA: ¡El fichero se sobreescribirá si existe!</string>
<string name="specify_file_to_export_to">Por favor especifique hacia qué fichero exportar.\nADVERTENCIA: ¡El fichero se sobreescribirá si existe!</string> <string name="specify_file_to_export_to">Por favor especifique hacia qué fichero exportar.\nADVERTENCIA: ¡El fichero se sobreescribirá si existe!</string>

View File

@ -172,7 +172,7 @@
<string name="encrypt_sign_successful">Ongi sinatu eta/edo enkriptatu da.</string> <string name="encrypt_sign_successful">Ongi sinatu eta/edo enkriptatu da.</string>
<string name="encrypt_sign_clipboard_successful">Ongi sinatu eta/edo enkriptatu da gakora.</string> <string name="encrypt_sign_clipboard_successful">Ongi sinatu eta/edo enkriptatu da gakora.</string>
<string name="select_encryption_key">Hautatu enkriptaketa giltza bat gutxienez.</string> <string name="select_encryption_key">Hautatu enkriptaketa giltza bat gutxienez.</string>
<string name="select_encryption_or_signature_key">Hautatu enkriptaketa giltza bat edo sinadura giltza bat gutxienez.</string> <string name="error_no_encryption_or_signature_key">Hautatu enkriptaketa giltza bat edo sinadura giltza bat gutxienez.</string>
<string name="key_deletion_confirmation_multi">Egitan nahi duzu hautaturiko giltzak ezabatzea?</string> <string name="key_deletion_confirmation_multi">Egitan nahi duzu hautaturiko giltzak ezabatzea?</string>
<string name="public_key_deletetion_confirmation">Ezabatu \'%s\' giltza?</string> <string name="public_key_deletetion_confirmation">Ezabatu \'%s\' giltza?</string>
<string name="also_export_secret_keys">Esportatu giltza sekretuak ere</string> <string name="also_export_secret_keys">Esportatu giltza sekretuak ere</string>

View File

@ -201,7 +201,7 @@
<string name="encrypt_sign_successful">Signé et/ou chiffré avec succès.</string> <string name="encrypt_sign_successful">Signé et/ou chiffré avec succès.</string>
<string name="encrypt_sign_clipboard_successful">Signé et/ou chiffré vers le presse-papiers avec succès.</string> <string name="encrypt_sign_clipboard_successful">Signé et/ou chiffré vers le presse-papiers avec succès.</string>
<string name="select_encryption_key">Choisir au moins une clef de chiffrement.</string> <string name="select_encryption_key">Choisir au moins une clef de chiffrement.</string>
<string name="select_encryption_or_signature_key">Choisir au moins une clef de chiffrement ou de signature.</string> <string name="error_no_encryption_or_signature_key">Choisir au moins une clef de chiffrement ou de signature.</string>
<string name="specify_file_to_encrypt_to">Veuillez spécifier vers quel fichier chiffrer.\nAVERTISSEMENT : le fichier sera écrasé s\'il existe !</string> <string name="specify_file_to_encrypt_to">Veuillez spécifier vers quel fichier chiffrer.\nAVERTISSEMENT : le fichier sera écrasé s\'il existe !</string>
<string name="specify_file_to_decrypt_to">Veuillez spécifier vers quel fichier déchiffrer.\nAVERTISSEMENT : le fichier sera écrasé s\'il existe !</string> <string name="specify_file_to_decrypt_to">Veuillez spécifier vers quel fichier déchiffrer.\nAVERTISSEMENT : le fichier sera écrasé s\'il existe !</string>
<string name="specify_file_to_export_to">Veuillez spécifier vers quel fichier exporter.\nAVERTISSEMENT : le fichier sera écrasé s\'il existe !</string> <string name="specify_file_to_export_to">Veuillez spécifier vers quel fichier exporter.\nAVERTISSEMENT : le fichier sera écrasé s\'il existe !</string>

View File

@ -149,7 +149,7 @@
<string name="encrypt_sign_successful">Firmato e/o codificato con successo.</string> <string name="encrypt_sign_successful">Firmato e/o codificato con successo.</string>
<string name="encrypt_sign_clipboard_successful">Firmato e/o codificato con successo negli appunti.</string> <string name="encrypt_sign_clipboard_successful">Firmato e/o codificato con successo negli appunti.</string>
<string name="select_encryption_key">Seleziona almeno una chiave di codifica.</string> <string name="select_encryption_key">Seleziona almeno una chiave di codifica.</string>
<string name="select_encryption_or_signature_key">Seleziona almeno una chiave di codifica o di firma.</string> <string name="error_no_encryption_or_signature_key">Seleziona almeno una chiave di codifica o di firma.</string>
<string name="also_export_secret_keys">Esporta anche chiave segreta</string> <string name="also_export_secret_keys">Esporta anche chiave segreta</string>
<string name="reinstall_openkeychain">Hai riscontrato un bug noto con Android. Si prega di reinstallare OpenKeychain se vuoi collegare i tuoi contatti con le chiavi.</string> <string name="reinstall_openkeychain">Hai riscontrato un bug noto con Android. Si prega di reinstallare OpenKeychain se vuoi collegare i tuoi contatti con le chiavi.</string>
<string name="key_exported">1 chiave esportata correttamente.</string> <string name="key_exported">1 chiave esportata correttamente.</string>

View File

@ -199,7 +199,7 @@
<string name="encrypt_sign_successful">署名/暗号化に成功しました。</string> <string name="encrypt_sign_successful">署名/暗号化に成功しました。</string>
<string name="encrypt_sign_clipboard_successful">クリップボードの中身の署名/暗号化に成功しました。</string> <string name="encrypt_sign_clipboard_successful">クリップボードの中身の署名/暗号化に成功しました。</string>
<string name="select_encryption_key">少なくとも1つの暗号化鍵を選択して下さい。</string> <string name="select_encryption_key">少なくとも1つの暗号化鍵を選択して下さい。</string>
<string name="select_encryption_or_signature_key">少なくとも1つの暗号化鍵か署名鍵を選択して下さい。</string> <string name="error_no_encryption_or_signature_key">少なくとも1つの暗号化鍵か署名鍵を選択して下さい。</string>
<string name="specify_file_to_encrypt_to">どれのファイルを暗号化するのを入力してください。\n注意ファイルが存在しているなら上書きされる</string> <string name="specify_file_to_encrypt_to">どれのファイルを暗号化するのを入力してください。\n注意ファイルが存在しているなら上書きされる</string>
<string name="specify_file_to_decrypt_to">どれのファイルを暗号するのを入力してください。\n注意ファイルが存在しているなら上書きされる</string> <string name="specify_file_to_decrypt_to">どれのファイルを暗号するのを入力してください。\n注意ファイルが存在しているなら上書きされる</string>
<string name="specify_file_to_export_to">どれのファイルを復号化するのを入力してください。\n注意ファイルが存在しているなら上書きされる</string> <string name="specify_file_to_export_to">どれのファイルを復号化するのを入力してください。\n注意ファイルが存在しているなら上書きされる</string>

View File

@ -201,7 +201,7 @@
<string name="encrypt_sign_successful">Succesvol gesigneerd en/of gecodeerd.</string> <string name="encrypt_sign_successful">Succesvol gesigneerd en/of gecodeerd.</string>
<string name="encrypt_sign_clipboard_successful">Succesvol gesigneerd en/of gecodeerd naar klembord.</string> <string name="encrypt_sign_clipboard_successful">Succesvol gesigneerd en/of gecodeerd naar klembord.</string>
<string name="select_encryption_key">Selecteer ten minste één versleutelingssleutel.</string> <string name="select_encryption_key">Selecteer ten minste één versleutelingssleutel.</string>
<string name="select_encryption_or_signature_key">Selecter ten minste één versleutelings-/ondertekeningssleutel.</string> <string name="error_no_encryption_or_signature_key">Selecter ten minste één versleutelings-/ondertekeningssleutel.</string>
<string name="specify_file_to_encrypt_to">Gelieve aan te geven naar welk bestand versleuteld moet worden.\nWAARSCHUWING: Als het bestand al bestaat, zal het overschreven worden!</string> <string name="specify_file_to_encrypt_to">Gelieve aan te geven naar welk bestand versleuteld moet worden.\nWAARSCHUWING: Als het bestand al bestaat, zal het overschreven worden!</string>
<string name="specify_file_to_decrypt_to">Gelieve aan te geven naar welk bestand ontcijferd moet worden.\nWAARSCHUWING: Als het bestand al bestaat, zal het overschreven worden!</string> <string name="specify_file_to_decrypt_to">Gelieve aan te geven naar welk bestand ontcijferd moet worden.\nWAARSCHUWING: Als het bestand al bestaat, zal het overschreven worden!</string>
<string name="specify_file_to_export_to">Gelieve aan te geven naar welk bestand geëxporteerd moet worden.\nWAARSCHUWING: Als het bestand al bestaat, zal het overschreven worden!</string> <string name="specify_file_to_export_to">Gelieve aan te geven naar welk bestand geëxporteerd moet worden.\nWAARSCHUWING: Als het bestand al bestaat, zal het overschreven worden!</string>

View File

@ -163,7 +163,7 @@
<string name="encrypt_sign_successful">Pomyślnie podpisano i/lub zaszyfrowano.</string> <string name="encrypt_sign_successful">Pomyślnie podpisano i/lub zaszyfrowano.</string>
<string name="encrypt_sign_clipboard_successful">Pomyslnie podpisano i/lub zaszyfrowano do schowka.</string> <string name="encrypt_sign_clipboard_successful">Pomyslnie podpisano i/lub zaszyfrowano do schowka.</string>
<string name="select_encryption_key">Wybierz co najmniej jeden klucz szyfrujący.</string> <string name="select_encryption_key">Wybierz co najmniej jeden klucz szyfrujący.</string>
<string name="select_encryption_or_signature_key">Wybierz co najmniej jeden klucz szyfrujący lub klucz podpisujący.</string> <string name="error_no_encryption_or_signature_key">Wybierz co najmniej jeden klucz szyfrujący lub klucz podpisujący.</string>
<string name="also_export_secret_keys">Także eksportuj tajne klucze</string> <string name="also_export_secret_keys">Także eksportuj tajne klucze</string>
<string name="reinstall_openkeychain">Napotkałeś się na znany błąd w Androidzie. Proszę ponownie zainstalować OpenKeychain jeśli chcesz połączyć kontakty z kluczami.</string> <string name="reinstall_openkeychain">Napotkałeś się na znany błąd w Androidzie. Proszę ponownie zainstalować OpenKeychain jeśli chcesz połączyć kontakty z kluczami.</string>
<string name="key_exported">Pomyślnie wyeksportowano 1 klucz.</string> <string name="key_exported">Pomyślnie wyeksportowano 1 klucz.</string>

View File

@ -184,7 +184,7 @@
<string name="encrypt_sign_successful">Успешно подписано и/или зашифровано.</string> <string name="encrypt_sign_successful">Успешно подписано и/или зашифровано.</string>
<string name="encrypt_sign_clipboard_successful">Успешно подписано и/или зашифровано в буфер обмена.</string> <string name="encrypt_sign_clipboard_successful">Успешно подписано и/или зашифровано в буфер обмена.</string>
<string name="select_encryption_key">Укажите хотя бы один ключ.</string> <string name="select_encryption_key">Укажите хотя бы один ключ.</string>
<string name="select_encryption_or_signature_key">Выберите хотя бы один ключ для шифрования или подписи.</string> <string name="error_no_encryption_or_signature_key">Выберите хотя бы один ключ для шифрования или подписи.</string>
<string name="also_export_secret_keys">Экспортировать секретные ключи</string> <string name="also_export_secret_keys">Экспортировать секретные ключи</string>
<string name="reinstall_openkeychain">Вы столкнулись с багом Андроид. Пожалуйста, переустановите OpenKeychain чтобы связать ваши контакты и ключи. </string> <string name="reinstall_openkeychain">Вы столкнулись с багом Андроид. Пожалуйста, переустановите OpenKeychain чтобы связать ваши контакты и ключи. </string>
<string name="key_exported">Успешный экспорт 1 ключа.</string> <string name="key_exported">Успешный экспорт 1 ключа.</string>

View File

@ -205,7 +205,7 @@
<string name="encrypt_sign_successful">Uspešno podpisano in/ali šifrirano.</string> <string name="encrypt_sign_successful">Uspešno podpisano in/ali šifrirano.</string>
<string name="encrypt_sign_clipboard_successful">Uspešno podpisano in/ali šifrirano ter poslano v odložišče.</string> <string name="encrypt_sign_clipboard_successful">Uspešno podpisano in/ali šifrirano ter poslano v odložišče.</string>
<string name="select_encryption_key">Izberite vsaj en šifrirni ključ.</string> <string name="select_encryption_key">Izberite vsaj en šifrirni ključ.</string>
<string name="select_encryption_or_signature_key">Vnesite vsaj en šifrirni ključ ali ključ za podpisovanje.</string> <string name="error_no_encryption_or_signature_key">Vnesite vsaj en šifrirni ključ ali ključ za podpisovanje.</string>
<string name="specify_file_to_encrypt_to">Določite datoteko, v katero želite šifrirati vsebino.\nPOZOR: če datoteka že obstaja, bo prepisana.</string> <string name="specify_file_to_encrypt_to">Določite datoteko, v katero želite šifrirati vsebino.\nPOZOR: če datoteka že obstaja, bo prepisana.</string>
<string name="specify_file_to_decrypt_to">Določite datoteko, v katero želite dešifrirati vsebino.\nPOZOR: če datoteka že obstaja, bo prepisana.</string> <string name="specify_file_to_decrypt_to">Določite datoteko, v katero želite dešifrirati vsebino.\nPOZOR: če datoteka že obstaja, bo prepisana.</string>
<string name="specify_file_to_export_to">Določite datoteko, v katero želite izvoziti vsebino.\nPOZOR: če datoteka že obstaja, bo prepisana.</string> <string name="specify_file_to_export_to">Določite datoteko, v katero želite izvoziti vsebino.\nPOZOR: če datoteka že obstaja, bo prepisana.</string>

View File

@ -209,7 +209,7 @@
<string name="encrypt_sign_clipboard_successful">Потписивање и/или шифровање на клипборд је успело.</string> <string name="encrypt_sign_clipboard_successful">Потписивање и/или шифровање на клипборд је успело.</string>
<string name="enter_passphrase_twice">Унесите лозинку два пута.</string> <string name="enter_passphrase_twice">Унесите лозинку два пута.</string>
<string name="select_encryption_key">Изаберите бар један кључ за шифровање.</string> <string name="select_encryption_key">Изаберите бар један кључ за шифровање.</string>
<string name="select_encryption_or_signature_key">Изаберите бар један кључ за шифровање или потписивање.</string> <string name="error_no_encryption_or_signature_key">Изаберите бар један кључ за шифровање или потписивање.</string>
<string name="specify_file_to_encrypt_to">Одредите у који фајл да шифрујем.\nУПОЗОРЕЊЕ: Фајл ће бити пребрисан ако постоји.</string> <string name="specify_file_to_encrypt_to">Одредите у који фајл да шифрујем.\nУПОЗОРЕЊЕ: Фајл ће бити пребрисан ако постоји.</string>
<string name="specify_file_to_decrypt_to">Одредите у који фајл да дешифрујем.\nУПОЗОРЕЊЕ: Фајл ће бити пребрисан ако постоји.</string> <string name="specify_file_to_decrypt_to">Одредите у који фајл да дешифрујем.\nУПОЗОРЕЊЕ: Фајл ће бити пребрисан ако постоји.</string>
<string name="specify_file_to_export_to">Одредите у који фајл да извезем.\nУПОЗОРЕЊЕ: Фајл ће бити пребрисан ако постоји.</string> <string name="specify_file_to_export_to">Одредите у који фајл да извезем.\nУПОЗОРЕЊЕ: Фајл ће бити пребрисан ако постоји.</string>

View File

@ -192,7 +192,7 @@
<string name="encrypt_sign_successful">Signerades och/eller krypterades.</string> <string name="encrypt_sign_successful">Signerades och/eller krypterades.</string>
<string name="encrypt_sign_clipboard_successful">Signerades och/eller krypterades till urklipp.</string> <string name="encrypt_sign_clipboard_successful">Signerades och/eller krypterades till urklipp.</string>
<string name="select_encryption_key">Välj åtminstone en krypteringsnyckel.</string> <string name="select_encryption_key">Välj åtminstone en krypteringsnyckel.</string>
<string name="select_encryption_or_signature_key">Välj åtminstone en krypterings- eller signeringsnyckel.</string> <string name="error_no_encryption_or_signature_key">Välj åtminstone en krypterings- eller signeringsnyckel.</string>
<string name="key_deletion_confirmation_multi">Vill du verkligen radera alla markerade nycklar?</string> <string name="key_deletion_confirmation_multi">Vill du verkligen radera alla markerade nycklar?</string>
<string name="secret_key_deletion_confirmation">Efter radering kommer du inte kunna läsa meddelande krypterade med den här nyckeln samt förlora alla nyckelbekräftningar som gjorts med den!</string> <string name="secret_key_deletion_confirmation">Efter radering kommer du inte kunna läsa meddelande krypterade med den här nyckeln samt förlora alla nyckelbekräftningar som gjorts med den!</string>
<string name="public_key_deletetion_confirmation">Radera nyckel \'%s\'?</string> <string name="public_key_deletetion_confirmation">Radera nyckel \'%s\'?</string>

View File

@ -152,7 +152,7 @@
<string name="encrypt_sign_successful">Başarıyla imzalandı ve/veya şifrelendi.</string> <string name="encrypt_sign_successful">Başarıyla imzalandı ve/veya şifrelendi.</string>
<string name="encrypt_sign_clipboard_successful">Kopyalama önbelleğine başarıyla imzalandı ve/veya şifrelendi.</string> <string name="encrypt_sign_clipboard_successful">Kopyalama önbelleğine başarıyla imzalandı ve/veya şifrelendi.</string>
<string name="select_encryption_key">En az bir şifreleme anahtarı seçiniz.</string> <string name="select_encryption_key">En az bir şifreleme anahtarı seçiniz.</string>
<string name="select_encryption_or_signature_key">En az bir şifreleme anahtarı veya imza anahtarı seçiniz.</string> <string name="error_no_encryption_or_signature_key">En az bir şifreleme anahtarı veya imza anahtarı seçiniz.</string>
<string name="also_export_secret_keys">Özel anahtarları da dışa aktar</string> <string name="also_export_secret_keys">Özel anahtarları da dışa aktar</string>
<string name="reinstall_openkeychain">Android için bilinen bir hataya denk geldiniz. Eğer kişilerinizi anahtarlarla eşlemek istiyorsanız, lütfen OpenKeychain uygulamasını yeniden yükleyin.</string> <string name="reinstall_openkeychain">Android için bilinen bir hataya denk geldiniz. Eğer kişilerinizi anahtarlarla eşlemek istiyorsanız, lütfen OpenKeychain uygulamasını yeniden yükleyin.</string>
<string name="key_exported">1 anahtar başarıyla dışa aktarıldı.</string> <string name="key_exported">1 anahtar başarıyla dışa aktarıldı.</string>

View File

@ -153,7 +153,7 @@
<string name="encrypt_sign_successful">Успішно підписано та/або перевірено.</string> <string name="encrypt_sign_successful">Успішно підписано та/або перевірено.</string>
<string name="encrypt_sign_clipboard_successful">Успішно підписано та/або зашифровано до буфера обміну.</string> <string name="encrypt_sign_clipboard_successful">Успішно підписано та/або зашифровано до буфера обміну.</string>
<string name="select_encryption_key">Виберіть принаймні один ключ шифрування.</string> <string name="select_encryption_key">Виберіть принаймні один ключ шифрування.</string>
<string name="select_encryption_or_signature_key">Виберіть принаймні один ключ шифрування або ключ підпису.</string> <string name="error_no_encryption_or_signature_key">Виберіть принаймні один ключ шифрування або ключ підпису.</string>
<string name="also_export_secret_keys">Також експортувати секретні ключі</string> <string name="also_export_secret_keys">Також експортувати секретні ключі</string>
<string name="key_exported">Успішно експортовано 1 ключ.</string> <string name="key_exported">Успішно експортовано 1 ключ.</string>
<string name="keys_exported">Успішно експортовано %d ключів.</string> <string name="keys_exported">Успішно експортовано %d ключів.</string>

View File

@ -190,7 +190,7 @@
<string name="encrypt_sign_successful">成功簽名並/或加密。</string> <string name="encrypt_sign_successful">成功簽名並/或加密。</string>
<string name="encrypt_sign_clipboard_successful">成功簽名並/或加密到剪貼簿。</string> <string name="encrypt_sign_clipboard_successful">成功簽名並/或加密到剪貼簿。</string>
<string name="select_encryption_key">選擇至少一把加密金鑰。</string> <string name="select_encryption_key">選擇至少一把加密金鑰。</string>
<string name="select_encryption_or_signature_key">選擇至少一把加密或簽名金鑰。</string> <string name="error_no_encryption_or_signature_key">選擇至少一把加密或簽名金鑰。</string>
<string name="specify_file_to_encrypt_to">請指定欲加密的檔案。\n警告已經存在的檔案將被覆蓋。</string> <string name="specify_file_to_encrypt_to">請指定欲加密的檔案。\n警告已經存在的檔案將被覆蓋。</string>
<string name="specify_file_to_decrypt_to">請指定欲解密的檔案。\n警告已經存在的檔案將被覆蓋。</string> <string name="specify_file_to_decrypt_to">請指定欲解密的檔案。\n警告已經存在的檔案將被覆蓋。</string>
<string name="specify_file_to_export_to">請指定欲輸出的檔案。\n警告已經存在的檔案將被覆蓋。</string> <string name="specify_file_to_export_to">請指定欲輸出的檔案。\n警告已經存在的檔案將被覆蓋。</string>

View File

@ -115,7 +115,7 @@
<string name="encrypt_sign_successful">加密并签名成功</string> <string name="encrypt_sign_successful">加密并签名成功</string>
<string name="encrypt_sign_clipboard_successful">加密签名并复制到剪贴板成功</string> <string name="encrypt_sign_clipboard_successful">加密签名并复制到剪贴板成功</string>
<string name="select_encryption_key">选择至少一个加密密钥</string> <string name="select_encryption_key">选择至少一个加密密钥</string>
<string name="select_encryption_or_signature_key">选择至少一个加密密钥或者签名密钥</string> <string name="error_no_encryption_or_signature_key">选择至少一个加密密钥或者签名密钥</string>
<string name="also_export_secret_keys">同时导出密钥</string> <string name="also_export_secret_keys">同时导出密钥</string>
<string name="key_exported">成功地导出了1个密钥</string> <string name="key_exported">成功地导出了1个密钥</string>
<string name="keys_exported">成功导出多个密钥</string> <string name="keys_exported">成功导出多个密钥</string>

View File

@ -226,7 +226,7 @@
<string name="encrypt_sign_successful">"Successfully signed and/or encrypted."</string> <string name="encrypt_sign_successful">"Successfully signed and/or encrypted."</string>
<string name="encrypt_sign_clipboard_successful">"Successfully signed and/or encrypted to clipboard."</string> <string name="encrypt_sign_clipboard_successful">"Successfully signed and/or encrypted to clipboard."</string>
<string name="select_encryption_key">"Select at least one encryption key."</string> <string name="select_encryption_key">"Select at least one encryption key."</string>
<string name="select_encryption_or_signature_key">"Select at least one encryption key or a signature key."</string> <string name="error_no_encryption_or_signature_key">"Select at least one encryption key or a signature key."</string>
<string name="specify_file_to_encrypt_to">"Please specify which file to encrypt to.\nWARNING: File will be overwritten if it exists!"</string> <string name="specify_file_to_encrypt_to">"Please specify which file to encrypt to.\nWARNING: File will be overwritten if it exists!"</string>
<string name="specify_file_to_decrypt_to">"Please specify which file to decrypt to.\nWARNING: File will be overwritten if it exists!"</string> <string name="specify_file_to_decrypt_to">"Please specify which file to decrypt to.\nWARNING: File will be overwritten if it exists!"</string>
<string name="specify_file_to_export_to">"Please specify which file to export to.\nWARNING: File will be overwritten if it exists!"</string> <string name="specify_file_to_export_to">"Please specify which file to export to.\nWARNING: File will be overwritten if it exists!"</string>
@ -1266,6 +1266,7 @@
<string name="error_no_file_selected">"Select at least one file to encrypt!"</string> <string name="error_no_file_selected">"Select at least one file to encrypt!"</string>
<string name="error_multi_files">"Saving of multiple files not supported. This is a limitation on current Android."</string> <string name="error_multi_files">"Saving of multiple files not supported. This is a limitation on current Android."</string>
<string name="error_multi_clipboard">"Encryption of multiple files to clipboard not supported."</string> <string name="error_multi_clipboard">"Encryption of multiple files to clipboard not supported."</string>
<string name="error_detached_signature">"Sign-only operation of binary files is not supported, select at least one encryption key."</string>
<string name="error_empty_text">"Type some text to encrypt!"</string> <string name="error_empty_text">"Type some text to encrypt!"</string>
<string name="key_colon">"Key:"</string> <string name="key_colon">"Key:"</string>
<string name="exchange_description">"To start a key exchange, choose the number of participants on the right side, then hit the “Start exchange” button.\n\nYou will be asked two more questions to make sure only the right participants are in the exchange and their fingerprints are correct."</string> <string name="exchange_description">"To start a key exchange, choose the number of participants on the right side, then hit the “Start exchange” button.\n\nYou will be asked two more questions to make sure only the right participants are in the exchange and their fingerprints are correct."</string>