mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-05-09 01:17:41 +02:00
Feature/4772 add accessibility declaration
This commit is contained in:
committed by
Frank Rotermund
parent
b4ad32afb2
commit
273017eafa
@@ -620,3 +620,6 @@
|
||||
// MARK: - Voice Over
|
||||
"textfield_reveal_secret" = "Texteingabe anzeigen";
|
||||
"textfield_hide_secret" = "Texteingabe verbergen";
|
||||
|
||||
// MARK: - Accessibility declaration
|
||||
"bwi_accessibility_declaration_button_title" = "Barrierefreiheitserklärung";
|
||||
|
||||
@@ -531,3 +531,5 @@
|
||||
"textfield_reveal_secret" = "reveal text input";
|
||||
"textfield_hide_secret" = "hide text input";
|
||||
|
||||
// MARK: - Accessibility declaration
|
||||
"bwi_accessibility_declaration_button_title" = "Accessibility declaration";
|
||||
|
||||
@@ -99,6 +99,10 @@ public class BWIL10n: NSObject {
|
||||
public static var bumAutheticationTitle: String {
|
||||
return BWIL10n.tr("Bwi", "bum_authetication_title")
|
||||
}
|
||||
/// Barrierefreiheitserklärung
|
||||
public static var bwiAccessibilityDeclarationButtonTitle: String {
|
||||
return BWIL10n.tr("Bwi", "bwi_accessibility_declaration_button_title")
|
||||
}
|
||||
/// Wir brauchen Deine Hilfe, um Fehler im %@ besser analysieren zu können. Dazu würden wir gerne anonymisierte Diagnosedaten erfassen. Es werden keine Daten an Dritte übermittelt. Details findest Du in der Datenschutzerklärung.\n\nFalls Du nicht mehr mithelfen möchtest, kannst Du dies in den Einstellungen jederzeit wieder deaktivieren.\n\nMöchtest du bei der Fehler-Analyse unterstützen?
|
||||
public static func bwiAnalyticsAlertBody(_ p1: String) -> String {
|
||||
return BWIL10n.tr("Bwi", "bwi_analytics_alert_body", p1)
|
||||
|
||||
@@ -216,7 +216,8 @@ typedef NS_ENUM(NSUInteger, ABOUT)
|
||||
ABOUT_MARK_ALL_AS_READ_INDEX,
|
||||
ABOUT_CLEAR_CACHE_INDEX,
|
||||
ABOUT_REPORT_BUG_INDEX,
|
||||
ABOUT_NETIQUETTE_INDEX
|
||||
ABOUT_NETIQUETTE_INDEX,
|
||||
ABOUT_ACCESSIBILITY_DECLARATION_INDEX
|
||||
};
|
||||
|
||||
typedef NS_ENUM(NSUInteger, LABS_ENABLE)
|
||||
@@ -725,6 +726,10 @@ ChangePasswordCoordinatorBridgePresenterDelegate>
|
||||
{
|
||||
[sectionAbout addRowWithTag:ABOUT_PRIVACY_INDEX];
|
||||
}
|
||||
// bwi 4772 - show accessibility declaration
|
||||
if (BWIBuildSettings.shared.bwiShowAccessibilityDeclaration) {
|
||||
[sectionAbout addRowWithTag:ABOUT_ACCESSIBILITY_DECLARATION_INDEX];
|
||||
}
|
||||
[sectionAbout addRowWithTag:ABOUT_THIRD_PARTY_INDEX];
|
||||
sectionAbout.headerTitle = VectorL10n.settingsAbout;
|
||||
|
||||
@@ -2837,6 +2842,16 @@ ChangePasswordCoordinatorBridgePresenterDelegate>
|
||||
|
||||
cell = privacyPolicyCell;
|
||||
}
|
||||
else if (row == ABOUT_ACCESSIBILITY_DECLARATION_INDEX)
|
||||
{
|
||||
MXKTableViewCell *accessibilityDeclarationCell = [self getDefaultTableViewCell:tableView];
|
||||
|
||||
accessibilityDeclarationCell.textLabel.text = [BWIL10n bwiAccessibilityDeclarationButtonTitle];
|
||||
|
||||
[accessibilityDeclarationCell vc_setAccessoryDisclosureIndicatorWithCurrentTheme];
|
||||
|
||||
cell = accessibilityDeclarationCell;
|
||||
}
|
||||
else if (row == ABOUT_THIRD_PARTY_INDEX)
|
||||
{
|
||||
MXKTableViewCell *thirdPartyCell = [self getDefaultTableViewCell:tableView];
|
||||
@@ -3305,6 +3320,10 @@ ChangePasswordCoordinatorBridgePresenterDelegate>
|
||||
{
|
||||
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:BWIBuildSettings.shared.applicationPrivacyPolicyUrlString] options:@{} completionHandler:nil];
|
||||
}
|
||||
else if (row == ABOUT_ACCESSIBILITY_DECLARATION_INDEX)
|
||||
{
|
||||
[self showAccessibilityDeclaration];
|
||||
}
|
||||
else if (row == ABOUT_THIRD_PARTY_INDEX)
|
||||
{
|
||||
NSString *htmlFile = [[NSBundle mainBundle] pathForResource:@"third_party_licenses" ofType:@"html" inDirectory:nil];
|
||||
@@ -4493,6 +4512,12 @@ ChangePasswordCoordinatorBridgePresenterDelegate>
|
||||
UIViewController *developerSettingsViewController = [DeveloperSettingsViewController makeViewControllerWithSession:self.mainSession];
|
||||
[self pushViewController:developerSettingsViewController];
|
||||
}
|
||||
|
||||
- (void)showAccessibilityDeclaration
|
||||
{
|
||||
UIViewController *accessibilityDeclarationViewController = [AccessibilityDeclarationViewController makeViewController];
|
||||
[self pushViewController:accessibilityDeclarationViewController];
|
||||
}
|
||||
|
||||
- (void)showPersonalStateSettings
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user