MESSENGER-3304 string in separate files

This commit is contained in:
Frank Rotermund
2022-09-19 11:53:45 +02:00
parent 84ccb9378d
commit 226e55caf7
91 changed files with 2975 additions and 1342 deletions
@@ -396,11 +396,11 @@
switch (roomPowerLevel) {
case RoomPowerLevelAdmin:
self.roomMemberPowerLevelLabel.text = [VectorL10n roomMemberPowerLevelAdminIn:self.mxRoom.summary.displayname];
self.roomMemberPowerLevelLabel.text = [BWIL10n roomMemberPowerLevelAdminIn:self.mxRoom.summary.displayname];
self.roomMemberPowerLevelContainerView.hidden = NO;
break;
case RoomPowerLevelModerator:
self.roomMemberPowerLevelLabel.text = [VectorL10n roomMemberPowerLevelModeratorIn:self.mxRoom.summary.displayname];
self.roomMemberPowerLevelLabel.text = [BWIL10n roomMemberPowerLevelModeratorIn:self.mxRoom.summary.displayname];
self.roomMemberPowerLevelContainerView.hidden = NO;
break;
default:
@@ -447,7 +447,7 @@
NSString* userLabel = [self tmpUserLabel];
if (userLabel) {
self.roomMemberUserIdLabel.text = [NSString stringWithFormat:NSLocalizedStringFromTable(@"bwi_room_member_details_userlabel", @"Bwi", nil), self.mxRoom.summary.displayname, userLabel];
self.roomMemberUserIdLabel.text = [BWIL10n bwiRoomMemberDetailsUserlabel:self.mxRoom.summary.displayname :userLabel];
} else {
self.roomMemberUserIdLabel.text = nil;
}
@@ -807,7 +807,7 @@
}
else if (section == bwiUserLabelsIndex)
{
return [NSString stringWithFormat:NSLocalizedStringFromTable(@"bwi_room_member_section_userlabels", @"Bwi", nil), self.mxRoom.summary.displayname];
return [BWIL10n bwiRoomMemberSectionUserlabels: self.mxRoom.summary.displayname];
}
return nil;
@@ -876,12 +876,13 @@
title = [VectorL10n roomParticipantsActionMention];
break;
case MXKRoomMemberDetailsActionPermalink:
title = [VectorL10n roomParticipantsActionPermalink];
title = [BWIL10n roomParticipantsActionPermalink];
break;
case MXKRoomMemberDetailsActionBwiUserLabelDescription:
title = @"bwi functions desc";
break;
case MXKRoomMemberDetailsActionBwiUserLabel:
// $$$ string translation does not exist
title = NSLocalizedStringFromTable(@"bwi_room_participants_action_userlabels", @"Bwi", nil);
break;
default:
@@ -958,7 +959,7 @@
{
NSString *info = (self.mxRoom.isDirect) ?
[VectorL10n roomParticipantsSecurityInformationRoomEncryptedForDm] :
[VectorL10n roomParticipantsSecurityInformationRoomEncrypted];
[BWIL10n roomParticipantsSecurityInformationRoomEncrypted];
[encryptionInformation appendString:info];
}
break;
@@ -1401,7 +1402,7 @@
- (void)showAlertChangePowerLevelNotAllowed {
__weak typeof(self) weakSelf = self;
currentAlert = [UIAlertController alertControllerWithTitle:NSLocalizedStringFromTable(@"room_member_details_downgrade_last_admin", @"Vector", nil)
currentAlert = [UIAlertController alertControllerWithTitle:BWIL10n.roomMemberDetailsDowngradeLastAdmin
message:nil
preferredStyle:UIAlertControllerStyleAlert];
@@ -1515,7 +1516,7 @@
functionDescriptionCell.textLabel.backgroundColor = [UIColor clearColor];
functionDescriptionCell.textLabel.numberOfLines = 0;
functionDescriptionCell.textLabel.text = NSLocalizedStringFromTable(@"bwi_room_member_userlabels_description", @"Bwi", nil);
functionDescriptionCell.textLabel.text = BWIL10n.bwiRoomMemberUserlabelsDescription;
functionDescriptionCell.textLabel.font = [UIFont systemFontOfSize:14.0];
functionDescriptionCell.textLabel.textColor = ThemeService.shared.theme.headerTextPrimaryColor;
@@ -1604,7 +1605,7 @@
}
- (void)updateUserLabelTheme {
bwiUserLabelTextField.attributedPlaceholder = [[NSAttributedString alloc] initWithString:NSLocalizedStringFromTable(@"bwi_room_member_userlabels_textfield_placeholder", @"Bwi", nil) attributes:@{NSForegroundColorAttributeName: ThemeService.shared.theme.textQuinaryColor}];
bwiUserLabelTextField.attributedPlaceholder = [[NSAttributedString alloc] initWithString:BWIL10n.bwiRoomMemberUserlabelsTextfieldPlaceholder attributes:@{NSForegroundColorAttributeName: ThemeService.shared.theme.textQuinaryColor}];
bwiUserLabelTextField.textColor = ThemeService.shared.theme.textSecondaryColor;
bwiUserLabelTextField.tintColor = ThemeService.shared.theme.tintColor;
@@ -1628,9 +1629,9 @@
NSString* title;
if (permFunction) {
title = NSLocalizedStringFromTable(@"bwi_room_member_userlabels_button_delete", @"Bwi", nil);
title = BWIL10n.bwiRoomMemberUserlabelsButtonDelete;
} else {
title = NSLocalizedStringFromTable(@"bwi_room_member_userlabels_button_save", @"Bwi", nil);
title = BWIL10n.bwiRoomMemberUserlabelsButtonSave;
}
[bwiUserLabelButton setTitle:title forState:UIControlStateNormal];