-
-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* This brings in a new version of L10nSharp with API changes
- Loading branch information
1 parent
72cff44
commit 2914d62
Showing
18 changed files
with
125 additions
and
220 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
using L10NSharp; | ||
using NUnit.Framework; | ||
|
||
namespace Chorus.Tests | ||
{ | ||
internal class ChorusFixtureSetup | ||
{ | ||
[SetUpFixture] | ||
public class SetupFixture | ||
{ | ||
[OneTimeSetUp] | ||
public void RunBeforeAnyTests() | ||
{ | ||
LocalizationManager.StrictInitializationMode = false; | ||
} | ||
} | ||
} | ||
} |
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,3 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Drawing; | ||
using System.IO; | ||
|
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 |
---|---|---|
|
@@ -123,11 +123,11 @@ public static void SetUpLocalization(string desiredUiLangId, | |
var versionObj = System.Reflection.Assembly.GetExecutingAssembly().GetName().Version; | ||
// We don't need to reload strings for every "revision" (that might be every time we build). | ||
var version = "" + versionObj.Major + "." + versionObj.Minor + "." + versionObj.Build; | ||
LocalizationManager.Create(TranslationMemory.XLiff, desiredUiLangId, "Chorus", | ||
LocalizationManager.Create(desiredUiLangId, "Chorus", | ||
Application.ProductName, version, directoryOfInstalledXlfFiles, | ||
directoryOfUserModifiedXlfFiles, | ||
Icon.FromHandle(Properties.Resources.chorus32x32.GetHicon()), // should call DestroyIcon, but when? | ||
"[email protected]", "Chorus"); | ||
"[email protected]", new [] {"Chorus"}); | ||
} | ||
|
||
[Obsolete("Only one kind of TranslationMemory is supported: XLF; there is no need for the kind parameter.")] | ||
|
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,15 @@ | ||
using L10NSharp; | ||
using NUnit.Framework; | ||
|
||
namespace ChorusHubTests | ||
{ | ||
[SetUpFixture] | ||
public class ChorusHubFixtureSetup | ||
{ | ||
[OneTimeSetUp] | ||
public void RunBeforeAnyTests() | ||
{ | ||
LocalizationManager.StrictInitializationMode = false; | ||
} | ||
} | ||
} |
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,15 @@ | ||
using L10NSharp; | ||
using NUnit.Framework; | ||
|
||
namespace ChorusMerge.Tests | ||
{ | ||
[SetUpFixture] | ||
public class ChorusMergeFixtureSetup | ||
{ | ||
[OneTimeSetUp] | ||
public void RunBeforeAnyTests() | ||
{ | ||
LocalizationManager.StrictInitializationMode = false; | ||
} | ||
} | ||
} |
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.