forked from swiftlang/swift
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Frontend] Switch from YAML to
.strings
based localization
- Loading branch information
Showing
14 changed files
with
127 additions
and
117 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
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,25 @@ | ||
/** | ||
*--- en.strings - Localized diagnostic messages for English --------------===* | ||
* | ||
* This source file is part of the Swift.org open source project | ||
* | ||
* Copyright (c) 2014 - 2022 Apple Inc. and the Swift project authors | ||
* Licensed under Apache License v2.0 with Runtime Library Exception | ||
* | ||
* See https://swift.org/LICENSE.txt for license information | ||
* See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors | ||
* | ||
*===----------------------------------------------------------------------===* | ||
* | ||
* This file defines the diagnostic messages for the English language. | ||
* Each diagnostic is described in the following format: | ||
* "<diagnostic-id>" = "<diagnostic-message>"; | ||
* | ||
*===----------------------------------------------------------------------===* | ||
* | ||
*/ | ||
"lex_unterminated_string" = "unterminated string literal"; | ||
"var_init_self_referential" = "variable used within its own initial value"; | ||
/* Tests different number of spaces between id and diagnostic message */ | ||
"cannot_find_in_scope"= "cannot %select{find|find operator}1 %0 in scope"; | ||
"warning_invalid_locale_code" = "unsupported locale code; supported locale codes are '%0'"; |
This file was deleted.
Oops, something went wrong.
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,27 @@ | ||
/** | ||
*===--- fr.strings - Localized diagnostic messages for French ------------===* | ||
* | ||
* This source file is part of the Swift.org open source project | ||
* | ||
* Copyright (c) 2014 - 2022 Apple Inc. and the Swift project authors | ||
* Licensed under Apache License v2.0 with Runtime Library Exception | ||
* | ||
* See https://swift.org/LICENSE.txt for license information | ||
* See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors | ||
* | ||
*===----------------------------------------------------------------------===* | ||
* | ||
* This file defines the diagnostic messages for the French language. | ||
* Each diagnostic is described in the following format: | ||
* "<diagnostic-id>" = "<diagnostic-message>"; | ||
* | ||
*/ | ||
|
||
/* Different order from `en.strings` */ | ||
"var_init_self_referential" = "variable utilisée dans sa propre valeur initiale"; | ||
|
||
"lex_unterminated_string" = "chaîne non terminée littérale"; | ||
|
||
"cannot_find_in_scope" = "impossible %select{de trouver|de trouver opérateur}1 %0 portée"; | ||
|
||
"warning_invalid_locale_code" = "code de paramètres régionaux non pris en charge; les codes pris en charge sont '%0'"; |
This file was deleted.
Oops, something went wrong.
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
2 changes: 1 addition & 1 deletion
2
test/diagnostics/Localization/no_localization_files_and_wrong_path.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
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
Oops, something went wrong.