mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-20 16:42:44 +02:00
vector-im/element-ios/issues/4899 - Replaced (*almost*) all NSLocalizedString calls with newly generated ObjC methods.
This commit is contained in:
committed by
Stefan Ceriu
parent
f5802395f5
commit
8b80b3f4c7
@@ -615,11 +615,11 @@
|
||||
if (indexPath.section == filteredMatrixContactsSection &&
|
||||
(_userDirectoryState == ContactsDataSourceUserDirectoryStateLoading || _userDirectoryState == ContactsDataSourceUserDirectoryStateOfflineLoading))
|
||||
{
|
||||
tableViewCell.textLabel.text = [NSBundle mxk_localizedStringForKey:@"search_searching"];
|
||||
tableViewCell.textLabel.text = [MatrixKitL10n searchSearching];
|
||||
}
|
||||
else
|
||||
{
|
||||
tableViewCell.textLabel.text = NSLocalizedStringFromTable(@"search_no_result", @"Vector", nil);
|
||||
tableViewCell.textLabel.text = [VectorL10n searchNoResult];
|
||||
}
|
||||
}
|
||||
else if (indexPath.section == filteredLocalContactsSection)
|
||||
@@ -633,19 +633,19 @@
|
||||
if (hideNonMatrixEnabledContacts && !self.mxSession.identityService)
|
||||
{
|
||||
// Because we cannot make lookups with no IS
|
||||
tableViewCell.textLabel.text = NSLocalizedStringFromTable(@"contacts_address_book_no_identity_server", @"Vector", nil);
|
||||
tableViewCell.textLabel.text = [VectorL10n contactsAddressBookNoIdentityServer];
|
||||
}
|
||||
else
|
||||
{
|
||||
// Because there is no contacts on the device
|
||||
tableViewCell.textLabel.text = NSLocalizedStringFromTable(@"contacts_address_book_no_contact", @"Vector", nil);
|
||||
tableViewCell.textLabel.text = [VectorL10n contactsAddressBookNoContact];
|
||||
}
|
||||
break;
|
||||
|
||||
case CNAuthorizationStatusNotDetermined:
|
||||
// Because the user have not granted the permission yet
|
||||
// (The permission request popup is displayed at the same time)
|
||||
tableViewCell.textLabel.text = NSLocalizedStringFromTable(@"contacts_address_book_permission_required", @"Vector", nil);
|
||||
tableViewCell.textLabel.text = [VectorL10n contactsAddressBookPermissionRequired];
|
||||
break;
|
||||
|
||||
default:
|
||||
@@ -735,7 +735,7 @@
|
||||
if (section == filteredLocalContactsSection)
|
||||
{
|
||||
count = filteredLocalContacts.count;
|
||||
title = NSLocalizedStringFromTable(@"contacts_address_book_section", @"Vector", nil);
|
||||
title = [VectorL10n contactsAddressBookSection];
|
||||
}
|
||||
else //if (section == filteredMatrixContactsSection)
|
||||
{
|
||||
@@ -743,11 +743,11 @@
|
||||
{
|
||||
case ContactsDataSourceUserDirectoryStateOfflineLoading:
|
||||
case ContactsDataSourceUserDirectoryStateOfflineLoaded:
|
||||
title = NSLocalizedStringFromTable(@"contacts_user_directory_offline_section", @"Vector", nil);
|
||||
title = [VectorL10n contactsUserDirectoryOfflineSection];
|
||||
break;
|
||||
|
||||
default:
|
||||
title = NSLocalizedStringFromTable(@"contacts_user_directory_section", @"Vector", nil);
|
||||
title = [VectorL10n contactsUserDirectorySection];
|
||||
break;
|
||||
}
|
||||
|
||||
@@ -857,7 +857,7 @@
|
||||
|
||||
checkboxLabel = [[UILabel alloc] initWithFrame:CGRectMake(0, 0, 0, 30)];
|
||||
checkboxLabel.font = [UIFont systemFontOfSize:16.0];
|
||||
checkboxLabel.text = NSLocalizedStringFromTable(@"contacts_address_book_matrix_users_toggle", @"Vector", nil);
|
||||
checkboxLabel.text = [VectorL10n contactsAddressBookMatrixUsersToggle];
|
||||
[localContactsCheckboxContainer addSubview:checkboxLabel];
|
||||
localContactsCheckboxContainer.checkboxLabel = checkboxLabel;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user