Revert "Reverted LocalizedString"

This reverts commit 793300839b.
This commit is contained in:
Kevin Pope 2015-01-07 09:52:17 -08:00
parent 5a551e3c56
commit 7af81a54a8
6 changed files with 11 additions and 1899 deletions

View file

@ -34,10 +34,8 @@ using System.Collections.Generic;
using System.Text;
using System.IO;
using MatterHackers.Agg;
using MatterHackers.MatterControl;
using MatterHackers.MatterControl.DataStorage;
using MatterHackers.Agg.PlatformAbstract;
namespace MatterHackers.Localizations
{
@ -56,8 +54,9 @@ namespace MatterHackers.Localizations
if (MatterControlTranslationMap == null)
{
string pathToTranslationsFolder = Path.Combine(StaticData.Instance.MapPath("Translations"));
MatterControlTranslationMap = new TranslationMap(pathToTranslationsFolder, language);
// The translation map is now written to disk in the AppUserDataPath
// TODO: Write tools to collect changes to this file and push them to a shared server for merging into the main Master.txt file
MatterControlTranslationMap = new TranslationMap(ApplicationDataStorage.Instance.ApplicationUserDataPath, language);
}
#if DEBUG_SHOW_TRANSLATED_STRINGS && DEBUG
return "El " + englishText + " o";