mirror of
https://github.com/google/comprehensive-rust.git
synced 2025-01-31 11:01:46 +02:00
parent
77008687f2
commit
f38b8a1972
30
po/zh-CN.po
30
po/zh-CN.po
@ -11740,16 +11740,17 @@ msgstr ""
|
|||||||
|
|
||||||
#: src/android/aidl/interface.md:1
|
#: src/android/aidl/interface.md:1
|
||||||
msgid "# AIDL Interfaces"
|
msgid "# AIDL Interfaces"
|
||||||
msgstr ""
|
msgstr "# AIDL 接口"
|
||||||
|
|
||||||
#: src/android/aidl/interface.md:3
|
#: src/android/aidl/interface.md:3
|
||||||
msgid "You declare the API of your service using an AIDL interface:"
|
msgid "You declare the API of your service using an AIDL interface:"
|
||||||
msgstr ""
|
msgstr "您可以使用 AIDL 接口声明您的服务的 API:"
|
||||||
|
|
||||||
#: src/android/aidl/interface.md:5
|
#: src/android/aidl/interface.md:5
|
||||||
msgid ""
|
msgid ""
|
||||||
"*birthday_service/aidl/com/example/birthdayservice/IBirthdayService.aidl*:"
|
"*birthday_service/aidl/com/example/birthdayservice/IBirthdayService.aidl*:"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
"*birthday_service/aidl/com/example/birthdayservice/IBirthdayService.aidl*:"
|
||||||
|
|
||||||
#: src/android/aidl/interface.md:7
|
#: src/android/aidl/interface.md:7
|
||||||
msgid ""
|
msgid ""
|
||||||
@ -11763,10 +11764,19 @@ msgid ""
|
|||||||
"}\n"
|
"}\n"
|
||||||
"```"
|
"```"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
"```java\n"
|
||||||
|
"package com.example.birthdayservice;\n"
|
||||||
|
"\n"
|
||||||
|
"/** 生日服务接口。 */\n"
|
||||||
|
"interface IBirthdayService {\n"
|
||||||
|
" /** 生成一条生日快乐的祝福信息。 */\n"
|
||||||
|
" String wishHappyBirthday(String name, int years);\n"
|
||||||
|
"}\n"
|
||||||
|
"```"
|
||||||
|
|
||||||
#: src/android/aidl/interface.md:17
|
#: src/android/aidl/interface.md:17
|
||||||
msgid "*birthday_service/aidl/Android.bp*:"
|
msgid "*birthday_service/aidl/Android.bp*:"
|
||||||
msgstr ""
|
msgstr "*birthday_service/aidl/Android.bp*:"
|
||||||
|
|
||||||
#: src/android/aidl/interface.md:19
|
#: src/android/aidl/interface.md:19
|
||||||
msgid ""
|
msgid ""
|
||||||
@ -11783,6 +11793,18 @@ msgid ""
|
|||||||
"}\n"
|
"}\n"
|
||||||
"```"
|
"```"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
"```javascript\n"
|
||||||
|
"aidl_interface {\n"
|
||||||
|
" name: \"com.example.birthdayservice\",\n"
|
||||||
|
" srcs: [\"com/example/birthdayservice/*.aidl\"],\n"
|
||||||
|
" unstable: true,\n"
|
||||||
|
" backend: {\n"
|
||||||
|
" rust: { // 默认情况下不启用 Rust \n"
|
||||||
|
" enabled: true,\n"
|
||||||
|
" },\n"
|
||||||
|
" },\n"
|
||||||
|
"}\n"
|
||||||
|
"```"
|
||||||
|
|
||||||
#: src/android/aidl/interface.md:32
|
#: src/android/aidl/interface.md:32
|
||||||
msgid ""
|
msgid ""
|
||||||
@ -11790,6 +11812,8 @@ msgid ""
|
|||||||
"vendor\n"
|
"vendor\n"
|
||||||
"partition."
|
"partition."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
"如果供应商分区中的二进制文件使用了您的 AIDL 文件,请添加 `vendor_available: "
|
||||||
|
"true`。"
|
||||||
|
|
||||||
#: src/android/aidl/implementation.md:1
|
#: src/android/aidl/implementation.md:1
|
||||||
msgid "# Service Implementation"
|
msgid "# Service Implementation"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user