mirror of
https://github.com/moparisthebest/open-keychain
synced 2024-12-25 08:28:50 -05:00
language fix
This commit is contained in:
parent
08d301a308
commit
1b1724f7af
@ -293,7 +293,7 @@ public class PgpKeyHelper {
|
|||||||
public static String getMainUserIdSafe(Context context, PGPPublicKey key) {
|
public static String getMainUserIdSafe(Context context, PGPPublicKey key) {
|
||||||
String userId = getMainUserId(key);
|
String userId = getMainUserId(key);
|
||||||
if (userId == null || userId.equals("")) {
|
if (userId == null || userId.equals("")) {
|
||||||
userId = context.getString(R.string.unknown_user_id);
|
userId = context.getString(R.string.user_id_no_name);
|
||||||
}
|
}
|
||||||
return userId;
|
return userId;
|
||||||
}
|
}
|
||||||
@ -301,7 +301,7 @@ public class PgpKeyHelper {
|
|||||||
public static String getMainUserIdSafe(Context context, PGPSecretKey key) {
|
public static String getMainUserIdSafe(Context context, PGPSecretKey key) {
|
||||||
String userId = getMainUserId(key);
|
String userId = getMainUserId(key);
|
||||||
if (userId == null || userId.equals("")) {
|
if (userId == null || userId.equals("")) {
|
||||||
userId = context.getString(R.string.unknown_user_id);
|
userId = context.getString(R.string.user_id_no_name);
|
||||||
}
|
}
|
||||||
return userId;
|
return userId;
|
||||||
}
|
}
|
||||||
|
@ -771,7 +771,7 @@ public class DecryptActivity extends DrawerActivity {
|
|||||||
mUserIdRest.setText("id: "
|
mUserIdRest.setText("id: "
|
||||||
+ PgpKeyHelper.convertKeyIdToHex(mSignatureKeyId));
|
+ PgpKeyHelper.convertKeyIdToHex(mSignatureKeyId));
|
||||||
if (userId == null) {
|
if (userId == null) {
|
||||||
userId = getResources().getString(R.string.unknown_user_id);
|
userId = getResources().getString(R.string.user_id_no_name);
|
||||||
}
|
}
|
||||||
String chunks[] = userId.split(" <", 2);
|
String chunks[] = userId.split(" <", 2);
|
||||||
userId = chunks[0];
|
userId = chunks[0];
|
||||||
|
@ -904,7 +904,7 @@ public class EncryptActivity extends DrawerActivity {
|
|||||||
mMainUserId.setText("");
|
mMainUserId.setText("");
|
||||||
mMainUserIdRest.setText("");
|
mMainUserIdRest.setText("");
|
||||||
} else {
|
} else {
|
||||||
String uid = getResources().getString(R.string.unknown_user_id);
|
String uid = getResources().getString(R.string.user_id_no_name);
|
||||||
String uidExtra = "";
|
String uidExtra = "";
|
||||||
PGPSecretKeyRing keyRing = ProviderHelper.getPGPSecretKeyRingByMasterKeyId(this,
|
PGPSecretKeyRing keyRing = ProviderHelper.getPGPSecretKeyRingByMasterKeyId(this,
|
||||||
mSecretKeyId);
|
mSecretKeyId);
|
||||||
|
@ -326,7 +326,7 @@ public class KeyServerQueryActivity extends SherlockFragmentActivity {
|
|||||||
View view = mInflater.inflate(R.layout.key_server_query_result_item, null);
|
View view = mInflater.inflate(R.layout.key_server_query_result_item, null);
|
||||||
|
|
||||||
TextView mainUserId = (TextView) view.findViewById(R.id.mainUserId);
|
TextView mainUserId = (TextView) view.findViewById(R.id.mainUserId);
|
||||||
mainUserId.setText(R.string.unknown_user_id);
|
mainUserId.setText(R.string.user_id_no_name);
|
||||||
TextView mainUserIdRest = (TextView) view.findViewById(R.id.mainUserIdRest);
|
TextView mainUserIdRest = (TextView) view.findViewById(R.id.mainUserIdRest);
|
||||||
mainUserIdRest.setText("");
|
mainUserIdRest.setText("");
|
||||||
TextView keyId = (TextView) view.findViewById(R.id.keyId);
|
TextView keyId = (TextView) view.findViewById(R.id.keyId);
|
||||||
|
@ -59,7 +59,7 @@ public class SelectSecretKeyLayoutFragment extends Fragment {
|
|||||||
mKeyUserId.setText(R.string.api_settings_no_key);
|
mKeyUserId.setText(R.string.api_settings_no_key);
|
||||||
mKeyUserIdRest.setText("");
|
mKeyUserIdRest.setText("");
|
||||||
} else {
|
} else {
|
||||||
String uid = getResources().getString(R.string.unknown_user_id);
|
String uid = getResources().getString(R.string.user_id_no_name);
|
||||||
String uidExtra = "";
|
String uidExtra = "";
|
||||||
PGPSecretKeyRing keyRing = ProviderHelper.getPGPSecretKeyRingByMasterKeyId(
|
PGPSecretKeyRing keyRing = ProviderHelper.getPGPSecretKeyRingByMasterKeyId(
|
||||||
getActivity(), secretKeyId);
|
getActivity(), secretKeyId);
|
||||||
|
@ -20,7 +20,6 @@ package org.sufficientlysecure.keychain.ui;
|
|||||||
|
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.Date;
|
import java.util.Date;
|
||||||
import java.util.Objects;
|
|
||||||
|
|
||||||
import org.spongycastle.openpgp.PGPPublicKey;
|
import org.spongycastle.openpgp.PGPPublicKey;
|
||||||
import org.spongycastle.openpgp.PGPPublicKeyRing;
|
import org.spongycastle.openpgp.PGPPublicKeyRing;
|
||||||
@ -305,8 +304,8 @@ public class ViewKeyActivity extends SherlockFragmentActivity implements
|
|||||||
setTitle(mainUserId[0]);
|
setTitle(mainUserId[0]);
|
||||||
mName.setText(mainUserId[0]);
|
mName.setText(mainUserId[0]);
|
||||||
} else {
|
} else {
|
||||||
setTitle(R.string.unknown_user_id);
|
setTitle(R.string.user_id_no_name);
|
||||||
mName.setText(R.string.unknown_user_id);
|
mName.setText(R.string.user_id_no_name);
|
||||||
}
|
}
|
||||||
mEmail.setText(mainUserId[1]);
|
mEmail.setText(mainUserId[1]);
|
||||||
mComment.setText(mainUserId[2]);
|
mComment.setText(mainUserId[2]);
|
||||||
|
@ -80,7 +80,7 @@ public class ImportKeysAdapter extends ArrayAdapter<ImportKeysListEntry> {
|
|||||||
View view = mInflater.inflate(R.layout.import_keys_list_entry, null);
|
View view = mInflater.inflate(R.layout.import_keys_list_entry, null);
|
||||||
|
|
||||||
TextView mainUserId = (TextView) view.findViewById(R.id.mainUserId);
|
TextView mainUserId = (TextView) view.findViewById(R.id.mainUserId);
|
||||||
mainUserId.setText(R.string.unknown_user_id);
|
mainUserId.setText(R.string.user_id_no_name);
|
||||||
TextView mainUserIdRest = (TextView) view.findViewById(R.id.mainUserIdRest);
|
TextView mainUserIdRest = (TextView) view.findViewById(R.id.mainUserIdRest);
|
||||||
mainUserIdRest.setText("");
|
mainUserIdRest.setText("");
|
||||||
TextView keyId = (TextView) view.findViewById(R.id.keyId);
|
TextView keyId = (TextView) view.findViewById(R.id.keyId);
|
||||||
|
@ -84,7 +84,7 @@ public class KeyListPublicAdapter extends CursorAdapter implements StickyListHea
|
|||||||
@Override
|
@Override
|
||||||
public void bindView(View view, Context context, Cursor cursor) {
|
public void bindView(View view, Context context, Cursor cursor) {
|
||||||
TextView mainUserId = (TextView) view.findViewById(R.id.mainUserId);
|
TextView mainUserId = (TextView) view.findViewById(R.id.mainUserId);
|
||||||
mainUserId.setText(R.string.unknown_user_id);
|
mainUserId.setText(R.string.user_id_no_name);
|
||||||
TextView mainUserIdRest = (TextView) view.findViewById(R.id.mainUserIdRest);
|
TextView mainUserIdRest = (TextView) view.findViewById(R.id.mainUserIdRest);
|
||||||
mainUserIdRest.setText("");
|
mainUserIdRest.setText("");
|
||||||
|
|
||||||
@ -138,7 +138,7 @@ public class KeyListPublicAdapter extends CursorAdapter implements StickyListHea
|
|||||||
|
|
||||||
// set header text as first char in user id
|
// set header text as first char in user id
|
||||||
String userId = mCursor.getString(mSectionColumnIndex);
|
String userId = mCursor.getString(mSectionColumnIndex);
|
||||||
String headerText = convertView.getResources().getString(R.string.unknown_user_id);
|
String headerText = convertView.getResources().getString(R.string.user_id_no_name);
|
||||||
if (userId != null && userId.length() > 0) {
|
if (userId != null && userId.length() > 0) {
|
||||||
headerText = "" + mCursor.getString(mSectionColumnIndex).subSequence(0, 1).charAt(0);
|
headerText = "" + mCursor.getString(mSectionColumnIndex).subSequence(0, 1).charAt(0);
|
||||||
}
|
}
|
||||||
|
@ -71,7 +71,7 @@ public class KeyListSecretAdapter extends CursorAdapter {
|
|||||||
@Override
|
@Override
|
||||||
public void bindView(View view, Context context, Cursor cursor) {
|
public void bindView(View view, Context context, Cursor cursor) {
|
||||||
TextView mainUserId = (TextView) view.findViewById(R.id.mainUserId);
|
TextView mainUserId = (TextView) view.findViewById(R.id.mainUserId);
|
||||||
mainUserId.setText(R.string.unknown_user_id);
|
mainUserId.setText(R.string.user_id_no_name);
|
||||||
TextView mainUserIdRest = (TextView) view.findViewById(R.id.mainUserIdRest);
|
TextView mainUserIdRest = (TextView) view.findViewById(R.id.mainUserIdRest);
|
||||||
mainUserIdRest.setText("");
|
mainUserIdRest.setText("");
|
||||||
|
|
||||||
|
@ -96,7 +96,7 @@ public class SelectKeyCursorAdapter extends CursorAdapter {
|
|||||||
boolean valid = cursor.getInt(mIndexProjectionValid) > 0;
|
boolean valid = cursor.getInt(mIndexProjectionValid) > 0;
|
||||||
|
|
||||||
TextView mainUserId = (TextView) view.findViewById(R.id.mainUserId);
|
TextView mainUserId = (TextView) view.findViewById(R.id.mainUserId);
|
||||||
mainUserId.setText(R.string.unknown_user_id);
|
mainUserId.setText(R.string.user_id_no_name);
|
||||||
TextView mainUserIdRest = (TextView) view.findViewById(R.id.mainUserIdRest);
|
TextView mainUserIdRest = (TextView) view.findViewById(R.id.mainUserIdRest);
|
||||||
mainUserIdRest.setText("");
|
mainUserIdRest.setText("");
|
||||||
TextView keyId = (TextView) view.findViewById(R.id.keyId);
|
TextView keyId = (TextView) view.findViewById(R.id.keyId);
|
||||||
|
@ -79,7 +79,7 @@ public class DeleteKeyDialogFragment extends SherlockDialogFragment {
|
|||||||
|
|
||||||
if (keyRingRowIds.length == 1) {
|
if (keyRingRowIds.length == 1) {
|
||||||
// TODO: better way to do this?
|
// TODO: better way to do this?
|
||||||
String userId = activity.getString(R.string.unknown_user_id);
|
String userId = activity.getString(R.string.user_id_no_name);
|
||||||
|
|
||||||
if (keyType == Id.type.public_key) {
|
if (keyType == Id.type.public_key) {
|
||||||
PGPPublicKeyRing keyRing = ProviderHelper.getPGPPublicKeyRingByRowId(activity,
|
PGPPublicKeyRing keyRing = ProviderHelper.getPGPPublicKeyRingByRowId(activity,
|
||||||
|
@ -127,7 +127,7 @@
|
|||||||
<item quantity="one">%d ausgewählt</item>
|
<item quantity="one">%d ausgewählt</item>
|
||||||
<item quantity="other">%d ausgewählt</item>
|
<item quantity="other">%d ausgewählt</item>
|
||||||
</plurals>
|
</plurals>
|
||||||
<string name="unknown_user_id"><unbekannt></string>
|
<string name="user_id_no_name"><unbekannt></string>
|
||||||
<string name="none"><keine></string>
|
<string name="none"><keine></string>
|
||||||
<string name="no_key"><kein Schlüssel></string>
|
<string name="no_key"><kein Schlüssel></string>
|
||||||
<string name="unknown_status"></string>
|
<string name="unknown_status"></string>
|
||||||
|
@ -91,7 +91,7 @@
|
|||||||
<string name="label_name">Nombre</string>
|
<string name="label_name">Nombre</string>
|
||||||
<string name="label_comment">Comentario</string>
|
<string name="label_comment">Comentario</string>
|
||||||
<string name="label_email">Correo electrónico</string>
|
<string name="label_email">Correo electrónico</string>
|
||||||
<string name="unknown_user_id"><desconocido></string>
|
<string name="user_id_no_name"><desconocido></string>
|
||||||
<string name="unknown_status"></string>
|
<string name="unknown_status"></string>
|
||||||
<!--choice-->
|
<!--choice-->
|
||||||
<!--sentences-->
|
<!--sentences-->
|
||||||
|
@ -127,7 +127,7 @@
|
|||||||
<item quantity="one">%d choisie</item>
|
<item quantity="one">%d choisie</item>
|
||||||
<item quantity="other">%d choisies</item>
|
<item quantity="other">%d choisies</item>
|
||||||
</plurals>
|
</plurals>
|
||||||
<string name="unknown_user_id"><inconnue></string>
|
<string name="user_id_no_name"><inconnue></string>
|
||||||
<string name="none"><aucune></string>
|
<string name="none"><aucune></string>
|
||||||
<string name="no_key"><pas de clef></string>
|
<string name="no_key"><pas de clef></string>
|
||||||
<string name="unknown_status"></string>
|
<string name="unknown_status"></string>
|
||||||
|
@ -93,7 +93,7 @@
|
|||||||
<string name="label_name">Naam</string>
|
<string name="label_name">Naam</string>
|
||||||
<string name="label_comment">Opmerking</string>
|
<string name="label_comment">Opmerking</string>
|
||||||
<string name="label_email">E-mailadres</string>
|
<string name="label_email">E-mailadres</string>
|
||||||
<string name="unknown_user_id"><onbekend></string>
|
<string name="user_id_no_name"><onbekend></string>
|
||||||
<string name="none"><geen></string>
|
<string name="none"><geen></string>
|
||||||
<string name="no_key"><geen sleutel></string>
|
<string name="no_key"><geen sleutel></string>
|
||||||
<string name="unknown_status"></string>
|
<string name="unknown_status"></string>
|
||||||
|
@ -128,7 +128,7 @@
|
|||||||
<item quantity="few">%d выбрано</item>
|
<item quantity="few">%d выбрано</item>
|
||||||
<item quantity="other">%d выбрано</item>
|
<item quantity="other">%d выбрано</item>
|
||||||
</plurals>
|
</plurals>
|
||||||
<string name="unknown_user_id"><неизв.></string>
|
<string name="user_id_no_name"><неизв.></string>
|
||||||
<string name="none"><нет></string>
|
<string name="none"><нет></string>
|
||||||
<string name="no_key"><нет ключа></string>
|
<string name="no_key"><нет ключа></string>
|
||||||
<string name="unknown_status"></string>
|
<string name="unknown_status"></string>
|
||||||
|
@ -128,7 +128,7 @@
|
|||||||
<item quantity="few">%d вибрані</item>
|
<item quantity="few">%d вибрані</item>
|
||||||
<item quantity="other">%d вибраних</item>
|
<item quantity="other">%d вибраних</item>
|
||||||
</plurals>
|
</plurals>
|
||||||
<string name="unknown_user_id"><невідомий></string>
|
<string name="user_id_no_name"><невідомий></string>
|
||||||
<string name="none"><жоден></string>
|
<string name="none"><жоден></string>
|
||||||
<string name="no_key"><без ключа></string>
|
<string name="no_key"><без ключа></string>
|
||||||
<string name="unknown_status"></string>
|
<string name="unknown_status"></string>
|
||||||
|
@ -134,7 +134,7 @@
|
|||||||
<item quantity="other">%d selected</item>
|
<item quantity="other">%d selected</item>
|
||||||
</plurals>
|
</plurals>
|
||||||
|
|
||||||
<string name="unknown_user_id"><no user id></string>
|
<string name="user_id_no_name"><no name></string>
|
||||||
<string name="none"><none></string>
|
<string name="none"><none></string>
|
||||||
<string name="no_key"><no key></string>
|
<string name="no_key"><no key></string>
|
||||||
<string name="unknown_status"></string>
|
<string name="unknown_status"></string>
|
||||||
|
Loading…
Reference in New Issue
Block a user