Exemplo n.º 1
0
        /*[Button("Save")]
         * [ShowIf("@_isDirty")]
         * private void Save()
         * {
         *  if(_isDirty)
         *  {
         *      Debug.Log("Saving");
         *  }
         * }*/

        private void LoadLocalizations()
        {
            string noExtensionFilename = System.IO.Path.GetFileNameWithoutExtension(filePath);

            rawData              = CSVLoader.LoadRawCSVIntoMatrix(noExtensionFilename);
            keyLocaleDictionary  = CSVLoader.LoadDicoFromCSVKeyFirst(noExtensionFilename);
            localeKeyDictionary  = CSVLoader.LoadDicoFromCSV(noExtensionFilename);
            _translationsArray2D = new Array2D <string>(rawData);
            listData             = _translationsArray2D.DataAsLists;
        }
Exemplo n.º 2
0
 private void LoadLocalizedStrings()
 {
     _allLocalizedStrings = CSVLoader.LoadDicoFromCSV("Localizations");
     isReady = true;
     Debug.Log("Localizations loaded - " + _allLocalizedStrings.Count + " languages");
 }