Skip to content

Commit 1ad9e24

Browse files
JussiSuojanenbraebot
authored andcommitted
Finnish language support (card-io#77)
* Add localization for finnish - Created fi.strings file with correct localizations * Add finnishLoc file to project - Add comment about finnish as a supported language
1 parent 57ca65b commit 1ad9e24

File tree

6 files changed

+44
-4
lines changed

6 files changed

+44
-4
lines changed

CardIO_Public_API/CardIOPaymentViewController.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
/// E.g., specifying "en" on a device set to "English" and "United Kingdom" will result in "en_GB".
3838
///
3939
/// These localizations are currently included:
40-
/// ar,da,de,en,en_AU,en_GB,es,es_MX,fr,he,is,it,ja,ko,ms,nb,nl,pl,pt,pt_BR,ru,sv,th,tr,zh-Hans,zh-Hant,zh-Hant_TW.
40+
/// ar,da,de,en,en_AU,en_GB,es,es_MX,fi,fr,he,is,it,ja,ko,ms,nb,nl,pl,pt,pt_BR,ru,sv,th,tr,zh-Hans,zh-Hant,zh-Hant_TW.
4141
@property(nonatomic, copy, readwrite) NSString *languageOrLocale;
4242

4343
/// @see keepStatusBarStyleForCardIO

CardIO_Public_API/CardIOView.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
/// E.g., specifying "en" on a device set to "English" and "United Kingdom" will result in "en_GB".
3333
///
3434
/// These localizations are currently included:
35-
/// ar,da,de,en,en_AU,en_GB,es,es_MX,fr,he,is,it,ja,ko,ms,nb,nl,pl,pt,pt_BR,ru,sv,th,tr,zh-Hans,zh-Hant,zh-Hant_TW.
35+
/// ar,da,de,en,en_AU,en_GB,es,es_MX,fi,fr,he,is,it,ja,ko,ms,nb,nl,pl,pt,pt_BR,ru,sv,th,tr,zh-Hans,zh-Hant,zh-Hant_TW.
3636
@property(nonatomic, copy, readwrite) NSString *languageOrLocale;
3737

3838
/// Alter the card guide (bracket) color. Opaque colors recommended.

Classes/CardIOLocalizer.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ - (NSString *)filterOutCommonErrors:(NSString *)value {
111111
#if CARDIO_DEBUG
112112

113113
+ (NSArray *)allLanguages {
114-
return @[@"ar", @"da", @"de", @"en", @"en_AU", @"en_GB", @"es", @"es_MX", @"fr", @"he", @"is", @"it", @"ja", @"ko", @"ms", @"nb", @"nl", @"pl", @"pt", @"pt_BR", @"ru", @"sv", @"th", @"tr", @"zh-Hans", @"zh-Hant", @"zh-Hant_TW"];
114+
return @[@"ar", @"da", @"de", @"en", @"en_AU", @"en_GB", @"es", @"es_MX", @"fi", @"fr", @"he", @"is", @"it", @"ja", @"ko", @"ms", @"nb", @"nl", @"pl", @"pt", @"pt_BR", @"ru", @"sv", @"th", @"tr", @"zh-Hans", @"zh-Hant", @"zh-Hant_TW"];
115115
}
116116

117117
+ (NSError *)selfTestErrorWithMessage:(NSString *)errorMessage {

Classes/RootViewController.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ - (void)updateLanguageDisplay {
154154
}
155155

156156
- (IBAction)languageChangeAction:(id)sender {
157-
NSArray *choices = @[@"ar", @"da", @"de", @"en", @"en_AU", @"en_GB", @"es", @"es_MX", @"fr", @"he", @"is", @"it", @"ja", @"ko", @"ms", @"nb", @"nl", @"pl", @"pt", @"pt_BR", @"ru", @"sv", @"th", @"tr", @"zh-Hans", @"zh-Hant", @"zh-Hant_TW"];
157+
NSArray *choices = @[@"ar", @"da", @"de", @"en", @"en_AU", @"en_GB", @"es", @"es_MX", @"fi", @"fr", @"he", @"is", @"it", @"ja", @"ko", @"ms", @"nb", @"nl", @"pl", @"pt", @"pt_BR", @"ru", @"sv", @"th", @"tr", @"zh-Hans", @"zh-Hant", @"zh-Hant_TW"];
158158

159159
iccChoicesSelectViewController *vc = [[iccChoicesSelectViewController alloc] initWithTitle:@"Language" choices:choices currentSelection:self.language completion:^(NSString *selection) {
160160
if (selection) {

assets/strings/fi.strings

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
"activate_flash" = "Salama päälle.";
2+
"camera" = "Kamera";
3+
"cancel" = "Peruuta";
4+
"card_info" = "Kortin tiedot";
5+
"card_io_logo" = "card.io";
6+
"deactivate_flash" = "Salama pois päältä.";
7+
"done" = "Valmis";
8+
"entry_card_number" = "Kortin numero";
9+
"entry_cvv" = "CVV";
10+
"entry_expires" = "Voimassaoloaika";
11+
"entry_number" = "Numero";
12+
"entry_title" = "Kortti";
13+
"entry_postal_code" = "Postinumero";
14+
"entry_cardholder_name" = "Kortinhaltijan nimi";
15+
"expires_placeholder" = "KK/VV";
16+
"manual_entry" = "Syötä käsin";
17+
"ok" = "OK";
18+
"paypal_logo" = "PayPal";
19+
"scan_guide" = "Aseta kortti tähän.\nSe skannautuu automaattisesti.";
20+
21+
"cardtype_americanexpress" = "American Express";
22+
"cardtype_cartaaura" = "Carta Aura";
23+
"cardtype_carteaurore" = "Carte Aurore";
24+
"cardtype_cartaprepagatapaypal" = "Carta Prepagata PayPal";
25+
"cardtype_cartebleue" = "Carte Bancaire";
26+
"cardtype_cofinoga" = "Cofinoga";
27+
"cardtype_delta" = "Delta";
28+
"cardtype_discover" = "Discover";
29+
"cardtype_electron" = "Electron";
30+
"cardtype_jcb" = "JCB";
31+
"cardtype_maestro" = "Maestro";
32+
"cardtype_mastercard" = "MasterCard";
33+
"cardtype_postepay" = "Postepay";
34+
"cardtype_4etoiles" = "4 étoiles";
35+
"cardtype_tarjetaaurora" = "Tarjeta Aurora";
36+
"cardtype_visa" = "Visa";

icc.xcodeproj/project.pbxproj

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -268,6 +268,7 @@
268268
A553B70D1BE32273006DF551 /* MobileCoreServices.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 3E9618E319C8EBCB0023CDBB /* MobileCoreServices.framework */; };
269269
A553B7161BE322A1006DF551 /* CardIO.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 92263D701B83ACBB003FE678 /* CardIO.framework */; };
270270
A553B7171BE322A1006DF551 /* CardIO.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 92263D701B83ACBB003FE678 /* CardIO.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; };
271+
F4A16EC21D8846EA001DC8BE /* fi.strings in Resources */ = {isa = PBXBuildFile; fileRef = F4A16EC11D8846EA001DC8BE /* fi.strings */; };
271272
/* End PBXBuildFile section */
272273

273274
/* Begin PBXContainerItemProxy section */
@@ -847,6 +848,7 @@
847848
D1EA4591156B1A560091C829 /* image_util.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = image_util.h; sourceTree = "<group>"; };
848849
D1F66D66146456880001F15F /* CardIOTransitionView.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = CardIOTransitionView.h; sourceTree = "<group>"; };
849850
D1F66D67146456880001F15F /* CardIOTransitionView.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = CardIOTransitionView.m; sourceTree = "<group>"; };
851+
F4A16EC11D8846EA001DC8BE /* fi.strings */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.strings; name = fi.strings; path = assets/strings/fi.strings; sourceTree = SOURCE_ROOT; };
850852
/* End PBXFileReference section */
851853

852854
/* Begin PBXFrameworksBuildPhase section */
@@ -1864,6 +1866,7 @@
18641866
3E0133EE198ADC7D009E579A /* en.strings */,
18651867
3E0133EF198ADC7D009E579A /* es_MX.strings */,
18661868
3E0133F0198ADC7D009E579A /* es.strings */,
1869+
F4A16EC11D8846EA001DC8BE /* fi.strings */,
18671870
3E0133F1198ADC7D009E579A /* fr.strings */,
18681871
3E0133F2198ADC7D009E579A /* he.strings */,
18691872
3E4F946419DE10020077712A /* is.strings */,
@@ -2263,6 +2266,7 @@
22632266
A553B6F51BE32273006DF551 /* yak_icon~ipad.png in Resources */,
22642267
A553B6F61BE32273006DF551 /* card_io_logo_black.png in Resources */,
22652268
A553B6F71BE32273006DF551 /* RootViewController~ipad.xib in Resources */,
2269+
F4A16EC21D8846EA001DC8BE /* fi.strings in Resources */,
22662270
A553B6F81BE32273006DF551 /* Default-568h@2x.png in Resources */,
22672271
A553B6F91BE32273006DF551 /* Default.png in Resources */,
22682272
A553B6FA1BE32273006DF551 /* Default@2x.png in Resources */,

0 commit comments

Comments
 (0)