This repository has been archived by the owner on Aug 12, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #51 from readium/fixes/l10n
Localize the framework
- Loading branch information
Showing
7 changed files
with
161 additions
and
59 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
github "readium/r2-shared-swift" == 1.2.11 | ||
github "readium/r2-shared-swift" == 1.2.12 | ||
github "stephencelis/SQLite.swift" == 0.11.5 | ||
github "krzyzanowskim/CryptoSwift" == 0.15.0 | ||
github "weichsel/ZIPFoundation" == 0.9.8 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
github "krzyzanowskim/CryptoSwift" "0.15.0" | ||
github "readium/r2-shared-swift" "1.2.11" | ||
github "readium/r2-shared-swift" "1.2.12" | ||
github "stephencelis/SQLite.swift" "0.11.5" | ||
github "weichsel/ZIPFoundation" "0.9.8" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
/* | ||
Localizable.strings | ||
r2-lcp-swift | ||
|
||
Created by Mickaël Menu on 13.06.19. | ||
|
||
Copyright 2019 Readium Foundation. All rights reserved. | ||
Use of this source code is governed by a BSD-style license which is detailed | ||
in the LICENSE file present in the project repository where this source code is maintained. | ||
*/ | ||
|
||
/* LCPError: General error messages */ | ||
"ReadiumLCP.LCPError.licenseIsBusy" = "Can't perform this operation at the moment."; | ||
"ReadiumLCP.LCPError.licenseIntegrity" = "License integrity: %@"; | ||
"ReadiumLCP.LCPError.licenseContainer" = "Can't access the License Document."; | ||
"ReadiumLCP.LCPError.licenseInteractionNotAvailable" = "This interaction is not available."; | ||
"ReadiumLCP.LCPError.licenseProfileNotSupported" = "This License has a profile identifier that this app cannot handle, the publication cannot be processed."; | ||
"ReadiumLCP.LCPError.crlFetching" = "Can't retrieve the Certificate Revocation List."; | ||
"ReadiumLCP.LCPError.parsing" = "Failed to parse the License Document."; | ||
"ReadiumLCP.LCPError.network" = "Network error."; | ||
|
||
/* LCPClientError: Errors while checking the integrity of the License */ | ||
"ReadiumLCP.LCPClientError.licenseOutOfDate" = "License is out of date (check start and end date)."; | ||
"ReadiumLCP.LCPClientError.certificateRevoked" = "Certificate has been revoked in the CRL."; | ||
"ReadiumLCP.LCPClientError.certificateSignatureInvalid" = "Certificate has not been signed by CA."; | ||
"ReadiumLCP.LCPClientError.licenseSignatureDateInvalid" = "License has been issued by an expired certificate."; | ||
"ReadiumLCP.LCPClientError.licenseSignatureInvalid" = "License signature does not match."; | ||
"ReadiumLCP.LCPClientError.contextInvalid" = "The DRM context is invalid."; | ||
"ReadiumLCP.LCPClientError.contentKeyDecryptError" = "Unable to decrypt encrypted content key from user key."; | ||
"ReadiumLCP.LCPClientError.userKeyCheckInvalid" = "User key check invalid."; | ||
"ReadiumLCP.LCPClientError.contentDecryptError" = "Unable to decrypt encrypted content from content key."; | ||
"ReadiumLCP.LCPClientError.unknown" = "Unknown error."; | ||
|
||
/* StatusError: Errors while checking the status of the License, using the Status Document. */ | ||
"ReadiumLCP.StatusError.cancelled" = "You have cancelled this license on %@."; | ||
"ReadiumLCP.StatusError.returned" = "This license has been returned on %@."; | ||
"ReadiumLCP.StatusError.expired.start" = "This license starts on %@."; | ||
"ReadiumLCP.StatusError.expired.end" = "This license expired on %@."; | ||
"ReadiumLCP.StatusError.revoked" = "This license has been revoked by its provider on %1$@.\nThe license was registered by %1$d device(s)"; | ||
|
||
/* RenewError: Errors while renewing a loan. */ | ||
"ReadiumLCP.RenewError.renewFailed" = "Your publication could not be renewed properly."; | ||
"ReadiumLCP.RenewError.invalidRenewalPeriod" = "Incorrect renewal period, your publication could not be renewed."; | ||
"ReadiumLCP.RenewError.unexpectedServerError" = "An unexpected error has occurred on the server."; | ||
|
||
/* ReturnError: Errors while returning a loan. */ | ||
"ReadiumLCP.ReturnError.returnFailed" = "Your publication could not be returned properly."; | ||
"ReadiumLCP.ReturnError.alreadyReturnedOrExpired" = "Your publication has already been returned before or is expired."; | ||
"ReadiumLCP.ReturnError.unexpectedServerError" = "An unexpected error has occurred on the server."; |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
// | ||
// R2LCPLocalizedString.swift | ||
// r2-lcp-swift | ||
// | ||
// Created by Mickaël Menu on 13.06.19. | ||
// | ||
// Copyright 2019 Readium Foundation. All rights reserved. | ||
// Use of this source code is governed by a BSD-style license which is detailed | ||
// in the LICENSE file present in the project repository where this source code is maintained. | ||
// | ||
|
||
import Foundation | ||
import R2Shared | ||
|
||
func R2LCPLocalizedString(_ key: String, _ values: CVarArg...) -> String { | ||
return R2LocalizedString("ReadiumLCP.\(key)", in: "org.readium.readium-lcp-swift", values) | ||
} |