mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-03-14 23:56:07 +09:00
Former-commit-id: 7a98df93b4ef50b47283abcd99576d6fbefc9cc5 Former-commit-id: db6e34417ccf84e59ba68547f30459cb4b188eb7
25 lines
611 B
Kotlin
25 lines
611 B
Kotlin
package net.torvald.terrarum.console
|
|
|
|
import net.torvald.terrarum.langpack.Lang
|
|
import net.torvald.terrarum.Terrarum
|
|
|
|
/**
|
|
* Created by minjaesong on 16-01-22.
|
|
*/
|
|
class GetLocale : ConsoleCommand {
|
|
override fun execute(args: Array<String>) {
|
|
Echo().execute(
|
|
"Locale: "
|
|
+ Lang["MENU_LANGUAGE_THIS"]
|
|
+ " ("
|
|
+ Lang["MENU_LANGUAGE_THIS_EN"]
|
|
+ ")")
|
|
}
|
|
|
|
override fun printUsage() {
|
|
val echo = Echo()
|
|
echo.execute("Usage: getlocale")
|
|
echo.execute("Get name of locale currently using.")
|
|
}
|
|
}
|