diff options
-rw-r--r-- | server/libs/lua53/os.lni | 2 | ||||
-rw-r--r-- | server/locale/en-US/libs/lua53/os.lni | 33 |
2 files changed, 33 insertions, 2 deletions
diff --git a/server/libs/lua53/os.lni b/server/libs/lua53/os.lni index e889bf2a..f13c83b6 100644 --- a/server/libs/lua53/os.lni +++ b/server/libs/lua53/os.lni @@ -116,13 +116,13 @@ type = 'string' name = 'category' type = 'string' optional = 'self' -default = 'all' [[.returns]] name = 'locale' type = 'string' [[.enums]] name = 'category' enum = 'all' +default = true [[.enums]] name = 'category' enum = 'collate' diff --git a/server/locale/en-US/libs/lua53/os.lni b/server/locale/en-US/libs/lua53/os.lni index 5cecc8d8..7a4591a7 100644 --- a/server/locale/en-US/libs/lua53/os.lni +++ b/server/locale/en-US/libs/lua53/os.lni @@ -1 +1,32 @@ -[os] +[clock] +description = 'Returns an approximation of the amount in seconds of CPU time used by the program.' + +[data] +description = 'Returns a string or a table containing date and time, formatted according to the given string `format`.' + +[difftime] +description = 'Returns the difference, in seconds, from time `t1` to time `t2`.' + +[execute] +description = 'Passes `command` to be executed by an operating system shell.' + +[exit] +description = 'Calls the ISO C function `exit` to terminate the host program.' + +[getenv] +description = 'Returns the value of the process environment variable `varname`.' + +[remove] +description = 'Deletes the file with the given name.' + +[rename] +description = 'Renames the file or directory named `oldname` to `newname`.' + +[setlocale] +description = 'Sets the current locale of the program.' + +[time] +description = 'Returns the current time when called without arguments, or a time representing the local date and time specified by the given table.' + +[tmpname] +description = 'Returns a string with a file name that can be used for a temporary file.' |