From 24f2f1d10a8b54ee8ac6c2d7ddf5d2c944347b7f Mon Sep 17 00:00:00 2001 From: Weblate Date: Sep 08 2023 04:46:31 +0000 Subject: Added translation using Weblate (Chinese (Simplified)) Co-authored-by: Weblate --- diff --git a/po/zh_Hans/master/pages/Lua.po b/po/zh_Hans/master/pages/Lua.po new file mode 100644 index 0000000..7e7ac03 --- /dev/null +++ b/po/zh_Hans/master/pages/Lua.po @@ -0,0 +1,264 @@ +# SOME DESCRIPTIVE TITLE +# Copyright (C) YEAR Free Software Foundation, Inc. +# This file is distributed under the same license as the PACKAGE package. +# FIRST AUTHOR , YEAR. +# +msgid "" +msgstr "" +"Project-Id-Version: PACKAGE VERSION\n" +"POT-Creation-Date: 2023-09-07 21:58+0000\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: Automatically generated\n" +"Language-Team: none\n" +"Language: zh_Hans\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" + +#. type: Title = +#: ./pages/Lua.adoc:1 +#, no-wrap +msgid "Lua Packaging Guidelines" +msgstr "" + +#. type: Title == +#: ./pages/Lua.adoc:4 +#, no-wrap +msgid "What is Lua?" +msgstr "" + +#. type: Plain text +#: ./pages/Lua.adoc:7 +msgid "As described on the https://www.lua.org/[Lua website], Lua is" +msgstr "" + +#. type: Plain text +#: ./pages/Lua.adoc:11 +msgid "" +"\"Lua is a powerful, efficient, lightweight, embeddable scripting language. " +"It supports procedural programming, object-oriented programming, functional " +"programming, data-driven programming, and data description.\"" +msgstr "" + +#. type: Plain text +#: ./pages/Lua.adoc:13 +msgid "" +"To learn Lua, read https://www.lua.org/pil/contents.html[Programming in " +"Lua]." +msgstr "" + +#. type: Title == +#: ./pages/Lua.adoc:14 +#, no-wrap +msgid "Spec Template for a Lua Package" +msgstr "" + +#. type: Plain text +#: ./pages/Lua.adoc:20 +msgid "" +"Many Lua packages use http://luarocks.org/[Lua-rocks] for packaging. It is " +"helpful to examine the `+.rockspec+` specification as a guide in writing " +"your spec file. Some packages require compilation of C programs, but others " +"may be pure Lua. Both will have very similar install locations." +msgstr "" + +#. type: delimited block . +#: ./pages/Lua.adoc:25 +#, no-wrap +msgid "" +"Summary: Lua integration with libev\n" +"Name: lua-ev\n" +"License: MIT\n" +msgstr "" + +#. type: delimited block . +#: ./pages/Lua.adoc:28 +#, no-wrap +msgid "" +"Version: 1.5\n" +"Release: 2%{?dist}\n" +msgstr "" + +#. type: delimited block . +#: ./pages/Lua.adoc:31 +#, no-wrap +msgid "" +"URL: https://github.com/brimworks/lua-ev\n" +"Source0: %{url}/archive/v%{version}/%{name}-%{version}.tar.gz\n" +msgstr "" + +#. type: delimited block . +#: ./pages/Lua.adoc:36 +#, no-wrap +msgid "" +"BuildRequires: cmake\n" +"BuildRequires: gcc\n" +"BuildRequires: libev-devel\n" +"BuildRequires: lua-devel\n" +msgstr "" + +#. type: delimited block . +#: ./pages/Lua.adoc:39 +#, no-wrap +msgid "" +"%description\n" +"Event loop programming with Lua.\n" +msgstr "" + +#. type: delimited block . +#: ./pages/Lua.adoc:42 +#, no-wrap +msgid "" +"%prep\n" +"%autosetup -n %{name}-%{version} \n" +msgstr "" + +#. type: delimited block . +#: ./pages/Lua.adoc:46 +#, no-wrap +msgid "" +"%build\n" +"%cmake -DINSTALL_CMOD=%{lua_libdir}\n" +"%cmake_build\n" +msgstr "" + +#. type: delimited block . +#: ./pages/Lua.adoc:49 +#, no-wrap +msgid "" +"%install\n" +"%cmake_install \n" +msgstr "" + +#. type: delimited block . +#: ./pages/Lua.adoc:57 +#, no-wrap +msgid "" +"%check\n" +"#packaged tests do not work directly\n" +"#Use example program as a smoke test\n" +"LUA_CPATH=%{buildroot}%{lua_libdir}/?.so \\\n" +"lua example.lua\n" +"LUA_CPATH=%{buildroot}%{lua_libdir}/?.so \\\n" +"lua -e 'ev = require \"ev\"; print(ev.version())'\n" +msgstr "" + +#. type: delimited block . +#: ./pages/Lua.adoc:62 +#, no-wrap +msgid "" +"%files\n" +"%license README\n" +"%doc example.lua\n" +"%{lua_libdir}/ev.so\n" +msgstr "" + +#. type: delimited block . +#: ./pages/Lua.adoc:66 +#, no-wrap +msgid "" +"%changelog\n" +"* Thu Dec 08 2022 Benson Muite - 1.5-1\n" +"- Use README as license\n" +msgstr "" + +#. type: delimited block . +#: ./pages/Lua.adoc:70 +#, no-wrap +msgid "" +"* Sat Nov 19 2022 Benson Muite - 1.5-2\n" +"- Fix install location based on review\n" +"- Add further smoke test\n" +msgstr "" + +#. type: delimited block . +#: ./pages/Lua.adoc:73 +#, no-wrap +msgid "" +"* Wed Nov 16 2022 Benson Muite - 1.5-1\n" +"- Initial release\n" +msgstr "" + +#. type: Title == +#: ./pages/Lua.adoc:75 +#, no-wrap +msgid "Naming" +msgstr "" + +#. type: Plain text +#: ./pages/Lua.adoc:78 +msgid "Lua add-on packages generally follow the naming scheme of `+lua-modulename+`" +msgstr "" + +#. type: Plain text +#: ./pages/Lua.adoc:81 +msgid "" +"e.g. `+lua-filesystem+`, `+lua-lpeg+`, `+lua-moonscript+`. If the module " +"name makes it clear that it is an add-on for Lua, though, the module name " +"itself is sufficient. e.g. `+lutok+`." +msgstr "" + +#. type: Plain text +#: ./pages/Lua.adoc:84 +msgid "" +"Use your judgement -- e.g. the second `+l+` in `+lua-lpeg+` already stands " +"for Lua, but it might not be seen as unambiguous enough." +msgstr "" + +#. type: Title == +#: ./pages/Lua.adoc:85 +#, no-wrap +msgid "Macros" +msgstr "" + +#. type: Plain text +#: ./pages/Lua.adoc:89 +msgid "" +"The following macros for packaging lua extensions are provided by the " +"`+lua-devel+` package:" +msgstr "" + +#. type: Table +#: ./pages/Lua.adoc:97 +#, no-wrap +msgid "" +"| Macro | Description\n" +"| `+%lua_version+` | version of system installed lua\n" +"| `+%lua_libdir+` | installation directory for compiled modules\n" +"| `+%lua_pkgdir+` | installation directory for arch-independent modules\n" +"| `+%lua_requires+` | declares the needed runtime dependencies for the " +"binary package\n" +msgstr "" + +#. type: Plain text +#: ./pages/Lua.adoc:100 +msgid "For EPEL, define the following macros at the top of your spec file:" +msgstr "" + +#. type: delimited block . +#: ./pages/Lua.adoc:107 +#, no-wrap +msgid "" +"%{!?lua_version: %global lua_version %{lua: print(string.sub(_VERSION, " +"5))}}\n" +"# for compiled modules\n" +"%{!?lua_libdir: %global lua_libdir %{_libdir}/lua/%{lua_version}}\n" +"# for arch-independent modules\n" +"%{!?lua_pkgdir: %global lua_pkgdir %{_datadir}/lua/%{lua_version}}\n" +msgstr "" + +#. type: Plain text +#: ./pages/Lua.adoc:110 +msgid "" +"To make the package pull the correct runtime dependencies, declare them like " +"this:" +msgstr "" + +#. type: delimited block . +#: ./pages/Lua.adoc:114 +#, no-wrap +msgid "" +"Requires: lua >= %{lua_version}\n" +"Requires: lua < %{lua: os.setlocale('C'); print(string.sub(_VERSION, 5) + " +"0.1)}\n" +msgstr ""