Author Topic: Localization problem  (Read 1537 times)

clarliao

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 3
    • View Profile
Localization problem
« on: September 01, 2014, 09:28:09 PM »
hi ,
    I am using UNITY 4.5.2 with NGUI 3.7.0
When I run demo 10 : Localization ,
It works fine on PC ,
It works fine when I click 'Build and Run' to launch it by Unity on my Android phone.
(see the OK.png in attached file

but when I install it manually by click  apk file in my phone ,
all string disapear
(see the NG.png in attached file)

How could I fixed this? thanks

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Localization problem
« Reply #1 on: September 02, 2014, 11:52:45 AM »
Check to see if the APK actually has the localization files inside it. I'm not sure about this one as I've never had any issues, but then again I never installed APKs manually. I know it works when you build, as well as when you publish via Google Play / Amazon by passing them the APK.

clarliao

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 3
    • View Profile
Re: Localization problem
« Reply #2 on: September 02, 2014, 10:00:18 PM »
Even I installed from Google play , it doesn't work still . Since they are the same apk.
After a lot of test ,
I am sure the localization file is not packed into apk.
After I add a public TextAsset in a script, and drop this file to a GameObject with that script,
everything worked.

But I don't think this is the final solution. Maybe it's the bug from Unity?

Any good idea to fix this problem?

Regards.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Localization problem
« Reply #3 on: September 03, 2014, 11:41:12 AM »
You need to place the localization file into the Resources folder, or it won't be included.