MDL-37323 add support for _dlg strings in our TinyMCE subplugins

Credit goes to Étienne FLORENT, thanks.
This commit is contained in:
Petr Škoda
2013-01-01 15:25:43 +01:00
parent 0dc5a532ec
commit 97155c387d
+1 -1
View File
@@ -72,7 +72,7 @@ foreach (get_plugin_list('tinymce') as $component => $ignored) {
$componentstrings = get_string_manager()->load_component_strings(
'tinymce_' . $component, $lang);
foreach ($componentstrings as $key => $value) {
if (strpos($key, "$component:") !== 0) {
if (strpos($key, "$component:") !== 0 and strpos($key, $component.'_dlg:') !== 0) {
// Ignore normal lang strings.
continue;
}