Skip to content
This repository has been archived by the owner on Nov 9, 2017. It is now read-only.

Commit

Permalink
Version 1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
张国晔 committed Apr 7, 2014
0 parents commit 5a17fc3
Show file tree
Hide file tree
Showing 5 changed files with 39 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
.DS_Store
*.deb
obj/
_/
*theos
13 changes: 13 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
ARCHS = armv7 armv7s arm64
TARGET = iphone:clang:7.1:6.0

include theos/makefiles/common.mk

TWEAK_NAME = PinyinUI
PinyinUI_FILES = Tweak.x

include $(THEOS_MAKE_PATH)/tweak.mk
ADDITIONAL_OBJCFLAGS = -fobjc-arc

after-install::
install.exec "killall -9 SpringBoard"
1 change: 1 addition & 0 deletions PinyinUI.plist
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{}
12 changes: 12 additions & 0 deletions Tweak.x
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
%hook NSBundle

- (id)localizedStringForKey:(id)key value:(id)value table:(id)table {
id string = %orig(key, value, table);
if ([string isKindOfClass:[NSString class]]) {
string = [string mutableCopy];
CFStringTransform((CFMutableStringRef)string, NULL, kCFStringTransformMandarinLatin, NO);
}
return string;
}

%end
8 changes: 8 additions & 0 deletions control
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
Package: com.ccdog.pinyinui
Name: PinyinUI
Depends: firmware (>= 6.0), mobilesubstrate
Version: 1.0
Architecture: iphoneos-arm
Description: Convert all Chinese on UI to Pinyin.
Author: CC-Dog <[email protected]>
Section: Tweaks

0 comments on commit 5a17fc3

Please sign in to comment.