pEpObjCAdapter/PEPLanguage.h
author Dirk Zimmermann <dirk@pep-project.org>
Thu, 17 May 2018 09:33:33 +0200
changeset 616 9e50cc7cd612
parent 187 1f630a05e444
permissions -rw-r--r--
IOSAD-93 consistently using precomposedStringWithCanonicalMapping, stringWithUTF8String
     1 //
     2 //  PEPLanguage.h
     3 //  pEpiOSAdapter
     4 //
     5 //  Created by Dirk Zimmermann on 03.05.17.
     6 //  Copyright © 2017 p≡p. All rights reserved.
     7 //
     8 
     9 #import <Foundation/Foundation.h>
    10 
    11 @interface PEPLanguage : NSObject
    12 
    13 - (instancetype _Nonnull)initWithCode:(NSString * _Nonnull)code
    14                                  name:(NSString * _Nonnull)name
    15                                  sentence:(NSString * _Nonnull)sentence;
    16 
    17 /**
    18  ISO 639-1 language code
    19  */
    20 @property (nonatomic, nonnull) NSString *code;
    21 
    22 /**
    23  Name of the language. Should not be translated.
    24  */
    25 @property (nonatomic, nonnull) NSString *name;
    26 
    27 /**
    28  Sentence of the form "I want to display the trustwords in <lang>".
    29  Should not be translated.
    30  */
    31 @property (nonatomic, nonnull) NSString *sentence;
    32 
    33 @end