Skip to content

Commit

Permalink
Merge pull request #138 from tumblr/daniel/new_strings
Browse files Browse the repository at this point in the history
Add default values to Synthetic Strings
  • Loading branch information
afterxleep authored Jun 28, 2022
2 parents 8b65319 + 0362ff0 commit 34a8311
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 8 deletions.
6 changes: 2 additions & 4 deletions Classes/Constants/KanvasStrings.swift
Original file line number Diff line number Diff line change
Expand Up @@ -50,13 +50,11 @@ public struct KanvasStrings {
cameraPermissionsDescriptionLabel: cameraPermissionDescriptionString)

private static let cameraPermissionTitleString = {
NSLocalizedString("CameraAccessNoAccessTitle",
comment: "Title text for scenerio when access to Photos has been disallowed")
NSLocalizedString("CameraAccessNoAccessTitle", value: "Please allow access to your camera and microphone", comment: "Title text for scenerio when access to Camera and microphone is required or has been disallowed")
}()

private static let cameraPermissionDescriptionString = {
NSLocalizedString("CameraAccessNoAccessDesc",
comment: "Description text for scenerio when access to Photos has been disallowed")
NSLocalizedString("CameraAccessNoAccessDesc", value: "This functionality is required to post videos and photos", comment: "Description text for scenerio when access to Camera and microphone is required or has been disallowed")
}()

public init(cameraPermissionsTitleLabel: String,
Expand Down
2 changes: 1 addition & 1 deletion Kanvas.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |spec|
spec.name = "Kanvas"
spec.version = "1.4.1"
spec.version = "1.4.2"
spec.summary = "A custom camera built for iOS."
spec.homepage = "https://github.com/tumblr/kanvas-ios"
spec.license = "MPLv2"
Expand Down
6 changes: 3 additions & 3 deletions KanvasExample/KanvasExample/en.lproj/Localizable.strings
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,10 @@
/* Message for the post button in the editor screen */
"Post" = "Post";

/* Title text for scenerio when access to Photos has been disallowed */
"CameraAccessNoAccessTitle" = "Please allow access to your camera and Microphone";
/* Title text for scenerio when access to Camera and Mic is required or has been disallowed */
"CameraAccessNoAccessTitle" = "Please allow access to your Camera and Microphone";

/* Description text for scenerio when access to Photos has been disallowed */
/* Description text for scenerio when access to Camera and Mic is required has been disallowed */
"CameraAccessNoAccessDesc" = "You might want to save your post as a draft first so you don’t lose any unsaved progress.";

/* Alert controller message */
Expand Down

0 comments on commit 34a8311

Please sign in to comment.