playMaker

Author Topic: Application System Language  (Read 1739 times)

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 12208
  • Official Playmaker Support
    • View Profile
Application System Language
« on: August 13, 2012, 12: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, 07:42:55 AM by jeanfabre »

dudejrtm

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