8000 added English support. · onesimplecoder/wechat@3e85b62 · GitHub
[go: up one dir, main page]

Skip to content

Commit 3e85b62

Browse files
committed
added English support.
1 parent ac5777b commit 3e85b62

30 files changed

+664
-87
lines changed

WeChat/bin/WeChat.apk

18.7 KB
Binary file not shown.
3.86 KB
Loading

WeChat/res/layout-xhdpi/layout_head_friend.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
<TextView
1919
style="@style/MMFontTitleInList"
2020
android:textColor="@color/black"
21-
android:text="新的朋友"
21+
android:text="@string/recommended_friends"
2222
android:layout_marginLeft="13dp"
2323
android:singleLine="true" />
2424
</LinearLayout>
@@ -40,7 +40,7 @@
4040
<TextView
4141
style="@style/MMFontTitleInList"
4242
android:textColor="@color/black"
43-
android:text="群聊"
43+
android:text="@string/group_chats"
4444
android:layout_marginLeft="10dp"
4545
android:singleLine="true" />
4646
</LinearLayout>
@@ -62,7 +62,7 @@
6262
<TextView
6363
style="@style/MMFontTitleInList"
6464
android:textColor="@color/black"
65-
android:text="公众号"
65+
android:text="@string/official_accounts"
6666
android:layout_marginLeft="10dp"
6767
android:singleLine="true" />
6868
</LinearLayout>

WeChat/res/layout-xhdpi/layout_head_search.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
android:background="@drawable/search_ba"
1313
android:layout_margin="15dp"
1414
android:paddingLeft="20dp"
15-
android:text="搜索"
15+
android:text="@string/search"
1616
android:drawablePadding="10dp"
1717
android:textColor="@color/black1"
1818
android:gravity="center|left"
Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
2+
xmlns:tools="http://schemas.android.com/tools"
3+
android:layout_width="match_parent"
4+
android:layout_height="match_parent"
5+
android:background="#ffffff"
6+
android:orientation="vertical" >
7+
8+
<include layout="@layout/layout_title" />
9+
10+
<RelativeLayout
11+
android:id="@+id/view_user"
12+
android:layout_width="fill_parent"
13+
android:layout_height="120dip"
14+
android:layout_marginTop="40dp"
15+
android:padding="12dp" >
16+
17+
<RelativeLayout
18+
android:layout_width="100dip"
19+
android:layout_height="120dip"
20+
android:layout_centerInParent="true" >
21+
22+
<ImageView
23+
android:id="@+id/head"
24+
android:layout_width="90.0dip"
25+
android:layout_height="90.0dip"
26+
android:src="@drawable/head" />
27+
28+
29+
<ImageView
30+
android:id="@+id/img_edit"
31+
android:layout_width="35dp"
32+
android:layout_height="35dp"
33+
android:layout_alignParentRight="true"
34+
android:layout_alignParentBottom="true"
35+
android:src="@drawable/jy_icon_resume" />
36+
</RelativeLayout>
37+
</RelativeLayout>
38+
39+
<EditText
40+
android:id="@+id/edit_name"
41+
android:layout_width="match_parent"
42+
android:layout_height="40dp"
43+
android:background="@drawable/edittext_login"
44+
android:hint="请输入您的昵称"
45+
android:gravity="center"
46+
android:layout_marginTop="10dp"
47+
android:layout_marginLeft="10dp"
48+
android:layout_marginRight="10dp"
49+
android:singleLine="true"
50+
android:textColor="@color/greenn"
51+
android:textColorHint="@color/gray"
52+
android:textSize="16sp" />
53+
<Button
54+
android:id="@+id/btn_start"
55+
android:layout_width="match_parent"
56+
android:layout_height="45dp"
57+
android:layout_marginTop="40dp"
58+
android:layout_marginLeft="12dp"
59+
android:layout_marginRight="12dp"
60+
android:background="@drawable/btn_bg_blue"
61+
android:paddingBottom="7dp"
62+
android:paddingTop="7dp"
63+
android:text="开始体验"
64+
android:textColor="@android:color/white"
65+
android:textSize="18sp" />
66+
67+
</LinearLayout>

