Add crowdin link

This commit is contained in:
Thomas 2020-09-19 13:07:39 +02:00
parent 13baaccd81
commit 645c9fa240
2 changed files with 21 additions and 0 deletions

View File

@ -65,6 +65,17 @@ public class AboutActivity extends AppCompatActivity {
startActivity(browserIntent);
});
Button translation = findViewById(R.id.translation);
if (BuildConfig.full_instances) {
translation.setVisibility(View.VISIBLE);
} else {
translation.setVisibility(View.GONE);
}
translation.setOnClickListener(view -> {
Intent browserIntent = new Intent(Intent.ACTION_VIEW, Uri.parse("https://crowdin.com/project/tubelab"));
startActivity(browserIntent);
});
//App Name:
TextView app_name = findViewById(R.id.app_name);
app_name.setText(R.string.app_name);

View File

@ -284,5 +284,15 @@
android:text="GPL3"
tools:ignore="HardcodedText" />
</LinearLayout>
<Button
android:id="@+id/translation"
style="@style/Widget.AppCompat.Button.Colored"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal"
android:layout_marginTop="10dp"
android:text="Translate the app"
tools:ignore="HardcodedText" />
</LinearLayout>
</ScrollView>