Make Per-Version config localizable

This commit is contained in:
artdeell 2021-07-26 16:49:48 +03:00
parent 2aba383d45
commit 7c0b6812bf
3 changed files with 6 additions and 4 deletions

View File

@ -50,7 +50,7 @@ public class PerVersionConfigDialog{
jvmArgsEditText = v.findViewById(R.id.pvc_jvmArgs);
AlertDialog.Builder builder = new AlertDialog.Builder(ctx);
builder.setView(v);
builder.setTitle("Per-version settings");
builder.setTitle(R.string.pvc_title);
builder.setNegativeButton(android.R.string.cancel,(dialogInterface,i)->dialogInterface.dismiss());
builder.setPositiveButton(android.R.string.ok,this::save);
dialog = builder.create();

View File

@ -14,7 +14,7 @@
android:layout_marginTop="8dp"
android:layout_marginEnd="8dp"
android:ems="10"
android:hint="JVM arguments"
android:hint="@string/pvc_jvmArgs"
android:inputType="textPersonName"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
@ -28,7 +28,7 @@
android:layout_marginTop="8dp"
android:layout_marginEnd="8dp"
android:ems="10"
android:hint="Game directory"
android:hint="@string/pvc_gameDirectory"
android:inputType="textPersonName"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"

View File

@ -236,5 +236,7 @@
<string name="multirt_nocompartiblert">Can\'t find any compartible Java Runtime</string>
<string name="compat_117_message">Minecraft 21w10a+ requires the OpenGL 3.2 core profile. Sadly, GL4ES wrapper doesn\'t fully support it at the moment, but there are some additional resources you can install to run these versions. Press OK to confirm installation, and press Cancel to abort launch.</string>
<string name="pvc_gameDirectory">Game directory</string>
<string name="pvc_jvmArgs">JVM arguments</string>
<string name="pvc_title">Per-version settings</string>
</resources>