Vergleich admin/modules/config/languages.php - 1.8.12 - 1.8.13

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 345Zeile 345
			$value = $l[$phrase];
if(my_strtolower($langinfo['charset']) == "utf-8")
{

			$value = $l[$phrase];
if(my_strtolower($langinfo['charset']) == "utf-8")
{

				$value = preg_replace_callback("#%u([0-9A-F]{1,4})#i", create_function('$matches', 'return dec_to_utf8(hexdec($matches[1]));'), $value);

				$value = preg_replace_callback("#%u([0-9A-F]{1,4})#i", 'encode_language_string_utf8', $value);

			}
else
{

			}
else
{

				$value = preg_replace_callback("#%u([0-9A-F]{1,4})#i", create_function('$matches', 'return "&#".hexdec($matches[1]).";";'), $value);

				$value = preg_replace_callback("#%u([0-9A-F]{1,4})#i", 'encode_language_string', $value);

			}

$form_container->output_row($description, $phrase, $form->generate_text_area("edit[$phrase]", $value, array('id' => 'lang_'.$phrase, 'rows' => 2, 'class' => "langeditor_textarea_edit {$quickphrases_dir_class}")), 'lang_'.$phrase, array('width' => '50%'));

			}

$form_container->output_row($description, $phrase, $form->generate_text_area("edit[$phrase]", $value, array('id' => 'lang_'.$phrase, 'rows' => 2, 'class' => "langeditor_textarea_edit {$quickphrases_dir_class}")), 'lang_'.$phrase, array('width' => '50%'));

Zeile 558Zeile 558
			{
if(my_strtolower($langinfo['charset']) == "utf-8")
{

			{
if(my_strtolower($langinfo['charset']) == "utf-8")
{

					$withvars[$key] = preg_replace_callback("#%u([0-9A-F]{1,4})#i", create_function('$matches', 'return dec_to_utf8(hexdec($matches[1]));'), $withvars[$key]);
$editvars[$key] = preg_replace_callback("#%u([0-9A-F]{1,4})#i", create_function('$matches', 'return dec_to_utf8(hexdec($matches[1]));'), $editvars[$key]);

					$withvars[$key] = preg_replace_callback("#%u([0-9A-F]{1,4})#i", 'encode_language_string_utf8', $withvars[$key]);
$editvars[$key] = preg_replace_callback("#%u([0-9A-F]{1,4})#i", 'encode_language_string_utf8', $editvars[$key]);

				}
else
{

				}
else
{

					$withvars[$key] = preg_replace_callback("#%u([0-9A-F]{1,4})#i", create_function('$matches', 'return dec_to_utf8(hexdec($matches[1]));'), $withvars[$key]);
$editvars[$key] = preg_replace_callback("#%u([0-9A-F]{1,4})#i", create_function('$matches', 'return "&#".hexdec($matches[1]).";";'), $editvars[$key]);

					$withvars[$key] = preg_replace_callback("#%u([0-9A-F]{1,4})#i", 'encode_language_string_utf8', $withvars[$key]);
$editvars[$key] = preg_replace_callback("#%u([0-9A-F]{1,4})#i", 'encode_language_string', $editvars[$key]);

				}

// Find problems and differences in editfile in comparision to editwithfile

				}

// Find problems and differences in editfile in comparision to editwithfile

Zeile 595Zeile 595
				{
if(my_strtolower($langinfo['charset']) == "utf-8")
{

				{
if(my_strtolower($langinfo['charset']) == "utf-8")
{

						$editvars[$key] = preg_replace_callback("#%u([0-9A-F]{1,4})#i", create_function('$matches', 'return dec_to_utf8(hexdec($matches[1]));'), $editvars[$key]);

						$editvars[$key] = preg_replace_callback("#%u([0-9A-F]{1,4})#i", 'encode_language_string_utf8', $editvars[$key]);

					}
else
{

					}
else
{

						$editvars[$key] = preg_replace_callback("#%u([0-9A-F]{1,4})#i", create_function('$matches', 'return "&#".hexdec($matches[1]).";";'), $editvars[$key]);

						$editvars[$key] = preg_replace_callback("#%u([0-9A-F]{1,4})#i", 'encode_language_string', $editvars[$key]);

					}

$form_container->output_row("", "", "", "", array('width' => '50%', 'skip_construct' => true));

					}

$form_container->output_row("", "", "", "", array('width' => '50%', 'skip_construct' => true));

Zeile 618Zeile 618
			{
if(my_strtolower($langinfo['charset']) == "utf-8")
{

			{
if(my_strtolower($langinfo['charset']) == "utf-8")
{

					$value = preg_replace_callback("#%u([0-9A-F]{1,4})#i", create_function('$matches', 'return dec_to_utf8(hexdec($matches[1]));'), $value);

					$value = preg_replace_callback("#%u([0-9A-F]{1,4})#i", 'encode_language_string_utf8', $value);

				}
else
{

				}
else
{

					$value = preg_replace_callback("#%u([0-9A-F]{1,4})#i", create_function('$matches', 'return "&#".hexdec($matches[1]).";";'), $value);

					$value = preg_replace_callback("#%u([0-9A-F]{1,4})#i", 'encode_language_string', $value);

				}
$form_container->output_row($key, "", $form->generate_text_area("edit[$key]", $value, array('id' => 'lang_'.$key, 'rows' => 2, 'class' => "langeditor_textarea_edit {$editlang_dir_class}")), 'lang_'.$key, array('width' => '50%'));
}

				}
$form_container->output_row($key, "", $form->generate_text_area("edit[$key]", $value, array('id' => 'lang_'.$key, 'rows' => 2, 'class' => "langeditor_textarea_edit {$editlang_dir_class}")), 'lang_'.$key, array('width' => '50%'));
}

Zeile 991Zeile 991
	$sub_tabs['find_language'] = array(
'title' => $lang->find_language_packs,
'link' => "https://community.mybb.com/mods.php?action=browse&category=19",

	$sub_tabs['find_language'] = array(
'title' => $lang->find_language_packs,
'link' => "https://community.mybb.com/mods.php?action=browse&category=19",

		'target' => "_blank"


		'link_target' => "_blank",
'link_rel' => "noopener"

	);

$plugins->run_hooks("admin_config_languages_start");

	);

$plugins->run_hooks("admin_config_languages_start");

Zeile 1016Zeile 1017

if(!empty($langinfo['website']))
{


if(!empty($langinfo['website']))
{

			$author = "<a href=\"{$langinfo['website']}\" target=\"_blank\">{$langinfo['author']}</a>";

			$author = "<a href=\"{$langinfo['website']}\" target=\"_blank\" rel=\"noopener\">{$langinfo['author']}</a>";

		}
else
{

		}
else
{

Zeile 1049Zeile 1050
	$table->output($lang->installed_language_packs);

$page->output_footer();

	$table->output($lang->installed_language_packs);

$page->output_footer();

 
}

/**
* Fixes url encoded unicode characters
*
* @param string $string The string to encode.
* @return string The encoded string.
*/
function encode_language_string_utf8($matches)
{
return dec_to_utf8(hexdec($matches[1]));
}

/**
* Fixes url encoded unicode characters
*
* @param string $string The string to encode.
* @return string The encoded string.
*/
function encode_language_string($matches)
{
return "&#".hexdec($matches[1]).";";

}

}