Как можно локализовать сводку и контент после замены карты для отдельных страниц согласия в исследовательском наборе? - PullRequest
0 голосов
/ 22 октября 2018

После замены карты следующим кодом, чтобы получить отдельный контент в разделах согласия, как мне его локализовать?

let consentSections: [ORKConsentSection] = consentSectionTypes.map { contentSectionType in
    let consentSection = ORKConsentSection(type: contentSectionType)

    switch contentSectionType {
    case .overview:
        consentSection.summary = "Overview"
        consentSection.content = "Overview - Content"
    case .dataGathering:
        consentSection.summary = "DataGathering"
        consentSection.content = "DataGathering - Content"
    case .privacy:
        consentSection.summary = "Privacy"
        consentSection.content = "Privacy - Content"
    case .dataUse:
        consentSection.summary = "DataUse"
        consentSection.content = "DataUse - Content"
    case .timeCommitment:
        consentSection.summary = "TimeCommitment"
        consentSection.content = "TimeCommitment - Content"
    case .studySurvey:
        consentSection.summary = "StudySurvey"
        consentSection.content = "StudySurvey - Content"
    case .studyTasks:
        consentSection.summary = "StudyTasks"
        consentSection.content = "StudyTasks - Content"
    case .withdrawing:
        consentSection.summary = "Withdrawing"
        consentSection.content = "Withdrawing - Content"
    default:
        break
    }

    return consentSection
}
...