playMaker

Author Topic: Application System Language  (Read 4907 times)

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Application System Language
« on: August 13, 2012, 03:35:31 AM »
Hi,

 following a request: http://hutonggames.com/playmakerforum/index.php?topic=2093.msg9261#msg9261

Please find a simple action that will return the system language of the OS you are running on.

Code: [Select]
// (c) Copyright HutongGames, LLC 2010-2012. All rights reserved.

using UnityEngine;

namespace HutongGames.PlayMaker.Actions
{
[ActionCategory(ActionCategory.Application)]
[Tooltip("Get System Language")]
public class ApplicationGetSystemLanguage : FsmStateAction
{
[RequiredField]
[UIHint(UIHint.Variable)]
[Tooltip("The application language")]
public FsmString language;

public override void Reset()
{
language = null;
}

public override void OnEnter()
{
language.Value = Application.systemLanguage.ToString();

Finish();
}

}
}

bye,

 Jean
« Last Edit: August 13, 2012, 10:42:55 AM by jeanfabre »

dudejrtm

  • Playmaker Newbie
  • *
  • Posts: 6
Re: Application System Language
« Reply #1 on: September 25, 2012, 10:42:14 PM »
Thank you! and thank you again, Jean!  :)