mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-20 00:24:43 +02:00
MESSENGER-3304 string in separate files
This commit is contained in:
@@ -413,7 +413,7 @@ ChangePasswordCoordinatorBridgePresenterDelegate>
|
||||
if (BwiBuildSettings.bwiCheckAppVersion && [[[ValidAppVersionsDefaultService alloc] init] isCurrentAppVersionOutdated]) {
|
||||
Section *sectionOutdated = [Section sectionWithTag:SECTION_TAG_OUTDATED_WARNING];
|
||||
[sectionOutdated addRowWithTag:OUTDATED_WARNING];
|
||||
sectionOutdated.headerTitle = [VectorL10n bwiOutdatedSettingsHeader];
|
||||
sectionOutdated.headerTitle = [BWIL10n bwiOutdatedSettingsHeader];
|
||||
[tmpSections addObject:sectionOutdated];
|
||||
}
|
||||
|
||||
@@ -475,7 +475,7 @@ ChangePasswordCoordinatorBridgePresenterDelegate>
|
||||
{
|
||||
Section *sectionNewFeatures = [Section sectionWithTag:SECTION_TAG_NEW_FEATURES];
|
||||
[sectionNewFeatures addRowWithTag:SHOW_NEW_FEATURES];
|
||||
sectionNewFeatures.headerTitle = NSLocalizedStringFromTable(@"bwi_settings_new_features_header", @"Vector", nil).uppercaseString;
|
||||
sectionNewFeatures.headerTitle = BWIL10n.bwiSettingsNewFeaturesHeader;
|
||||
[tmpSections addObject:sectionNewFeatures];
|
||||
}
|
||||
|
||||
@@ -734,7 +734,7 @@ ChangePasswordCoordinatorBridgePresenterDelegate>
|
||||
if (BuildSettings.bwiShowDeveloperSettings) {
|
||||
Section *sectionDeveloper = [Section sectionWithTag:SECTION_TAG_DEVELOPER];
|
||||
[sectionDeveloper addRowWithTag:DEVELOPER_SHOW_SETTINGS_INDEX];
|
||||
sectionDeveloper.headerTitle = NSLocalizedStringFromTable(@"bwi_settings_developer", @"Vector", nil).uppercaseString;
|
||||
sectionDeveloper.headerTitle = BWIL10n.bwiSettingsDeveloper;
|
||||
[tmpSections addObject:sectionDeveloper];
|
||||
}
|
||||
|
||||
@@ -1191,7 +1191,7 @@ ChangePasswordCoordinatorBridgePresenterDelegate>
|
||||
self.newEmailEditingEnabled = NO;
|
||||
}]];
|
||||
|
||||
[validationAlert addAction:[UIAlertAction actionWithTitle:[VectorL10n continue] style:UIAlertActionStyleDefault handler:^(UIAlertAction * action) {
|
||||
[validationAlert addAction:[UIAlertAction actionWithTitle:[BWIL10n continue] style:UIAlertActionStyleDefault handler:^(UIAlertAction * action) {
|
||||
MXStrongifyAndReturnIfNil(self);
|
||||
[self tryFinaliseAddEmailSession:threePidAddSession withAuthenticationParameters:authenticationParameters
|
||||
threePidAddManager:threePidAddManager];
|
||||
@@ -2017,7 +2017,7 @@ ChangePasswordCoordinatorBridgePresenterDelegate>
|
||||
cell = [[UITableViewCell alloc] initWithStyle:UITableViewCellStyleValue1 reuseIdentifier:kSettingsViewControllerPhoneBookCountryCellId];
|
||||
}
|
||||
|
||||
cell.textLabel.text = [VectorL10n bwiEditPersonalStateMyState];
|
||||
cell.textLabel.text = [BWIL10n bwiEditPersonalStateMyState];
|
||||
cell.detailTextLabel.text = account.userStatusMessage;
|
||||
}
|
||||
else if (row == USER_SETTINGS_FIRST_NAME_INDEX)
|
||||
@@ -2209,7 +2209,7 @@ ChangePasswordCoordinatorBridgePresenterDelegate>
|
||||
if (row == SHOW_NEW_FEATURES)
|
||||
{
|
||||
MXKTableViewCell *showNewFeaturesCell = [self getDefaultTableViewCell:tableView];
|
||||
showNewFeaturesCell.textLabel.text = NSLocalizedStringFromTable(@"bwi_settings_new_features_show_features", @"Vector", nil);
|
||||
showNewFeaturesCell.textLabel.text = BWIL10n.bwiSettingsNewFeaturesShowFeatures;
|
||||
[showNewFeaturesCell vc_setAccessoryDisclosureIndicatorWithCurrentTheme];
|
||||
cell = showNewFeaturesCell;
|
||||
}
|
||||
@@ -2370,7 +2370,7 @@ ChangePasswordCoordinatorBridgePresenterDelegate>
|
||||
}
|
||||
else if (row == NOTIFICATION_SETTINGS_NOTIFICATION_TIMES_INDEX)
|
||||
{
|
||||
cell.textLabel.text = [VectorL10n settingsEnableNotificationTimes];
|
||||
cell.textLabel.text = [BWIL10n settingsEnableNotificationTimes];
|
||||
}
|
||||
else if (row == NOTIFICATION_SETTINGS_OTHER_SETTINGS_INDEX)
|
||||
{
|
||||
@@ -2544,7 +2544,7 @@ ChangePasswordCoordinatorBridgePresenterDelegate>
|
||||
{
|
||||
MXKTableViewCell *ignoredUserCell = [self getDefaultTableViewCell:tableView];
|
||||
if (BwiBuildSettings.bwiBetterIgnoredUsers) {
|
||||
ignoredUserCell.textLabel.text = NSLocalizedStringFromTable(@"bwi_settings_ignored_users_text", @"Bwi", nil);
|
||||
ignoredUserCell.textLabel.text = BWIL10n.bwiSettingsIgnoredUsersText;
|
||||
} else {
|
||||
ignoredUserCell.textLabel.text = session.ignoredUsers[row];
|
||||
}
|
||||
@@ -2656,7 +2656,7 @@ ChangePasswordCoordinatorBridgePresenterDelegate>
|
||||
{
|
||||
MXKTableViewCell *supportCell = [self getDefaultTableViewCell:tableView];
|
||||
|
||||
supportCell.textLabel.text = NSLocalizedStringFromTable(@"settings_support", @"Vector", nil);
|
||||
supportCell.textLabel.text = BWIL10n.settingsSupport;
|
||||
|
||||
[supportCell vc_setAccessoryDisclosureIndicatorWithCurrentTheme];
|
||||
|
||||
@@ -2920,7 +2920,7 @@ ChangePasswordCoordinatorBridgePresenterDelegate>
|
||||
else if (row == SECURITY_MATOMO_INDEX) {
|
||||
MXKTableViewCellWithLabelAndSwitch* labelAndSwitchCell = [self getLabelAndSwitchCell:tableView forIndexPath:indexPath];
|
||||
|
||||
labelAndSwitchCell.mxkLabel.text = NSLocalizedStringFromTable(@"MATOMO_SETTINGS_SEND_DIAGNOSTIC_DATA", @"Vector", nil);
|
||||
labelAndSwitchCell.mxkLabel.text = BWIL10n.matomoSettingsSendDiagnosticData;
|
||||
labelAndSwitchCell.mxkSwitch.on = RiotSettings.shared.bwiEnableMatomoTracking;
|
||||
labelAndSwitchCell.mxkSwitch.onTintColor = ThemeService.shared.theme.tintColor;
|
||||
labelAndSwitchCell.mxkSwitch.enabled = YES;
|
||||
@@ -2979,7 +2979,7 @@ ChangePasswordCoordinatorBridgePresenterDelegate>
|
||||
|
||||
downtimeCell.contentView.backgroundColor = [UIColor yellowColor];
|
||||
|
||||
downtimeCell.textLabel.text = [VectorL10n bwiOutdatedSettingsMessage:AppInfo.current.displayName];
|
||||
downtimeCell.textLabel.text = [BWIL10n bwiOutdatedSettingsMessage:AppInfo.current.displayName];
|
||||
downtimeCell.textLabel.textColor = [UIColor blackColor];
|
||||
downtimeCell.textLabel.lineBreakMode = NSLineBreakByWordWrapping;
|
||||
downtimeCell.textLabel.numberOfLines = 5;
|
||||
@@ -3003,7 +3003,7 @@ ChangePasswordCoordinatorBridgePresenterDelegate>
|
||||
showSettingsBtnCell.mxkButton.titleLabel.text = nil;
|
||||
}
|
||||
|
||||
NSString *btnTitle = NSLocalizedStringFromTable(@"bwi_settings_show_developer_settings", @"Vector", nil);
|
||||
NSString *btnTitle = BWIL10n.bwiSettingsShowDeveloperSettings;
|
||||
[showSettingsBtnCell.mxkButton setTitle:btnTitle forState:UIControlStateNormal];
|
||||
[showSettingsBtnCell.mxkButton setTitle:btnTitle forState:UIControlStateHighlighted];
|
||||
[showSettingsBtnCell.mxkButton setTintColor:ThemeService.shared.theme.tintColor];
|
||||
@@ -3383,7 +3383,7 @@ ChangePasswordCoordinatorBridgePresenterDelegate>
|
||||
{
|
||||
NSString *htmlFile = [[NSBundle mainBundle] pathForResource:@"new_features" ofType:@"html" inDirectory:nil];
|
||||
WebViewViewController *webViewViewController = [[WebViewViewController alloc] initWithLocalHTMLFile: htmlFile];
|
||||
webViewViewController.title = NSLocalizedStringFromTable(@"bwi_settings_new_features_header", @"Vector", nil);
|
||||
webViewViewController.title = BWIL10n.bwiSettingsNewFeaturesHeader;
|
||||
[self pushViewController:webViewViewController];
|
||||
}
|
||||
}
|
||||
@@ -4708,7 +4708,7 @@ ChangePasswordCoordinatorBridgePresenterDelegate>
|
||||
else
|
||||
{
|
||||
// Set up cross-signing first
|
||||
[self setupCrossSigningWithTitle:[VectorL10n secureKeyBackupSetupIntroTitle]
|
||||
[self setupCrossSigningWithTitle:[BWIL10n secureKeyBackupSetupIntroTitle]
|
||||
message:[VectorL10n securitySettingsUserPasswordDescription]
|
||||
success:^{
|
||||
[self setupSecureBackup2];
|
||||
@@ -5147,21 +5147,21 @@ ChangePasswordCoordinatorBridgePresenterDelegate>
|
||||
- (NSString*) titleForTimeline:(NSInteger)row {
|
||||
switch (row) {
|
||||
case TIMELINE_SIMPLE_INDEX:
|
||||
return NSLocalizedStringFromTable(@"settings_enable_simple_time_line", @"Vector", nil);
|
||||
return BWIL10n.settingsEnableSimpleTimeLine;
|
||||
case TIMELINE_TIMESTAMP_INDEX:
|
||||
return NSLocalizedStringFromTable(@"settings_enable_time_stamp", @"Vector", nil);
|
||||
return BWIL10n.settingsEnableTimeStamp;
|
||||
case TIMELINE_DELETED_MESSAGES_INDEX:
|
||||
return NSLocalizedStringFromTable(@"settings_enable_deleted_messages", @"Vector", nil);
|
||||
return BWIL10n.settingsEnableDeletedMessages;
|
||||
case TIMELINE_NAME_CHANGE_INDEX:
|
||||
return NSLocalizedStringFromTable(@"settings_enable_name_change", @"Vector", nil);
|
||||
return BWIL10n.settingsEnableNameChange;
|
||||
case TIMELINE_CHATEFFECTS_INDEX:
|
||||
return NSLocalizedStringFromTable(@"settings_enable_chat_effects", @"Vector", nil);
|
||||
return BWIL10n.settingsEnableChatEffects;
|
||||
case TIMELINE_ROOM_AVATAR_INDEX:
|
||||
return NSLocalizedStringFromTable(@"settings_enable_room_avatar", @"Vector", nil);
|
||||
return BWIL10n.settingsEnableRoomAvatar;
|
||||
case TIMELINE_USER_AVATAR_INDEX:
|
||||
return NSLocalizedStringFromTable(@"settings_enable_user_avatar", @"Vector", nil);
|
||||
return BWIL10n.settingsEnableUserAvatar;
|
||||
case TIMELINE_ENTER_ROOM_INDEX:
|
||||
return NSLocalizedStringFromTable(@"settings_enable_enter_room", @"Vector", nil);
|
||||
return BWIL10n.settingsEnableEnterRoom;
|
||||
default:
|
||||
return @"";
|
||||
}
|
||||
@@ -5260,7 +5260,7 @@ ChangePasswordCoordinatorBridgePresenterDelegate>
|
||||
|
||||
PersonalNotesSettings *settings = [[PersonalNotesSettings alloc] init];
|
||||
|
||||
labelAndSwitchCell.mxkLabel.text = NSLocalizedStringFromTable(@"bwi_settings_enable_notes_room_title", @"Vector", nil);
|
||||
labelAndSwitchCell.mxkLabel.text = BWIL10n.bwiSettingsEnableNotesRoomTitle;
|
||||
labelAndSwitchCell.mxkSwitch.on = settings.personalNotesVisible;
|
||||
labelAndSwitchCell.mxkSwitch.onTintColor = ThemeService.shared.theme.tintColor;
|
||||
labelAndSwitchCell.mxkSwitch.enabled = YES;
|
||||
|
||||
Reference in New Issue
Block a user