This repository has been archived by the owner on Nov 9, 2017. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
张国晔
committed
Apr 7, 2014
0 parents
commit 5a17fc3
Showing
5 changed files
with
39 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
.DS_Store | ||
*.deb | ||
obj/ | ||
_/ | ||
*theos |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |