Skip to content

Commit

Permalink
MDL-22050 removing moodle/langconfig duplicates
Browse files Browse the repository at this point in the history
AMOS BEGIN
  MOV [parentlanguage,core],[parentlanguage,core_langconfig]
AMOS END
  • Loading branch information
skodak committed Apr 10, 2010
1 parent bf69b06 commit c9042db
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion admin/langimport.php
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@

foreach($installedlangs as $l=>$unused) {
$SESSION->lang = $l;
$parent = get_string('parentlanguage');
$parent = get_string('parentlanguage', 'langconfig');
if ($parent == 'en') {
continue;
}
Expand Down
2 changes: 1 addition & 1 deletion filter/multilang/filter.php
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ function multilang_filter_impl($langblock) {
$parentcache = array();
}
if (!array_key_exists($mylang, $parentcache)) {
$parentlang = get_string('parentlanguage');
$parentlang = get_parent_language($mylang);
$parentcache[$mylang] = $parentlang;
} else {
$parentlang = $parentcache[$mylang];
Expand Down
2 changes: 1 addition & 1 deletion install/stringnames.txt
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ language,moodle
langdownloaderror,install
memorylimithelp,install
next,moodle
parentlanguage,moodle
parentlanguage,langconfig
paths,install
pathserrcreatedataroot,install
pathsrodataroot,install
Expand Down
2 changes: 1 addition & 1 deletion lib/datalib.php
Original file line number Diff line number Diff line change
Expand Up @@ -1590,7 +1590,7 @@ function make_default_scale() {

/// Read in the big description from the file. Note this is not
/// HTML (despite the file extension) but Moodle format text.
$parentlang = get_string('parentlanguage');
$parentlang = get_parent_language();
if ($parentlang[0] == '[') {
$parentlang = '';
}
Expand Down
2 changes: 1 addition & 1 deletion lib/moodlelib.php
Original file line number Diff line number Diff line change
Expand Up @@ -5642,7 +5642,7 @@ function get_parent_language($lang=null) {
$SESSION->lang = $lang;
}

$parentlang = get_string('parentlanguage');
$parentlang = get_string('parentlanguage', 'langconfig');
if ($parentlang === 'en' or $parentlang === '[[parentlanguage]]' or strpos($parentlang, '<') !== false) {
$parentlang = '';
}
Expand Down

0 comments on commit c9042db

Please sign in to comment.