From 48e0f29dc8b8f0f144e683c6df24f6f0bbabcee5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=80=E8=90=8C=E5=B0=8F=E6=B1=90?= Date: Wed, 26 Dec 2018 10:46:01 +0800 Subject: =?UTF-8?q?=E6=BC=8F=E6=8E=89=E7=9A=84=E6=8F=8F=E8=BF=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/libs/lua53/os.lni | 2 +- 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.' -- cgit v1.2.3