Browse Source

Removed localized objects list

master
chrisgregan 10 years ago
parent
commit
34e23dda80
  1. 1
      Assets/Fungus/Flowchart/Editor/LanguageEditor.cs
  2. 9
      Assets/Fungus/Flowchart/Scripts/Language.cs

1
Assets/Fungus/Flowchart/Editor/LanguageEditor.cs

@ -12,7 +12,6 @@ namespace Fungus
public class LanguageEditor : Editor
{
protected SerializedProperty activeLanguageProp;
protected SerializedProperty localizedObjectsProp;
protected virtual void OnEnable()
{

9
Assets/Fungus/Flowchart/Scripts/Language.cs

@ -39,12 +39,6 @@ namespace Fungus
// http://docs.unity3d.com/ScriptReference/ISerializationCallbackReceiver.OnBeforeSerialize.html
protected Dictionary<string, string> localizedStrings = new Dictionary<string, string>();
// Gameobjects that are being managed for localization.
// Each game object should have a child component that implements ISerializable
// As Unity doesn't provide a persistant object identifier, we use the index
// in this list as a way to uniquely identify string objects
public List<GameObject> localizedObjects = new List<GameObject>();
/**
* Temp storage for a single item of standard text read from a scene object.
*/
@ -79,6 +73,9 @@ namespace Fungus
// Collect all the language items present in the scene
Dictionary<string, LanguageItem> languageItems = FindLanguageItems();
// Update language items with localization data from CSV file
// Build the CSV file using collected language items and the corresponding store localized strings
string csvData = csvHeader + "\n";
foreach (string stringId in languageItems.Keys)

Loading…
Cancel
Save