WeChat/res/layout/activity_login.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
android:layout_height="wrap_content"
2424
android:layout_centerVertical="true"
2525
android:layout_marginLeft="10dp"
26-
android:text="国家和地区"
26+
android:text="@string/countries_and_areas"
2727
android:textColor="#353535"
2828
android:textSize="16sp" />
2929

@@ -99,7 +99,7 @@
9999
android:layout_alignLeft="@id/et_password"
100100
android:layout_centerVertical="true"
101101
android:layout_marginLeft="20dp"
102-
android:text="密码"
102+
android:text="@string/password"
103103
android:textColor="#353535"
104104
android:textSize="16sp" />
105105
</RelativeLayout>

WeChat/res/layout/activity_register.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
android:layout_height="wrap_content"
2424
android:layout_centerVertical="true"
2525
android:layout_marginLeft="10dp"
26-
android:text="国家和地区"
26+
android:text="@string/countries_and_areas"
2727
android:textColor="#353535"
2828
android:textSize="16sp" />
2929

@@ -140,7 +140,7 @@
140140
android:layout_alignLeft="@id/et_password"
141141
android:layout_centerVertical="true"
142142
android:layout_marginLeft="20dp"
143-
android:text="密码"
143+
android:text="@string/password"
144144
android:textColor="#353535"
145145
android:textSize="16sp" />
146146
</RelativeLayout>

WeChat/res/layout/fragment_dicover.xml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
android:drawablePadding="10dp"
2929
android:drawableLeft="@drawable/v2"
3030
android:drawableRight="@drawable/right"
31-
android:text="朋友圈" />
31+
android:text="@string/moments" />
3232
<View
3333
android:background="@color/black2"
3434
android:layout_width="fill_parent"
@@ -49,7 +49,7 @@
4949
android:drawablePadding="10dp"
5050
android:drawableLeft="@drawable/icon_de_saoyisao"
5151
android:drawableRight="@drawable/right"
52-
android:text="扫一扫" />
52+
android:text="@string/scan" />
5353
<View
5454
android:background="@color/black2"
5555
android:layout_width="fill_parent"
@@ -67,7 +67,7 @@
6767
android:drawablePadding="10dp"
6868
android:drawableLeft="@drawable/icon_de_yao"
6969
android:drawableRight="@drawable/right"
70-
android:text="摇一摇" />
70+
android:text="@string/shake2" />
7171
<View
7272
android:background="@color/black2"
7373
android:layout_width="fill_parent"
@@ -87,7 +87,7 @@
8787
android:drawablePadding="10dp"
8888
android:drawableLeft="@drawable/icon_de_nearby"
8989
android:drawableRight="@drawable/right"
90-
android:text="附近的人" />
90+
android:text="@string/people_nearby" />
9191
<View
9292
android:background="@color/black2"
9393
android:layout_width="fill_parent"
@@ -105,7 +105,7 @@
105105
android:drawablePadding="10dp"
106106
android:drawableLeft="@drawable/icon_de_ping"
107107
android:drawableRight="@drawable/right"
108-
android:text="漂流瓶" />
108+
android:text="@string/drift_bottle" />
109109
<View
110110
android:background="@color/black2"
111111
android:layout_width="fill_parent"
@@ -126,7 +126,7 @@
126126
android:drawablePadding="10dp"
127127
android:drawableLeft="@drawable/icon_de_shop"
128128
android:drawableRight="@drawable/right"
129-
android:text="购物" />
129+
android:text="@string/shopping" />
130130
<View
131131
android:background="@color/black2"
132132
android:layout_width="fill_parent"
@@ -144,7 +144,7 @@
144144
android:drawablePadding="10dp"
145145
android:drawableLeft="@drawable/icon_de_game"
146146
android:drawableRight="@drawable/right"
147-
android:text="游戏" />
147+
android:text="@string/games" />
148148
<View
149149
android:background="@color/black2"
150150
android:layout_width="fill_parent"

WeChat/res/layout/fragment_msg.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,5 +29,5 @@
2929
android:layout_width="wrap_content"
3030
android:layout_height="wrap_content"
3131
android:drawableTop="@drawable/no_chat"
32-
android:text="暂时没有新消息" />
32+
android:text="@string/no_msg" />
3333
</RelativeLayout>

