From a768f22ddaa77225508174ef310bbc6367877fd3 Mon Sep 17 00:00:00 2001 From: artdeell Date: Thu, 2 Mar 2023 16:33:20 +0300 Subject: [PATCH] Make "Add profile" string localizable --- .../main/java/net/kdt/pojavlaunch/profiles/ProfileAdapter.java | 2 +- app_pojavlauncher/src/main/res/values/strings.xml | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/app_pojavlauncher/src/main/java/net/kdt/pojavlaunch/profiles/ProfileAdapter.java b/app_pojavlauncher/src/main/java/net/kdt/pojavlaunch/profiles/ProfileAdapter.java index 367baea65..692a1412c 100644 --- a/app_pojavlauncher/src/main/java/net/kdt/pojavlaunch/profiles/ProfileAdapter.java +++ b/app_pojavlauncher/src/main/java/net/kdt/pojavlaunch/profiles/ProfileAdapter.java @@ -35,7 +35,7 @@ public class ProfileAdapter extends BaseAdapter { mProfiles = new HashMap<>(LauncherProfiles.mainProfileJson.profiles); if(enableCreateButton) { mCreateProfile = new MinecraftProfile(); - mCreateProfile.name = "Create new profile"; + mCreateProfile.name = context.getString(R.string.create_profile); mCreateProfile.lastVersionId = null; } mProfileList = new ArrayList<>(Arrays.asList(mProfiles.keySet().toArray(new String[0]))); diff --git a/app_pojavlauncher/src/main/res/values/strings.xml b/app_pojavlauncher/src/main/res/values/strings.xml index 1befca042..29e9c12bd 100644 --- a/app_pojavlauncher/src/main/res/values/strings.xml +++ b/app_pojavlauncher/src/main/res/values/strings.xml @@ -352,4 +352,5 @@ PojavLauncher requires an attached external storage. Please reconnect your storage and restart the app. Use only capital letters in button labels Disable this if you want to use lowercase letters in your controls + Create new profile