Version number automatic

This commit is contained in:
Karola Marky 2017-06-25 21:50:51 +02:00
parent 116973865a
commit ca7cc3bb03
9 changed files with 34 additions and 6 deletions

View file

@ -8,6 +8,7 @@ import android.text.method.LinkMovementMethod;
import android.view.MenuItem;
import android.widget.TextView;
import org.secuso.privacyfriendlysudoku.ui.view.BuildConfig;
import org.secuso.privacyfriendlysudoku.ui.view.R;
public class AboutActivity extends BaseActivity {
@ -19,6 +20,7 @@ public class AboutActivity extends BaseActivity {
((TextView)findViewById(R.id.secusoWebsite)).setMovementMethod(LinkMovementMethod.getInstance());
((TextView)findViewById(R.id.githubURL)).setMovementMethod(LinkMovementMethod.getInstance());
((TextView)findViewById(R.id.textFieldVersionName)).setText(BuildConfig.VERSION_NAME);
android.support.v7.app.ActionBar actionBar = getSupportActionBar();
actionBar.setTitle(R.string.menu_about);

View file

@ -42,14 +42,33 @@
android:layout_marginTop="15dp"
android:text="@string/app_name_long" />
<TextView
android:id="@+id/textFieldVersion"
<RelativeLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal"
android:layout_marginTop="5dp"
android:gravity="center">
<TextView
android:id="@+id/textFieldVersion"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="5dp"
android:text="@string/version_number" />
<TextView
android:id="@+id/textFieldVersionName"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="4dp"
android:layout_marginLeft="4dp"
android:layout_marginTop="5dp"
android:layout_toRightOf="@+id/textFieldVersion"
android:layout_toEndOf="@+id/textFieldVersion" />
</RelativeLayout>
<TextView
android:id="@+id/textFieldAuthor"
android:layout_width="wrap_content"

View file

@ -14,7 +14,8 @@
<!-- About Page -->
<string name="about_affiliation">In Zusammenarbeit mit:</string>
<string name="about_author">Autor:</string>
<string name="about_author">Autoren:</string>
<string name="version_number">Version:</string>
<string name="about_author_contributors">und Mitwirkende.</string>
<string name="privacy_friendly">Diese App gehört zur Gruppe der Privacy Friendly Apps entwickelt von der Technischen Universität Darmstadt. Quelltext lizenziert unter GPLv3. Bilder copyright TU Darmstadt und Google Inc.</string>
<string name="more_info">Weitere Infos unter:</string>

View file

@ -80,6 +80,7 @@
<string name="pref_timer_reset">Resetear Tiempo</string>
<string name="pref_timer_reset_summary">El tiempo se resetea tambien, cuando el tablero se resetea.</string>
<string name="welcome">Bienvenido a Privacy Friendly Sudoku.</string>
<string name="version_number">Versión:</string>
<string name="about_author_contributors">" "</string>
<string name="okay">Ok</string>
<string name="view_help">Ayuda</string>

View file

@ -81,6 +81,7 @@
<string name="pref_timer_reset_summary">Aussi réinitialiser le minuteur en réinitialisant le jeux en cours.</string>
<string name="welcome">Bienvenue à Privacy Friendly Sudoku.</string>
<string name="about_author_contributors">" "</string>
<string name="version_number">Version:</string>
<string name="okay">Ok</string>
<string name="view_help">Aide</string>
</resources>

View file

@ -53,6 +53,7 @@
<!-- ###ABOUT### -->
<string name="about_author">作者:</string>
<string name="about_author_contributors">と貢献者。</string>
<string name="version_number">バージョン</string>
<string name="about_affiliation">提携</string>
<string name="privacy_friendly">このアプリケーションは、ダルムシュタット工科大学 (Technische Universität Darmstadt, Germany) が開発したプライバシーフレンドリーアプリのグループに属しています。 ソースコードは GPLv3 の下でライセンスされます。画像の著作権は TU Darmstadt および Google Inc.</string>
<string name="more_info">さらに詳しい情報は以下でご覧ください:</string>

View file

@ -81,6 +81,7 @@
<string name="pref_timer_reset_summary">Сброс таймера при сбросе доски.</string>
<string name="welcome">Добро пожаловать в Privacy Friendly Sudoku.</string>
<string name="about_author_contributors">" "</string>
<string name="version_number">Версия:</string>
<string name="okay">Ok</string>
<string name="view_help">Помощь</string>
</resources>

View file

@ -8,6 +8,7 @@
<string name="difficulty_easy">简单</string>
<string name="difficulty_hard"></string>
<string name="difficulty_moderate">普通</string>
<string name="difficulty_challenge">挑战</string>
<string name="gametype_unspecified">未详细说明的</string>
<string name="help_delete">删除</string>
<string name="win_text">祝贺!</string>
@ -82,5 +83,6 @@
<string name="about_author_contributors">" "</string>
<string name="okay">Ok</string>
<string name="view_help">帮助</string>
<string name="version_number">Version</string>
</resources>

View file

@ -57,8 +57,8 @@
<!-- ###ABOUT### -->
<string name="app_name_long" translatable="false">Privacy Friendly Sudoku</string>
<string name="version_number" translatable="false">2.1.1</string>
<string name="about_author">Author:</string>
<string name="version_number">Version:</string>
<string name="about_author">Authors:</string>
<string name="about_author_names" translatable="false">Christopher Beckmann, Timm Lippert</string>
<string name="about_author_contributors">and contributors.</string>
<string name="about_affiliation">In affiliation with</string>