Hi everyone,
I am working on a translation tool, soon available in the asset store.
-
One button:
-
Scan all your enabled scenes, grab your current text in the given language (English, French, whatever you set), then automatic Google translate them in all Unity system Language and you can start your translated game right away!
-
See the result in editor in one click.
-
Edit your own translation in the editor or in the generated xml file
-
Some more might come here…
Feel free for any questions. I will do my best to answer.
As part of the One button Localization work in progress, here is what I found to execute coroutine while in editor :
[InitializeOnLoad]
public class EasyLocalization_Script
{
// This is my callable function
public static IEnumerator StartCoroutine(IEnumerator newCorou)
{
CoroutineInProgress.Add(newCorou);
return newCorou;
}
/// <summary>
/// Coroutine to execute. Manage by the EasyLocalization_script
/// </summary>
private static List<IEnumerator> CoroutineInProgress = new List<IEnumerator>();
private static EasyLocalization_Script()
{
EditorApplication.update += ExecuteCoroutine;
}
static int currentExecute = 0;
private static void ExecuteCoroutine()
{
if (CoroutineInProgress.Count <= 0)
{
// Debug.LogWarning("ping");
return;
}
// Debug.LogWarning("exec");
currentExecute = (currentExecute + 1) % CoroutineInProgress.Count;
bool finish = !CoroutineInProgress[currentExecute].MoveNext();
if (finish)
{
CoroutineInProgress.RemoveAt(currentExecute);
}
}
}
A first version is almost ready ! Need to try on my own product first : https://play.google.com/store/apps/details?id=com.OrionGames.LightGun
Coming soon in 42 languages !
My first project using the Easy Translation is now online ! 40 translation in only 1 click and about 15minutes !
Check it here https://play.google.com/store/apps/details?id=com.OrionGames.LightGun