Skip to content

Add object detection, tracking, mobile notifications, and search to any security camera.

trial

roryclear271827cebd53
diff --git a/ios/clearcam/SettingsViewController.m b/ios/clearcam/SettingsViewController.m
index db95dbc..7a6df48 100644
--- a/ios/clearcam/SettingsViewController.m
+++ b/ios/clearcam/SettingsViewController.m
@@ -988,14 +988,33 @@
// Upgrade button
UIButton *upgradeBtn = [UIButton buttonWithType:UIButtonTypeSystem];
upgradeBtn.translatesAutoresizingMaskIntoConstraints = NO;
- NSString *upgradeTitle = [NSString stringWithFormat:NSLocalizedString(@"upgrade_button", @"Upgrade button text with price"), localizedPrice];
- [upgradeBtn setTitle:upgradeTitle forState:UIControlStateNormal];
- [upgradeBtn setTitleColor:UIColor.blackColor forState:UIControlStateNormal];
+
+ NSString *line1 = NSLocalizedString(@"1 week free trial", @"Free trial label");
+ NSString *line2 = [NSString stringWithFormat:NSLocalizedString(@"upgrade_button", @"Subscription price after trial"), localizedPrice];
+ NSString *fullText = [NSString stringWithFormat:@"%@\n%@", line1, line2];
+
+ NSMutableParagraphStyle *paragraphStyle = [[NSMutableParagraphStyle alloc] init];
+ paragraphStyle.alignment = NSTextAlignmentCenter;
+
+ NSMutableAttributedString *attributedTitle = [[NSMutableAttributedString alloc] initWithString:fullText attributes:@{
+ NSParagraphStyleAttributeName: paragraphStyle,
+ NSForegroundColorAttributeName: UIColor.blackColor
+ }];
+
+ NSRange line1Range = [fullText rangeOfString:line1];
+ [attributedTitle addAttribute:NSFontAttributeName value:[UIFont boldSystemFontOfSize:17] range:line1Range];
+
+ NSRange line2Range = [fullText rangeOfString:line2];
+ [attributedTitle addAttribute:NSFontAttributeName value:[UIFont systemFontOfSize:14] range:line2Range];
+
+ [upgradeBtn setAttributedTitle:attributedTitle forState:UIControlStateNormal];
+ upgradeBtn.titleLabel.numberOfLines = 2;
+ upgradeBtn.titleLabel.textAlignment = NSTextAlignmentCenter;
upgradeBtn.backgroundColor = [UIColor colorWithRed:1.0 green:0.84 blue:0 alpha:1.0];
- upgradeBtn.titleLabel.font = [UIFont boldSystemFontOfSize:17];
upgradeBtn.layer.cornerRadius = 12;
[upgradeBtn addTarget:self action:@selector(handleUpgradeTap) forControlEvents:UIControlEventTouchUpInside];
+
// Cancel button
UIButton *cancelBtn = [UIButton buttonWithType:UIButtonTypeSystem];
cancelBtn.translatesAutoresizingMaskIntoConstraints = NO;
diff --git a/ios/clearcam/en.lproj/Localizable.strings b/ios/clearcam/en.lproj/Localizable.strings
index 96ed356..60d5c43 100644
--- a/ios/clearcam/en.lproj/Localizable.strings
+++ b/ios/clearcam/en.lproj/Localizable.strings
@@ -61,7 +61,7 @@
"premium_feature_2" = "Receive real-time event notifications";
"premium_feature_3" = "Live stream from anywhere";
"premium_feature_4" = "End-to-end encryption on all camera data sent from your phone.";
-"upgrade_button" = "Upgrade for %@ per month";
+"upgrade_button" = "then for %@ per month";
"not_now" = "Not now";
"premium_disclaimer" = "Monthly limit of 5,000 clip uploads and 1,000 minutes or sessions of live stream viewing.";
"purchase_failed" = "Purchase Failed";
diff --git a/ios/clearcam/es.lproj/Localizable.strings b/ios/clearcam/es.lproj/Localizable.strings
index 4ba81f8..ce2b017 100644
--- a/ios/clearcam/es.lproj/Localizable.strings
+++ b/ios/clearcam/es.lproj/Localizable.strings
@@ -61,7 +61,7 @@
"premium_feature_2" = "Notificaciones en tiempo real";
"premium_feature_3" = "Transmisión en vivo remota";
"premium_feature_4" = "Cifrado de extremo a extremo.";
-"upgrade_button" = "Mejorar por %@/mes";
+"upgrade_button" = "Luego por %@ al mes";
"not_now" = "Ahora no";
"premium_disclaimer" = "Límite mensual: 5,000 clips y 1,000 minutos de transmisión.";
"purchase_failed" = "Error de compra";
diff --git a/ios/clearcam/hi.lproj/Localizable.strings b/ios/clearcam/hi.lproj/Localizable.strings
index fc0280c..ad6ba62 100644
--- a/ios/clearcam/hi.lproj/Localizable.strings
+++ b/ios/clearcam/hi.lproj/Localizable.strings
@@ -61,7 +61,7 @@
"premium_feature_2" = "वास्तविक समय में इवेंट सूचनाएँ प्राप्त करें";
"premium_feature_3" = "कहीं से भी लाइव स्ट्रीम करें";
"premium_feature_4" = "आपके फ़ोन से भेजे गए सभी कैमरा डेटा पर एंड-टू-एंड एन्क्रिप्शन।";
-"upgrade_button" = "₹%@ प्रति माह में अपग्रेड करें";
+"upgrade_button" = "फिर %@ प्रति माह";
"not_now" = "अभी नहीं";
"premium_disclaimer" = "प्रति माह 5,000 क्लिप अपलोड और 1,000 मिनट या सत्र की लाइव स्ट्रीम सीमा।";
"purchase_failed" = "खरीद विफल रही";
diff --git a/ios/clearcam/ja.lproj/Localizable.strings b/ios/clearcam/ja.lproj/Localizable.strings
index 270bd3e..ca8760e 100644
--- a/ios/clearcam/ja.lproj/Localizable.strings
+++ b/ios/clearcam/ja.lproj/Localizable.strings
@@ -61,7 +61,7 @@
"premium_feature_2" = "リアルタイム通知を受信";
"premium_feature_3" = "どこからでもライブ配信を視聴";
"premium_feature_4" = "送信される全てのカメラデータにエンドツーエンド暗号化を適用。";
-"upgrade_button" = "月額%@でアップグレード";
+"upgrade_button" = "その後、月々 %@";
"not_now" = "後で";
"premium_disclaimer" = "月間制限: 5,000クリップのアップロードと1,000分のライブ配信視聴。";
"purchase_failed" = "購入に失敗しました";
diff --git a/ios/clearcam/ko.lproj/Localizable.strings b/ios/clearcam/ko.lproj/Localizable.strings
index 38617bf..b10f871 100644
--- a/ios/clearcam/ko.lproj/Localizable.strings
+++ b/ios/clearcam/ko.lproj/Localizable.strings
@@ -61,7 +61,7 @@
"premium_feature_2" = "실시간 이벤트 알림 받기";
"premium_feature_3" = "어디서든 라이브 스트림";
"premium_feature_4" = "휴대폰에서 전송되는 모든 카메라 데이터에 대해 종단 간 암호화";
-"upgrade_button" = "%@/월에 업그레이드";
+"upgrade_button" = "그 후 %@ 매월";
"not_now" = "지금은 아니요";
"premium_disclaimer" = "월 최대 5,000개 클립 업로드 및 1,000분 또는 세션의 라이브 스트림 시청 제한이 있습니다.";
"purchase_failed" = "구매 실패";
diff --git a/ios/clearcam/zh-Hans.lproj/Localizable.strings b/ios/clearcam/zh-Hans.lproj/Localizable.strings
index 9065130..d1f2d0f 100644
--- a/ios/clearcam/zh-Hans.lproj/Localizable.strings
+++ b/ios/clearcam/zh-Hans.lproj/Localizable.strings
@@ -61,7 +61,7 @@
"premium_feature_2" = "接收实时事件通知";
"premium_feature_3" = "随时随地直播";
"premium_feature_4" = "手机发送的所有摄像头数据均采用端到端加密。";
-"upgrade_button" = "升级至每月%@";
+"upgrade_button" = "然后每月 %@";
"not_now" = "暂不";
"premium_disclaimer" = "每月限制5000个片段上传和1000分钟或次数的直播观看。";
"purchase_failed" = "购买失败";