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