rename HLCompiler to GFTranslator
@@ -1,6 +1,6 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<projectDescription>
|
||||
<name>HLCompiler</name>
|
||||
<name>GFTranslator</name>
|
||||
<comment></comment>
|
||||
<projects>
|
||||
</projects>
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
package="org.grammaticalframework.ui.android"
|
||||
android:versionCode="2"
|
||||
android:versionName="1.0"
|
||||
android:versionCode="3"
|
||||
android:versionName="1.1"
|
||||
android:installLocation="auto" >
|
||||
|
||||
<uses-sdk
|
||||
@@ -15,7 +15,7 @@
|
||||
android:allowBackup="true"
|
||||
android:icon="@drawable/ic_app"
|
||||
android:label="@string/app_name"
|
||||
android:theme="@style/AppTheme" android:name="HLCompiler">
|
||||
android:theme="@style/AppTheme" android:name="GFTranslator">
|
||||
<activity
|
||||
android:name=".MainActivity"
|
||||
android:label="@string/app_name" >
|
||||
|
||||
@@ -11,4 +11,4 @@
|
||||
#proguard.config=${sdk.dir}/tools/proguard/proguard-android.txt:proguard-project.txt
|
||||
|
||||
# Project target.
|
||||
target=android-21
|
||||
target=android-20
|
||||
|
||||
|
Before Width: | Height: | Size: 1.5 KiB After Width: | Height: | Size: 2.4 KiB |
|
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 1.5 KiB |
|
Before Width: | Height: | Size: 2.2 KiB After Width: | Height: | Size: 3.6 KiB |
|
Before Width: | Height: | Size: 3.6 KiB After Width: | Height: | Size: 6.1 KiB |
@@ -1,6 +1,6 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
<string name="app_name">Human Language Compiler</string>
|
||||
<string name="app_name">GF Offline Translator</string>
|
||||
|
||||
<string name="microphone">Microphone</string>
|
||||
<string name="switch_languages">Switch languages</string>
|
||||
|
||||
@@ -33,7 +33,7 @@ public class AlternativesActivity extends ListActivity {
|
||||
super.onCreate(savedInstanceState);
|
||||
setContentView(R.layout.activity_lexical_entry);
|
||||
|
||||
mTranslator = ((HLCompiler) getApplicationContext()).getTranslator();
|
||||
mTranslator = ((GFTranslator) getApplicationContext()).getTranslator();
|
||||
|
||||
mShowLanguageView = (LanguageSelector) findViewById(R.id.show_language);
|
||||
mShowLanguageView.setLanguages(mTranslator.getAvailableLanguages());
|
||||
|
||||
@@ -2,7 +2,7 @@ package org.grammaticalframework.ui.android;
|
||||
|
||||
import android.app.Application;
|
||||
|
||||
public class HLCompiler extends Application {
|
||||
public class GFTranslator extends Application {
|
||||
private Translator mTranslator;
|
||||
|
||||
@Override
|
||||
@@ -103,7 +103,7 @@ public class MainActivity extends Activity {
|
||||
|
||||
mTts = new TTS(this);
|
||||
|
||||
mTranslator = ((HLCompiler) getApplicationContext()).getTranslator();
|
||||
mTranslator = ((GFTranslator) getApplicationContext()).getTranslator();
|
||||
|
||||
mSourceLanguageView.setLanguages(mTranslator.getAvailableLanguages());
|
||||
mSourceLanguageView.setOnLanguageSelectedListener(new OnLanguageSelectedListener() {
|
||||
|
||||
@@ -41,7 +41,7 @@ public class TranslatorInputMethodService extends InputMethodService
|
||||
public void onCreate() {
|
||||
super.onCreate();
|
||||
|
||||
mTranslator = ((HLCompiler) getApplicationContext()).getTranslator();
|
||||
mTranslator = ((GFTranslator) getApplicationContext()).getTranslator();
|
||||
|
||||
mSymbolsPage1Keyboard = null;
|
||||
mSymbolsPage2Keyboard = null;
|
||||
|
||||
@@ -24,7 +24,7 @@ public class TranslatorKeyboard extends Keyboard {
|
||||
public TranslatorKeyboard(Context context, int xmlLayoutResId, int modeId) {
|
||||
super(context, xmlLayoutResId, modeId);
|
||||
|
||||
mTranslator = ((HLCompiler) context.getApplicationContext()).getTranslator();
|
||||
mTranslator = ((GFTranslator) context.getApplicationContext()).getTranslator();
|
||||
updateLanguageKeyLabels();
|
||||
}
|
||||
|
||||
|
||||
@@ -20,12 +20,12 @@ public class TranslatorKeyboardView extends KeyboardView {
|
||||
|
||||
public TranslatorKeyboardView(Context context, AttributeSet attrs) {
|
||||
super(context, attrs);
|
||||
mTranslator = ((HLCompiler) context.getApplicationContext()).getTranslator();
|
||||
mTranslator = ((GFTranslator) context.getApplicationContext()).getTranslator();
|
||||
}
|
||||
|
||||
public TranslatorKeyboardView(Context context, AttributeSet attrs, int defStyle) {
|
||||
super(context, attrs, defStyle);
|
||||
mTranslator = ((HLCompiler) context.getApplicationContext()).getTranslator();
|
||||
mTranslator = ((GFTranslator) context.getApplicationContext()).getTranslator();
|
||||
}
|
||||
|
||||
private PopupWindow mLanguagesPopup = null;
|
||||
|
||||