Wiki-Admin-Log: Unterschied zwischen den Versionen

Aus Open Source Ecology - Germany
Zur Navigation springen Zur Suche springen
Zeile 119: Zeile 119:
 
'code_php_tip'          => 'PHP-Code',         
 
'code_php_tip'          => 'PHP-Code',         
 
'code_java_tip'          => 'Java-Code',
 
'code_java_tip'          => 'Java-Code',
 +
</source>
 +
 +
 +
 +
 +
----
 +
 +
----
 +
 +
File: '''includes/EditPage.php'''
 +
 +
find
 +
 +
<source lang="php">
 +
array(
 +
'image'  => $wgLang->getImageFile( 'button-hr' ),
 +
'id'    => 'mw-editbutton-hr',
 +
'open'  => "\n----\n",
 +
'close'  => '',
 +
'sample' => '',
 +
'tip'    => wfMsg( 'hr_tip' ),
 +
'key'    => 'R'
 +
),
 +
</source>
 +
 +
add after
 +
 +
<source lang="php">
 +
array(
 +
'image'  => $wgLang->getImageFile( 'button-code' ), #  added
 +
'id'    => 'mw-code',
 +
'open'  => "<code>\n",
 +
'close'  => "\n</code>",
 +
'sample' => '',
 +
'tip'    => wfMsg( 'code_tip' ),
 +
'key'    => 'S'
 +
),
 +
array(
 +
'image'  => $wgLang->getImageFile( 'button-code-asm' ), #  added
 +
'id'    => 'mw-code-asm',
 +
'open'  => "<source lang=\"asm\">\n",
 +
'close'  => "\n</source>",
 +
'sample' => '',
 +
'tip'    => wfMsg( 'code_asm_tip' ),
 +
'key'    => ''
 +
),
 +
array(
 +
'image'  => $wgLang->getImageFile( 'button-code-asp' ), #  added
 +
'id'    => 'mw-code-asp',
 +
'open'  => "<source lang=\"asp\">\n",
 +
'close'  => "\n</source>",
 +
'sample' => '',
 +
'tip'    => wfMsg( 'code_asp_tip' ),
 +
'key'    => ''
 +
),
 +
array(
 +
'image'  => $wgLang->getImageFile( 'button-code-cpp' ), #  added
 +
'id'    => 'mw-code-cpp',
 +
'open'  => "<source lang=\"cpp\">\n",
 +
'close'  => "\n</source>",
 +
'sample' => '',
 +
'tip'    => wfMsg( 'code_cpp_tip' ),
 +
'key'    => ''
 +
),
 +
array(
 +
'image'  => $wgLang->getImageFile( 'button-code-html' ), #  added
 +
'id'    => 'mw-code-html',
 +
'open'  => "<source lang=\"html\">\n",
 +
'close'  => "\n</source>",
 +
'sample' => '',
 +
'tip'    => wfMsg( 'code_html_tip' ),
 +
'key'    => ''
 +
),
 +
array(
 +
'image'  => $wgLang->getImageFile( 'button-code-php' ), #  added
 +
'id'    => 'mw-code-php',
 +
'open'  => "<source lang=\"php\">\n",
 +
'close'  => "\n</source>",
 +
'sample' => '',
 +
'tip'    => wfMsg( 'code_php_tip' ),
 +
'key'    => ''
 +
),
 +
array(
 +
'image'  => $wgLang->getImageFile( 'button-code-java' ), #  added
 +
'id'    => 'mw-code-java',
 +
'open'  => "<source lang=\"java\">\n",
 +
'close'  => "\n</source>\n",
 +
'sample' => '',
 +
'tip'    => wfMsg( 'code_java_tip' ),
 +
'key'    => ''
 +
)
 
</source>
 
</source>

Version vom 23. Februar 2013, 23:19 Uhr

Wiki issue: Error creating thumbnail: Invalid thumbnail parameters --Tony Ford (talk) 18:38, 23 February 2013 (CET)

added in Localsettings.php

$wgMaxImageArea=64000000;
$wgMaxShellMemory = 202400;
$wgUseImageMagick = false;
$wgImageMagickConvertCommand = "/usr/bin/convert";

fix the wiki entry of TiVA (convert latex tags) --Tony Ford (talk) 18:38, 23 February 2013 (CET)

File: includes/EditPage.php

