Skip to content

Commit

Permalink
Added: i18n
Browse files Browse the repository at this point in the history
  • Loading branch information
hzhuangqingbin committed Sep 17, 2014
1 parent 5d0a85c commit 30f676d
Show file tree
Hide file tree
Showing 14 changed files with 284 additions and 184 deletions.
11 changes: 4 additions & 7 deletions AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,28 +11,25 @@
<activity
android:name=".activity.MainPageActivity"
android:label="@string/app_name"
android:configChanges="orientation|keyboardHidden"
android:configChanges="orientation|keyboardHidden"
android:launchMode="singleInstance" > <!-- 防止程序横屏以后重新启动 -->
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<!-- <category android:name="android.intent.category.DEFAULT" /> -->
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity
android:name=".activity.SystemActivity"
android:label="@string/app_name2" >
</activity>


<activity
android:name=".activity.SettingsActivity"
android:label="@string/app_name4" >
android:label="@string/setting" >
</activity>

<service
android:name="com.netease.qa.emmagee.service.EmmageeService">
</service>
</application>

<uses-permission android:name="android.permission.SYSTEM_ALERT_WINDOW" />
<uses-permission android:name="android.permission.MOUNT_UNMOUNT_FILESYSTEMS"/>
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
Expand Down
137 changes: 82 additions & 55 deletions gen/com/netease/qa/emmagee/R.java
Original file line number Diff line number Diff line change
Expand Up @@ -18,64 +18,91 @@ public static final class drawable {
public static final int meminfo=0x7f020004;
}
public static final class id {
public static final int Lin=0x7f050003;
public static final int b=0x7f050001;
public static final int cpu1=0x7f050017;
public static final int cpu2=0x7f050018;
public static final int cpu_info=0x7f050000;
public static final int floating=0x7f050015;
public static final int floating_Window=0x7f050014;
public static final int image=0x7f05000a;
public static final int img1=0x7f050002;
public static final int memoryinfo=0x7f05000e;
public static final int memtotal=0x7f050005;
public static final int memunused=0x7f050004;
public static final int password=0x7f050011;
public static final int processList=0x7f05000c;
public static final int rb=0x7f050009;
public static final int recipients=0x7f050013;
public static final int save=0x7f050016;
public static final int sender=0x7f050010;
public static final int smtp=0x7f050012;
public static final int stop=0x7f050008;
public static final int test=0x7f05000d;
public static final int text=0x7f05000b;
public static final int time=0x7f05000f;
public static final int traffic=0x7f050006;
public static final int wifi=0x7f050007;
public static final int Lin=0x7f050001;
public static final int floating=0x7f050012;
public static final int floating_Window=0x7f050011;
public static final int image=0x7f050008;
public static final int img1=0x7f050000;
public static final int memtotal=0x7f050003;
public static final int memunused=0x7f050002;
public static final int password=0x7f05000e;
public static final int processList=0x7f05000a;
public static final int rb=0x7f050007;
public static final int recipients=0x7f050010;
public static final int save=0x7f050013;
public static final int sender=0x7f05000d;
public static final int smtp=0x7f05000f;
public static final int stop=0x7f050006;
public static final int test=0x7f05000b;
public static final int text=0x7f050009;
public static final int time=0x7f05000c;
public static final int traffic=0x7f050004;
public static final int wifi=0x7f050005;
}
public static final class layout {
public static final int cpu=0x7f030000;
public static final int floating=0x7f030001;
public static final int list_item=0x7f030002;
public static final int mainpage=0x7f030003;
public static final int memory=0x7f030004;
public static final int settings=0x7f030005;
public static final int systemstat=0x7f030006;
public static final int floating=0x7f030000;
public static final int list_item=0x7f030001;
public static final int mainpage=0x7f030002;
public static final int settings=0x7f030003;
}
public static final class string {
public static final int app_name=0x7f040001;
public static final int app_name1=0x7f040002;
public static final int app_name2=0x7f040003;
public static final int app_name3=0x7f040004;
public static final int app_name4=0x7f040005;
public static final int bg=0x7f040009;
public static final int closewifi=0x7f040015;
public static final int collect=0x7f04000c;
public static final int cpu=0x7f040008;
public static final int hello=0x7f040000;
public static final int memoryinfo=0x7f04000b;
public static final int ok=0x7f040013;
public static final int openwifi=0x7f040014;
public static final int password=0x7f04000f;
public static final int receiver=0x7f04000d;
public static final int seconds=0x7f040011;
public static final int sender=0x7f04000e;
public static final int smtp=0x7f040010;
public static final int start=0x7f040007;
public static final int stopTest=0x7f040016;
public static final int system=0x7f040006;
public static final int testmemory=0x7f04000a;
public static final int window=0x7f040012;
public static final int android_system_version=0x7f04001a;
public static final int app_monitor_title=0x7f040014;
public static final int app_name=0x7f040000;
public static final int app_used_cpu_ratio=0x7f040020;
public static final int battery=0x7f040023;
public static final int calculating=0x7f04000d;
public static final int can_not_start_app_toast=0x7f04002c;
public static final int cancel=0x7f040038;
public static final int choose_app_toast=0x7f04002d;
public static final int close_wifi=0x7f04000f;
public static final int collecting_frequency=0x7f040005;
public static final int comment1=0x7f040028;
public static final int comment2=0x7f040029;
public static final int comment3=0x7f04002a;
public static final int comment4=0x7f04002b;
public static final int confirm=0x7f040039;
public static final int cpu_type=0x7f040019;
public static final int current=0x7f040024;
public static final int datetime=0x7f04001c;
public static final int exit=0x7f040002;
public static final int floating_window=0x7f04000b;
public static final int format_incorrect_format=0x7f040032;
public static final int info_incomplete_toast=0x7f040033;
public static final int mem_size=0x7f040018;
public static final int mobile_free_mem=0x7f04001f;
public static final int mobile_type=0x7f04001b;
public static final int ok=0x7f040037;
public static final int open_wifi=0x7f04000e;
public static final int password=0x7f040008;
public static final int process_free_mem=0x7f040010;
public static final int process_name=0x7f040016;
public static final int process_overall_cpu=0x7f040011;
public static final int process_package=0x7f040015;
public static final int process_pid=0x7f040017;
public static final int receiver=0x7f04000a;
public static final int receiver_mail_toast=0x7f040031;
public static final int save=0x7f04000c;
public static final int save_success_toast=0x7f04002f;
public static final int seconds=0x7f040006;
public static final int send_fail_toast=0x7f040036;
public static final int send_success_toast=0x7f040035;
public static final int sender=0x7f040007;
public static final int sender_mail_toast=0x7f040030;
public static final int setting=0x7f040001;
public static final int smtp=0x7f040009;
public static final int start_test=0x7f040003;
public static final int start_time=0x7f040012;
public static final int stat_error=0x7f040027;
public static final int stop_test=0x7f040004;
public static final int temperature=0x7f040025;
public static final int test_result_file_toast=0x7f04002e;
public static final int total_usage=0x7f040013;
public static final int total_used_cpu_ratio=0x7f040021;
public static final int traffic=0x7f040022;
public static final int used_mem_PSS=0x7f04001d;
public static final int used_mem_ratio=0x7f04001e;
public static final int voltage=0x7f040026;
public static final int wifi_fail_toast=0x7f040034;
}
}
17 changes: 0 additions & 17 deletions res/layout/cpu.xml

