Merge pull request #60707 from xedin/switch-to-string-format-for-locale

[Localization] Switch diagnostics/localization to `.strings` format
This commit is contained in:
Pavel Yaskevich
2022-08-23 09:49:27 -07:00
committed by GitHub
21 changed files with 289 additions and 295 deletions

View File

@@ -1452,7 +1452,7 @@ static bool ParseDiagnosticArgs(DiagnosticOptions &Opts, ArgList &Args,
// for the specified locale code.
llvm::SmallString<128> localizationPath(A->getValue());
llvm::sys::path::append(localizationPath, Opts.LocalizationCode);
llvm::sys::path::replace_extension(localizationPath, ".yaml");
llvm::sys::path::replace_extension(localizationPath, ".strings");
if (!llvm::sys::fs::exists(localizationPath)) {
Diags.diagnose(SourceLoc(), diag::warning_cannot_find_locale_file,
Opts.LocalizationCode, localizationPath);