PageRenderTime 60ms CodeModel.GetById 23ms RepoModel.GetById 0ms app.codeStats 0ms

/docs/locale/pot/appendix.pot

http://github.com/Elgg/Elgg
Unknown | 1530 lines | 1211 code | 319 blank | 0 comment | 0 complexity | cf654cb84999f7ee1c187261146be63f MD5 | raw file
Possible License(s): LGPL-3.0, MIT, GPL-2.0, BSD-3-Clause, LGPL-2.1, MPL-2.0-no-copyleft-exception

Large files files are truncated, but you can click here to view the full file

  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 master\n"
  10. "Report-Msgid-Bugs-To: \n"
  11. "POT-Creation-Date: 2016-08-05 21:19-0400\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. #: ../../appendix/faqs.rst:2
  19. msgid "FAQs and Other Troubleshooting"
  20. msgstr ""
  21. #: ../../appendix/faqs.rst:4
  22. msgid "Below are some commonly asked questions about Elgg."
  23. msgstr ""
  24. #: ../../appendix/faqs.rst:0
  25. msgid "Contents"
  26. msgstr ""
  27. #: ../../appendix/faqs/general.rst:2
  28. #: ../../appendix/faqs/general.rst:2
  29. msgid "General"
  30. msgstr ""
  31. #: ../../appendix/faqs/general.rst:6
  32. #: ../../appendix/faqs/general.rst:6
  33. msgid ":doc:`/admin/getting-help`"
  34. msgstr ""
  35. #: ../../appendix/faqs/general.rst:9
  36. #: ../../appendix/faqs/general.rst:9
  37. msgid "\"Plugin cannot start and has been deactivated\" or \"This plugin is invalid\""
  38. msgstr ""
  39. #: ../../appendix/faqs/general.rst:10
  40. #: ../../appendix/faqs/general.rst:10
  41. msgid "This error is usually accompanied by more details explaining why the plugin is invalid. This is usually caused by an incorrectly installed plugin."
  42. msgstr ""
  43. #: ../../appendix/faqs/general.rst:13
  44. #: ../../appendix/faqs/general.rst:13
  45. msgid "If you are installing a plugin called \"test\", there will be a test directory under mod. In that test directory there needs to be a start.php file: ``/mod/test/start.php`` and a manifest.xml file ``/mod/test/manifest.xml``."
  46. msgstr ""
  47. #: ../../appendix/faqs/general.rst:19
  48. #: ../../appendix/faqs/general.rst:19
  49. msgid "If these files do not exist, it could be caused by:"
  50. msgstr ""
  51. #: ../../appendix/faqs/general.rst:16
  52. #: ../../appendix/faqs/general.rst:16
  53. msgid "installing a plugin to the wrong directory"
  54. msgstr ""
  55. #: ../../appendix/faqs/general.rst:17
  56. #: ../../appendix/faqs/general.rst:17
  57. msgid "creating a directory under /mod that does not contain a plugin"
  58. msgstr ""
  59. #: ../../appendix/faqs/general.rst:18
  60. #: ../../appendix/faqs/general.rst:18
  61. msgid "a bad ftp transfer"
  62. msgstr ""
  63. #: ../../appendix/faqs/general.rst:19
  64. #: ../../appendix/faqs/general.rst:19
  65. msgid "unzipping a plugin into an extra directory (myplugin.zip unzips to ``myplugin/myplugin``)"
  66. msgstr ""
  67. #: ../../appendix/faqs/general.rst:21
  68. #: ../../appendix/faqs/general.rst:21
  69. msgid "If you are on a Unix-based host and the files exist in the correct directory, check the permissions. Elgg must have read access to the files and read + execute access on the directories."
  70. msgstr ""
  71. #: ../../appendix/faqs/general.rst:24
  72. #: ../../appendix/faqs/general.rst:24
  73. msgid "White Page (WSOD)"
  74. msgstr ""
  75. #: ../../appendix/faqs/general.rst:29
  76. #: ../../appendix/faqs/general.rst:29
  77. msgid "A blank, white page (often called a \"white screen of death\") means there is a PHP syntax error. There are a few possible causes of this:"
  78. msgstr ""
  79. #: ../../appendix/faqs/general.rst:27
  80. #: ../../appendix/faqs/general.rst:27
  81. msgid "corrupted file - try transfering the code again to your server"
  82. msgstr ""
  83. #: ../../appendix/faqs/general.rst:28
  84. #: ../../appendix/faqs/general.rst:28
  85. msgid "a call to a php module that was not loaded - this can happen after you install a plugin that requires a specific module."
  86. msgstr ""
  87. #: ../../appendix/faqs/general.rst:29
  88. #: ../../appendix/faqs/general.rst:29
  89. msgid "bad plugin - not all plugins have been written to the same quality so you should be careful which ones you install."
  90. msgstr ""
  91. #: ../../appendix/faqs/general.rst:31
  92. #: ../../appendix/faqs/general.rst:31
  93. msgid "To find where the error is occurring, change the .htaccess file to display errors to the browser. Set display_errors to 1 and load the same page again. You should see a PHP error in your browser. Change the setting back once you've resolved the problem."
  94. msgstr ""
  95. #: ../../appendix/faqs/general.rst:35
  96. #: ../../appendix/faqs/general.rst:35
  97. msgid "If you are using the Developer's Tools plugin, go to its settings page and make sure you have \"Display fatal PHP errors\" enabled."
  98. msgstr ""
  99. #: ../../appendix/faqs/general.rst:37
  100. #: ../../appendix/faqs/general.rst:37
  101. msgid "If the white screen is due to a bad plugin, remove the latest plugins that you have installed by deleting their directories and then reload the page."
  102. msgstr ""
  103. #: ../../appendix/faqs/general.rst:41
  104. #: ../../appendix/faqs/general.rst:41
  105. msgid "You can temporarily disable all plugins by creating an empty file at ``mod/disabled``. You can then disable the offending module via the administrator tools panel."
  106. msgstr ""
  107. #: ../../appendix/faqs/general.rst:43
  108. #: ../../appendix/faqs/general.rst:43
  109. msgid "If you are getting a WSOD when performing an action, like logging in or posting a blog, but there are no error messages, it's most likely caused by non-printable characters in plugin code. Check the plugin for white spaces/new lines characters after finishing php tag (``?>``) and remove them."
  110. msgstr ""
  111. #: ../../appendix/faqs/general.rst:46
  112. #: ../../appendix/faqs/general.rst:46
  113. msgid "Page not found"
  114. msgstr ""
  115. #: ../../appendix/faqs/general.rst:48
  116. #: ../../appendix/faqs/general.rst:48
  117. msgid "If you have recently installed your Elgg site, the most likely cause for a page not found error is that ``mod_rewrite`` is not setup correctly on your server. There is information in the :doc:`Install Troubleshooting </intro/install>` page on fixing this. The second most likely cause is that your site url in your database is incorrect."
  118. msgstr ""
  119. #: ../../appendix/faqs/general.rst:50
  120. #: ../../appendix/faqs/general.rst:50
  121. msgid "If you've been running your site for a while and suddenly start getting page not found errors, you need to ask yourself what has changed. Have you added any plugins? Did you change your server configuration?"
  122. msgstr ""
  123. #: ../../appendix/faqs/general.rst:52
  124. #: ../../appendix/faqs/general.rst:52
  125. msgid "To debug a page not found error:"
  126. msgstr ""
  127. #: ../../appendix/faqs/general.rst:54
  128. #: ../../appendix/faqs/general.rst:54
  129. msgid "Confirm that the link leading to the missing page is correct. If not, how is that link being generated?"
  130. msgstr ""
  131. #: ../../appendix/faqs/general.rst:55
  132. #: ../../appendix/faqs/general.rst:55
  133. msgid "Confirm that the ``.htaccess`` rewrite rules are being picked up."
  134. msgstr ""
  135. #: ../../appendix/faqs/general.rst:58
  136. #: ../../appendix/faqs/general.rst:58
  137. msgid "Login token mismatch"
  138. msgstr ""
  139. #: ../../appendix/faqs/general.rst:60
  140. #: ../../appendix/faqs/general.rst:60
  141. msgid "If you have to log in twice to your site and the error message after the first attempt says there was a token mismatch error, the URL in Elgg's settings does not match the URL used to access it. The most common cause for this is adding or removing the \"www\" when accessing the site. For example, www.elgg.org vs elgg.org. This causes a problem with session handling because of the way that web browsers save cookies."
  142. msgstr ""
  143. #: ../../appendix/faqs/general.rst:62
  144. #: ../../appendix/faqs/general.rst:62
  145. msgid "To fix this, you can add rewrite rules. To redirect from www.elgg.org to elgg.org in Apache, the rules might look like::"
  146. msgstr ""
  147. #: ../../appendix/faqs/general.rst:68
  148. #: ../../appendix/faqs/general.rst:68
  149. msgid "Redirecting from non-www to www could look like this::"
  150. msgstr ""
  151. #: ../../appendix/faqs/general.rst:73
  152. #: ../../appendix/faqs/general.rst:73
  153. msgid "If you don't know how to configure rewrite rules, ask your host for more information."
  154. msgstr ""
  155. #: ../../appendix/faqs/general.rst:76
  156. #: ../../appendix/faqs/general.rst:76
  157. msgid "Form is missing __token or __ts fields"
  158. msgstr ""
  159. #: ../../appendix/faqs/general.rst:78
  160. #: ../../appendix/faqs/general.rst:78
  161. msgid "All Elgg actions require a security token, and this error occurs when that token is missing. This is either a problem with your server configuration or with a 3rd party plugin."
  162. msgstr ""
  163. #: ../../appendix/faqs/general.rst:80
  164. #: ../../appendix/faqs/general.rst:80
  165. msgid "If you experience this on a new installation, make sure that your server is properly configured and your rewrite rules are correct. If you experience this on an upgrade, make sure you have updated your rewrite rules either in .htaccess (Apache) or in the server configuration."
  166. msgstr ""
  167. #: ../../appendix/faqs/general.rst:82
  168. #: ../../appendix/faqs/general.rst:82
  169. msgid "If you are experiencing this, disable all 3rd party plugins and try again. Very old plugins for Elgg don't use security tokens. If the problem goes away when plugins are disabled, it's due to a plugin that should be updated by its author."
  170. msgstr ""
  171. #: ../../appendix/faqs/general.rst:85
  172. #: ../../appendix/faqs/general.rst:85
  173. msgid "Maintenance mode"
  174. msgstr ""
  175. #: ../../appendix/faqs/general.rst:87
  176. #: ../../appendix/faqs/general.rst:87
  177. msgid "To take your site temporarily offline, go to Administration -> Utilities -> Maintenance Mode. Complete the form and hit save to disable your site for everyone except admin users."
  178. msgstr ""
  179. #: ../../appendix/faqs/general.rst:90
  180. #: ../../appendix/faqs/general.rst:90
  181. msgid "Missing email"
  182. msgstr ""
  183. #: ../../appendix/faqs/general.rst:92
  184. #: ../../appendix/faqs/general.rst:92
  185. msgid "If your users are reporting that validation emails are not showing up, have them check their spam folder. It is possible that the emails coming from your server are being marked as spam. This depends on many factors such as whether your hosting provider has a problem with spammers, how your PHP mail configuration is set up, what mail transport agent your server is using, or your host limiting the number of email that you can send in an hour."
  186. msgstr ""
  187. #: ../../appendix/faqs/general.rst:94
  188. #: ../../appendix/faqs/general.rst:94
  189. msgid "If no one gets email at all, it is quite likely your server is not configured properly for email. Your server needs a program to send email (called a Mail Transfer Agent - MTA) and PHP must be configured to use the MTA."
  190. msgstr ""
  191. #: ../../appendix/faqs/general.rst:96
  192. #: ../../appendix/faqs/general.rst:96
  193. msgid "To quickly check if PHP and an MTA are correctly configured, create a file on your server with the following content:"
  194. msgstr ""
  195. #: ../../appendix/faqs/general.rst:115
  196. #: ../../appendix/faqs/general.rst:115
  197. msgid "Be sure to replace \"your_email@your_host.com\" with your actual email address. Take care to keep quotes around it! When you access this page through your web browser, it will attempt to send a test email. This test will let you know that PHP and your MTA are correctly configured. If it fails--either you get an error or you never receive the email--you will need to do more investigating and possibly contact your service provider."
  198. msgstr ""
  199. #: ../../appendix/faqs/general.rst:117
  200. #: ../../appendix/faqs/general.rst:117
  201. msgid "Fully configuring an MTA and PHP's email functionality is beyond the scope of this FAQ and you should search the Internet for more resources on this. Some basic information on php parameters can be found on `PHP's site`__"
  202. msgstr ""
  203. #: ../../appendix/faqs/general.rst:123
  204. #: ../../appendix/faqs/general.rst:123
  205. msgid "Server logs"
  206. msgstr ""
  207. #: ../../appendix/faqs/general.rst:125
  208. #: ../../appendix/faqs/general.rst:125
  209. msgid "Most likely you are using Apache as your web server. Warnings and errors are written to a log by the web server and can be useful for debugging problems. You will commonly see two types of log files: access logs and error logs. Information from PHP and Elgg is written to the server error log."
  210. msgstr ""
  211. #: ../../appendix/faqs/general.rst:127
  212. #: ../../appendix/faqs/general.rst:127
  213. msgid "Linux -- The error log is probably in /var/log/httpd or /var/log/apache2."
  214. msgstr ""
  215. #: ../../appendix/faqs/general.rst:128
  216. #: ../../appendix/faqs/general.rst:128
  217. msgid "Windows - It is probably inside your Apache directory."
  218. msgstr ""
  219. #: ../../appendix/faqs/general.rst:129
  220. #: ../../appendix/faqs/general.rst:129
  221. msgid "Mac OS - The error log is probably in /var/log/apache2/error_log"
  222. msgstr ""
  223. #: ../../appendix/faqs/general.rst:131
  224. #: ../../appendix/faqs/general.rst:131
  225. msgid "If you are using shared hosting without ssh access, your hosting provider may provide a mechanism for obtaining access to your server logs. You will need to ask them about this."
  226. msgstr ""
  227. #: ../../appendix/faqs/general.rst:134
  228. #: ../../appendix/faqs/general.rst:134
  229. msgid "How does registration work?"
  230. msgstr ""
  231. #: ../../appendix/faqs/general.rst:136
  232. #: ../../appendix/faqs/general.rst:136
  233. msgid "With a default setup, this is how registration works:"
  234. msgstr ""
  235. #: ../../appendix/faqs/general.rst:138
  236. #: ../../appendix/faqs/general.rst:138
  237. msgid "User fills out registration form and submits it"
  238. msgstr ""
  239. #: ../../appendix/faqs/general.rst:139
  240. #: ../../appendix/faqs/general.rst:139
  241. msgid "User account is created and disabled until validated"
  242. msgstr ""
  243. #: ../../appendix/faqs/general.rst:140
  244. #: ../../appendix/faqs/general.rst:140
  245. msgid "Email is sent to user with a link to validate the account"
  246. msgstr ""
  247. #: ../../appendix/faqs/general.rst:141
  248. #: ../../appendix/faqs/general.rst:141
  249. msgid "When a user clicks on the link, the account is validated"
  250. msgstr ""
  251. #: ../../appendix/faqs/general.rst:142
  252. #: ../../appendix/faqs/general.rst:142
  253. msgid "The user can now log in"
  254. msgstr ""
  255. #: ../../appendix/faqs/general.rst:144
  256. #: ../../appendix/faqs/general.rst:144
  257. msgid "Failures during this process include the user entering an incorrect email address, the validation email being marked as spam, or a user never bothering to validate the account."
  258. msgstr ""
  259. #: ../../appendix/faqs/general.rst:147
  260. #: ../../appendix/faqs/general.rst:147
  261. msgid "User validation"
  262. msgstr ""
  263. #: ../../appendix/faqs/general.rst:149
  264. #: ../../appendix/faqs/general.rst:149
  265. msgid "By default, all users who self-register must validate their accounts through email. If a user has problems validating an account, you can validate users manually by going to Administration -> Users -> Unvalidated."
  266. msgstr ""
  267. #: ../../appendix/faqs/general.rst:152
  268. #: ../../appendix/faqs/general.rst:152
  269. msgid "You can remove this requirement by deactivating the User Validation by Email plugin."
  270. msgstr ""
  271. #: ../../appendix/faqs/general.rst:156
  272. #: ../../appendix/faqs/general.rst:156
  273. msgid "Removing validation has some consequences: There is no way to know that a user registered with a working email address, and it may leave you system open to spammers."
  274. msgstr ""
  275. #: ../../appendix/faqs/general.rst:159
  276. #: ../../appendix/faqs/general.rst:159
  277. msgid "Manually add user"
  278. msgstr ""
  279. #: ../../appendix/faqs/general.rst:161
  280. #: ../../appendix/faqs/general.rst:161
  281. msgid "To manually add a user, under the Administer controls go to Users. There you will see a link title \"Add new User\". After you fill out the information and submit the form, the new user will receive an email with username and password and a reminder to change the password."
  282. msgstr ""
  283. #: ../../appendix/faqs/general.rst:165
  284. #: ../../appendix/faqs/general.rst:165
  285. msgid "Elgg does not force the user to change the password."
  286. msgstr ""
  287. #: ../../appendix/faqs/general.rst:168
  288. #: ../../appendix/faqs/general.rst:168
  289. msgid "I'm making or just installed a new theme, but graphics or other elements aren't working"
  290. msgstr ""
  291. #: ../../appendix/faqs/general.rst:170
  292. #: ../../appendix/faqs/general.rst:170
  293. msgid "Make sure the theme is at the bottom of the plugin list."
  294. msgstr ""
  295. #: ../../appendix/faqs/general.rst:172
  296. #: ../../appendix/faqs/general.rst:172
  297. msgid "Clear your browser cache and reload the page. To lighten the load on the server, Elgg instructs the browser to rarely load the CSS file. A new theme will completely change the CSS file and a refresh should cause the browser to request the CSS file again."
  298. msgstr ""
  299. #: ../../appendix/faqs/general.rst:174
  300. #: ../../appendix/faqs/general.rst:174
  301. msgid "If you're building or modifying a theme, make sure you have disabled the simple and system caches. This can be done by enabling the Developer Tools plugin, then browsing to Administration -> Develop -> Settings. Once you're satisfied with the changes, enable the caches or performance will suffer."
  302. msgstr ""
  303. #: ../../appendix/faqs/general.rst:178
  304. #: ../../appendix/faqs/general.rst:178
  305. msgid "Changing profile fields"
  306. msgstr ""
  307. #: ../../appendix/faqs/general.rst:180
  308. #: ../../appendix/faqs/general.rst:180
  309. msgid "Within the Administration settings of Elgg is a page for replacing the default profile fields. Elgg by default gives the administrator two choices:"
  310. msgstr ""
  311. #: ../../appendix/faqs/general.rst:182
  312. #: ../../appendix/faqs/general.rst:182
  313. msgid "Use the default profile fields"
  314. msgstr ""
  315. #: ../../appendix/faqs/general.rst:183
  316. #: ../../appendix/faqs/general.rst:183
  317. msgid "Replace the default with a set of custom profile fields"
  318. msgstr ""
  319. #: ../../appendix/faqs/general.rst:185
  320. #: ../../appendix/faqs/general.rst:185
  321. msgid "You cannot add new profile fields to the default ones. Adding a new profile field through the replace profile fields option clears the default ones. Before letting in users, it is best to determine what profile fields you want, what field types they should be, and the order they should appear. You cannot change the field type or order or delete fields after they have been created without wiping the entire profile blank."
  322. msgstr ""
  323. #: ../../appendix/faqs/general.rst:187
  324. #: ../../appendix/faqs/general.rst:187
  325. msgid "More flexibility can be gained through plugins. There is at least two plugins on the community site that enable you to have more control over profile fields. The `Profile Manager`_ plugin has become quite popular in the Elgg community. It lets you add new profile fields whenever you want, change the order, group profile fields, and add them to registration."
  326. msgstr ""
  327. #: ../../appendix/faqs/general.rst:192
  328. #: ../../appendix/faqs/general.rst:192
  329. msgid "Changing registration"
  330. msgstr ""
  331. #: ../../appendix/faqs/general.rst:194
  332. #: ../../appendix/faqs/general.rst:194
  333. msgid "The registration process can be changed through a plugin. Everything about registration can be changed: the look and feel, different registration fields, additional validation of the fields, additional steps and so on. These types of changes require some basic knowledge of HTML, CSS, PHP."
  334. msgstr ""
  335. #: ../../appendix/faqs/general.rst:196
  336. #: ../../appendix/faqs/general.rst:196
  337. msgid "Another option is to use the `Profile Manager`_ plugin that lets you add fields to both user profiles and the registration form."
  338. msgstr ""
  339. #: ../../appendix/faqs/general.rst:199
  340. #: ../../appendix/faqs/development.rst:36
  341. #: ../../appendix/faqs/development.rst:36
  342. #: ../../appendix/faqs/general.rst:199
  343. msgid "Create the plugin skeleton"
  344. msgstr ""
  345. #: ../../appendix/faqs/general.rst:199
  346. #: ../../appendix/faqs/development.rst:38
  347. #: ../../appendix/faqs/development.rst:38
  348. #: ../../appendix/faqs/general.rst:199
  349. msgid ":doc:`/guides/plugins/plugin-skeleton`"
  350. msgstr ""
  351. #: ../../appendix/faqs/general.rst:202
  352. #: ../../appendix/faqs/general.rst:202
  353. msgid "Changing registration display"
  354. msgstr ""
  355. #: ../../appendix/faqs/general.rst:202
  356. #: ../../appendix/faqs/general.rst:202
  357. msgid "Override the ``account/forms/register`` view"
  358. msgstr ""
  359. #: ../../appendix/faqs/general.rst:205
  360. #: ../../appendix/faqs/general.rst:205
  361. msgid "Changing the registration action handler"
  362. msgstr ""
  363. #: ../../appendix/faqs/general.rst:205
  364. #: ../../appendix/faqs/general.rst:205
  365. msgid "You can write your own action to create the user's account"
  366. msgstr ""
  367. #: ../../appendix/faqs/general.rst:208
  368. #: ../../appendix/faqs/general.rst:208
  369. msgid "How do I change PHP settings using .htaccess?"
  370. msgstr ""
  371. #: ../../appendix/faqs/general.rst:210
  372. #: ../../appendix/faqs/general.rst:210
  373. msgid "You may want to change php settings in your ``.htaccess`` file. This is especially true if your hosting provider does not give you access to the server's ``php.ini`` file. The variables could be related to file upload size limits, security, session length, or any number of other php attributes. For examples of how to do this, see the `PHP documentation`_ on this."
  374. msgstr ""
  375. #: ../../appendix/faqs/general.rst:215
  376. #: ../../appendix/faqs/general.rst:215
  377. msgid "HTTPS login turned on accidently"
  378. msgstr ""
  379. #: ../../appendix/faqs/general.rst:217
  380. #: ../../appendix/faqs/general.rst:217
  381. msgid "If you have turned on HTTPS login but do not have SSL configured, you are now locked out of your Elgg install. To turn off this configuration parameter, you will need to edit your database. Use a tool like phpMyAdmin to view your database. Select the ``config`` table and delete the row that has the name ``https_login``."
  382. msgstr ""
  383. #: ../../appendix/faqs/general.rst:220
  384. #: ../../appendix/faqs/general.rst:220
  385. msgid "Using a test site"
  386. msgstr ""
  387. #: ../../appendix/faqs/general.rst:222
  388. #: ../../appendix/faqs/general.rst:222
  389. msgid "It is recommended to always try out new releases or new plugins on a test site before running them on a production site (a site with actual users). The easiest way to do this is to maintain a separate install of Elgg with dummy accounts. When testing changes it is important to use dummy accounts that are not admins to test what your users will see."
  390. msgstr ""
  391. #: ../../appendix/faqs/general.rst:224
  392. #: ../../appendix/faqs/general.rst:224
  393. msgid "A more realistic test is to mirror the content from your production site to your test site. Following the instructions for :doc:`duplicating a site </admin/duplicate-installation>`. Then make sure you prevent emails from being sent to your users. You could write a small plugin that redirects all email to your own account (be aware of plugins that include their own custom email sending code so you'll have to modify those plugins). After this is done you can view all of the content to make sure the upgrade or new plugin is functioning as desired and is not breaking anything. If this process sounds overwhelming, please stick with running a simple test site."
  394. msgstr ""
  395. #: ../../appendix/faqs/general.rst:227
  396. #: ../../appendix/faqs/general.rst:227
  397. msgid "500 - Internal Server Error"
  398. msgstr ""
  399. #: ../../appendix/faqs/general.rst:230
  400. #: ../../appendix/faqs/general.rst:230
  401. msgid "What is it?"
  402. msgstr ""
  403. #: ../../appendix/faqs/general.rst:232
  404. #: ../../appendix/faqs/general.rst:232
  405. msgid "A **500 - Internal Server Error** means the web server experienced a problem serving a request."
  406. msgstr ""
  407. #: ../../appendix/faqs/general.rst:236
  408. #: ../../appendix/faqs/general.rst:236
  409. msgid "`The Wikipedia page on HTTP status codes <https://en.wikipedia.org/wiki/List_of_HTTP_status_codes#5xx_Server_Error>`_"
  410. msgstr ""
  411. #: ../../appendix/faqs/general.rst:239
  412. #: ../../appendix/faqs/general.rst:239
  413. msgid "Possible causes"
  414. msgstr ""
  415. #: ../../appendix/faqs/general.rst:242
  416. #: ../../appendix/faqs/general.rst:242
  417. msgid "Web server configuration"
  418. msgstr ""
  419. #: ../../appendix/faqs/general.rst:242
  420. #: ../../appendix/faqs/general.rst:242
  421. msgid "The most common cause for this is an incorrectly configured server. If you edited the ``.htaccess`` file and added something incorrect, Apache will send a 500 error."
  422. msgstr ""
  423. #: ../../appendix/faqs/general.rst:245
  424. #: ../../appendix/faqs/general.rst:245
  425. msgid "Permissions on files"
  426. msgstr ""
  427. #: ../../appendix/faqs/general.rst:245
  428. #: ../../appendix/faqs/general.rst:245
  429. msgid "It could also be a permissions problem on a file. Apache needs to be able to read Elgg's files. Using permissions 755 on directories and 644 on files will allow Apache to read the files."
  430. msgstr ""
  431. #: ../../appendix/faqs/general.rst:248
  432. #: ../../appendix/faqs/general.rst:248
  433. msgid "When I upload a photo or change my profile picture I get a white screen"
  434. msgstr ""
  435. #: ../../appendix/faqs/general.rst:250
  436. #: ../../appendix/faqs/general.rst:250
  437. msgid "Most likely you don't have the PHP GD library installed or configured properly. You may need assistance from the administrator of your server."
  438. msgstr ""
  439. #: ../../appendix/faqs/general.rst:253
  440. #: ../../appendix/faqs/general.rst:253
  441. msgid "CSS is missing"
  442. msgstr ""
  443. #: ../../appendix/faqs/general.rst:256
  444. #: ../../appendix/faqs/general.rst:256
  445. msgid "Wrong URL"
  446. msgstr ""
  447. #: ../../appendix/faqs/general.rst:258
  448. #: ../../appendix/faqs/general.rst:258
  449. msgid "Sometimes people install Elgg so that the base URL is ``localhost`` and then try to view the site using a hostname. In this case, the browser won't be able to load the CSS file. Try viewing the source of the web page and copying the link for the CSS file. Paste that into your browser. If you get a 404 error, it is likely this is your problem. You will need to change the base URL of your site."
  450. msgstr ""
  451. #: ../../appendix/faqs/general.rst:261
  452. #: ../../appendix/faqs/general.rst:261
  453. msgid "Syntax error"
  454. msgstr ""
  455. #: ../../appendix/faqs/general.rst:263
  456. #: ../../appendix/faqs/general.rst:263
  457. msgid "Elgg stores its CSS as PHP code to provide flexibility and power. If there is a syntax error, the CSS file served to the browser may be blank. Disabling non-bundled plugins is the recommended first step."
  458. msgstr ""
  459. #: ../../appendix/faqs/general.rst:266
  460. #: ../../appendix/faqs/general.rst:266
  461. msgid "Rewrite rules errors"
  462. msgstr ""
  463. #: ../../appendix/faqs/general.rst:268
  464. #: ../../appendix/faqs/general.rst:268
  465. msgid "A bad ``.htaccess`` file could also result in a 404 error when requesting the CSS file. This could happen when doing an upgrade and forgetting to also upgrade ``.htaccess``."
  466. msgstr ""
  467. #: ../../appendix/faqs/general.rst:271
  468. #: ../../appendix/faqs/general.rst:271
  469. msgid "Should I edit the database manually?"
  470. msgstr ""
  471. #: ../../appendix/faqs/general.rst:275
  472. #: ../../appendix/faqs/general.rst:275
  473. msgid "No, you should never manually edit the database!"
  474. msgstr ""
  475. #: ../../appendix/faqs/general.rst:278
  476. #: ../../appendix/faqs/general.rst:278
  477. msgid "Will editing the database manually break my site?"
  478. msgstr ""
  479. #: ../../appendix/faqs/general.rst:280
  480. #: ../../appendix/faqs/general.rst:280
  481. msgid "Yes."
  482. msgstr ""
  483. #: ../../appendix/faqs/general.rst:283
  484. #: ../../appendix/faqs/general.rst:283
  485. msgid "Can I add extra fields to tables in the database?"
  486. msgstr ""
  487. #: ../../appendix/faqs/general.rst:285
  488. #: ../../appendix/faqs/general.rst:285
  489. msgid "(AKA: I don't understand the Elgg :doc:`data model </design/database>` so I'm going to add columns. Will you help?)"
  490. msgstr ""
  491. #: ../../appendix/faqs/general.rst:287
  492. #: ../../appendix/faqs/general.rst:287
  493. msgid "No, this is a bad idea. Learn the :doc:`data model </design/database>` and you will see that unless it's a very specific and highly customized installation, you can do everything you need within Elgg's current data model."
  494. msgstr ""
  495. #: ../../appendix/faqs/general.rst:290
  496. #: ../../appendix/faqs/general.rst:290
  497. msgid "I want to remove users. Can't I just delete them from the elgg_users_entity table?"
  498. msgstr ""
  499. #: ../../appendix/faqs/general.rst:292
  500. #: ../../appendix/faqs/general.rst:292
  501. msgid "No, it will corrupt your database. Delete them through the site."
  502. msgstr ""
  503. #: ../../appendix/faqs/general.rst:295
  504. #: ../../appendix/faqs/general.rst:295
  505. msgid "I want to remove spam. Can't I just search and delete it from the elgg_objects_entity table?"
  506. msgstr ""
  507. #: ../../appendix/faqs/general.rst:297
  508. #: ../../appendix/faqs/general.rst:297
  509. msgid "No, it will corrupt your database. Delete it through the site."
  510. msgstr ""
  511. #: ../../appendix/faqs/general.rst:300
  512. #: ../../appendix/faqs/general.rst:300
  513. msgid "Someone on the community site told me to edit the database manually. Should I?"
  514. msgstr ""
  515. #: ../../appendix/faqs/general.rst:302
  516. #: ../../appendix/faqs/general.rst:302
  517. msgid "Who was it? Is it someone experienced with Elgg, like one of the core developers or a well-known plugin author? Did he or she give you clear and specific instructions on what to edit? If you don't know who it is, or if you can't understand or aren't comfortable following the instructions, do not edit the database manually."
  518. msgstr ""
  519. #: ../../appendix/faqs/general.rst:305
  520. #: ../../appendix/faqs/general.rst:305
  521. msgid "I know PHP and MySQL and have a legitimate reason to edit the database. Is it okay to manually edit the database?"
  522. msgstr ""
  523. #: ../../appendix/faqs/general.rst:307
  524. #: ../../appendix/faqs/general.rst:307
  525. msgid "Make sure you understand Elgg's :doc:`data model </design/database>` and schema first. Make a backup, edit carefully, then test copiously."
  526. msgstr ""
  527. #: ../../appendix/faqs/general.rst:310
  528. #: ../../appendix/faqs/general.rst:310
  529. msgid "Internet Explorer (IE) login problem"
  530. msgstr ""
  531. #: ../../appendix/faqs/general.rst:313
  532. #: ../../appendix/faqs/general.rst:313
  533. msgid "Canonical URL"
  534. msgstr ""
  535. #: ../../appendix/faqs/general.rst:315
  536. #: ../../appendix/faqs/general.rst:315
  537. msgid "IE does not like working with sites that use both http://example.org and http://www.example.org. It stores multiple cookies and this causes problems. Best to only use one base URL. For details on how to do this see Login token mismatch error."
  538. msgstr ""
  539. #: ../../appendix/faqs/general.rst:318
  540. #: ../../appendix/faqs/general.rst:318
  541. msgid "Chrome Frame"
  542. msgstr ""
  543. #: ../../appendix/faqs/general.rst:320
  544. #: ../../appendix/faqs/general.rst:320
  545. msgid "Using the chrome frame within IE can break the login process."
  546. msgstr ""
  547. #: ../../appendix/faqs/general.rst:323
  548. #: ../../appendix/faqs/general.rst:323
  549. msgid "Emails don't support non-Latin characters"
  550. msgstr ""
  551. #: ../../appendix/faqs/general.rst:325
  552. #: ../../appendix/faqs/general.rst:325
  553. msgid "In order to support non-Latin characters, (such as Cyrillic or Chinese) Elgg requires `multibyte string support`_ to be compiled into PHP."
  554. msgstr ""
  555. #: ../../appendix/faqs/general.rst:327
  556. #: ../../appendix/faqs/general.rst:327
  557. msgid "On many installs (e.g. Debian & Ubuntu) this is turned on by default. If it is not, you need to turn it on (or recompile PHP to include it). To check whether your server supports multibyte strings, check `phpinfo`_."
  558. msgstr ""
  559. #: ../../appendix/faqs/general.rst:333
  560. #: ../../appendix/faqs/general.rst:333
  561. msgid "Session length"
  562. msgstr ""
  563. #: ../../appendix/faqs/general.rst:335
  564. #: ../../appendix/faqs/general.rst:335
  565. msgid "Session length is controlled by your php configuration. You will first need to locate your ``php.ini`` file. In that file will be several session variables. A complete list and what they do can be found in the `php manual`_."
  566. msgstr ""
  567. #: ../../appendix/faqs/general.rst:340
  568. #: ../../appendix/faqs/general.rst:340
  569. msgid "File is missing an owner"
  570. msgstr ""
  571. #: ../../appendix/faqs/general.rst:342
  572. #: ../../appendix/faqs/general.rst:342
  573. msgid "There are three causes for this error. You could have an entity in your database that has an ``owner_guid`` of ``0``. This should be extremely rare and may only occur if your database/server crashes during a write operation."
  574. msgstr ""
  575. #: ../../appendix/faqs/general.rst:344
  576. #: ../../appendix/faqs/general.rst:344
  577. msgid "The second cause would be an entity where the owner no longer exists. This could occur if a plugin is turned off that was involved in the creation of the entity and then the owner is deleted but the delete operation failed (because the plugin is turned off). If you can figure out entity is causing this, look in your ``entities`` table and change the ``owner_guid`` to your own and then you can delete the entity through Elgg."
  578. msgstr ""
  579. #: ../../appendix/faqs/general.rst:348
  580. #: ../../appendix/faqs/general.rst:348
  581. msgid "Reed the section \"Should I edit the database manually?\". Be very carefull when editing the database directly. It can break your site. **Always** make a backup before doing this."
  582. msgstr ""
  583. #: ../../appendix/faqs/general.rst:350
  584. #: ../../appendix/faqs/general.rst:350
  585. msgid "The third cause is a user not having a username. This also indicates a database problem as this should not be possible. If it does occur, you could see this error when viewing a list of users (such as with the Members plugin). To fix, check your ``users_entity`` table for users without a username and if so, create a fake a username for that person. You should probably then delete the user through Elgg."
  586. msgstr ""
  587. #: ../../appendix/faqs/general.rst:353
  588. #: ../../appendix/faqs/general.rst:353
  589. msgid "Fixes"
  590. msgstr ""
  591. #: ../../appendix/faqs/general.rst:355
  592. #: ../../appendix/faqs/general.rst:355
  593. msgid "`Database Validator`_ plugin will check your database for these causes and provide an option to fix them. Be sure to backup the database before you try the fix option."
  594. msgstr ""
  595. #: ../../appendix/faqs/general.rst:360
  596. #: ../../appendix/faqs/general.rst:360
  597. msgid "No images"
  598. msgstr ""
  599. #: ../../appendix/faqs/general.rst:362
  600. #: ../../appendix/faqs/general.rst:362
  601. msgid "If profile images, group images, or other files have stopped working on your site it is likely due to a misconfiguration, especially if you have migrated to a new server."
  602. msgstr ""
  603. #: ../../appendix/faqs/general.rst:364
  604. #: ../../appendix/faqs/general.rst:364
  605. msgid "These are the most common misconfigurations that cause images and other files to stop working."
  606. msgstr ""
  607. #: ../../appendix/faqs/general.rst:367
  608. #: ../../appendix/faqs/general.rst:367
  609. msgid "Wrong path for data directory"
  610. msgstr ""
  611. #: ../../appendix/faqs/general.rst:369
  612. #: ../../appendix/faqs/general.rst:369
  613. msgid "Make sure the data directory's path is correct in the Site Administration admin area. It should have a trailing slash."
  614. msgstr ""
  615. #: ../../appendix/faqs/general.rst:372
  616. #: ../../appendix/faqs/general.rst:372
  617. msgid "Wrong permissions on the data directory"
  618. msgstr ""
  619. #: ../../appendix/faqs/general.rst:374
  620. #: ../../appendix/faqs/general.rst:374
  621. msgid "Check the permissions for the data directory. The data directory should be readable and writeable by the web server user."
  622. msgstr ""
  623. #: ../../appendix/faqs/general.rst:377
  624. #: ../../appendix/faqs/general.rst:377
  625. msgid "Different timezone"
  626. msgstr ""
  627. #: ../../appendix/faqs/general.rst:381
  628. #: ../../appendix/faqs/general.rst:381
  629. msgid "This only applies to Elgg versions before 1.9"
  630. msgstr ""
  631. #: ../../appendix/faqs/general.rst:383
  632. #: ../../appendix/faqs/general.rst:383
  633. msgid "If you migrated servers or upgraded PHP, check that PHP's timezone settings are the same between the old and the new. If you cannot or don't want to change the system-wide ``php.ini`` file, you can put the following at the top of ``settings.php``:"
  634. msgstr ""
  635. #: ../../appendix/faqs/general.rst:389
  636. #: ../../appendix/faqs/general.rst:389
  637. msgid "Where ``MY_TIME_ZONE`` is a valid `PHP timezone`_."
  638. msgstr ""
  639. #: ../../appendix/faqs/general.rst:394
  640. #: ../../appendix/faqs/general.rst:394
  641. msgid "Migrated installation with new data directory location"
  642. msgstr ""
  643. #: ../../appendix/faqs/general.rst:396
  644. #: ../../appendix/faqs/general.rst:396
  645. msgid "If you migrated an installation and need to change your data directory path, be sure to update the SQL for the filestore location as documented in the :doc:`/admin/duplicate-installation` instructions."
  646. msgstr ""
  647. #: ../../appendix/faqs/general.rst:399
  648. #: ../../appendix/faqs/general.rst:399
  649. msgid "Deprecation warnings"
  650. msgstr ""
  651. #: ../../appendix/faqs/general.rst:401
  652. #: ../../appendix/faqs/general.rst:401
  653. msgid "If you are seeing many deprecation warnings that say things like"
  654. msgstr ""
  655. #: ../../appendix/faqs/general.rst:407
  656. #: ../../appendix/faqs/general.rst:407
  657. msgid "then you are using a plugin that was written for an older version of Elgg. This means the plugin is using functions that are scheduled to be removed in a future version of Elgg. You can ask the plugin developer if the plugin will be updated or you can update the plugin yourself. If neither of those are likely to happen, you should not use that plugin."
  658. msgstr ""
  659. #: ../../appendix/faqs/general.rst:410
  660. #: ../../appendix/faqs/general.rst:410
  661. msgid "Javascript not working"
  662. msgstr ""
  663. #: ../../appendix/faqs/general.rst:412
  664. #: ../../appendix/faqs/general.rst:412
  665. msgid "If the user hover menu stops working or you cannot dismiss system messages, that means JavaScript is broken on your site. This usually due to a plugin having bad JavaScript code. You should find the plugin causing the problem and disable it. You can do this be disabling non-bundled plugins one at a time until the problem goes away. Another approach is disabling all non-bundled plugins and then enabling them one by one until the problem occurs again."
  666. msgstr ""
  667. #: ../../appendix/faqs/general.rst:414
  668. #: ../../appendix/faqs/general.rst:414
  669. msgid "Most web browsers will give you a hint as to what is breaking the JavaScript code. They often have a console for JavaScript errors or an advanced mode for displaying errors. Once you see the error message, you may have an easier time locating the problem."
  670. msgstr ""
  671. #: ../../appendix/faqs/security.rst:2
  672. #: ../../appendix/faqs/security.rst:2
  673. msgid "Security"
  674. msgstr ""
  675. #: ../../appendix/faqs/security.rst:5
  676. #: ../../appendix/faqs/security.rst:5
  677. msgid "Is upgrade.php a security concern?"
  678. msgstr ""
  679. #: ../../appendix/faqs/security.rst:7
  680. #: ../../appendix/faqs/security.rst:7
  681. msgid "Upgrade.php is a file used to run code and database upgrades. It is in the root of the directory and doesn't require a logged in account to access. On a fully upgraded site, running the file will only reset the caches and exit, so this is not a security concern."
  682. msgstr ""
  683. #: ../../appendix/faqs/security.rst:9
  684. #: ../../appendix/faqs/security.rst:9
  685. msgid "If you are still concerned, you can either delete, move, or change permissions on the file until you need to upgrade."
  686. msgstr ""
  687. #: ../../appendix/faqs/security.rst:12
  688. #: ../../appendix/faqs/security.rst:12
  689. msgid "Should I delete install.php?"
  690. msgstr ""
  691. #: ../../appendix/faqs/security.rst:14
  692. #: ../../appendix/faqs/security.rst:14
  693. msgid "This file is used to install Elgg and doesn't need to be deleted. The file checks if Elgg is already installed and forwards the user to the front page if it is."
  694. msgstr ""
  695. #: ../../appendix/faqs/security.rst:17
  696. #: ../../appendix/faqs/security.rst:17
  697. msgid "Filtering"
  698. msgstr ""
  699. #: ../../appendix/faqs/security.rst:19
  700. #: ../../appendix/faqs/security.rst:19
  701. msgid "Filtering is used in Elgg to make `XSS`_ attacks more difficult. The purpose of the filtering is to remove Javascript and other dangerous input from users."
  702. msgstr ""
  703. #: ../../appendix/faqs/security.rst:21
  704. #: ../../appendix/faqs/security.rst:21
  705. msgid "Filtering is performed through the function ``filter_tags()``. This function takes in a string and returns a filtered string. It triggers a *validate*, *input* :ref:`plugin hook <design/events#plugin-hooks>`. By default Elgg comes with the htmLawed filtering code as a plugin. Developers can drop in any additional or replacement filtering code as a plugin."
  706. msgstr ""
  707. #: ../../appendix/faqs/security.rst:23
  708. #: ../../appendix/faqs/security.rst:23
  709. msgid "The ``filter_tags()`` function is called on any user input as long as the input is obtained through a call to ``get_input()``. If for some reason a developer did not want to perform the default filtering on some user input, the ``get_input()`` function has a parameter for turning off filtering."
  710. msgstr ""
  711. #: ../../appendix/faqs/development.rst:2
  712. #: ../../appendix/faqs/development.rst:2
  713. msgid "Development"
  714. msgstr ""
  715. #: ../../appendix/faqs/development.rst:5
  716. #: ../../appendix/faqs/development.rst:5
  717. msgid "What should I use to edit php code?"
  718. msgstr ""
  719. #: ../../appendix/faqs/development.rst:7
  720. #: ../../appendix/faqs/development.rst:7
  721. msgid "There are two main options: text editor or `integrated development environment`_ (IDE)."
  722. msgstr ""
  723. #: ../../appendix/faqs/development.rst:10
  724. #: ../../appendix/faqs/development.rst:10
  725. msgid "Text Editor"
  726. msgstr ""
  727. #: ../../appendix/faqs/development.rst:12
  728. #: ../../appendix/faqs/development.rst:12
  729. msgid "If you are new to software development or do not have much experience with IDEs, using a text editor will get you up and running the quickest. At a minimum, you will want one that does syntax highlighting to make the code easier to read. If you think you might submit patches to the bug tracker, you will want to make sure that your text editor does not change line endings. If you are using Windows, `Notepad++`_ is a good choice. If you are on a Mac, TextWrangler_ is a popular choice. You could also give TextMate_ a try."
  730. msgstr ""
  731. #: ../../appendix/faqs/development.rst:15
  732. #: ../../appendix/faqs/development.rst:15
  733. msgid "Integrated Development Environment"
  734. msgstr ""
  735. #: ../../appendix/faqs/development.rst:17
  736. #: ../../appendix/faqs/development.rst:17
  737. msgid "An IDE does just what its name implies: it includes a set of tools that you would normally use separately. Most IDEs will include source code control which will allow you to directly commit and update your code from your cvs repository. It may have an FTP client built into it to make the transfer of files to a remote server easier. It will have syntax checking to catch errors before you try to execute the code on a server."
  738. msgstr ""
  739. #: ../../appendix/faqs/development.rst:19
  740. #: ../../appendix/faqs/development.rst:19
  741. msgid "The two most popular free IDEs for PHP developers are Eclipse_ and NetBeans_. Eclipse has two different plugins for working with PHP code: PDT_ and PHPEclipse_."
  742. msgstr ""
  743. #: ../../appendix/faqs/development.rst:31
  744. #: ../../appendix/faqs/development.rst:31
  745. msgid "I don't like the wording of something in Elgg. How do I change it?"
  746. msgstr ""
  747. #: ../../appendix/faqs/development.rst:33
  748. #: ../../appendix/faqs/development.rst:33
  749. msgid "The best way to do this is with a plugin."
  750. msgstr ""
  751. #: ../../appendix/faqs/development.rst:41
  752. #: ../../appendix/faqs/development.rst:41
  753. msgid "Locate the string that you want to change"
  754. msgstr ""
  755. #: ../../appendix/faqs/development.rst:43
  756. #: ../../appendix/faqs/development.rst:43
  757. msgid "All the strings that a user sees should be in the ``/languages`` directory or in a plugin's languages directory (``/mod/<plugin name>/languages``). This is done so that it is easy to change what language Elgg uses. For more information on this see the developer documentation on :doc:`/guides/i18n` ."
  758. msgstr ""
  759. #: ../../appendix/faqs/development.rst:45
  760. #: ../../appendix/faqs/development.rst:45
  761. msgid "To find the string use ``grep`` or a text editor that provides searching through files to locate the string. (A good text editor for Windows is `Notepad++`_ ) Let's say we want to change the string \"Add friend\" to \"Make a new friend\". The ``grep`` command to find this string would be ``grep -r \"Add friend\" *``. Using `Notepad++`_ , you would use the \"Find in files\" command. You would search for the string, set the filter to ``*.php``, set the directory to the base directory of Elgg, and make sure it searches all subdirectories. You might want to set it to be case sensitive also."
  762. msgstr ""
  763. #: ../../appendix/faqs/development.rst:47
  764. #: ../../appendix/faqs/development.rst:47
  765. msgid "You should locate the string \"Add friend\" in ``/languages/en.php``. You should see something like this in the file:"
  766. msgstr ""
  767. #: ../../appendix/faqs/development.rst:53
  768. #: ../../appendix/faqs/development.rst:53
  769. msgid "This means every time Elgg sees ``friend:add`` it replaces it with \"Add friend\". We want to change the definition of ``friend:add``."
  770. msgstr ""
  771. #: ../../appendix/faqs/development.rst:56
  772. #: ../../appendix/faqs/development.rst:56
  773. msgid "Override the string"
  774. msgstr ""
  775. #: ../../appendix/faqs/development.rst:58
  776. #: ../../appendix/faqs/development.rst:58
  777. msgid "To override this definition, we will add a languages file to the plugin that we built in the first step."
  778. msgstr ""
  779. #: ../../appendix/faqs/development.rst:60
  780. #: ../../appendix/faqs/development.rst:60
  781. msgid "Create a new directory: ``/mod/<your plugin name>/languages``"
  782. msgstr ""
  783. #: ../../appendix/faqs/development.rst:61
  784. #: ../../appendix/faqs/development.rst:61
  785. msgid "Create a file in that directory called ``en.php``"
  786. msgstr ""
  787. #: ../../appendix/faqs/development.rst:62
  788. #: ../../appendix/faqs/development.rst:62
  789. msgid "Add these lines to that file"
  790. msgstr ""
  791. #: ../../appendix/faqs/development.rst:72
  792. #: ../../appendix/faqs/development.rst:72
  793. msgid "Make sure that you do not have any spaces or newlines before the ``<?php``."
  794. msgstr ""
  795. #: ../../appendix/faqs/development.rst:74
  796. #: ../../appendix/faqs/development.rst:74
  797. msgid "You're done now and should be able to enable the plugin and see the change. If you are override the language of a plugin, make sure your plugin is loaded after the one you are trying to modify. The loading order is determined in the Tools Administration page of the admin section. As you find more things that you'd like to change, you can keep adding them to this plugin."
  798. msgstr ""
  799. #: ../../appendix/faqs/development.rst:77
  800. #: ../../appendix/faqs/development.rst:77
  801. msgid "How do I find the code that does x?"
  802. msgstr ""
  803. #: ../../appendix/faqs/development.rst:79
  804. #: ../../appendix/faqs/development.rst:79
  805. msgid "The best way to find the code that does something that you would like to change is to use ``grep`` or a similar search tool. If you do not have ``grep`` as a part of your operating system, you will want to install a grep tool or use a text-editor/IDE that has good searching in files. `Notepad++`_ is a good choice for Windows users. `Eclipse`_ with PHP and `NetBeans`_ are good choices for any platform."
  806. msgstr ""
  807. #: ../../appendix/faqs/development.rst:82
  808. #: ../../appendix/faqs/development.rst:82
  809. msgid "String Example"
  810. msgstr ""
  811. #: ../../appendix/faqs/development.rst:84
  812. #: ../../appendix/faqs/development.rst:84
  813. msgid "Let's say that you want to find where the *Log In* box code is located. A string from the *Log In* box that should be fairly unique is ``Remember me``. ``Grep`` for that string. You will find that it is only used in the ``en.php`` file in the ``/languages`` directory. There it is used to define the :doc:`/guides/i18n` string ``user:persistent``. ``Grep`` for that string now. You will find it in two places: the same ``en.php`` language file and in ``/views/default/forms/login.php``. The latter defines the html code that makes up the *Log In* box."
  814. msgstr ""
  815. #: ../../appendix/faqs/development.rst:87
  816. #: ../../appendix/faqs/development.rst:87
  817. msgid "Action Example"
  818. msgstr ""
  819. #: ../../appendix/faqs/development.rst:89
  820. #: ../../appendix/faqs/development.rst:89
  821. msgid "Let's say that you want to find the code that is run when a user clicks on the *Save* button when arranging widgets on a profile page. View the Profile page for a test user. Use Firebug to drill down through the html of the page until you come to the action of the edit widgets form. You'll see the url from the base is ``action/widgets/move``."
  822. msgstr ""
  823. #: ../../appendix/faqs/development.rst:91
  824. #: ../../appendix/faqs/development.rst:91
  825. msgid "``Grep`` on ``widgets/move`` and two files are returned. One is the JavaScript code for the widgets : ``/js/lib/ui.widgets.js``. The other one, ``/engine/lib/widgets.php``, is where the action is registered using ``elgg_register_action('widgets/reorder')``. You may not be familiar with that function in which case, you should look it up at the API reference. Do a search on the function and it returns the documentation on the function. This tells you that the action is in the default location since a file location was not specified. The default location for actions is ``/actions`` so you will find the file at ``/actions/widgets/move.php``."
  826. msgstr ""
  827. #: ../../appendix/faqs/development.rst:94
  828. #: ../../appendix/faqs/development.rst:94
  829. msgid "Debug mode"
  830. msgstr ""
  831. #: ../../appendix/faqs/development.rst:96
  832. #: ../../appendix/faqs/development.rst:96
  833. msgid "During the installation process you might have noticed a checkbox that controlled whether debug mode was turned on or off. This setting can also be changed on the Site Administration page. Debug mode writes a lot of extra data to your php log. For example, when running in this mode every query to the database is written to your logs. It may be useful for debugging a problem though it can produce an overwhelming amount of data that may not be related to the problem at all. You may want to experiment with this mode to understand what it does, but make sure you run Elgg in normal mode on a production server."
  834. msgstr ""
  835. #: ../../appendix/faqs/development.rst:100
  836. #: ../../appendix/faqs/development.rst:100
  837. msgid "Because of the amount of data being logged, don't enable this on a production server as it can fill up the log files really quick."
  838. msgstr ""
  839. #: ../../appendix/faqs/development.rst:103
  840. #: ../../appendix/faqs/development.rst:103
  841. msgid "What goes into the log in debug mode?"
  842. msgstr ""
  843. #: ../../appendix/faqs/development.rst:105
  844. #: ../../appendix/faqs/development.rst:105
  845. msgid "All database queries"
  846. msgstr ""
  847. #: ../../appendix/faqs/development.rst:106
  848. #: ../../appendix/faqs/development.rst:106
  849. msgid "Database query profiling"
  850. msgstr ""
  851. #: ../../appendix/faqs/development.rst:107
  852. #: ../../appendix/faqs/development.rst:107
  853. msgid "Page generation time"
  854. msgstr ""
  855. #: ../../appendix/faqs/development.rst:108
  856. #: ../../appendix/faqs/development.rst:108
  857. msgid "Number of queries per page"
  858. msgstr ""
  859. #: ../../appendix/faqs/development.rst:109
  860. #: ../../appendix/faqs/development.rst:109
  861. msgid "List of plugin language files"
  862. msgstr ""
  863. #: ../../appendix/faqs/development.rst:110
  864. #: ../../appendix/faqs/development.rst:110
  865. msgid "Additional errors/warnings compared to normal mode (it's very rare for these types of errors to be related to any problem that you might be having)"
  866. msgstr ""
  867. #: ../../appendix/faqs/development.rst:113
  868. #: ../../appendix/faqs/development.rst:113
  869. msgid "What does the data look like?"
  870. msgstr ""
  871. #: ../../appendix/faqs/development.rst:145
  872. #: ../../appendix/faqs/development.rst:145
  873. msgid "What events are triggered on every page load?"
  874. msgstr ""
  875. #: ../../appendix/faqs/develop

Large files files are truncated, but you can click here to view the full file