<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Infinity Code Forum — Changing the language of the map via script]]></title>
	<link rel="self" href="https://forum.infinity-code.com/extern.php?action=feed&amp;tid=270&amp;type=atom" />
	<updated>2016-09-21T16:04:31Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.infinity-code.com/viewtopic.php?id=270</id>
		<entry>
			<title type="html"><![CDATA[Re: Changing the language of the map via script]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=1282#p1282" />
			<content type="html"><![CDATA[<p>Oh shoot. You&#039;re right. There just isn&#039;t a French version for my area.<br />(which is funny, because I come from Canada, and English and French are our two official languages)</p><p>Thank you for your help all this time</p>]]></content>
			<author>
				<name><![CDATA[JuniorUnityDev]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=240</uri>
			</author>
			<updated>2016-09-21T16:04:31Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=1282#p1282</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Changing the language of the map via script]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=1281#p1281" />
			<content type="html"><![CDATA[<p>Perhaps, did you lookin at location that does not have a French version.<br />Try as much as possible zoom out the map (zoom = 3).</p>]]></content>
			<author>
				<name><![CDATA[Alex Vertax]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=2</uri>
			</author>
			<updated>2016-09-21T15:50:57Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=1281#p1281</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Changing the language of the map via script]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=1280#p1280" />
			<content type="html"><![CDATA[<p>It still isn&#039;t working for me, for some reason.<br />Even if I enter &#039;fr&#039; directly into the inspector, it still won&#039;t use the French version.<br />It&#039;s not imperative to the app, so it will be fine, but I was hoping to make it work <img src="https://forum.infinity-code.com/img/smilies/hmm.png" width="15" height="15" alt="hmm" /><br />Thank you for your help</p>]]></content>
			<author>
				<name><![CDATA[JuniorUnityDev]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=240</uri>
			</author>
			<updated>2016-09-21T15:43:05Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=1280#p1280</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Changing the language of the map via script]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=1258#p1258" />
			<content type="html"><![CDATA[<p>Hello.</p><p>It uses the same method for all providers, but not all providers and the types of map supports multi language.</p><p>I just checked it. Everything works well.<br />Test script:<br /></p><div class="codebox"><pre><code>using UnityEngine;

public class ChangeLanguageExample:MonoBehaviour
{
    public string[] languages = {&quot;en&quot;, &quot;fr&quot;};

    private int languageIndex = 0;

    private void OnGUI()
    {
        if (GUILayout.Button(&quot;Change Language&quot;))
        {
            if (++languageIndex &gt;= languages.Length) languageIndex = 0;
            OnlineMaps.instance.language = languages[languageIndex];
        }
    }

    private void Start()
    {
        OnlineMaps.instance.language = languages[0];
    }
}</code></pre></div>]]></content>
			<author>
				<name><![CDATA[Alex Vertax]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=2</uri>
			</author>
			<updated>2016-09-14T17:40:26Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=1258#p1258</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Changing the language of the map via script]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=1255#p1255" />
			<content type="html"><![CDATA[<p>Right now we are using Google Maps, but we might change to a different provider later. <br />Is the method very different for different providers?</p>]]></content>
			<author>
				<name><![CDATA[JuniorUnityDev]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=240</uri>
			</author>
			<updated>2016-09-14T15:36:40Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=1255#p1255</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Changing the language of the map via script]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=1207#p1207" />
			<content type="html"><![CDATA[<p>Hello.</p><p>What provider do you use?</p>]]></content>
			<author>
				<name><![CDATA[Alex Vertax]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=2</uri>
			</author>
			<updated>2016-09-06T20:12:59Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=1207#p1207</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Changing the language of the map via script]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=1206#p1206" />
			<content type="html"><![CDATA[<p>I&#039;m trying to change the language of my map to french via script (as my app has both french and english options) using OnlineMaps.instance.language = &quot;fr&quot;<br />In the Inspector I can see that the field has been changed to show &#039;fr&#039;, but the map is still in English.<br />What am I doing wrong? <img src="https://forum.infinity-code.com/img/smilies/sad.png" width="15" height="15" alt="sad" /></p>]]></content>
			<author>
				<name><![CDATA[JuniorUnityDev]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=240</uri>
			</author>
			<updated>2016-09-06T20:05:25Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=1206#p1206</id>
		</entry>
</feed>
