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 47
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 #64 from readium/fixes/l10n
Localize the framework
- Loading branch information
Showing
7 changed files
with
62 additions
and
7 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 +1 @@ | ||
github "readium/r2-shared-swift" == 1.2.11 | ||
github "readium/r2-shared-swift" == 1.2.12 |
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 +1 @@ | ||
github "readium/r2-shared-swift" "1.2.11" | ||
github "readium/r2-shared-swift" "1.2.12" |
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
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,12 @@ | ||
/* | ||
Localizable.strings | ||
r2-navigator-swift | ||
|
||
Created by Mickaël Menu on 14.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. | ||
*/ | ||
|
||
"R2Navigator.NavigatorError.copyForbidden" = "You exceeded the amount of characters allowed to be copied."; |
17 changes: 17 additions & 0 deletions
17
r2-navigator-swift/Toolkit/R2NavigatorLocalizedString.swift
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 @@ | ||
// | ||
// R2NavigatorLocalizedString.swift | ||
// r2-navigator-swift | ||
// | ||
// Created by Mickaël Menu on 14.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 R2NavigatorLocalizedString(_ key: String, _ values: CVarArg...) -> String { | ||
return R2LocalizedString("R2Navigator.\(key)", in: "org.readium.r2-navigator-swift", values) | ||
} |