tag:blogger.com,1999:blog-7724398106195419987.post5827552635226802926..comments2023-07-23T10:06:24.479+02:00Comments on AVA: Text localization in Unity 4.6 and Unity 5Alex Vanden Abeelehttp://www.blogger.com/profile/06462308768648416872noreply@blogger.comBlogger15125tag:blogger.com,1999:blog-7724398106195419987.post-80949777505158276562016-06-04T07:46:48.754+02:002016-06-04T07:46:48.754+02:00It might be easier if you just e-mailed me about t...It might be easier if you just e-mailed me about this, it's a bit weird to have a debugging conversation in comments.<br />Provide a sample or at least some form of call stack if possible.Alex Vanden Abeelehttps://www.blogger.com/profile/06462308768648416872noreply@blogger.comtag:blogger.com,1999:blog-7724398106195419987.post-37774009819995914642016-06-01T15:08:18.875+02:002016-06-01T15:08:18.875+02:00Hello, please help me.
I use 5 scenes in my proje...Hello, please help me. <br />I use 5 scenes in my project, but when i start (play) game in console i have this warning but it stiil working. <br />"Localization key not found: 'Perfect'" <br />But when i open new scene in my project i have this error <br />"MissingReferenceException: The object of type 'Text' has been destroyed but you are still trying to access it. Your script schould either check if it is a null or you should not destroy the object."<br />and i can not switch languages. That I doing wrong? Please help me. I use Unity 5.4 and make android platform game. Sorry for my English.Anonymoushttps://www.blogger.com/profile/11017861026651201301noreply@blogger.comtag:blogger.com,1999:blog-7724398106195419987.post-62556348696807736692015-10-03T00:06:16.433+02:002015-10-03T00:06:16.433+02:00Thanks, this is what i needed.
I changed the Awak...Thanks, this is what i needed.<br /><br />I changed the Awake-Function a bit, maby someone search for that.<br /><br />private void Awake () {<br /> var syslang = Application.systemLanguage;<br /> var isLangAvailable = false;<br /> TextLocalization.Init();<br /> foreach (var item in TextLocalization.AvailableLanguages)<br /> {<br /> if (item == syslang.ToString()) {<br /> isLangAvailable = true;<br /> break;<br /> }<br /> }<br /> if (isLangAvailable)<br /> {<br /> SelectLanguage(syslang.ToString());<br /> } else<br /> {<br /> SelectLanguage("English");<br /> }<br /> }Anonymoushttps://www.blogger.com/profile/01786659979986582603noreply@blogger.comtag:blogger.com,1999:blog-7724398106195419987.post-56227483825887444572015-10-02T19:56:00.744+02:002015-10-02T19:56:00.744+02:00Indeed, I never had this issue in my personal proj...Indeed, I never had this issue in my personal project since all my UI was a child of the text localization parent, but if this is not the case the the broadcast doesn't reach the textlocalize monobehaviours.<br />I changed the demo to use a delegate, but you can use any other method if you wish (in Kweetet we use the Messenger class from http://wiki.unity3d.com/index.php?title=CSharpMessenger_Extended)Alex Vanden Abeelehttps://www.blogger.com/profile/06462308768648416872noreply@blogger.comtag:blogger.com,1999:blog-7724398106195419987.post-86105158071249095222015-10-01T20:35:52.209+02:002015-10-01T20:35:52.209+02:00Hi,
i have written this little function in your de...Hi,<br />i have written this little function in your demo scene:<br />public void SelectLanguage(string name)<br />{<br /> TextLocalization.SelectLanguage(name);<br />}<br />Added it to a button as event, but nothing happens on click. The value of "name" is English and the language on startup is Dutch.<br /><br />What is going wrong?Anonymoushttps://www.blogger.com/profile/01786659979986582603noreply@blogger.comtag:blogger.com,1999:blog-7724398106195419987.post-86691147679647267862015-07-22T10:08:50.862+02:002015-07-22T10:08:50.862+02:00I've fixed the demo, thanks for telling me! Th...I've fixed the demo, thanks for telling me! The GameController initiated the localization in a Start method while that should've been an Awake method.Alex Vanden Abeelehttps://www.blogger.com/profile/06462308768648416872noreply@blogger.comtag:blogger.com,1999:blog-7724398106195419987.post-9335855292914822612015-07-20T03:55:21.912+02:002015-07-20T03:55:21.912+02:00Intersting Post. Unfortunately the demo breaks und...Intersting Post. Unfortunately the demo breaks under Unity 5.11. Any plans to update?News Teamhttps://www.blogger.com/profile/07854929010544702134noreply@blogger.comtag:blogger.com,1999:blog-7724398106195419987.post-84208021659734125822015-04-23T12:26:32.626+02:002015-04-23T12:26:32.626+02:00I don't really understand what you're tryi...I don't really understand what you're trying to achieve. In our project we use this method to automatically update the localization files before we start a build:<br /><br />public static void UpdateLoca()<br /> {<br /> ProcessStartInfo startInfo = new ProcessStartInfo();<br /> startInfo.CreateNoWindow = false;<br /> startInfo.FileName = Path.GetFullPath("Xls2CsvConverter.exe");<br /> string exe = Path.GetFullPath("Assets/Loca/Localization.xlsx");<br /> if (!File.Exists(exe))<br /> {<br /> Debug.LogWarning(string.Format("Failed to find {0}", exe));<br /> return;<br /> }<br /> string path = Path.GetFullPath("Assets/Loca/");<br /> <br /> startInfo.Arguments = string.Format("{0} {1}", exe, path);<br /><br /> try<br /> {<br /> using (Process exeProcess = Process.Start(startInfo))<br /> {<br /> exeProcess.WaitForExit();<br /> }<br /> }<br /> catch (Exception ex)<br /> {<br /> Debug.LogException(ex);<br /> }<br /> }Alex Vanden Abeelehttps://www.blogger.com/profile/06462308768648416872noreply@blogger.comtag:blogger.com,1999:blog-7724398106195419987.post-3535988520105526422015-04-21T12:52:05.869+02:002015-04-21T12:52:05.869+02:00Hi again
i have a question
is it possible to add l...Hi again<br />i have a question<br />is it possible to add localization file from code and not from inspector ? if localization file changes, it will disappear from elements in Localization and i have to re-add it from inspector.<br />ThanksAnonymoushttps://www.blogger.com/profile/14516540101669820716noreply@blogger.comtag:blogger.com,1999:blog-7724398106195419987.post-31096282372485991812015-04-14T12:58:34.621+02:002015-04-14T12:58:34.621+02:00Thanks for demo project and sharing this amazing p...Thanks for demo project and sharing this amazing package ;)Anonymoushttps://www.blogger.com/profile/14516540101669820716noreply@blogger.comtag:blogger.com,1999:blog-7724398106195419987.post-86323148098668063382015-04-14T09:08:21.104+02:002015-04-14T09:08:21.104+02:00I've added a demo project, let me know if you ...I've added a demo project, let me know if you still run into problems.Alex Vanden Abeelehttps://www.blogger.com/profile/06462308768648416872noreply@blogger.comtag:blogger.com,1999:blog-7724398106195419987.post-5354989150150423572015-04-13T11:39:06.899+02:002015-04-13T11:39:06.899+02:00would you plz give an example scene to use this pa...would you plz give an example scene to use this package, i setup everything in the way it should be but still not working for me.<br />ThanksAnonymoushttps://www.blogger.com/profile/14516540101669820716noreply@blogger.comtag:blogger.com,1999:blog-7724398106195419987.post-18179301071112752702015-04-09T20:45:08.325+02:002015-04-09T20:45:08.325+02:00Wow, that's amazing :)
Thanks for sharing!
I ...Wow, that's amazing :)<br />Thanks for sharing!<br /><br />I admit it took me a while to realize the first cell needed to have "KEY" written on it in order to work, and that's totally on me since I forgot to read the console :P<br /><br />Having an image in this post showing a spreadsheet example would be great!Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-7724398106195419987.post-20218393207268966552015-04-01T08:39:59.103+02:002015-04-01T08:39:59.103+02:00Fixed the download link, thx for telling me.Fixed the download link, thx for telling me.Alex Vanden Abeelehttps://www.blogger.com/profile/06462308768648416872noreply@blogger.comtag:blogger.com,1999:blog-7724398106195419987.post-25331626171333608342015-03-31T14:58:11.941+02:002015-03-31T14:58:11.941+02:00Download link is not working.Download link is not working.Anonymoushttps://www.blogger.com/profile/15329148448582204415noreply@blogger.com