Changes type of dataFolder to File
This commit is contained in:
parent
7cd9ae087a
commit
1c926413d0
@ -49,7 +49,7 @@ public final class Translator {
|
|||||||
* @param dataFolder <p>The data folder to load custom strings from</p>
|
* @param dataFolder <p>The data folder to load custom strings from</p>
|
||||||
* @param selectedLanguage <p>The currently selected language</p>
|
* @param selectedLanguage <p>The currently selected language</p>
|
||||||
*/
|
*/
|
||||||
public void loadLanguages(String dataFolder, String selectedLanguage) {
|
public void loadLanguages(File dataFolder, String selectedLanguage) {
|
||||||
backupTranslatedMessages = loadTranslatedMessages("en");
|
backupTranslatedMessages = loadTranslatedMessages("en");
|
||||||
translatedMessages = loadCustomTranslatedMessages(dataFolder, selectedLanguage);
|
translatedMessages = loadCustomTranslatedMessages(dataFolder, selectedLanguage);
|
||||||
if (translatedMessages == null) {
|
if (translatedMessages == null) {
|
||||||
@ -101,7 +101,7 @@ public final class Translator {
|
|||||||
* @param language <p>The selected language</p>
|
* @param language <p>The selected language</p>
|
||||||
* @return <p>The loaded translated strings, or null if no custom language file exists</p>
|
* @return <p>The loaded translated strings, or null if no custom language file exists</p>
|
||||||
*/
|
*/
|
||||||
public Map<TranslatableMessage, String> loadCustomTranslatedMessages(String dataFolder, String language) {
|
public Map<TranslatableMessage, String> loadCustomTranslatedMessages(File dataFolder, String language) {
|
||||||
if (dataFolder == null) {
|
if (dataFolder == null) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user