This file was deleted.

2 changes: 1 addition & 1 deletion res/layout/floating.xml
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@
android:layout_height="40dp" />
<Button
android:id="@+id/stop"
android:text="停止测试"
android:text="@string/stop_test"
android:textSize = "12dp"
android:layout_width="80dp"
android:layout_height="40dp" />
Expand Down
2 changes: 1 addition & 1 deletion res/layout/mainpage.xml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
android:layout_height="wrap_content"
android:layout_marginBottom="6dp"
android:gravity="center_horizontal"
android:text="@string/bg" />
android:text="@string/start_test" />
</LinearLayout>

</LinearLayout>
12 changes: 0 additions & 12 deletions res/layout/memory.xml

This file was deleted.

6 changes: 3 additions & 3 deletions res/layout/settings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/collect" />
android:text="@string/collecting_frequency" />

<!-- 允许输入数据为正整数 -->
<!-- android:numeric="integer" -->
Expand Down Expand Up @@ -109,7 +109,7 @@
android:id="@+id/floating_Window"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/window" />
android:text="@string/floating_window" />

<CheckBox
android:id="@+id/floating"
Expand All @@ -135,7 +135,7 @@
android:layout_alignParentBottom="true"
android:layout_centerHorizontal="true"
android:gravity="center_horizontal"
android:text="@string/ok" />
android:text="@string/save" />
</RelativeLayout>

