Page 1 of 1

How to change the system language programmatically?

PostPosted: Fri Nov 17, 2017 4:37 am
by BoughtTheBook
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)?

Re: How to change the system language programmatically?

PostPosted: Thu Nov 30, 2017 6:29 pm
by morpheus
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?