tutorials.pot 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542
  1. # SOME DESCRIPTIVE TITLE.
  2. # Copyright (C) 2013, Various
  3. # This file is distributed under the same license as the Elgg package.
  4. # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
  5. #
  6. #, fuzzy
  7. msgid ""
  8. msgstr ""
  9. "Project-Id-Version: Elgg 1.12\n"
  10. "Report-Msgid-Bugs-To: \n"
  11. "POT-Creation-Date: 2016-03-06 18:02+0200\n"
  12. "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
  13. "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
  14. "Language-Team: LANGUAGE <LL@li.org>\n"
  15. "MIME-Version: 1.0\n"
  16. "Content-Type: text/plain; charset=UTF-8\n"
  17. "Content-Transfer-Encoding: 8bit\n"
  18. #: ../../tutorials/blog.rst:2
  19. msgid "Building a Blog Plugin"
  20. msgstr ""
  21. #: ../../tutorials/blog.rst:4
  22. msgid "Build a simple blogging plugin using Elgg."
  23. msgstr ""
  24. #: ../../tutorials/blog.rst:6
  25. msgid "This duplicates features in the bundled blog plugin, so be sure to disable that while working on your own version."
  26. msgstr ""
  27. #: ../../tutorials/blog.rst:0
  28. #: ../../tutorials/widget.rst:0
  29. msgid "Contents"
  30. msgstr ""
  31. #: ../../tutorials/blog.rst:14
  32. msgid "Create the plugin skeleton"
  33. msgstr ""
  34. #: ../../tutorials/blog.rst:16
  35. msgid "The name of the directory under \"mod\" becomes the id of your plugin::"
  36. msgstr ""
  37. #: ../../tutorials/blog.rst:22
  38. msgid "You'll need to add a manifest file in ``/mod/my_blog/manifest.xml``. This file stores basic information about the plugin. See :doc:`/guides/plugins` for the template. You can also just copy the manifest file from another plugin and then change the values to fit your new plugin. Be sure to change the author and website, and remove the “bundled” category!"
  39. msgstr ""
  40. #: ../../tutorials/blog.rst:28
  41. msgid "Create a page for composing the blogs"
  42. msgstr ""
  43. #: ../../tutorials/blog.rst:30
  44. msgid "Create the file ``add.php`` in ``/mod/my_blog/pages/my_blog/``."
  45. msgstr ""
  46. #: ../../tutorials/blog.rst:61
  47. msgid "Create the form for creating a new my\\_blog post"
  48. msgstr ""
  49. #: ../../tutorials/blog.rst:63
  50. msgid "Create a file at ``/mod/my_blog/views/default/forms/my_blog/save.php`` that contains the form body. This corresponds to view that is called above: ``elgg_view_form(\"my_blog/save\")``."
  51. msgstr ""
  52. #: ../../tutorials/blog.rst:67
  53. msgid "The form should have input fields for the title, body and tags. Because you used ``elgg_view_form()``, you do not need to include form tag markup. The view will be automatically wrapped with:"
  54. msgstr ""
  55. #: ../../tutorials/blog.rst:71
  56. msgid "a ``<form>`` tag and the necessary attributes"
  57. msgstr ""
  58. #: ../../tutorials/blog.rst:72
  59. msgid "anti-csrf tokens"
  60. msgstr ""
  61. #: ../../tutorials/blog.rst:74
  62. msgid "The form's action will be ``\"<?php echo elgg_get_site_url() ?>action/my_blog/save\"``, which we will create in a moment. Here is the content of ``/mod/my_blog/views/default/forms/my_blog/save.php``:"
  63. msgstr ""
  64. #: ../../tutorials/blog.rst:100
  65. msgid "Notice how the form is calling input views like ``input/longtext``. These are built into Elgg and make it easy to add form components. You can see a complete list of input views in the ``/views/default/input/`` directory."
  66. msgstr ""
  67. #: ../../tutorials/blog.rst:106
  68. msgid "The above code is not accessibility-friendly."
  69. msgstr ""
  70. #: ../../tutorials/blog.rst:109
  71. msgid "The action file"
  72. msgstr ""
  73. #: ../../tutorials/blog.rst:111
  74. msgid "Create the file ``/mod/my_blog/actions/my_blog/save.php``. This will save the blog post to the database."
  75. msgstr ""
  76. #: ../../tutorials/blog.rst:150
  77. msgid "A few fields are built into Elgg objects. Title and description are two of these. It makes sense to use description to contain the my\\_blog text. Every entity can have a subtype and in this we are using ``\"my_blog\"``. The tags are stored as metadata."
  78. msgstr ""
  79. #: ../../tutorials/blog.rst:155
  80. msgid "Every object in Elgg has a built-in URL automatically, although you can override this if you wish. The ``getURL()`` method is called to get that unique URL."
  81. msgstr ""
  82. #: ../../tutorials/blog.rst:160
  83. msgid "The object view"
  84. msgstr ""
  85. #: ../../tutorials/blog.rst:162
  86. msgid "Elgg will automatically call the ``object/my_blog`` view to view the my\\_blog post so we need to create the object view."
  87. msgstr ""
  88. #: ../../tutorials/blog.rst:165
  89. msgid "Objects in Elgg are a subclass of something called an “entity”. Users, sites, and groups are also subclasses of entity. All entities can (and should) have a subtype, which allows granular control for listing and displaying. Here, we have used the subtype \"``my_blog``\\ \" to identify a my\\_blog post, but any alphanumeric string can be a valid subtype. When picking subtypes, be sure to pick ones that make sense for your plugin."
  90. msgstr ""
  91. #: ../../tutorials/blog.rst:173
  92. msgid "In ``/mod/my_blog/views/default/``, create a folder ``/object/`` and then create a file ``my_blog.php`` in it."
  93. msgstr ""
  94. #: ../../tutorials/blog.rst:176
  95. msgid "Each my\\_blog post will be passed to this PHP file as ``$vars['entity']``. (``$vars`` is an array used in the views system to pass variables to a view.) The content of ``object/my_blog.php`` can just be something like:"
  96. msgstr ""
  97. #: ../../tutorials/blog.rst:189
  98. msgid "The last line takes the tags on the my\\_blog post and automatically displays them as a series of clickable links. Search is handled automatically."
  99. msgstr ""
  100. #: ../../tutorials/blog.rst:193
  101. msgid "(If you're wondering about the '``default``\\ ' in ``/views/default/``, you can create alternative views. RSS, OpenDD, FOAF, mobile and others are all valid view types.)"
  102. msgstr ""
  103. #: ../../tutorials/blog.rst:198
  104. msgid "Plugin start.php"
  105. msgstr ""
  106. #: ../../tutorials/blog.rst:200
  107. msgid "Every plugin has a ``start.php`` that initializes it. For this example, we just need to register the action file we created earlier: Also see a related guide about :doc:`/guides/actions`."
  108. msgstr ""
  109. #: ../../tutorials/blog.rst:210
  110. msgid "The action will now be available as ``/action/my_blog/save``. By default, all actions are available only to logged in users. If you want to make an action available to only admins or open it up to unauthenticated users, you can pass 'admin' or 'public' as the third parameter of ``elgg_register_action()``, respectively."
  111. msgstr ""
  112. #: ../../tutorials/blog.rst:216
  113. #: ../../tutorials/hello_world.rst:72
  114. msgid "Registering a page handler"
  115. msgstr ""
  116. #: ../../tutorials/blog.rst:218
  117. msgid "In order to be able to serve the page that generates the form, you'll need to register a page handler. Add the following to your start.php:"
  118. msgstr ""
  119. #: ../../tutorials/blog.rst:233
  120. msgid "Page handling functions need to return ``true`` or ``false``. ``true`` means the page exists and has been handled by the page handler. ``false`` means that the page does not exist and the user will be forwarded to the site's 404 page (requested page does not exist or not found). In this particular example, the URL must contain ``/my_blog/add`` for the user to view a page with a form, otherwise the user will see a 404 page."
  121. msgstr ""
  122. #: ../../tutorials/blog.rst:242
  123. msgid "Trying it out"
  124. msgstr ""
  125. #: ../../tutorials/blog.rst:244
  126. msgid "If you have not enabled the plugin yet, you will need to go to Administration => Configure => Plugins => Advanced. Scroll to the bottom until you see your plugin. Click the Enable button."
  127. msgstr ""
  128. #: ../../tutorials/blog.rst:248
  129. msgid "The page to create a new my\\_blog post is accessible at http://yoursite/my_blog/add. Try it out."
  130. msgstr ""
  131. #: ../../tutorials/blog.rst:252
  132. msgid "Displaying list of my\\_blogs"
  133. msgstr ""
  134. #: ../../tutorials/blog.rst:254
  135. msgid "Let's also create a page that lists my\\_blog entries that have been created."
  136. msgstr ""
  137. #: ../../tutorials/blog.rst:256
  138. msgid "Create ``/mod/my_blog/pages/my_blog/all.php``."
  139. msgstr ""
  140. #: ../../tutorials/blog.rst:258
  141. msgid "To grab the latest my\\_blog posts, we'll use ``elgg_list_entities``. Note that this function returns only the posts that the user can see, so access restrictions are handled transparently:"
  142. msgstr ""
  143. #: ../../tutorials/blog.rst:269
  144. msgid "The function \\`elgg\\_list\\_entities\\` (and its cousins) also transparently handle pagination, and even create an RSS feeds for your my\\_blogs if you have defined these views."
  145. msgstr ""
  146. #: ../../tutorials/blog.rst:273
  147. msgid "Finally, we'll draw the page:"
  148. msgstr ""
  149. #: ../../tutorials/blog.rst:281
  150. msgid "We will then need to modify our my\\_blog page handler to grab the new page when the URL is set to ``/my_blog/all``. So, your new ``my_blog_page_handler()`` function in start.php should look like:"
  151. msgstr ""
  152. #: ../../tutorials/blog.rst:302
  153. msgid "Now, if the URL contains just ``/my_blog`` or ``/my_blog/all``, the user will see an \"All Site Blogs\" page."
  154. msgstr ""
  155. #: ../../tutorials/blog.rst:306
  156. msgid "A user's blog page"
  157. msgstr ""
  158. #: ../../tutorials/blog.rst:308
  159. msgid "If we grab the Global Unique IDentifier (GUID) of the logged in user, we can limit the my\\_blog posts to those posted by specifying the owner\\_guid argument in the list function above."
  160. msgstr ""
  161. #: ../../tutorials/blog.rst:322
  162. msgid "The end"
  163. msgstr ""
  164. #: ../../tutorials/blog.rst:324
  165. msgid "There's much more that could be done for this plugin, but hopefully this gives you a good idea of how to get started with your own."
  166. msgstr ""
  167. #: ../../tutorials/hello_world.rst:2
  168. msgid "Hello world"
  169. msgstr ""
  170. #: ../../tutorials/hello_world.rst:4
  171. msgid "This tutorial shows you how to build a simple plugin that adds a new page and prints the text \"Hello world\" on it."
  172. msgstr ""
  173. #: ../../tutorials/hello_world.rst:7
  174. msgid "In this tutorial we will use the address ``http://www.mysite.com/`` as an example. While developing the plugin you should use the address of your own site instead of the example address."
  175. msgstr ""
  176. #: ../../tutorials/hello_world.rst:12
  177. msgid "Required files"
  178. msgstr ""
  179. #: ../../tutorials/hello_world.rst:13
  180. msgid "First of all you need a directory that will hold all the files required by the plugin. Go to the ``mod`` directory of your Elgg site and create there a directory with the name ``hello_world``."
  181. msgstr ""
  182. #: ../../tutorials/hello_world.rst:19
  183. msgid "Go to the ``hello_world`` directory and create these two files inside it:"
  184. msgstr ""
  185. #: ../../tutorials/hello_world.rst:18
  186. #: ../../tutorials/indexpage.rst:7
  187. msgid "start.php"
  188. msgstr ""
  189. #: ../../tutorials/hello_world.rst:19
  190. msgid "manifest.xml"
  191. msgstr ""
  192. #: ../../tutorials/hello_world.rst:21
  193. msgid "Copy this to the ``manifest.xml`` file:"
  194. msgstr ""
  195. #: ../../tutorials/hello_world.rst:39
  196. msgid "Add your name to the ``<author></author>`` element."
  197. msgstr ""
  198. #: ../../tutorials/hello_world.rst:41
  199. msgid "The plugin has now the minimum requirements for your site to recognize it. Log in to your site as an administrator and access the plugins page at the administration panel. By default the plugin is at the bottom of the plugins list. Click the \"Activate\" button to start it."
  200. msgstr ""
  201. #: ../../tutorials/hello_world.rst:50
  202. msgid "The Hello world plugin has appeared to the bottom of the plugin list"
  203. msgstr ""
  204. #: ../../tutorials/hello_world.rst:53
  205. msgid "Initializing the plugin"
  206. msgstr ""
  207. #: ../../tutorials/hello_world.rst:55
  208. msgid "The next step is to add some actual features. Open the ``start.php`` and copy this to it:"
  209. msgstr ""
  210. #: ../../tutorials/hello_world.rst:68
  211. msgid "This piece of code tells Elgg that it should call the function ``hello_world_init()`` when the Elgg core system is initiated."
  212. msgstr ""
  213. #: ../../tutorials/hello_world.rst:74
  214. msgid "The next step is to register a page handler which has the purpose of handling request that users make to the URL http://www.mysite.com/hello/."
  215. msgstr ""
  216. #: ../../tutorials/hello_world.rst:77
  217. msgid "Update the ``start.php`` to look like this:"
  218. msgstr ""
  219. #: ../../tutorials/hello_world.rst:101
  220. msgid "The call to ``elgg_register_page_handler()`` tells Elgg that it should call the function ``hello_world_page_handler()`` when user goes to your site and has \"hello\" at the end of the URL."
  221. msgstr ""
  222. #: ../../tutorials/hello_world.rst:105
  223. msgid "The ``hello_world_page_handler()`` makes it possible for the users to access the actual page. Inside the function we first give an array of parameters to the ``elgg_view_layout()`` function."
  224. msgstr ""
  225. #: ../../tutorials/hello_world.rst:112
  226. msgid "The parameters include:"
  227. msgstr ""
  228. #: ../../tutorials/hello_world.rst:110
  229. msgid "The title of the page"
  230. msgstr ""
  231. #: ../../tutorials/hello_world.rst:111
  232. msgid "The contents of the page"
  233. msgstr ""
  234. #: ../../tutorials/hello_world.rst:112
  235. msgid "Filter which is left empty because there's currently nothing to filter"
  236. msgstr ""
  237. #: ../../tutorials/hello_world.rst:114
  238. msgid "This creates the basic layout for the page. The layout is then run through ``elgg_view_page()`` which assembles and outputs the full page."
  239. msgstr ""
  240. #: ../../tutorials/hello_world.rst:117
  241. msgid "You can now go to the address http://www.mysite.com/hello/ and you should see the page."
  242. msgstr ""
  243. #: ../../tutorials/hello_world.rst:123
  244. msgid "Elgg is now routing the URL http://www.mysite.com/hello/ to the page you created."
  245. msgstr ""
  246. #: ../../tutorials/index.rst:2
  247. msgid "Plugin Tutorials"
  248. msgstr ""
  249. #: ../../tutorials/index.rst:4
  250. msgid "Walk through all the required steps in order to create your own plugins."
  251. msgstr ""
  252. #: ../../tutorials/index.rst:6
  253. msgid "The instructions are detailed enough that you don't need much previous experience on plugin development."
  254. msgstr ""
  255. #: ../../tutorials/indexpage.rst:2
  256. msgid "Customizing the Home Page"
  257. msgstr ""
  258. #: ../../tutorials/indexpage.rst:4
  259. msgid "Overwrite the default index page on your Elgg install."
  260. msgstr ""
  261. #: ../../tutorials/indexpage.rst:9
  262. msgid "Register a function for the plugin hook called ``index, system`` that returns ``true``. This tells Elgg to assume that another front page has been drawn so it doesn't display the default page."
  263. msgstr ""
  264. #: ../../tutorials/indexpage.rst:12
  265. msgid "Inside start.php you will need something like the following:"
  266. msgstr ""
  267. #: ../../tutorials/indexpage.rst:31
  268. msgid "pages/index.php"
  269. msgstr ""
  270. #: ../../tutorials/indexpage.rst:33
  271. msgid "Then implement the page handler script (/pluginname/pages/index.php) to generate the desired output. Anything output from this script will become your new home page."
  272. msgstr ""
  273. #: ../../tutorials/widget.rst:2
  274. msgid "Basic Widget"
  275. msgstr ""
  276. #: ../../tutorials/widget.rst:4
  277. msgid "Create a widget that will display “Hello, World!” and optionally any text the user wants."
  278. msgstr ""
  279. #: ../../tutorials/widget.rst:6
  280. msgid "In Elgg, widgets are those components that you can drag onto your profile or admin dashboard."
  281. msgstr ""
  282. #: ../../tutorials/widget.rst:8
  283. msgid "This tutorial assumes you are familiar with basic Elgg concepts such as:"
  284. msgstr ""
  285. #: ../../tutorials/widget.rst:10
  286. msgid ":doc:`/guides/views`"
  287. msgstr ""
  288. #: ../../tutorials/widget.rst:11
  289. msgid ":doc:`/admin/plugins`"
  290. msgstr ""
  291. #: ../../tutorials/widget.rst:13
  292. msgid "You should review those if you get confused along the way."
  293. msgstr ""
  294. #: ../../tutorials/widget.rst:20
  295. msgid "Registering your plugin"
  296. msgstr ""
  297. #: ../../tutorials/widget.rst:22
  298. msgid "Plugins are always placed in the ``/mod`` directory. Create a subdirectory there called ``hello``. This will be the name of your plugin and will show up in the Plugins Administration section of Elgg by this name."
  299. msgstr ""
  300. #: ../../tutorials/widget.rst:27
  301. msgid "In ``/mod/hello``, create an empty file called ``start.php``. If this file exists, Elgg will load your plugin. Otherwise, you will see a misconfigured plugin error. Go to the admin section of your Elgg install and enable your plugin. Click on the “more info” link under your plugin name. You will notice that nothing happens."
  302. msgstr ""
  303. #: ../../tutorials/widget.rst:34
  304. msgid "Copy the ``manifest.xml`` file from one of the plugins in your elgg install into ``/mod/hello``."
  305. msgstr ""
  306. #: ../../tutorials/widget.rst:35
  307. msgid "Update its values so you are listed as the author and change the description to describe this new plugin."
  308. msgstr ""
  309. #: ../../tutorials/widget.rst:36
  310. msgid "Reload the Tools Administration page in your browser and check “more info” again."
  311. msgstr ""
  312. #: ../../tutorials/widget.rst:37
  313. msgid "It will now display the information that you've entered."
  314. msgstr ""
  315. #: ../../tutorials/widget.rst:40
  316. msgid "Adding the widget view code"
  317. msgstr ""
  318. #: ../../tutorials/widget.rst:42
  319. msgid "Elgg automatically scans particular directories under plugins looking for particular files. :doc:`/guides/views` make it easy to add your display code or do other things like override default Elgg behavior. For now, we will just be adding the view code for your widget. Create a file at ``/mod/hello/views/default/widgets/helloworld/content.php``. “helloworld” will be the name of your widget within the hello plugin. In this file add the code:"
  320. msgstr ""
  321. #: ../../tutorials/widget.rst:55
  322. msgid "This will add these words to the widget canvas when it is drawn. Elgg takes care of loading the widget."
  323. msgstr ""
  324. #: ../../tutorials/widget.rst:59
  325. msgid "Registering your widget"
  326. msgstr ""
  327. #: ../../tutorials/widget.rst:61
  328. msgid "Elgg needs to be told explicitly that the plugin contains a widget so that it will scan the widget views directory. This is done by calling the elgg\\_register\\_widget\\_type() function. Edit ``/mod/hello/start.php``. In it add these lines:"
  329. msgstr ""
  330. #: ../../tutorials/widget.rst:76
  331. msgid "Now go to your profile page using a web browser and add the “hello, world” widget. It should display “Hello, world!”."
  332. msgstr ""
  333. #: ../../tutorials/widget.rst:81
  334. msgid "For real widgets, it is always a good idea to support :doc:`/guides/i18n`."
  335. msgstr ""
  336. #: ../../tutorials/widget.rst:84
  337. msgid "Allow user customization"
  338. msgstr ""
  339. #: ../../tutorials/widget.rst:86
  340. msgid "Click on the edit link on the toolbar of the widget that you've created. You will notice that the only control it gives you by default is over access (over who can see the widget)."
  341. msgstr ""
  342. #: ../../tutorials/widget.rst:90
  343. msgid "Suppose you want to allow the user to control what greeting is displayed in the widget. Just as Elgg automatically loads ``content.php`` when viewing a widget, it loads ``edit.php`` when a user attempts to edit a widget. In ``/mod/hello/views/default/widgets/helloworld/``, create a file named ``edit.php``. In this file, add the following code:"
  344. msgstr ""
  345. #: ../../tutorials/widget.rst:113
  346. msgid "Notice the relationship between the values passed to the 'name' and the 'value' fields of input/text. The name of the input text box is ``params[message]`` because Elgg will automatically handle widget variables put in the array ``params``. The actual php variable name will be ``message``. If we wanted to use the field ``greeting`` instead of ``message`` we would pass the values ``params[greeting]`` and ``$widget->greeting`` respectively."
  347. msgstr ""
  348. #: ../../tutorials/widget.rst:121
  349. msgid "The reason we set the 'value' option of the array is so that the edit view remembers what the user typed in the previous time he changed the value of his message text."
  350. msgstr ""
  351. #: ../../tutorials/widget.rst:125
  352. msgid "Now to display the user's message we need to modify content.php to use this *message* variable. Edit content.php and change it to:"
  353. msgstr ""
  354. #: ../../tutorials/widget.rst:137
  355. msgid "You should now be able to enter a message in the text box and see it appear in the widget."
  356. msgstr ""
  357. #: ../../tutorials/wysiwyg.rst:2
  358. msgid "Integrating a Rich Text Editor"
  359. msgstr ""
  360. #: ../../tutorials/wysiwyg.rst:4
  361. msgid "Build your own wysiwyg plugin."
  362. msgstr ""
  363. #: ../../tutorials/wysiwyg.rst:6
  364. msgid "Elgg is bundled with a plugin for CKEditor_, and previously shipped with TinyMCE_ support. However, if you have a wysiwyg that you prefer, you could use this tutorial to help you build your own."
  365. msgstr ""
  366. #: ../../tutorials/wysiwyg.rst:12
  367. msgid "All forms in Elgg should try to use the provided input views located in ``views/default/input``. If these views are used, then it is simple for plugin authors to replace a view, in this case longtext.php, with their wysiwyg."
  368. msgstr ""
  369. #: ../../tutorials/wysiwyg.rst:17
  370. msgid "Create your plugin skeleton"
  371. msgstr ""
  372. #: ../../tutorials/wysiwyg.rst:19
  373. msgid "You will need to create your plugin and give it a start.php file where the plugin gets initialized, as well as a manifest.xml file to tell the Elgg engine about your plugin."
  374. msgstr ""
  375. #: ../../tutorials/wysiwyg.rst:22
  376. msgid "Read more in the guide about :doc:`/guides/plugins`."
  377. msgstr ""
  378. #: ../../tutorials/wysiwyg.rst:25
  379. msgid "Add the WYSIWYG library code"
  380. msgstr ""
  381. #: ../../tutorials/wysiwyg.rst:27
  382. msgid "Now you need to upload TinyMCE into a directory in your plugin. We strongly encourage you to put third party libraries in a “vendors” directory, as that is standard practice in Elgg plugins and will make your plugin much more approachable by other developers::"
  383. msgstr ""
  384. #: ../../tutorials/wysiwyg.rst:35
  385. msgid "Tell Elgg when and how to load TinyMCE"
  386. msgstr ""
  387. #: ../../tutorials/wysiwyg.rst:37
  388. msgid "Now that you have:"
  389. msgstr ""
  390. #: ../../tutorials/wysiwyg.rst:39
  391. msgid "created your start file"
  392. msgstr ""
  393. #: ../../tutorials/wysiwyg.rst:40
  394. msgid "intialized the plugin"
  395. msgstr ""
  396. #: ../../tutorials/wysiwyg.rst:41
  397. msgid "uploaded the wysiwyg code"
  398. msgstr ""
  399. #: ../../tutorials/wysiwyg.rst:43
  400. msgid "It is time to tell Elgg how to apply TinyMCE to longtext fields."
  401. msgstr ""
  402. #: ../../tutorials/wysiwyg.rst:45
  403. msgid "We're going to do that by extending the input/longtext view and including some javascript. Create a view tinymce/longtext and add the following code:"
  404. msgstr ""
  405. #: ../../tutorials/wysiwyg.rst:81
  406. msgid "Then, in your plugin's init function, extend the input/longtext view"
  407. msgstr ""
  408. #: ../../tutorials/wysiwyg.rst:89
  409. msgid "That's it! Now every time someone uses input/longtext, TinyMCE will be loaded and applied to that textarea."
  410. msgstr ""