Commit Graph

72 Commits

Author SHA1 Message Date
David Mudrak 74a4c9a9ee MDL-26914 When installing a lang pack, install all the grandparents too
All places where a language pack is installed now use the new language
package installer that takes case of the parental dependencies.
2011-03-31 12:21:05 +02:00
David Mudrak a9cbd19bff MDL-26804 core_string_manager::get_list_of_translations() can use a cache again
This patch reimplements the internal cache that was used to store the
list of available translations in Moodle 1.x. By default, the method
get_list_of_translations() still uses the file
moodledata/cache/languages to store the list of available translations.
The location of that file can be redefined in config.php. The internal
format of the cache file is JSON now (used to be a plain text list).

The patch also fixes a usage of the global $CFG in translation_exists()
methods where the internal property should be used instead.
2011-03-24 21:51:30 +01:00
Petr Skoda 431ac39634 MDL-26623 fix file permissions
The permissions are now going to be verified as part of the weekly release process.
2011-03-01 12:26:49 +01:00
Petr Skoda a226a972f7 MDL-24321 switching to stdClass in /admin/ and / 2010-09-21 08:44:02 +00:00
Petr Skoda eab8ed9fb7 fixed a few spelling errors in /admin/ 2010-09-17 10:27:26 +00:00
Petr Skoda c426ef3aa5 MDL-23984 improvements of check_dir_exists() - replacing by make_upload_directory() in cases where we want to be sure that the dir is writable; removning now default create and recursive params to make code easier to read 2010-08-29 14:51:09 +00:00
Petr Skoda d8fa45505c MDL-23984 using standard checkdirexists for lang packs 2010-08-29 09:38:08 +00:00
Jonathan Harker c71f326514 MDL-20876 Fix remaining split() calls. 2010-07-20 03:27:36 +00:00
David Mudrak 995f2d51d7 MDL-12192 Language specific label separator instead of hardcoded ': '
New string is available. Use get_string('labelsep', 'langconfig') to be used
as a separator between a label and the labelled text. If you want to
produce <label> HTML element, you may be interested in the new
html_writer::label() method. Simple selects and URL selects now use it.

There are bambillion places where ': ' is hardcoded as a separator. I do
not think we have to fix them manually now (and mass search and replace
would be tricky) but everybody should stop adding new.

Do not abuse 'labelsep' for any other purposes. Note that it may not be
colon in some languages or sites.
2010-07-02 12:15:36 +00:00
David Mudrak af8d4d9128 MDL-18797 current language pack updated during upgrade
Also fixes langimport.php to use the new function to get parent language
of a given language.
2010-05-26 00:29:33 +00:00
David Mudrak a9e41d3e92 MDL-18797 admin/langimport.php works again for Moodle 2.0 language packs
I have prepared language packs at
http://download.moodle.org/langpack/2.0 manually for now. To be
automated once the production AMOS server is up and running.
2010-05-26 00:03:56 +00:00
David Mudrak 11072c31ec MDL-15252 Unifying a string 'availablelangs' - now lives in install.php only
AMOS BEGIN
 MOV [availablelangs,core_admin],[availablelangs,core_install]
AMOS END
2010-05-10 13:15:50 +00:00
Petr Skoda 1f96e907ea MDL-22084 making a clear distinction between list of our translations and list of all languages defined in ISO 639-2 2010-04-14 09:45:49 +00:00
Petr Skoda c2ed166e6d MDL-22061 workaround for special handling of parentlanguage string 2010-04-11 20:30:58 +00:00
Petr Skoda f62493d8a6 MDL-22050 removing moodle/langconfig duplicates
AMOS BEGIN
  MOV [thislanguage,core],[thislanguage,core_langconfig]
AMOS END
2010-04-10 18:29:27 +00:00
Petr Skoda c9042db5c7 MDL-22050 removing moodle/langconfig duplicates
AMOS BEGIN
  MOV [parentlanguage,core],[parentlanguage,core_langconfig]
