[gtkmm-documentation: 9/31] translate chapter 18.
- From: Kjell Ahlstedt <kjellahl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtkmm-documentation: 9/31] translate chapter 18.
- Date: Tue, 12 Jan 2021 15:40:34 +0000 (UTC)
commit 5adf168e14f2cb2665175f4fea362bee871a04a2
Author: CCTV-1 <script tar gz gmail com>
Date: Sat Jan 2 10:50:59 2021 +0800
translate chapter 18.
docs/tutorial/zh_CN/zh_CN.po | 75 +++++++++++++++++++++++++++++++++++++-------
1 file changed, 64 insertions(+), 11 deletions(-)
---
diff --git a/docs/tutorial/zh_CN/zh_CN.po b/docs/tutorial/zh_CN/zh_CN.po
index 969f661..3e96d39 100644
--- a/docs/tutorial/zh_CN/zh_CN.po
+++ b/docs/tutorial/zh_CN/zh_CN.po
@@ -8407,7 +8407,7 @@ msgstr "在examples/others/dndä¸æœ‰ä¸€ä¸ªæ›´å¤æ‚的示例。"
#: C/index-in.docbook:4774
msgid "The Clipboard"
-msgstr ""
+msgstr "剪切æ¿(Clipboard)"
#: C/index-in.docbook:4775
msgid ""
@@ -8417,6 +8417,10 @@ msgid ""
"instance, a drawing program would need special code to allow copy and paste "
"within a view, or between documents."
msgstr ""
+"<classname>Gtk::Entry</classname>和<classname>Gtk::TextView</classname>之类的"
+"部件æ供了简å•çš„文本å¤åˆ¶ç²˜è´´åŠŸèƒ½ï¼Œä½†å¦‚æžœä½ æœ‰è‡ªå·±çš„æ•°æ®æ ¼å¼éœ€è¦å¤„ç†åˆ™éœ€è¦ä¸ºæ¤"
+"编写特定的代ç 。例如,绘图程åºéœ€è¦ç¼–写特定的代ç 以支æŒåœ¨è§†å›¾å†…或文档之间进行"
+"å¤åˆ¶ç²˜è´´ã€‚"
#: C/index-in.docbook:4781
msgid ""
@@ -8424,6 +8428,8 @@ msgid ""
"get_clipboard()</methodname> or <methodname>Gdk::Display::get_clipboard()</"
"methodname>."
msgstr ""
+"ä½ å¯ä»¥ä½¿ç”¨<methodname>Gtk::Widget::get_clipboard()</methodname>或"
+"<methodname>Gdk::Display::get_clipboard()</methodname>获å–剪切æ¿å®žä¾‹ã€‚"
#: C/index-in.docbook:4786
msgid ""
@@ -8434,16 +8440,22 @@ msgid ""
"Clipboard</classname> is ready, it will call these methods, providing the "
"requested data."
msgstr ""
+"ä½ çš„åº”ç”¨ç¨‹åºä¸éœ€è¦ç‰å¾…剪切æ¿æ“作,特别是用户选择å¤åˆ¶ç„¶åŽé€‰æ‹©ç²˜è´´çš„期间。"
+"<classname>Gdk::Clipboard</classname>的多数方法使用<classname>sigc::slot</"
+"classname>,它们指定了回调函数。当<classname>Gdk::Clipboard</classname>准备就"
+"绪时,它将会调用这些回调函数,并å‘å…¶æ供所请求的数æ®ã€‚"
#: C/index-in.docbook:4794
msgid ""
"<ulink url=\"http://developer.gnome.org/gtkmm/unstable/classGdk_1_1Clipboard.";
"html\">Reference</ulink>"
msgstr ""
+"<ulink url=\"http://developer.gnome.org/gtkmm/unstable/classGdk_1_1Clipboard.";
+"html\">å‚考</ulink>"
#: C/index-in.docbook:4797
msgid "Formats"
-msgstr ""
+msgstr "æ ¼å¼"
#: C/index-in.docbook:4798
msgid ""
@@ -8451,6 +8463,8 @@ msgid ""
"that data available in a variety of formats. <application>gtkmm</"
"application> calls these data types <literal>format</literal>s."
msgstr ""
+"ä¸åŒçš„应用程åºåŒ…å«ä¸åŒç±»åž‹çš„æ•°æ®ï¼Œå¹¶ä¸”它们å¯èƒ½ä½¿ç”¨å¤šç§å¯ç”¨æ ¼å¼æ供数æ®ã€‚"
+"<application>gtkmm</application>称这些数æ®ç±»åž‹ä¸º<literal>format</literal>。"
#: C/index-in.docbook:4802
msgid ""
@@ -8462,6 +8476,11 @@ msgid ""
"the formats that the other supplies then you will be able to copy data from "
"one to the other."
msgstr ""
+"例如,<application>gedit</application>å¯ä»¥æ供和接收<literal>text/plain</"
+"literal>MIMEç±»åž‹ï¼Œæ‰€ä»¥ä½ å¯ä»¥ä»Žä»»ä½•æä¾›è¯¥æ ¼å¼çš„应用程åºä¸å°†å¤åˆ¶ç²˜è´´ç»™"
+"<application>gedit</application>。或者两个ä¸åŒçš„图åƒç¼–辑程åºå¯èƒ½ä¼šæ供和接收"
+"å„ç§å›¾åƒæ ¼å¼ã€‚åªè¦å…¶ä¸ä¸€ä¸ªåº”用程åºå¯ä»¥æŽ¥æ”¶å…¶ä»–应用程åºæ供的一ç§æ ¼å¼ï¼Œé‚£ä¹ˆä½ "
+"å°±å¯ä»¥å°†æ•°æ®ä»Žä¸€ä¸ªå¤åˆ¶åˆ°å¦ä¸€ä¸ªã€‚"
#: C/index-in.docbook:4810
msgid ""
@@ -8470,6 +8489,8 @@ msgid ""
"XML format for the clipboard data. However this would probably not be "
"appropriate for binary data such as images."
msgstr ""
+"剪切æ¿æ•°æ®å¯ä»¥ä½¿ç”¨å¤šç§äºŒè¿›åˆ¶æ ¼å¼ã€‚æœ¬ç« å’Œç¤ºä¾‹ç¨‹åºå‡å®šæ•°æ®æ˜¯8ä½æ–‡æœ¬ã€‚这将使我们"
+"å¯ä»¥å¯¹å‰ªåˆ‡æ¿æ•°æ®ä½¿ç”¨XMLæ ¼å¼ã€‚但这å¯èƒ½ä¸é€‚åˆäºŒè¿›åˆ¶æ•°æ®ï¼ˆä¾‹å¦‚图åƒï¼‰ã€‚"
#: C/index-in.docbook:4817
msgid ""
@@ -8477,12 +8498,16 @@ msgid ""
"same mechanism. You should probably use the same data formats for both "
"Clipboard and Drag and Drop operations."
msgstr ""
+"<link linkend=\"chapter-draganddrop\">拖放</link>APIä½¿ç”¨ä¸€æ ·çš„æœºåˆ¶ã€‚å‰ªåˆ‡æ¿å’Œ"
+"拖放æ“ä½œéƒ½åº”è¯¥ä½¿ç”¨ä¸€æ ·çš„æ•°æ®æ ¼å¼ã€‚"
#: C/index-in.docbook:4823
msgid ""
"When the user asks to copy some data, you should copy the data to the "
"<classname>Clipboard</classname>. For instance,"
msgstr ""
+"当用户è¦å¤åˆ¶æŸäº›æ•°æ®çš„æ—¶å€™ï¼Œä½ åº”è¯¥å°†æ•°æ®å¤åˆ¶åˆ°<classname>Clipboard</"
+"classname>。例如:"
#: C/index-in.docbook:4827
#, no-wrap
@@ -8492,10 +8517,14 @@ msgid ""
" get_clipboard()->set_text(\"example_custom_target\");\n"
"}"
msgstr ""
+"void ExampleWindow::on_button_copy()\n"
+"{\n"
+" get_clipboard()->set_text(\"example_custom_target\");\n"
+"}"
#: C/index-in.docbook:4835
msgid "Paste"
-msgstr ""
+msgstr "粘贴"
#: C/index-in.docbook:4836
msgid ""
@@ -8503,6 +8532,8 @@ msgid ""
"you should request a specific format and provide a callback method which "
"will be called with the actual data. For instance:"
msgstr ""
+"当用户è¦ä»Ž<classname>Clipboard</classname>ä¸ç²˜è´´æ•°æ®æ—¶ï¼Œä½ 应该请求一ç§ç‰¹å®šçš„"
+"æ ¼å¼å¹¶æ供一个回调函数,该回调函数将与实际数æ®ä¸€å¹¶è¢«è°ƒç”¨ã€‚例如:"
#: C/index-in.docbook:4841
#, no-wrap
@@ -8513,10 +8544,15 @@ msgid ""
" &ExampleWindow::on_clipboard_received));\n"
"}"
msgstr ""
+"void ExampleWindow::on_button_paste()\n"
+"{\n"
+" get_clipboard()->read_text_async(sigc::mem_fun(*this,\n"
+" &ExampleWindow::on_clipboard_received));\n"
+"}"
#: C/index-in.docbook:4847
msgid "Here is an example callback method:"
-msgstr ""
+msgstr "这是一个回调函数的示例:"
#: C/index-in.docbook:4849
#, no-wrap
@@ -8527,10 +8563,15 @@ msgid ""
" //Do something with the pasted data.\n"
"}"
msgstr ""
+"void ExampleWindow::on_clipboard_received(Glib::RefPtr<Gio::AsyncResult>& result)\n"
+"{\n"
+" auto text = get_clipboard()->read_text_finish(result);\n"
+" //Do something with the pasted data.\n"
+"}"
#: C/index-in.docbook:4856
msgid "Discovering the available formats"
-msgstr ""
+msgstr "å‘现å¯ç”¨æ ¼å¼"
#: C/index-in.docbook:4857
msgid ""
@@ -8540,10 +8581,13 @@ msgid ""
"ContentFormats</classname> method to find out if a format that your "
"application supports is available."
msgstr ""
+"è¦æ‰¾å‡ºå½“å‰<classname>Clipboard</classname>å¯ä»¥ç”¨äºŽç²˜è´´çš„æ ¼å¼ï¼Œè¯·è°ƒç”¨"
+"<methodname>get_formats()</methodname>方法。然åŽè°ƒç”¨<classname>Gdk::"
+"ContentFormats</classname>方法æ¥ç¡®å®šä½ 的应用程åºæ‰€æ”¯æŒçš„æ ¼å¼æ˜¯å¦å¯ç”¨ã€‚"
#: C/index-in.docbook:4869 C/index-in.docbook:5260
msgid "Simple"
-msgstr ""
+msgstr "简å•"
#: C/index-in.docbook:4870
msgid ""
@@ -8552,24 +8596,29 @@ msgid ""
"does not identify the <classname>Clipboard</classname> data as being of a "
"particular type."
msgstr ""
+"这个示例å…è®¸ä½¿ç”¨æ ‡å‡†æ–‡æœ¬æ ¼å¼å¤åˆ¶ç²˜è´´åº”用程åºæŒ‡å®šçš„æ•°æ®ã€‚尽管ç€å¾ˆç®€å•ï¼Œä½†æ˜¯å®ƒ"
+"并ä¸å¤Ÿç†æƒ³ï¼Œå› 为他ä¸èƒ½å°†<classname>Clipboard</classname>çš„æ•°æ®æ ‡è¯†ä¸ºç‰¹å®šçš„ç±»"
+"型。"
#: C/index-in.docbook:4878
msgid "Clipboard - Simple"
-msgstr ""
+msgstr "å‰ªåˆ‡æ¿ - 简å•"
#: C/index-in.docbook:4884
msgid ""
"<ulink url=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/tree/master/";
"examples/book/clipboard/simple/\">Source Code</ulink>"
msgstr ""
+"<ulink url=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/tree/master/";
+"examples/book/clipboard/simple/\">æºä»£ç </ulink>"
#: C/index-in.docbook:4888
msgid "Ideal"
-msgstr ""
+msgstr "ç†æƒ³"
#: C/index-in.docbook:4891
msgid "Defines a custom clipboard target, though the format is still text."
-msgstr ""
+msgstr "定义了一个自定义剪切æ¿ç›®æ ‡ï¼Œå°½ç®¡æ ¼å¼ä¾æ—§æ˜¯æ–‡æœ¬ã€‚"
#: C/index-in.docbook:4892
msgid ""
@@ -8577,20 +8626,24 @@ msgid ""
"signal and disables the Paste button if it can't use anything on the "
"clipboard."
msgstr ""
+"它使用<methodname>Gdk::ContentFormats::signal_changed()</methodname>ä¿¡å·å¹¶åœ¨"
+"剪切æ¿ä¸å¯ç”¨çš„时候ç¦ç”¨ç²˜è´´æŒ‰é’®ã€‚"
#: C/index-in.docbook:4889
msgid "This is like the simple example, but it <_:orderedlist-1/>"
-msgstr ""
+msgstr "这个与简å•ç¤ºä¾‹ç±»åž‹ï¼Œä½†æ˜¯å®ƒ<_:orderedlist-1/>"
#: C/index-in.docbook:4898
msgid "Clipboard - Ideal"
-msgstr ""
+msgstr "å‰ªåˆ‡æ¿ - ç†æƒ³"
#: C/index-in.docbook:4904
msgid ""
"<ulink url=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/tree/master/";
"examples/book/clipboard/ideal/\">Source Code</ulink>"
msgstr ""
+"<ulink url=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/tree/master/";
+"examples/book/clipboard/ideal/\">æºä»£ç </ulink>"
#: C/index-in.docbook:4914
msgid "Printing"
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]