How to change the system language programmatically?

Questions and Answers about all things *OS (macOS, iOS, tvOS, watchOS)

How to change the system language programmatically?

Postby BoughtTheBook » Fri Nov 17, 2017 4:37 am

with jealbroken iphone.
Is there a way to change the system language using code to do works like Preferences->General->Language->iPhone Language(select another Lang)?
BoughtTheBook
 
Posts: 1
Joined: Fri Nov 17, 2017 4:28 am

Re: How to change the system language programmatically?

Postby morpheus » Thu Nov 30, 2017 6:29 pm

There is surely a way; Might need an entitlement. System Language is like in a Property list somewhere (likely /var/mobile/caches) but I can't tell off top of my head.

How I'd approach it -

A) Check (GREP) for current language (e.g. en-US) in all Plists.
B) Save plists
C) Change language from properties
D) Diff

Or

jtool -S on the System preferences.app to see

jtool -v -S Preferences | grep -i Locale
0x195d8 U _NSCurrentLocaleDidChangeNotification: /System/Library/Frameworks/CoreFoundation.framework/CoreFoundation
0x19cc8 U _resetLocale: /System/Library/PrivateFrameworks/Preferences.framework/Preferences

"resetLocale" looks like it could be it?
morpheus
Site Admin
 
Posts: 532
Joined: Thu Apr 11, 2013 6:24 pm


Return to Questions and Answers

Who is online

Users browsing this forum: No registered users and 2 guests