WeChat/res/layout/fragment_profile.xml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@
8888
android:drawablePadding="10dp"
8989
android:drawableLeft="@drawable/icon_me_photo"
9090
android:drawableRight="@drawable/right"
91-
android:text="相册" />
91+
android:text="@string/my_posts" />
9292
<View
9393
android:background="@color/black2"
9494
android:layout_width="fill_parent"
@@ -106,7 +106,7 @@
106106
android:drawablePadding="10dp"
107107
android:drawableLeft="@drawable/icon_me_collect"
108108
android:drawableRight="@drawable/right"
109-
android:text="收藏" />
109+
android:text="@string/collection" />
110110
<View
111111
android:background="@color/black2"
112112
android:layout_width="fill_parent"
@@ -125,7 +125,7 @@
125125
android:drawablePadding="10dp"
126126
android:drawableLeft="@drawable/icon_me_money"
127127
android:drawableRight="@drawable/right"
128-
android:text="钱包" />
128+
android:text="@string/wallet" />
129129
<View
130130
android:background="@color/black2"
131131
android:layout_width="fill_parent"
@@ -143,7 +143,7 @@
143143
android:drawablePadding="10dp"
144144
android:drawableLeft="@drawable/icon_me_card"
145145
android:drawableRight="@drawable/right"
146-
android:text="卡包" />
146+
android:text="@string/card_bag" />
147147
<View
148148
android:background="@color/black2"
149149
android:layout_width="fill_parent"
@@ -164,7 +164,7 @@
164164
android:drawablePadding="10dp"
165165
android:drawableLeft="@drawable/icon_me_smail"
166166
android:drawableRight="@drawable/right"
167-
android:text="表情" />
167+
android:text="@string/expression2" />
168168
<View
169169
android:background="@color/black2"
170170
android:layout_width="fill_parent"
@@ -184,7 +184,7 @@
184184
android:drawablePadding="10dp"
185185
android:drawableLeft="@drawable/icon_me_setting"
186186
android:drawableRight="@drawable/right"
187-
android:text="设置" />
187+
android:text="@string/settings" />
188188
<View
189189
android:background="@color/black2"
190190
android:layout_width="fill_parent"

WeChat/res/layout/layout_bottom.xml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
android:layout_below="@id/ib_weixin"
4545
android:layout_centerHorizontal="true"
4646
android:layout_marginTop="3dp"
47-
android:text="微信"
47+
android:text="@string/chat"
4848
android:textColor="#9A9A9A"
4949
android:textSize="12sp" />
5050

@@ -92,7 +92,7 @@
9292
android:layout_below="@id/ib_contact_list"
9393
android:layout_centerHorizontal="true"
9494
android:layout_marginTop="3dp"
95-
android:text="通讯录"
95+
android:text="@string/contacts"
9696
android:textColor="#9A9A9A"
9797
android:textSize="12sp" />
9898

@@ -140,7 +140,7 @@
140140
android:layout_below="@id/ib_find"
141141
android:layout_centerHorizontal="true"
142142
android:layout_marginTop="3dp"
143-
android:text="发现"
143+
android:text="@string/discover"
144144
android:textColor="#9A9A9A"
145145
android:textSize="12sp" />
146146
<TextView
@@ -183,7 +183,7 @@
183183
android:layout_below="@id/ib_profile"
184184
android:layout_centerHorizontal="true"
185185
android:layout_marginTop="3dp"
186-
android:text=""
186+
android:text="@string/me"
187187
android:textColor="#9A9A9A"
188188
android:textSize="12sp" />
189189
</RelativeLayout>

WeChat/res/layout/title_popup.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@
77

88
<ListView
99
android:id="@+id/title_list"
10-
android:layout_width="140dp"
10+
android:layout_width="150dp"
1111
android:layout_height="fill_parent"
1212
android:dividerHeight="1dp"
1313
android:divider="#3E3E3E"
14-
android:paddingLeft="10dp"
14+
android:paddingLeft="5dp"
1515
android:paddingRight="5dp"
1616
android:scrollingCache="false" />
1717

0 commit comments

Comments
 (0)
0