GithubHelp home page GithubHelp logo

maksymhernets / autotranslateforunitylocalization Goto Github PK

View Code? Open in Web Editor NEW
40.0 3.0 6.0 36.39 MB

Auto translation of the whole game in one click, using unity localization and google api.

C# 100.00%
unity tool localization localization-tool automatic automation autotranslate translate tools unity3d

autotranslateforunitylocalization's Introduction

Auto Translate For Unity Localization

Compatibility Unity 2020.3.48 or high

This tool allows you to translate the game into other languages, using free google translators and unity localization. Also allows you to find in the project, the text to add to the table.

Where to begin?

You can get the plugin through the unity package manager using the link: https://github.com/MaksymHernets/AutoTranslateForUnityLocalization.git?path=/Assets

Also, this plugin can be found on the unity asset store, here is the link:
https://assetstore.unity.com/packages/tools/localization/auto-translate-for-unity-localization-212842

Functions currently available:

  • Translation of words and smart words in string tables;
  • Finding text components in a scene or prefab to add localization;
  • Adaptation of language dialects for Google translator;
  • Cleaning up localization in scenes and prefabs;
  • Supports native unity command "Undo";
  • Tutorial scene.

Package dependencies:

  • Localization 1.3.2
  • Addressables 1.21.14
  • TextMeshPro 3.0.6

Supported components for text search:

  • Text Legacy ( Possible to skip -> Button, Toggle, Input Field, Dropdown);
  • Text Mesh Legacy;
  • Test Mesh Pro UI ( Possible to skip -> Button, Toggle, Input Field, Dropdown);
  • Test Mesh Pro.

Plans to add to the package:

  • Add text translation on textures;
  • Add Translation of Audio Files;
  • Add documentation;
  • Add unit tests.

What's new?

https://github.com/MaksymHernets/AutoTranslateForUnityLocalization/blob/master/Assets/CHANGELOG.md

Screenshots

GitHub Logo GitHub Logo GitHub Logo GitHub Logo

As a result, thanks to the plugin, you can save a lot of time.

GitHub Logo

Package Manager

GitHub Logo

Search Text Scene or Prefab

GitHub Logo

autotranslateforunitylocalization's People

Contributors

maksymhernets avatar merksk8 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

autotranslateforunitylocalization's Issues

References to UnityEditor

Hello,

I'm trying to use the asset, but when I try to build it doesn't work. The reason is because there's a lot of references to UnityEditor in scripts that are not in Editor folder, or encapsulated with #if UNITY_EDITOR.

Am i doing something wrong? Should i put the folder in any specific place to prevent this error?

I'm using latest version of the asset and Unity 2021.3.27f

PD: I would fix it, but there's a lot of references everywhere. Tried easy fixes as removing the files, moving them all to Editor folder, but couldn't get it to work.

Thank you!

Auto Translate skips entries

When auto translating a string table, in the string table the generated translations were offsetted by two empty lines.
This means a whole lot of lines are missing, there were no errors or warnings and no other settings seem to have a different result.

grafik

Error when trying to translate: Object reference not set to an instance of an object

When i click the "Translate" button, script returns this error:

UnityEngine.Debug:LogError (object)
GoodTime.HernetsMaksym.AutoTranslate.Windows.AutoTranslate_EditorWindow:ButtonTranslate_Click () (at Assets/AutoTranslate/Editor/AutoTranslate_EditorWindow.cs:144)
GoodTime.HernetsMaksym.AutoTranslate.Windows.AutoTranslate_EditorWindow:OnGUI () (at Assets/AutoTranslate/Editor/AutoTranslate_EditorWindow.cs:92)
UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)

My table is localized for only 2 languages and i wan't to add other languages. Here is how it it looks:
image

P.S: I saw that someone has encountered this error too, but the issue was closed and didn't helped in my situation

Null Value: Key

I get this bug when using auto translate:

ArgumentNullException: Value cannot be null. Parameter name: key System.Collections.Generic.Dictionary2[TKey,TValue].TryInsert (TKey key, TValue value, System.Collections.Generic.InsertionBehavior behavior) (at <47ab72e0328040438980f9c23608e1ec>:0) System.Collections.Generic.Dictionary2[TKey,TValue].Add (TKey key, TValue value) (at <47ab72e0328040438980f9c23608e1ec>:0) GoodTime.HernetsMaksym.AutoTranslate.TranslateParameters.FillDictinary (System.Collections.Generic.List1[T] rowCheckLists) (at Assets/AutoTranslate/Scripts/TranslateLocalization/TranslateParameters.cs:18) GoodTime.HernetsMaksym.AutoTranslate.Windows.AutoTranslate_EditorWindow.ButtonTranslate_Click () (at Assets/AutoTranslate/Editor/AutoTranslate_EditorWindow.cs:239) GoodTime.HernetsMaksym.AutoTranslate.Windows.AutoTranslate_EditorWindow.OnGUI () (at Assets/AutoTranslate/Editor/AutoTranslate_EditorWindow.cs:182)

Object reference error

This used work fine, but after updating, it is giving this error

Object reference not set to an instance of an object
UnityEngine.Debug:LogError (object)
GoodTime.HernetsMaksym.AutoTranslate.Windows.AutoTranslate_EditorWindow:ButtonTranslate_Click () (at Library/PackageCache/com.maksymhernets.autotranslateforunitylocalization@d0eb7b234d/AutoTranslate/Editor/AutoTranslate_EditorWindow.cs:144)
GoodTime.HernetsMaksym.AutoTranslate.Windows.AutoTranslate_EditorWindow:OnGUI () (at Library/PackageCache/com.maksymhernets.autotranslateforunitylocalization@d0eb7b234d/AutoTranslate/Editor/AutoTranslate_EditorWindow.cs:92)
UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)

image

Auto Translate for String Tables.

Not exactly sure what I'm doing wrong but when opening up the String tables menu. It doesn't find my string tables from the project. I can also not select any locale. It looks like it doesn't find the assets. I also do have an error opening up the window which could be the root cause possibly:

NullReferenceException: Object reference not set to an instance of an object
GoodTime.HernetsMaksym.AutoTranslate.Windows.AutoTranslate_EditorWindow.OnGUI () (at ./Library/PackageCache/com.maksymhernets.autotranslateforunitylocalization@6101e12296/AutoTranslate/Editor/AutoTranslate_EditorWindow.cs:121)
UnityEditor.HostView.InvokeOnGUI (UnityEngine.Rect onGUIPosition) (at <da771086bc2e4cfc9ad0a72e083a7f98>:0)

I haven't jumped into the code just yet but already wanted to make a report since it might be a small step I'm missing or something else.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.