Author Topic: Help plz ASAP  (Read 2958 times)

tarekalbakri

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 1
    • View Profile
Help plz ASAP
« on: October 23, 2016, 06:29:34 AM »
Hello everybody
im new to NGUI and im working on translating a game that made with NGUI

the game is already made and finished i just have to translate it  and it work with 3 languages

and im wishing to change one of them to Arabic my problem is that the game mad with UILabel and change language Dynamically
 
and all text stored in a txt file in list with tab spaces

and the index stored in script called TextList
and its look like this

public enum Msg {
   ACH_MAINBASE_RANK_3,
   ACH_MAINBASE_RANK_5,
   ACH_MAINBASE_RANK_10,

etc...

this line should select the language

m_eLanguageType = (LanguageType)sysLang;

so
here my qustion
how i can translate this game or add a new language to it

and it well work if i translate the text data list file ?

sorry for my bad english

and ty for reading





ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Help plz ASAP
« Reply #1 on: October 24, 2016, 06:57:27 AM »
NGUI's localization must be used, and it pulls its data from a text file, not some enum. Sounds like what you have there is some custom solution instead of using NGUI's localization.