Skip to content

Commit

Permalink
New translations
Browse files Browse the repository at this point in the history
  • Loading branch information
Cilla-luodan committed Nov 17, 2023
1 parent 2f43d21 commit e7031d6
Show file tree
Hide file tree
Showing 23 changed files with 41 additions and 42 deletions.
6 changes: 3 additions & 3 deletions en-US/dita/RTC-NG/API/api_createagorartcengine.dita
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,9 @@
</section>
<section id="detailed_desc">
<title>Details</title>
<p props="electron">Currently, the Agora RTC SDK v4.x supports creating only one object for each app<apiname keyref="IRtcEngineEx"/>.</p>
<p props="cpp unreal bp rn unity cs">Currently, the Agora RTC SDK v4.x supports creating only one object for each app<apiname keyref="IRtcEngine"/>.</p>
<p props="flutter">Currently, the Agora RTC SDK v6.x supports creating only one object for each app<apiname keyref="IRtcEngine"/>.</p>
<p props="electron">Currently, the Agora RTC SDK v4.x supports creating only one <apiname keyref="IRtcEngineEx"/> object for each app.</p>
<p props="cpp unreal bp rn unity cs">Currently, the Agora RTC SDK v4.x supports creating only one <apiname keyref="IRtcEngine"/> object for each app.</p>
<p props="flutter">Currently, the Agora RTC SDK v6.x supports creating only one <apiname keyref="IRtcEngine"/> object for each app.</p>
</section>
<section id="return_values">
<title>Returns</title>
Expand Down
4 changes: 2 additions & 2 deletions en-US/dita/RTC-NG/API/api_createagorartcengineex.dita
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@
</section>
<section id="detailed_desc">
<title>Details</title>
<p props="unity cs">Currently, the Agora RTC v4.x SDK supports creating only one object for each app<apiname keyref="IRtcEngineEx"/>.</p>
<p props="flutter">Currently, the Agora RTC v6.x SDK supports creating only one object for each app<apiname keyref="IRtcEngineEx"/>.</p>
<p props="unity cs">Currently, the Agora RTC v4.x SDK supports creating only one <apiname keyref="IRtcEngineEx"/> object for each app.</p>
<p props="flutter">Currently, the Agora RTC v6.x SDK supports creating only one <apiname keyref="IRtcEngineEx"/> object for each app.</p>
</section>
<section id="return_values">
<title>Returns</title>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<!DOCTYPE reference PUBLIC "-//OASIS//DTD DITA Reference//EN" "reference.dtd">
<reference id="api_iaudiodevicecollection_getapplicationvolume">
<title><ph keyref="getApplicationVolume"/></title>
<shortdesc id="short"><ph id="shortdesc">Retrieves the volume of the application.</ph></shortdesc>
<shortdesc id="short"><ph id="shortdesc">Retrieves the volume of the app.</ph></shortdesc>
<prolog>
<metadata>
<keywords>
Expand All @@ -29,7 +29,7 @@
<parml>
<plentry>
<pt>volume</pt>
<pd>The volume of the application. The value range is [0,255].</pd>
<pd>The volume of the app. The value range is [0,255].</pd>
</plentry>
</parml> </section>
<section id="return_values">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@
<pt>mute</pt>
<pd>
<p>Whether the app is muted:<ul>
<li>: The app is muted.<codeph><ph keyref="true"/></codeph></li>
<li>: The app is not muted.<codeph><ph keyref="false"/></codeph></li>
<li><codeph><ph keyref="true"/></codeph>: The app is muted.</li>
<li><codeph><ph keyref="false"/></codeph>: The app is not muted.</li>
</ul></p>
</pd>
</plentry>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@
<plentry>
<pt>mute</pt>
<pd>Whether to mute the app:<ul>
<li>: Mute the app.<codeph><ph keyref="true"/></codeph></li>
<li>: Unmute the app.<codeph><ph keyref="false"/></codeph></li>
<li><codeph><ph keyref="true"/></codeph>: Mute the app.</li>
<li><codeph><ph keyref="false"/></codeph>: Unmute the app.</li>
</ul></pd>
</plentry>
</parml> </section>
Expand Down
2 changes: 1 addition & 1 deletion en-US/dita/RTC-NG/API/api_imediaplayer_getstreaminfo.dita
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
<plentry>
<pt>index</pt>
<pd props="cpp unreal bp unity cs">The index of the media stream. This parameter needs to be less than the <parmname>count</parmname> parameter of <xref keyref="getStreamCount" />.</pd>
<pd props="android ios mac rn electron flutter">The index of the media stream. This parameter must be less than<xref keyref="getStreamCount" /> the return value of .</pd>
<pd props="android ios mac rn electron flutter">The index of the media stream. This parameter must be less than the return value of <xref keyref="getStreamCount" />.</pd>
</plentry>
<plentry props="cpp unreal bp unity cs">
<pt>info</pt>
Expand Down
2 changes: 1 addition & 1 deletion en-US/dita/RTC-NG/API/api_irtcengine_addhandler.dita
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
</section>
<section id="detailed_desc">
<title>Details</title>
<p>The<xref keyref="IRtcEngineEventHandler"/> SDK uses the class to send callbacks to the app. The app inherits the methods of this class to receive these callbacks. All methods in this class have default (empty) implementations. Therefore, apps only need to inherits callbacks according to the scenarios. In the callbacks, avoid time-consuming tasks or calling APIs that can block the thread, such as the <ph keyref="sendStreamMessage"/> method.
<p>The SDK uses the <xref keyref="IRtcEngineEventHandler"/> class to send callbacks to the app. The app inherits the methods of this class to receive these callbacks. All methods in this class have default (empty) implementations. Therefore, apps only need to inherits callbacks according to the scenarios. In the callbacks, avoid time-consuming tasks or calling APIs that can block the thread, such as the <ph keyref="sendStreamMessage"/> method.
Otherwise, the SDK may not work properly.</p>
</section>
<section id="parameters">
Expand Down
2 changes: 1 addition & 1 deletion en-US/dita/RTC-NG/API/api_irtcengine_joinchannel2.dita
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@
</plentry>
<plentry id="uid">
<pt>uid</pt>
<pd>The user ID. This parameter is used to identify the user in the channel for real-time audio and video interaction. You need to set and manage user IDs yourself, and ensure that each user ID in the same channel is unique. This parameter is a 32-bit unsigned integer. The value range is 1 to 2<sup>32</sup>-1. If the user ID is not assigned (or set to 0), the SDK assigns a random user ID and<apiname keyref="onJoinChannelSuccess" /> returns it in the callback. Your application must record and maintain the returned user ID, because the SDK does not do so.</pd>
<pd>The user ID. This parameter is used to identify the user in the channel for real-time audio and video interaction. You need to set and manage user IDs yourself, and ensure that each user ID in the same channel is unique. This parameter is a 32-bit unsigned integer. The value range is 1 to 2<sup>32</sup>-1. If the user ID is not assigned (or set to 0), the SDK assigns a random user ID and returns it in the <apiname keyref="onJoinChannelSuccess" /> callback. Your app must record and maintain the returned user ID, because the SDK does not do so.</pd>
</plentry>
<plentry id="options">
<pt props="android cpp unreal bp electron unity rn flutter cs">options</pt>
Expand Down
2 changes: 1 addition & 1 deletion en-US/dita/RTC-NG/API/api_irtcengine_renewtoken.dita
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
<section id="detailed_desc">
<title>Details</title>You can call this method to pass a new token to the SDK. A token expires after a certain period of time. In the following two cases, the app should call this method to pass in a new token. Failure to do so will result in the SDK disconnecting from the server.<ul>
<li>The SDK triggers the <xref keyref="onTokenPrivilegeWillExpire" /> callback.</li>
<li>The <xref keyref="onConnectionStateChanged" /> callback reports <apiname keyref="CONNECTION_CHANGED_TOKEN_EXPIRED" />(9).</li>
<li><xref keyref="onConnectionStateChanged" />The callback reports <apiname keyref="CONNECTION_CHANGED_TOKEN_EXPIRED" />(9).</li>
</ul> </section>
<section id="parameters">
<title>Parameters</title>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
</p>
<note type="attention">
<ul>
<li>Do not call other methods before receiving the<apiname keyref="onLastmileQuality" /> and<apiname keyref="onLastmileProbeResult" /> callbacks. Otherwise, the callbacks may be interrupted.</li>
<li>Do not call other methods before receiving the <apiname keyref="onLastmileQuality" /> and <apiname keyref="onLastmileProbeResult" /> callbacks. Otherwise, the callbacks may be interrupted.</li>
<li>A host should not call this method after joining a channel (when in a call).</li>
</ul>
</note>
Expand Down
2 changes: 1 addition & 1 deletion en-US/dita/RTC-NG/API/api_irtcengineex_joinchannelex.dita
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
<ul id="ul_rjs_4h5_3qb">
<li>If you are already in a channel, you cannot rejoin it with the same user ID.</li>
<li>If you want to join the same channel from different devices, ensure that the user IDs are different for all devices.</li>
<li>Ensure that the app ID you use to generate the token is the same as<xref keyref="IRtcEngine"/> the app ID used when creating the instance.</li>
<li>Ensure that the App ID you use to generate the token is the same as the App ID used when creating the <xref keyref="IRtcEngine"/> instance.</li>
<li props="cpp unreal bp">In a multi-camera capture scenario, you need to call the <xref keyref="startPreview2"/> method after calling this method to set the <parmname>sourceType</parmname> to <apiname keyref="VIDEO_SOURCE_CAMERA_SECONDARY"/>, to ensure that the second camera captures normally.</li>
</ul> </note> </section>
<section id="parameters">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
</plentry>
<plentry>
<pt>deviceState</pt>
<pd>The device state. <xref keyref="MEDIA_DEVICE_STATE_TYPE"/>Ses .</pd>
<pd>The device state. See <xref keyref="MEDIA_DEVICE_STATE_TYPE"/>.</pd>
</plentry>
</parml> </section>
</refbody>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
<codeblock props="reserve" outputclass="language-cpp"></codeblock></p>
</section>
<section id="detailed_desc">
<p>Occurs when the volume on the playback device, audio capture device, or the volume in the application changes.</p>
<p>Occurs when the volume on the playback device, audio capture device, or the volume of the app changes.</p>
<note props="cpp unreal bp unity flutter">This callback is for Windows and macOS only.</note>
</section>
<section id="parameters">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
<codeblock props="reserve" outputclass="language-cpp"></codeblock></p>
</section>
<section id="detailed_desc">
<p id="desc">This callback indicates that an error (concerning network or media) occurs during SDK runtime. In most cases, the SDK cannot fix the issue and resume running. The SDK requires the application to take action or informs the user about the issue.</p>
<p id="desc">This callback indicates that an error (concerning network or media) occurs during SDK runtime. In most cases, the SDK cannot fix the issue and resume running. The SDK requires the app to take action or informs the user about the issue.</p>
</section>
<section id="parameters">
<title><ph keyref="callback-section-title" /></title>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
<codeblock props="reserve" outputclass="language-cpp"></codeblock></p>
</section>
<section id="detailed_desc">
<p>This callback<xref keyref="leaveChannel2" /> notifies the app that a user leaves the channel when the application calls . From this callback, the app can get information such as the call duration and statistics.</p>
<p>This callback notifies the app that a user leaves the channel when the app calls <xref keyref="leaveChannel2" />. From this callback, the app can get information such as the call duration and statistics.</p>
</section>
<section id="parameters">
<title><ph keyref="callback-section-title" /></title>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
</plentry>
<plentry>
<pt>elapsed</pt>
<pd>Time delay (ms) from<apiname keyref="joinChannel2" /> the local user calling until this callback is triggered.</pd>
<pd>Time delay (ms) from the local user calling <apiname keyref="joinChannel2" /> until this callback is triggered.</pd>
</plentry>
</parml> </section>
</refbody>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,13 +33,12 @@
</section>
<section id="return_values">
<title>Returns</title>
<p><xref keyref="VIDEO_PIXEL_FORMAT"/><ph>Sets the video format. </ph>See .<ph props="cpp bp unreal apple"></ph></p>
<p>在默认情况下,原始视频像素格式 (<ph keyref="VIDEO_PIXEL_DEFAULT"/>) 存在以下类型:
<ul><li props="cpp bp unreal">在 Android 平台上,默认的视频帧类型可能为 I420Buffer 或 TextureBuffer。 自 v4.2.3 起,TextureBuffer 类型的纹理格式不再包括 OES 格式,仅为 RGB 格式。 你需要在处理视频数据时增加对 I420、RGB 纹理格式的适配。</li>
<li props="android">默认的视频帧类型可能为 I420Buffer 或 TextureBuffer。 自 v4.2.3 起,TextureBuffer 类型的纹理格式不再包括 OES 格式,仅为 RGB 格式。 你需要在处理视频数据时增加对 I420、RGB 纹理格式的适配。</li>
<li props="cpp unreal bp">在 iOS 和 macOS 平台上,默认的视频帧类型可能为 I420 或 CVPixelBufferRef。</li>
<li props="apple">默认的视频帧类型可能为 I420 或 CVPixelBufferRef。</li>
<li props="cpp unreal bp">在 Windows 平台上,默认为 YUV420。</li></ul></p>
<p><ph>Sets the raw data format of the SDK output. </ph><ph props="cpp bp unreal apple">See <xref keyref="VIDEO_PIXEL_FORMAT"/>.</ph></p>
<p>The default types of pixel format (<ph keyref="VIDEO_PIXEL_DEFAULT"/>) for the raw video are as follows:<ul><li props="cpp bp unreal">On the Android platform, the default video frame type may be I420Buffer or TextureBuffer. As of v4.2.3, the texture formats of TextureBuffer type no longer include OES format, only RGB format is available. You need to add support for I420 and RGB texture formats when processing video data.</li>
<li props="android">The default video frame type may be I420Buffer or TextureBuffer. As of v4.2.3, the texture formats of TextureBuffer type no longer include OES format, only RGB format is available. You need to add support for I420 and RGB texture formats when processing video data.</li>
<li props="cpp unreal bp">On iOS and macOS platforms, the default video frame type may be I420 or CVPixelBufferRef.</li>
<li props="apple">The default video frame type may be I420 or CVPixelBufferRef.</li>
<li props="cpp unreal bp">On Windows platforms, the default video frame type is YUV420.</li></ul></p>
<p props="android">
<ul>
<li><ph keyref="VIDEO_PIXEL_DEFAULT"/>(0): Raw video.</li>
Expand Down
12 changes: 6 additions & 6 deletions en-US/dita/RTC-NG/API/class_channelmediaoptions.dita
Original file line number Diff line number Diff line change
Expand Up @@ -595,14 +595,14 @@ class ChannelMediaOptions {
<li><codeph><ph keyref="true"/></codeph>: Publish the video captured by the third camera.</li>
<li><codeph><ph keyref="false"/></codeph>: Do not publish the video captured by the third camera.</li>
</ul>
<p><note type="attention" props="cpp unreal bp unity cs flutter">This method is for Windows and macOS only.</note></p></pd>
<p><note type="attention" props="cpp unreal bp unity cs flutter">This is for Windows and macOS only.</note></p></pd>
</plentry>
<plentry props="cpp mac unity cs flutter electron">
<pt>publishFourthCameraTrack</pt>
<pd>Whether to publish the video captured by the fourth camera:<ul>
<li><codeph><ph keyref="true"/></codeph>: Publish the video captured by the fourth camera.</li>
<li><codeph><ph keyref="false"/></codeph>: Do not publish the video captured by the fourth camera.</li>
</ul><p><note type="attention" props="cpp unreal bp unity cs flutter">This method is for Windows and macOS only.</note></p></pd>
</ul><p><note type="attention" props="cpp unreal bp unity cs flutter">This is for Windows and macOS only.</note></p></pd>
</plentry>
<plentry props="mac cpp flutter unreal bp unity cs electron">
<pt>publishScreenTrack</pt>
Expand All @@ -611,7 +611,7 @@ class ChannelMediaOptions {
<li><codeph><ph keyref="true"/></codeph>: Publish the video captured from the screen.</li>
<li><codeph><ph keyref="false"/></codeph>: Do not publish the video captured from the screen.</li>
</ul></p>
<note type="attention" props="cpp unreal bp unity flutter">This method is for Windows and macOS only.</note>
<note type="attention" props="cpp unreal bp unity flutter">This is for Windows and macOS only.</note>
</pd>
</plentry>
<plentry props="android ios cpp flutter unreal bp unity rn">
Expand Down Expand Up @@ -649,7 +649,7 @@ class ChannelMediaOptions {
<li><codeph><ph keyref="false"/></codeph>: Do not publish the video captured from the third screen.</li>
</ul>
<p>
<note type="attention" props="cpp unreal bp unity cs flutter">This method is for Windows and macOS only.</note></p>
<note type="attention" props="cpp unreal bp unity cs flutter">This is for Windows and macOS only.</note></p>
</pd>
</plentry>
<plentry props="mac cpp unity cs flutter electron">
Expand All @@ -659,7 +659,7 @@ class ChannelMediaOptions {
<li><codeph><ph keyref="false"/></codeph>: Do not publish the video captured from the fourth screen.</li>
</ul>
<p>
<note type="attention" props="cpp unreal bp unity cs flutter">This method is for Windows and macOS only.</note></p>
<note type="attention" props="cpp unreal bp unity cs flutter">This is for Windows and macOS only.</note></p>
</pd>
</plentry>
<plentry props="cpp unreal bp unity cs flutter rn electron">
Expand Down Expand Up @@ -689,7 +689,7 @@ class ChannelMediaOptions {
<li><codeph><ph keyref="true"/></codeph>: Publish the video captured from the custom source.</li>
<li><codeph><ph keyref="false"/></codeph>: Do not publish the captured video from a custom source.</li>
</ul>
<note type="warning">在不需要发布视频流时,需确保将该参数设置为 <codeph><ph keyref="false"/></codeph>,否则即使不发视频流,也会计入视频时长用量并产生相关费用。 </note> </pd>
<note type="warning">When you don't need to publish video streams, ensure this parameter is set as <codeph><ph keyref="false"/></codeph>. Otherwise, video fees will be incurred even if you do not publish video streams.</note> </pd>
</plentry>
<plentry>
<pt>publishEncodedVideoTrack</pt>
Expand Down
2 changes: 1 addition & 1 deletion en-US/dita/RTC-NG/API/class_irtcengine.dita
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<shortdesc id="short"><ph id="shortdesc">The basic interface of the Agora SDK that implements the core functions of real-time communication.</ph></shortdesc>
<refbody>
<section id="detailed_desc">
<p><apiname keyref="IRtcEngine" /> provides the main methods that your app can call.</p>
<p><apiname keyref="IRtcEngine" />This interface provides the main methods that your app can call.</p>
<p props="cpp unreal flutter electron rn unity cs">Before calling other APIs, you must call <xref keyref="createAgoraRtcEngine" /> to create an <apiname keyref="IRtcEngine" /> object.</p>
</section>
</refbody>
Expand Down
Loading

0 comments on commit e7031d6

Please sign in to comment.