</LinearLayout>
16 changes: 0 additions & 16 deletions res/layout/systemstat.xml

This file was deleted.

69 changes: 69 additions & 0 deletions res/values-en/strings.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>

<string name="app_name">Emmagee</string>
<string name="setting">Setting</string>
<string name="exit">Exit</string>

<string name="start_test">Start Test</string>
<string name="stop_test">Stop Test</string>

<string name="collecting_frequency">Collecting Frequency:</string>
<string name="seconds">Seconds</string>
<string name="sender">Sender:</string>
<string name="password">Password:</string>
<string name="smtp">SMTP Server:</string>
<string name="receiver">Receiver(Space division multiple people):</string>
<string name="floating_window">Whether to display the floating window</string>
<string name="save">Save</string>

<string name="calculating">Calculating, please waiting...</string>
<string name="open_wifi">Open Wifi</string>
<string name="close_wifi">Close wifi</string>
<string name="process_free_mem">Process/Free Memory:</string>
<string name="process_overall_cpu">Process/Total CPU:</string>
<string name="start_time">Start Time:</string>
<string name="total_usage">Total usage</string>
<string name="app_monitor_title">The Monitor Information of Specified Process</string>
<string name="process_package">Process Package</string>
<string name="process_name">Process name</string>
<string name="process_pid">Process PID</string>
<string name="mem_size">Mobile Memory Size</string>
<string name="cpu_type">Mobile CPU Type</string>
<string name="android_system_version">Android System Version</string>
<string name="mobile_type">Mobile Type</string>
<string name="datetime">Datetime</string>
<string name="used_mem_PSS">App Used Memory(PSS)</string>
<string name="used_mem_ratio">App Used Memory Ratio比</string>
<string name="mobile_free_mem">Free Memory</string>
<string name="app_used_cpu_ratio">App Used CPU Ratio</string>
<string name="total_used_cpu_ratio">Total Used CPU Ratio</string>
<string name="traffic">Traffic</string>
<string name="battery">Battery</string>
<string name="current">Current</string>
<string name="temperature">Temperature</string>
<string name="voltage">Voltage</string>
<string name="stat_error">Stat Error</string>

<string name="comment1">Comment:Some known devices are not supported:https://github.com/NetEase/Emmagee/wiki/Some-devices-are-not-supported</string>
<string name="comment2">Current:less then 0 is discharging and greater then 0 is charging.</string>
<string name="comment3">Start time is blank means the app have started or failed to get the start time.</string>
<string name="comment4">N/A means not supported or data exception.</string>

<string name="can_not_start_app_toast">The app can not start</string>
<string name="choose_app_toast">Please select the test app</string>
<string name="test_result_file_toast">The test result file:</string>
<string name="save_success_toast">Saved successfully</string>
<string name="sender_mail_toast">Sender email</string>
<string name="receiver_mail_toast">Receiver email</string>
<string name="format_incorrect_format">\'s format is incorrect</string>
<string name="info_incomplete_toast">The email setting is incomplete, please finish them.</string>
<string name="wifi_fail_toast">Operate wifi failed</string>
<string name="send_success_toast">The test result have send to your email.</string>
<string name="send_fail_toast">The test result have not send to your email, saved at:</string>

<string name="ok">OK</string>
<string name="cancel">Cancel</string>
<string name="confirm">Are you sure to exit?</string>

</resources>
Loading

0 comments on commit 30f676d

Please sign in to comment.