Skip to content

Commit 4d87b23

Browse files
Update dependencies and make L10nSharp API change
1 parent 6cd82bd commit 4d87b23

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

Directory.Build.props

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,11 @@ See full changelog at https://github.com/sillsdev/flexbridge/blob/develop/CHANGE
2525
<ChangelogFile>../../CHANGELOG.md</ChangelogFile>
2626
<UseFullSemVerForNuGet>false</UseFullSemVerForNuGet>
2727
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
28-
<ChorusVersion>6.0.0-beta*</ChorusVersion>
29-
<LCModelVersion>10.2.0-beta*</LCModelVersion>
28+
<ChorusVersion>6.0.0-beta0059</ChorusVersion>
29+
<LCModelVersion>11.0.0-beta*</LCModelVersion>
3030
</PropertyGroup>
3131
<ItemGroup>
3232
<!-- The only reason we depend directly on L10NSharp is because our dependencies can't agree which one they want -->
33-
<PackageReference Include="L10NSharp" Version="6.0.0" />
33+
<PackageReference Include="L10NSharp" Version="8.0.0-beta0005" />
3434
</ItemGroup>
3535
</Project>

src/TriboroughBridge-ChorusPlugin/TriboroughBridgeUtilities.cs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -101,24 +101,24 @@ internal static Dictionary<string, ILocalizationManager> SetupLocalization(Dicti
101101
var versionObj = Assembly.GetExecutingAssembly().GetName().Version;
102102
// We don't need to reload strings for every "revision" (that might be every time we build). REVIEW (Hasso) 2021.08: then why do we have `build`?
103103
var version = $"{versionObj.Major}.{versionObj.Minor}.{versionObj.Build}";
104-
var flexBridgeLocMan = LocalizationManager.Create(TranslationMemory.XLiff, desiredUiLangId, FlexBridge, Application.ProductName,
104+
var flexBridgeLocMan = LocalizationManager.Create(desiredUiLangId, FlexBridge, Application.ProductName,
105105
version, installedL10nBaseDir, userL10nBaseDir, CommonResources.chorus,
106-
FlexLocalizationEmailAddress, FlexBridge, "TriboroughBridge_ChorusPlugin", "FLEx_ChorusPlugin", "SIL.LiftBridge");
106+
FlexLocalizationEmailAddress, new [] { FlexBridge, "TriboroughBridge_ChorusPlugin", "FLEx_ChorusPlugin", "SIL.LiftBridge" });
107107
results.Add("FlexBridge", flexBridgeLocMan);
108108

109109
// In case the UI language was unavailable, change it, so we don't frustrate the user with three dialogs.
110110
desiredUiLangId = LocalizationManager.UILanguageId;
111111

112112
versionObj = Assembly.GetAssembly(typeof(ChorusSystem)).GetName().Version;
113113
version = "" + versionObj.Major + "." + versionObj.Minor + "." + versionObj.Build;
114-
var chorusLocMan = LocalizationManager.Create(TranslationMemory.XLiff, desiredUiLangId, "Chorus", "Chorus",
115-
version, installedL10nBaseDir, userL10nBaseDir, CommonResources.chorus, FlexLocalizationEmailAddress, "Chorus");
114+
var chorusLocMan = LocalizationManager.Create(desiredUiLangId, "Chorus", "Chorus",
115+
version, installedL10nBaseDir, userL10nBaseDir, CommonResources.chorus, FlexLocalizationEmailAddress, new []{ "Chorus" });
116116
results.Add("Chorus", chorusLocMan);
117117

118118
versionObj = Assembly.GetAssembly(typeof(ErrorReport)).GetName().Version;
119119
version = "" + versionObj.Major + "." + versionObj.Minor + "." + versionObj.Build;
120-
var palasoLocMan = LocalizationManager.Create(TranslationMemory.XLiff, desiredUiLangId, "Palaso", "Palaso",
121-
version, installedL10nBaseDir, userL10nBaseDir, CommonResources.chorus, FlexLocalizationEmailAddress, "SIL");
120+
var palasoLocMan = LocalizationManager.Create(desiredUiLangId, "Palaso", "Palaso",
121+
version, installedL10nBaseDir, userL10nBaseDir, CommonResources.chorus, FlexLocalizationEmailAddress, new []{ "SIL" });
122122
results.Add("Palaso", palasoLocMan);
123123
}
124124
catch (Exception e)

0 commit comments

Comments
 (0)