Make "Add profile" string localizable

This commit is contained in:
artdeell
2023-03-02 16:33:20 +03:00
parent 641402c251
commit a768f22dda
2 changed files with 2 additions and 1 deletions

View File

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

View File

@@ -352,4 +352,5 @@
<string name="storage_required">PojavLauncher requires an attached external storage. Please reconnect your storage and restart the app.</string>
<string name="mcl_setting_title_buttonallcaps">Use only capital letters in button labels</string>
<string name="mcl_setting_subtitle_buttonallcaps">Disable this if you want to use lowercase letters in your controls</string>
<string name="create_profile">Create new profile</string>
</resources>