Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[Android] Externalize the device compatibility warning strings.
  • Loading branch information
lioncash committed Nov 15, 2013
1 parent 4bb22aa commit 8c7d1af
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 3 deletions.
4 changes: 4 additions & 0 deletions Source/Android/res/values-ja/strings.xml
Expand Up @@ -26,6 +26,10 @@
<string name="settings">設定</string>
<string name="about">について</string>

<!-- Game List Activity - Device Compatibility AlertDialog -->
<string name="device_compat_warning">デバイスの互換性の警告</string>
<string name="device_compat_warning_msg">この電話は、NEON拡張をサポートしていません。 おそらくDolphinを実行することはできません。\nあなたはとにかくそれを実行してみますか?</string>

<!-- Game List Fragment -->
<string name="file_clicked">クリックされたファイル: %1$s</string>

Expand Down
4 changes: 4 additions & 0 deletions Source/Android/res/values/strings.xml
Expand Up @@ -26,6 +26,10 @@
<string name="settings">Settings</string>
<string name="about">About</string>

<!-- Game List Activity - Device Compatibility AlertDialog -->
<string name="device_compat_warning">Device Compatibility Warning</string>
<string name="device_compat_warning_msg">Your phone doesn\'t support NEON which makes it incapable of running Dolphin Mobile?\nDo you want to try anyway?</string>

<!-- Game List Fragment -->
<string name="file_clicked">File clicked: %1$s</string>

Expand Down
Expand Up @@ -107,7 +107,7 @@
/**
* Returns if the phone supports NEON or not
*
* @return if it supports NEON
* @return true if it supports NEON, false otherwise.
*/
public static native boolean SupportsNEON();

Expand Down
Expand Up @@ -112,8 +112,8 @@ public void onDrawerOpened(View drawerView) {
if (Build.CPU_ABI.contains("arm") && !NativeLibrary.SupportsNEON())
{
AlertDialog.Builder builder = new AlertDialog.Builder(this);
builder.setTitle("ALERT!");
builder.setMessage("Your phone doesn't support NEON which makes it incapable of running Dolphin Mobile?\nDo you want to try anyway?");
builder.setTitle(R.string.device_compat_warning);
builder.setMessage(R.string.device_compat_warning_msg);
builder.setPositiveButton(R.string.yes, new DialogInterface.OnClickListener() {
public void onClick(DialogInterface dialog, int which) {
// Do Nothing. Just create the Yes button
Expand Down

0 comments on commit 8c7d1af

Please sign in to comment.