insert after

			
# These fields need to be checked for encoding.
# Also remove trailing whitespace, but don't remove _initial_
# whitespace from the text boxes. This may be significant formatting.
$this->textbox1 = $this->safeUnicodeInput( $request, 'wpTextbox1' );

this

$this->textbox1=preg_replace('/<math>/','<math>',$this->textbox1);
$this->textbox1=preg_replace('/<\/m>/','</math>',$this->textbox1);

http://www.mediawiki.org/wiki/Extension:Code --Tony Ford (talk) 18:51, 23 February 2013 (CET)

add image files to folder skins/common/images





File: languages/messages/MessagesDe.php

insert after

'sig_tip'         => 'Deine Signatur mit Zeitstempel',
'hr_tip'          => 'Horizontale Linie (sparsam verwenden)',

this

'code_tip'          => 'Codemarkierung allgemein',  	
'code_asm_tip'          => 'Assembler-Code',		
'code_asp_tip'          => 'ASP-Code',			
'code_cpp_tip'          => 'C++-Code',			
'code_html_tip'          => 'HTML-Code',		
'code_php_tip'          => 'PHP-Code',	
'code_java_tip'          => 'Java-Code',





File: languages/messages/MessagesEn.php

insert after

	'button-sig'      => 'button_sig.png',
	'button-hr'       => 'button_hr.png',

this

	
'button-code'       => 'button_code.png',		
	'button-code-asm'       => 'button_code_asm.png',	
	'button-code-asp'       => 'button_code_asp.png',	
	'button-code-cpp'       => 'button_code_cpp.png',	
	'button-code-html'       => 'button_code_html.png',	
	'button-code-java'       => 'button_code_java.png',	
	'button-code-php'       => 'button_code_php.png',




insert after

'sig_tip'         => 'Your signature with timestamp',
'hr_tip'          => 'Horizontal line (use sparingly)',

this

'code_tip'          => 'code marking general', 
'code_asm_tip'          => 'Assembler-Code',  
'code_asp_tip'          => 'ASP-Code',        
'code_cpp_tip'          => 'C++-Code',        
'code_html_tip'          => 'HTML-Code',      
'code_php_tip'          => 'PHP-Code',         
'code_java_tip'          => 'Java-Code',





File: includes/EditPage.php

find

			array(
				'image'  => $wgLang->getImageFile( 'button-hr' ),
				'id'     => 'mw-editbutton-hr',
				'open'   => "\n----\n",
				'close'  => '',
				'sample' => '',
				'tip'    => wfMsg( 'hr_tip' ),
				'key'    => 'R'
			),

add after

			array(
				'image'  => $wgLang->getImageFile( 'button-code' ), 	#  added
				'id'     => 'mw-code',
				'open'   => "<code>\n",
				'close'  => "\n</code>",
				'sample' => '',
				'tip'    => wfMsg( 'code_tip' ),
				'key'    => 'S'
			),
			array(
				'image'  => $wgLang->getImageFile( 'button-code-asm' ), #  added
				'id'     => 'mw-code-asm',
				'open'   => "<source lang=\"asm\">\n",
				'close'  => "\n

",

'sample' => , 'tip' => wfMsg( 'code_asm_tip' ), 'key' => ), array( 'image' => $wgLang->getImageFile( 'button-code-asp' ), # added 'id' => 'mw-code-asp',

'open' => "

\n",
				'close'  => "\n

",

'sample' => , 'tip' => wfMsg( 'code_asp_tip' ), 'key' => ), array( 'image' => $wgLang->getImageFile( 'button-code-cpp' ), # added 'id' => 'mw-code-cpp',

'open' => "

\n",
				'close'  => "\n

",

'sample' => , 'tip' => wfMsg( 'code_cpp_tip' ), 'key' => ), array( 'image' => $wgLang->getImageFile( 'button-code-html' ), # added 'id' => 'mw-code-html',

'open' => "

\n",
				'close'  => "\n

",

'sample' => , 'tip' => wfMsg( 'code_html_tip' ), 'key' => ), array( 'image' => $wgLang->getImageFile( 'button-code-php' ), # added 'id' => 'mw-code-php',

'open' => "

\n",
				'close'  => "\n

",

'sample' => , 'tip' => wfMsg( 'code_php_tip' ), 'key' => ), array( 'image' => $wgLang->getImageFile( 'button-code-java' ), # added 'id' => 'mw-code-java',

'open' => "

\n",
				'close'  => "\n

\n",

'sample' => , 'tip' => wfMsg( 'code_java_tip' ), 'key' => ) </source>