* add String-2-Locale helper function
This commit is contained in:
parent
178151abd8
commit
ae6cae50d8
|
@ -9,6 +9,7 @@ import java.nio.file.attribute.BasicFileAttributeView;
|
|||
import java.nio.file.attribute.BasicFileAttributes;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
import java.util.Locale;
|
||||
import java.util.regex.Matcher;
|
||||
|
||||
import net.filebot.util.FileUtilities;
|
||||
|
@ -330,4 +331,8 @@ public class ExpressionFormatMethods {
|
|||
return new File(parent, self);
|
||||
}
|
||||
|
||||
public static Locale toLocale(String self) {
|
||||
return Locale.forLanguageTag(self);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue