package jwtc.android.chess;

import java.util.Locale;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.MenuItem;
import android.view.Window;
import android.webkit.WebView;

public class HtmlActivity extends MyBaseActivity {

	public static String HELP_MODE = "HELP_MODE";

	private WebView _webview;
	private String _lang;

	/** Called when the activity is first created. */
	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);

		setContentView(R.layout.help);

		this.makeActionOverflowMenuShown();
		// html assets localization
		if (Locale.getDefault().getLanguage().equals("it")) {
			_lang = "it";
		} else {
			_lang = "en";
		}
		_webview = (WebView) findViewById(R.id.WebViewHelp);

	}

	@Override
	protected void onResume() {
		super.onResume();

		final Intent intent = getIntent();
		// final Uri uri = intent.getData();

		Bundle extras = intent.getExtras();
		if (extras != null) {
			String s = extras.getString(HELP_MODE);

			_webview.loadUrl("file:///android_asset/" + s + "-" + _lang
					+ ".html");
		}
	}
}

@@ -731,16 +731,98 @@
  %22it%22;%0D%0A
+%09%09%7D else if (Locale.getDefault().getLanguage().equals(%22es%22)) %7B%0D%0A%09%09%09_lang = %22es%22;%0D%0A
 %09%09%7D else

update HtmlAcitivity for Spanish