]> git.mjollnir.org Git - moodle.git/log
moodle.git
16 years agoUpdated the HEAD build version to 20090409
moodlerobot [Thu, 9 Apr 2009 00:34:13 +0000 (00:34 +0000)]
Updated the HEAD build version to 20090409

16 years agoddllib.php: add required library
tjhunt [Wed, 8 Apr 2009 11:46:39 +0000 (11:46 +0000)]
ddllib.php: add required library

16 years agoweblib progress_bar: Add a comment and fix some coding style.
tjhunt [Wed, 8 Apr 2009 11:46:19 +0000 (11:46 +0000)]
weblib progress_bar: Add a comment and fix some coding style.

16 years agoget_string: MDL-18813 get_string was broken for strings that were ''
tjhunt [Wed, 8 Apr 2009 11:45:53 +0000 (11:45 +0000)]
get_string: MDL-18813 get_string was broken for strings that were ''

16 years agoUpdated the HEAD build version to 20090408
moodlerobot [Wed, 8 Apr 2009 00:34:10 +0000 (00:34 +0000)]
Updated the HEAD build version to 20090408

16 years agoAutomatic installer.php lang files by installer_builder (20090408)
moodlerobot [Wed, 8 Apr 2009 00:24:03 +0000 (00:24 +0000)]
Automatic installer.php lang files by installer_builder (20090408)

16 years agoMDL-13224 fixed coding style
skodak [Tue, 7 Apr 2009 07:45:03 +0000 (07:45 +0000)]
MDL-13224 fixed coding style

16 years agoweblib: fix bug with disabled pop_form()s
tjhunt [Tue, 7 Apr 2009 07:40:40 +0000 (07:40 +0000)]
weblib: fix bug with disabled pop_form()s

