14

I want to retrieve a Locazable.strings taken from an *.ipa file. However when I do, I get some wierd char mix with itenter image description here

How can I read it?

MUH Mobile Inc.
  • 1,462
  • 1
  • 16
  • 25

3 Answers3

22

My friend find out how :

plutil -convert json Localizable.strings

MUH Mobile Inc.
  • 1,462
  • 1
  • 16
  • 25
5

It's in property list format.

Two methods to fix this:

  • change .strings file to .plist

  • find a text editor that can use auto recognition correctly.
    try testMate app on mac.

    xcode打开

    after:

    enter image description here

danronmoon
  • 3,814
  • 5
  • 34
  • 56
Huang Huang
  • 316
  • 4
  • 6
1

Swift 3

let path = Bundle.main.path(forResource: "Localizable", ofType: "strings", inDirectory: nil, forLocalization: "en")
let dic = NSDictionary(contentsOfFile: path!)
debugPrint(dic)

pull your localizable.strings file in a Xcode project and run above code, and then, you can get the dic in your Xcode console or you can store it in a text.

yuanjilee
  • 429
  • 5
  • 16