AMOS END
2010-04-10 18:01:49 +00:00
Petr Skoda 3a915b0667 MDL-21693 Dropping _utf8 suffix from language codes and folder names; enabling new string managers - please note the transition is not yet fully complete because we need to wait for git to recognize the renames in cvs 2010-04-10 07:24:56 +00:00
Petr Skoda 61ef8f9f88 MDL-20204 removing deprecated admin headers 2010-03-31 08:05:53 +00:00
Petr Skoda 92e01ab771 MDL-21125 obsoleting global $THEME 2009-12-23 17:44:17 +00:00
Petr Skoda 20207b827a MDL-20700 coding style cleanup - cvs keywords removed, closign php tag removed, trailing whitespace cleanup 2009-11-01 10:57:00 +00:00
nicolasconnault 414a4a91b1 MDL-19787 upgraded calls to print_table, print_single_button, print_user_picture, print_container* and notice_yesno 2009-08-20 08:39:07 +00:00
nicolasconnault 8fbce1c8c8 MDL-19878 Upgraded calls to helpbutton, print_simple_box* and notify 2009-08-18 04:28:40 +00:00
nicolasconnault 20486a5a21 MDL-19787 Converted print_box* to $OUTPUT->box* 2009-08-10 04:53:22 +00:00
nicolasconnault 73d6f52f6a MDL-19787 Converted all print_footer() calls 2009-08-06 14:12:46 +00:00
skodak c9a433cdd6 MDL-18670 adding proper permissions for mkdir(); merged from MOODLE_19_STABLE 2009-05-06 16:10:45 +00:00
skodak 07f6711889 MDL-17573 added automatic downloading of parent languages 2009-02-08 22:33:54 +00:00
mudrd8mz f9a064f9f5 MDL-17094 Automatic language update can be disabled via $CFG->skiplangupgrade settings. Merged from MOODLE_19_STABLE 2008-11-01 19:35:43 +00:00
dongsheng 4fd532ea9d MDL-14129, creating error string 2008-04-10 02:56:25 +00:00
dongsheng 5a2a53316f MDL-14129, remove all the other error() call 2008-04-04 02:54:20 +00:00
skodak dcd68962a9 fixed typo; merged from MOODLE_19_STABLE 2008-04-02 06:51:43 +00:00
skodak 7b7b8b36a0 MDL-13927, MDL-13938 indicate missing parent languages and allow multiselection when importing langs; merged from MOODLE_19_STABLE 2008-03-15 16:09:10 +00:00
stronk7 f85236dc76 Change some constants to avoid name collisions. MDL-12698 ; Merged from MOODLE_19_STABLE 2007-12-31 01:07:49 +00:00
skodak 76bd786d3f MDL-12698, MDL-12569 - fixed inline docs; merged from MOODLE_19_STABLE 2007-12-30 22:36:16 +00:00
skodak a7d43f0d15 MDL-12698, MDL-12569 - componentlib & langimport improvements and fixes; merged from MOODLE_19_STABLE 2007-12-30 22:19:36 +00:00
poltawski 6e1cc99de7 MDL-12763 - proxy_url() in langimport was doing its own custom proxied
download magic. Convert to use download_file_contents() for more
robust downloads. And also add a more helpful error message while i'm
at it.
merged from MOODLE_19_STABLE
2007-12-29 20:03:03 +00:00
urs_hunkler c1aa6ad26c merged from 1.9 :: MDL-12749 :: print_box_strart was closed with pint_simple_box_end. corrected. 2007-12-28 12:45:43 +00:00
moodler 04f1efd423 DOn't assume direction, use the theme variables for arrows MDL-10768 2007-08-09 08:50:19 +00:00
skodak 1ae083e424 MDL-9647 simplify dealing with headers/footers in admin sections 2007-04-30 17:08:34 +00:00
skodak 0a5ce9dd21 MDL-9561 Langimport does not ignore langlist when langcache used
MDL-9563 Improve refreshing of langcache, detect permission problems

merged from MOODLE_18_STABLE
2007-04-24 16:14:16 +00:00
nicolasconnault a66fe10336 MDL-8758 - Corrected the packagezip -> package.zip typo in 3 locations (2 in admin/langimport.php and 1 in install.php). The notification about allow_url_fopen has already been added to the default lang/en_utf8/error.php string. 2007-03-07 02:02:41 +00:00
toyomoyo 44a825c28f replacing fieldset in small form to div 2007-03-01 04:40:50 +00:00
defacer 2f7ccc6644 Merged from MOODLE_18_STABLE:
Fix for MDL-8653:
When updating languages through a proxy, skip to the end of the HTTP headers
as defined by RFC 1945 instead of skipping exactly 12 lines of chaff.

Credit for patch 100% to Dan Poltawski.
2007-02-25 01:35:32 +00:00
defacer a4e61dde70 Merging from MOODLE_18_STABLE:
Updating local language packs was breaking XHTML in the "results" screen.
2007-02-25 01:10:00 +00:00
toyomoyo 09b62d3b99 fix for MDL-8517 broken xhtml for redirects 2007-02-15 05:15:06 +00:00
stronk7 5c8b250f37 Now the list of downloadable langs (when no fopen is available) doesn't break XML. Related to MDL-7861 2007-01-13 20:17:20 +00:00
moodler 0a8d5d7750 Tidying up some strict! 2007-01-09 12:32:12 +00:00
skodak b7dc225654 MDL-8062 1.3 Remove name attribute from <form> and fix focus everywhere - more changes ahead 2007-01-04 21:32:36 +00:00
skodak d6d049718c accessibility cleanup in langimport.php - original patch by Nick Freear MDL-7438 + whitespace and old code cleanup 2006-11-29 20:17:13 +00:00
skodak 2493fc103c ensure that layout table headers are not marked as th, but by label instead MDL-7438
th should be used only for data tables
2006-11-28 19:25:24 +00:00
skodak 3acdf94569 Ensure all table headers are marked up with 'th' MDL-7438 2006-11-22 22:41:01 +00:00