16 years agoImprovment in displaying tabs in Safari
rezaie9 [Tue, 7 Apr 2009 07:25:05 +0000 (07:25 +0000)]
Improvment in displaying tabs in Safari
Changes applyed by Shamim Rezaie (http://rezaie.info)

16 years agofix variable name typo
tjhunt [Tue, 7 Apr 2009 05:20:16 +0000 (05:20 +0000)]
fix variable name typo

16 years agoUnitTestCaseUsingDatabase: fix bug with install_one_table_from_xmldb_file
tjhunt [Tue, 7 Apr 2009 05:19:20 +0000 (05:19 +0000)]
UnitTestCaseUsingDatabase: fix bug with install_one_table_from_xmldb_file

The bug prevented you creating the first table from an install.xml file

16 years agoqtype admin: operator precedence bug when deleting qtypes
tjhunt [Tue, 7 Apr 2009 05:17:04 +0000 (05:17 +0000)]
qtype admin: operator precedence bug when deleting qtypes

16 years agoqtype admin: sort lang file properly
tjhunt [Tue, 7 Apr 2009 05:16:38 +0000 (05:16 +0000)]
qtype admin: sort lang file properly

16 years agoUpdated the HEAD build version to 20090407
moodlerobot [Tue, 7 Apr 2009 00:35:33 +0000 (00:35 +0000)]
Updated the HEAD build version to 20090407

16 years agoFixing:
rezaie9 [Mon, 6 Apr 2009 22:50:21 +0000 (22:50 +0000)]
Fixing:
- alignment of review options headers in quiz module
- inappropriate margin for navbar
- tabs problem (MDL-10719)
Changes applyed by Shamim Rezaie (http://rezaie.info)

16 years agoMDL-18797 string_manager::instance()->get_registered_plugin_types() does not return...
mudrd8mz [Mon, 6 Apr 2009 13:06:04 +0000 (13:06 +0000)]
MDL-18797 string_manager::instance()->get_registered_plugin_types() does not return "__exceptions" as places_to_search_for_lang_strings() used to do.

16 years agoMDL-18768: Limited size of context and modinfo caches to avoid memory problems with...
sam_marshall [Mon, 6 Apr 2009 09:48:39 +0000 (09:48 +0000)]
MDL-18768: Limited size of context and modinfo caches to avoid memory problems with code that loops through many courses, also changed forum role_assign to use recordset for all-courses loops

16 years agoMDL-18414 change sql query syntax
peterbulmer [Mon, 6 Apr 2009 06:15:58 +0000 (06:15 +0000)]
MDL-18414 change sql query syntax

Author: Peter Bulmer <peter.bulmer@catalyst.net.nz>

16 years agoMDL-18413 limit coursedata strings before db
peterbulmer [Mon, 6 Apr 2009 06:15:00 +0000 (06:15 +0000)]
MDL-18413 limit coursedata strings before db

Conflicts:

enrol/mnet/enrol.php

Author: Peter Bulmer <peter.bulmer@catalyst.net.nz>

16 years agotypo - reponse instead of response
arborrow [Mon, 6 Apr 2009 03:47:12 +0000 (03:47 +0000)]
typo - reponse instead of response

16 years agofomslib: MDL-18735 disabledif not working in IE if depended on element was a <select>.
tjhunt [Mon, 6 Apr 2009 02:56:37 +0000 (02:56 +0000)]
fomslib: MDL-18735 disabledif not working in IE if depended on element was a <select>.

This was a regression from MDL-18522. Sorry.

16 years agoshortanswer qtype: Add the problem case from http://moodle.org/mod/forum/discuss...
tjhunt [Mon, 6 Apr 2009 02:03:10 +0000 (02:03 +0000)]
shortanswer qtype: Add the problem case from http://moodle.org/mod/forum/discuss.php?d=120557 to the unit tests.

16 years agoUpdated the HEAD build version to 20090406
moodlerobot [Mon, 6 Apr 2009 00:35:04 +0000 (00:35 +0000)]
Updated the HEAD build version to 20090406

16 years agopassword policy: MDL-17602 disable consecutive identical characters check by default
fmarier [Sun, 5 Apr 2009 23:46:32 +0000 (23:46 +0000)]
password policy: MDL-17602 disable consecutive identical characters check by default

16 years agoMDL-17037 ran all GIF images through gifsicle and PNG through optipng
fmarier [Sun, 5 Apr 2009 23:33:00 +0000 (23:33 +0000)]
MDL-17037 ran all GIF images through gifsicle and PNG through optipng

16 years agoMDL-18772 fixed aut oupdating of grademax for SUM aggregation type
skodak [Sun, 5 Apr 2009 20:17:04 +0000 (20:17 +0000)]
MDL-18772 fixed aut oupdating of grademax for SUM aggregation type

16 years agoMDL-18778 more robust reset form defaults
skodak [Sun, 5 Apr 2009 19:32:33 +0000 (19:32 +0000)]
MDL-18778 more robust reset form defaults

16 years agotypo - missinf instead of missing
arborrow [Sun, 5 Apr 2009 05:12:12 +0000 (05:12 +0000)]
typo - missinf instead of missing

16 years agoUpdated the HEAD build version to 20090405
moodlerobot [Sun, 5 Apr 2009 00:34:06 +0000 (00:34 +0000)]
Updated the HEAD build version to 20090405

16 years agoUpdated the HEAD build version to 20090404
moodlerobot [Sat, 4 Apr 2009 00:31:34 +0000 (00:31 +0000)]
Updated the HEAD build version to 20090404

16 years agoMDL-18094: course/viewhiddenactivities didn't work (in some parts of the code) at...
sam_marshall [Fri, 3 Apr 2009 13:11:05 +0000 (13:11 +0000)]
MDL-18094: course/viewhiddenactivities didn't work (in some parts of the code) at module level

16 years agosimpletestlib: Fix typo in error message
tjhunt [Fri, 3 Apr 2009 08:38:30 +0000 (08:38 +0000)]
simpletestlib: Fix typo in error message

16 years agoMDL-17272 merged from MOODLE_19_STABLE
nicolasconnault [Fri, 3 Apr 2009 08:14:01 +0000 (08:14 +0000)]
MDL-17272 merged from MOODLE_19_STABLE

16 years agoget_string: MDL-18669 - fixing a screw-up spotted by Dongsheng. Thanks.
tjhunt [Fri, 3 Apr 2009 07:41:40 +0000 (07:41 +0000)]
get_string: MDL-18669 - fixing a screw-up spotted by Dongsheng. Thanks.

16 years ago"MDL-18520, fix warning in file system plugin"
dongsheng [Fri, 3 Apr 2009 07:32:51 +0000 (07:32 +0000)]
"MDL-18520, fix warning in file system plugin"

16 years ago"MDL-17475, fix bad sql when add repository instances"
dongsheng [Fri, 3 Apr 2009 07:31:43 +0000 (07:31 +0000)]
"MDL-17475, fix bad sql when add repository instances"

16 years agoFix XHTML strict problems in XMLDB.
tjhunt [Fri, 3 Apr 2009 05:47:59 +0000 (05:47 +0000)]
Fix XHTML strict problems in XMLDB.

16 years ago"MDL-17261, add language string, see details on tracker"
dongsheng [Fri, 3 Apr 2009 02:26:43 +0000 (02:26 +0000)]
"MDL-17261, add language string, see details on tracker"

16 years agoPassword policy: MDL-17602 new "max consecutive identical characters" setting
fmarier [Fri, 3 Apr 2009 02:22:52 +0000 (02:22 +0000)]
Password policy: MDL-17602 new "max consecutive identical characters" setting

16 years ago"MDL-17475, if webdav_server is empty, return null"
dongsheng [Fri, 3 Apr 2009 02:16:48 +0000 (02:16 +0000)]
"MDL-17475, if webdav_server is empty, return null"

16 years agomod/resource: MDL-18641 ability for resource type plugins to specify their own icon
fmarier [Fri, 3 Apr 2009 01:13:42 +0000 (01:13 +0000)]
mod/resource: MDL-18641 ability for resource type plugins to specify their own icon

16 years agoUpdated the HEAD build version to 20090403
moodlerobot [Fri, 3 Apr 2009 00:34:34 +0000 (00:34 +0000)]
Updated the HEAD build version to 20090403

16 years agoMDL-18094: course/viewhiddenactivities didn't work (in some parts of the code) at...
sam_marshall [Thu, 2 Apr 2009 16:32:12 +0000 (16:32 +0000)]
MDL-18094: course/viewhiddenactivities didn't work (in some parts of the code) at module level

16 years agoMDL-17273 Preventing import of corrupted csv files. Merged from MOODLE_19_STABLE
nicolasconnault [Thu, 2 Apr 2009 12:53:04 +0000 (12:53 +0000)]
MDL-17273 Preventing import of corrupted csv files. Merged from MOODLE_19_STABLE

16 years agoMDL-13501 Removing stats and visual reports from HEAD
nicolasconnault [Thu, 2 Apr 2009 12:51:14 +0000 (12:51 +0000)]
MDL-13501 Removing stats and visual reports from HEAD

16 years agoMDL-17810: Fix to stop you making activities depend on themselves
sam_marshall [Thu, 2 Apr 2009 12:00:09 +0000 (12:00 +0000)]
MDL-17810: Fix to stop you making activities depend on themselves

16 years agolang editing: MDL-18776 fix regression from MDL-18669.
tjhunt [Thu, 2 Apr 2009 09:37:29 +0000 (09:37 +0000)]
lang editing: MDL-18776 fix regression from MDL-18669.

16 years agoUpdate a comment as a test of committing via git.
tjhunt [Thu, 2 Apr 2009 07:50:33 +0000 (07:50 +0000)]
Update a comment as a test of committing via git.

16 years agoweb service MDL-12886 merged Pigui's Team work on course external file + some refactoring
jerome [Thu, 2 Apr 2009 06:59:14 +0000 (06:59 +0000)]
web service MDL-12886 merged Pigui's Team work on course external file + some refactoring

16 years ago"MDL-18520, change block_list into a static member of class"
dongsheng [Thu, 2 Apr 2009 06:21:05 +0000 (06:21 +0000)]
"MDL-18520, change block_list into a static member of class"

16 years ago"MDL-13224, language string for mymoodle options"
dongsheng [Thu, 2 Apr 2009 03:32:10 +0000 (03:32 +0000)]
"MDL-13224, language string for mymoodle options"

16 years ago"MDL-13224, convert type of courses limit, everything coming from database is string...
dongsheng [Thu, 2 Apr 2009 02:49:54 +0000 (02:49 +0000)]
"MDL-13224, convert type of courses limit, everything coming from database is string, merged from 1.9"

16 years agotranslation: MDL-18766 reverting. I guess it was not yet ready for prime-time.
tjhunt [Thu, 2 Apr 2009 02:42:11 +0000 (02:42 +0000)]
translation: MDL-18766 reverting. I guess it was not yet ready for prime-time.

I'll commit the patch to contrib in case anyone wishes to experiment further.

16 years agoUpdated the HEAD build version to 20090402
moodlerobot [Thu, 2 Apr 2009 00:33:24 +0000 (00:33 +0000)]
Updated the HEAD build version to 20090402

16 years agoMDL-18766 Towards improved translation
stronk7 [Wed, 1 Apr 2009 09:04:21 +0000 (09:04 +0000)]
MDL-18766 Towards improved translation

16 years ago"MDL-13224, select how many courses can be shown in mymoodle page"
dongsheng [Wed, 1 Apr 2009 07:38:32 +0000 (07:38 +0000)]
"MDL-13224, select how many courses can be shown in mymoodle page"

16 years ago"MDL-13224, select how many courses can be shown in mymoodle page"
dongsheng [Wed, 1 Apr 2009 07:32:57 +0000 (07:32 +0000)]
"MDL-13224, select how many courses can be shown in mymoodle page"

16 years ago"REPOSITORY/MDL-17466, display which plugin is valid"
dongsheng [Wed, 1 Apr 2009 05:47:14 +0000 (05:47 +0000)]
"REPOSITORY/MDL-17466, display which plugin is valid"

16 years ago"REPOSITORY/MDL-17466, display which plugin is valid"
dongsheng [Wed, 1 Apr 2009 05:40:37 +0000 (05:40 +0000)]
"REPOSITORY/MDL-17466, display which plugin is valid"

16 years agofile api: MDL-18754 improve the names of some functions.
tjhunt [Wed, 1 Apr 2009 04:34:58 +0000 (04:34 +0000)]
file api: MDL-18754 improve the names of some functions.

The new names are documented on
http://docs.moodle.org/en/Development:Convert_Draftarea_Files

16 years agotranslation: MDL-18766 Prototype automatic translation system for Moodle.
tjhunt [Wed, 1 Apr 2009 00:39:17 +0000 (00:39 +0000)]
translation: MDL-18766 Prototype automatic translation system for Moodle.

If Google can do something like http://translate.google.com/, surely we
can do something just as good in Moodle. Here is a first attempt. It is
a bit rough around the edges, and only a couple of target lananguages
have been implemented so far. (More and better attempts welcome!)

In order to ensure that this gets adequate testing, I have made sure that
it gets turn on by default. However, if you really don't like it, you can
turn it off under Administration > Development -> Experimental settings.

16 years agoUpdated the HEAD build version to 20090401
moodlerobot [Wed, 1 Apr 2009 00:33:21 +0000 (00:33 +0000)]
Updated the HEAD build version to 20090401

16 years agoMDL-18552 different TeX trouble fix
skodak [Tue, 31 Mar 2009 10:03:10 +0000 (10:03 +0000)]
MDL-18552 different TeX trouble fix

16 years agoweb service MDL-12886 administration: implement settings for servers (add amf debug...
jerome [Tue, 31 Mar 2009 03:29:01 +0000 (03:29 +0000)]
web service MDL-12886 administration: implement settings for servers  (add amf debug option)

16 years agoMDL-15484 Avoid JavaScript errors after a popup has been blocked.
tjhunt [Tue, 31 Mar 2009 03:24:21 +0000 (03:24 +0000)]
MDL-15484 Avoid JavaScript errors after a popup has been blocked.

Also clean up coding style of some nearby functions.

16 years agoUpdated the HEAD build version to 20090331
moodlerobot [Tue, 31 Mar 2009 00:35:40 +0000 (00:35 +0000)]
Updated the HEAD build version to 20090331

16 years agoMDL-18540 fixing "extra" memory strings
skodak [Mon, 30 Mar 2009 17:09:39 +0000 (17:09 +0000)]
MDL-18540 fixing "extra" memory strings

16 years ago"MDL-18540, change the uses of option"
dongsheng [Mon, 30 Mar 2009 10:07:24 +0000 (10:07 +0000)]
"MDL-18540, change the uses of option"

16 years agoeditor formslib element: symbolic constant EDITOR_UNLIMITED_FILES instead of hard...
tjhunt [Mon, 30 Mar 2009 10:01:39 +0000 (10:01 +0000)]
editor formslib element: symbolic constant EDITOR_UNLIMITED_FILES instead of hard-coded -1.

16 years ago"MDL-18540, change option name to extramemorylimit"
dongsheng [Mon, 30 Mar 2009 09:42:28 +0000 (09:42 +0000)]
"MDL-18540, change option name to extramemorylimit"

16 years ago"MDL-18540, use admin_setting_configselect to set option"
dongsheng [Mon, 30 Mar 2009 09:17:44 +0000 (09:17 +0000)]
"MDL-18540, use admin_setting_configselect to set option"

16 years agoqtypes: MDL-18711 Allow qtype plugins to have custom CSS and JavaScript on the editin...
tjhunt [Mon, 30 Mar 2009 09:15:46 +0000 (09:15 +0000)]
qtypes: MDL-18711 Allow qtype plugins to have custom CSS and JavaScript on the editing page.

16 years agofilters: MDL-17684 Look for the filter name in filter_myfilter.php first.
tjhunt [Mon, 30 Mar 2009 08:33:13 +0000 (08:33 +0000)]
filters: MDL-17684 Look for the filter name in filter_myfilter.php first.

This makes filters more plugginable, becuase with this lang file name, get_string will look for the filter name in filter/myfilter/lang/en_utf8/filter_myfilter.php.

To do this, there is a new function filter_get_name in filterlib that contains the logic.

Also, a new function filter_get_all_installed to replace the logic for getting all filters that was duplicated in three places.

filter_get_name no longer does such a nice fall-back if the name is missing, to encourage people to supply the right string. The fallback now looks like '[[filtername]] (filter/tidy)'.

16 years agoMDL-18409: new message required for "Remove grade item" form element
gbateson [Mon, 30 Mar 2009 07:09:56 +0000 (07:09 +0000)]
MDL-18409: new message required for "Remove grade item" form element

16 years agoDB unit tests: improve the class so it is easier to use.
tjhunt [Mon, 30 Mar 2009 07:05:29 +0000 (07:05 +0000)]
DB unit tests: improve the class so it is easier to use.

16 years agowhen search for media players, remove requirment for <object> tag to contain a space...
gbateson [Mon, 30 Mar 2009 07:03:55 +0000 (07:03 +0000)]
when search for media players, remove requirment for <object> tag to contain a space, and make closing </A> tag lowercase

16 years agoget_string: MDL-13816 allow third-partly modules to register sub-plugin types that...
tjhunt [Mon, 30 Mar 2009 06:13:35 +0000 (06:13 +0000)]
get_string: MDL-13816 allow third-partly modules to register sub-plugin types that have their own lang files.

I suppose to be really useful we should deal with database, capabiltities, etc. too in due course. Still, this is a start.

16 years agohelp.php: related to MDL-13816. Clean up the URLs used for help files by removing...
tjhunt [Mon, 30 Mar 2009 06:11:32 +0000 (06:11 +0000)]
help.php: related to MDL-13816. Clean up the URLs used for help files by removing unused parameters.

16 years ago"MDL-18540, fixed default value of memorylimit"
dongsheng [Mon, 30 Mar 2009 04:42:55 +0000 (04:42 +0000)]
"MDL-18540, fixed default value of memorylimit"

16 years agoget_string: Refactoring, performance improvements, bug fixes and unit tests
tjhunt [Mon, 30 Mar 2009 02:21:27 +0000 (02:21 +0000)]
get_string: Refactoring, performance improvements, bug fixes and unit tests

MDL-18669 get_string refactored to elimiate duplicate code and make it easier to understand.
MDL-17763 parent language not processed correctly when getting a plugin string.
MDL-16181 more intelligent caching to avoid repeated file_exists checks.
MDL-12434 move values to array keys to improve lookup times.

The main part of the refactoring is to create a singleton string_manager class to encapsulate the cached data and the processing, while breaking the code up into more smaller methods.

Other performance improvements include:
* Cache results of plugin name -> locations to search array.
* Cache parent lang lookup.
* Skip eval if the string does not contain $ \ or %.
* Remove the unnecessary sprintf from the eval.

There is a performance testing script in lib/simpletest/getstringperformancetester.php. For now this script has the old get_string implementation copied and pasted to the end, and renamed to old_get_string to allow for comparitive timings.

There are now some unit tests for get_string in lib/simpletest/teststringmanager.php. I think I have managed to cover most of the tricky cases.

16 years agoRemove failing unit tests. (We are going to remove enum support from the database...
tjhunt [Mon, 30 Mar 2009 01:57:47 +0000 (01:57 +0000)]
Remove failing unit tests. (We are going to remove enum support from the database layer anyway.)

16 years agoUpdated the HEAD build version to 20090330
moodlerobot [Mon, 30 Mar 2009 00:40:05 +0000 (00:40 +0000)]
Updated the HEAD build version to 20090330

16 years agoMDL-18716 - ALL Notification E-Mails are sent to System Admins
agrabs [Sun, 29 Mar 2009 01:30:38 +0000 (01:30 +0000)]
MDL-18716 - ALL Notification E-Mails are sent to System Admins

16 years agoUpdated the HEAD build version to 20090329
moodlerobot [Sun, 29 Mar 2009 00:35:19 +0000 (00:35 +0000)]
Updated the HEAD build version to 20090329

16 years agoDML fix
skodak [Sat, 28 Mar 2009 22:18:53 +0000 (22:18 +0000)]
DML fix

16 years agoMDL-14591 adding standard access control
skodak [Sat, 28 Mar 2009 22:15:12 +0000 (22:15 +0000)]
MDL-14591 adding standard access control

16 years agoMDL-14591 adding standard access control
skodak [Sat, 28 Mar 2009 22:02:00 +0000 (22:02 +0000)]
MDL-14591 adding standard access control

16 years agoMDL-18733 adding note - we need to use user keys instead of cookies here
skodak [Sat, 28 Mar 2009 21:45:54 +0000 (21:45 +0000)]
MDL-18733 adding note - we need to use user keys instead of cookies here

16 years agoMDL-14679 fixed DML
skodak [Sat, 28 Mar 2009 15:59:26 +0000 (15:59 +0000)]
MDL-14679 fixed DML

16 years agoMDL-18163 removed bogus archive
skodak [Sat, 28 Mar 2009 15:57:16 +0000 (15:57 +0000)]
MDL-18163 removed bogus archive

16 years agoMDL-18727 param types ARE required
skodak [Sat, 28 Mar 2009 15:51:42 +0000 (15:51 +0000)]
MDL-18727 param types ARE required

16 years agoMDL-18729 param types ARE required
skodak [Sat, 28 Mar 2009 15:46:34 +0000 (15:46 +0000)]
MDL-18729 param types ARE required

16 years agoMDL-18728 dml cleanup
skodak [Sat, 28 Mar 2009 15:45:41 +0000 (15:45 +0000)]
MDL-18728 dml cleanup

16 years agoMDL-18163 noting arrayview.php design is not acceptable in official moodle
skodak [Sat, 28 Mar 2009 15:39:31 +0000 (15:39 +0000)]
MDL-18163 noting arrayview.php design is not acceptable in official moodle

16 years agoMDL-18726 dml cleanup
skodak [Sat, 28 Mar 2009 15:18:38 +0000 (15:18 +0000)]
MDL-18726 dml cleanup

16 years agoMDL-17458 prevent trailing whitespace problems in config.php
skodak [Sat, 28 Mar 2009 15:15:22 +0000 (15:15 +0000)]
MDL-17458 prevent trailing whitespace problems in config.php

16 years agoMDL-14589 removed obsoleted comments
skodak [Sat, 28 Mar 2009 15:07:24 +0000 (15:07 +0000)]
MDL-14589 removed obsoleted comments

16 years agoUpdated the HEAD build version to 20090328
moodlerobot [Fri, 27 Mar 2009 23:33:47 +0000 (23:33 +0000)]
Updated the HEAD build version to 20090328

16 years agoweb service MDL-12886 remove some old comments
jerome [Fri, 27 Mar 2009 04:38:47 +0000 (04:38 +0000)]
web service MDL-12886 remove some old comments

16 years agomod/resource: MDL-18691 allow custom resource types to specify their name in their...
fmarier [Fri, 27 Mar 2009 03:21:10 +0000 (03:21 +0000)]
mod/resource: MDL-18691 allow custom resource types to specify their name in their own lang directory

Before this change, the full name of the resource type had to be stored in the "resource" namespace (for example in /mod/resource/lang/en_utf8/resource.php).

Now it can be put in the "resource_foo" namespace:

e.g. in /mod/resource/type/foo/lang/en_utf8/resource_foo.php:

<?php
  $string['resourcetypefoo'] = 'Link to a Foo Bar document';
?>