1
0
forked from GitHub/gf-core

rename HLCompiler to GFTranslator

This commit is contained in:
kr.angelov
2014-12-10 13:21:18 +00:00
parent 166402f7e5
commit a2fb1bf5f2
14 changed files with 13 additions and 13 deletions

View File

@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>HLCompiler</name>
<name>GFTranslator</name>
<comment></comment>
<projects>
</projects>

View File

@@ -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" >

View File

@@ -11,4 +11,4 @@
#proguard.config=${sdk.dir}/tools/proguard/proguard-android.txt:proguard-project.txt
# Project target.
target=android-21
target=android-20

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.5 KiB

After

Width:  |  Height:  |  Size: 2.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.1 KiB

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.2 KiB

After

Width:  |  Height:  |  Size: 3.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.6 KiB

After

Width:  |  Height:  |  Size: 6.1 KiB

View File

@@ -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>

View File

@@ -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());

View File

@@ -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

View File

@@ -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() {

View File

@@ -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;

View File

@@ -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();
}

View File

@@ -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;