translator
278
edits
m (correction) |
m (update) |
||
Line 6: | Line 6: | ||
{| class="wikitable sortable" | {| class="wikitable sortable" | ||
|- | |- | ||
! | ! Description !! Search !! Replace | ||
|- | |- | ||
| rowspan="2"|Add "Special:MyLanguage" to internal links | | rowspan="2" | Add "Special:MyLanguage" to internal links | ||
| <nowiki>(?!\[\[(C|c)ategory:|\[\[(F|f)ile:|\[\[(I|i)mage:|\[\[(S|s)pecial:MyLanguage/)\[\[([A-Za-z0-9 '+-_#]+)\]\]</nowiki> | | <nowiki>(?!\[\[(C|c)ategory:|\[\[(F|f)ile:|\[\[(I|i)mage:|\[\[(S|s)pecial:MyLanguage/)\[\[([A-Za-z0-9 ()'+-_#]+)\]\]</nowiki> | ||
| <nowiki>[[Special:MyLanguage/$5|<translate>$5</translate>]]</nowiki> | | <nowiki>[[Special:MyLanguage/$5|<translate>$5</translate>]]</nowiki> | ||
|- | |- | ||
| <nowiki>(?!\[\[(C|c)ategory:|\[\[(F|f)ile:|\[\[(I|i)mage:|\[\[(S|s)pecial:MyLanguage/)\[\[([A-Za-z0-9 '+-_#]+)\|([A-Za-z0-9 '+-_#]+)\]\]</nowiki> | | <nowiki>(?!\[\[(C|c)ategory:|\[\[(F|f)ile:|\[\[(I|i)mage:|\[\[(S|s)pecial:MyLanguage/)\[\[([A-Za-z0-9 ()'+-_#]+)\|([A-Za-z0-9 ()'+-_#]+)\]\]</nowiki> | ||
| <nowiki>[[Special:MyLanguage/$5|<translate>$6</translate>]]</nowiki> | | <nowiki>[[Special:MyLanguage/$5|<translate>$6</translate>]]</nowiki> | ||
| | |||
|- | |||
| rowspan="4" | links within <translate> tags | |||
| <nowiki>\[(http(s|):\/\/[A-Za-z./-_]+) ([A-Za-z0-9 ()'+-_#]+)\]</nowiki> | |||
| <nowiki>[<tvar|link>$1</> $3]</nowiki> | |||
|- | |||
| <nowiki>\[(http(s|):\/\/[A-Za-z./-_]+)]</nowiki> | |||
| <nowiki>[<tvar|link>$1</>]</nowiki> | |||
|- | |||
| <nowiki>(?!\[\[(C|c)ategory:|\[\[(F|f)ile:|\[\[(I|i)mage:|\[\[(S|s)pecial:MyLanguage/)\[\[([A-Za-z0-9 ()'+-_#]+)\|([A-Za-z0-9 ()'+-_#]+)\]\]</nowiki> | |||
| <nowiki>[[<tvar|link>Special:MyLanguage/$5</>|$6]]</nowiki> | |||
|- | |||
| <nowiki>(?!\[\[(C|c)ategory:|\[\[(F|f)ile:|\[\[(I|i)mage:|\[\[(S|s)pecial:MyLanguage/)\[\[([A-Za-z0-9 ()'+-_#]+)\]\]</nowiki> | |||
| <nowiki>[[<tvar|link>Special:MyLanguage/$5</>|$5]]</nowiki> | |||
|- | |- | ||
| Remove misc tags of the translate extension | | Remove misc tags of the translate extension | ||
Line 20: | Line 34: | ||
|- | |- | ||
| rowspan="3" | prepare categories | | rowspan="3" | prepare categories | ||
| <nowiki>\[\[((C|c)ategory:([A-Za-z0-9 '+-_#]+))\]\]</nowiki> | | <nowiki>\[\[((C|c)ategory:([A-Za-z0-9 ()'+-_#]+))\]\]</nowiki> | ||
| <nowiki>[[$1{{#translation:}}]]</nowiki> | | <nowiki>[[$1{{#translation:}}]]</nowiki> | ||
|- | |- | ||
| <nowiki>\[\[(:(C|c)ategory:([A-Za-z0-9 '+-_#]+))\]\]</nowiki> | | <nowiki>\[\[(:(C|c)ategory:([A-Za-z0-9 ()'+-_#]+))\]\]</nowiki> | ||
| <nowiki>[[$3{{#translation:}}|<translate>$3</translate>]]</nowiki> | | <nowiki>[[$3{{#translation:}}|<translate>$3</translate>]]</nowiki> | ||
|- | |- | ||
| <nowiki>\[\[(:(C|c)ategory:([A-Za-z0-9 '+-_#]+)\|([A-Za-z0-9 '+-_#]+))\]\]</nowiki> | | <nowiki>\[\[(:(C|c)ategory:([A-Za-z0-9 ()'+-_#]+)\|([A-Za-z0-9 ()'+-_#]+))\]\]</nowiki> | ||
| <nowiki>[[$3{{#translation:}}|<translate>$4</translate>]]</nowiki> | | <nowiki>[[$3{{#translation:}}|<translate>$4</translate>]]</nowiki> | ||
|- | |- | ||
| prepare lists | | prepare lists | ||
| <nowiki>(?!(\* |\* )(''|''')(\[\[|\[)|(\* |\* )<translate>)(\* |\* )([A-Za-z0-9 '+-_#,.()]+)</nowiki> | | <nowiki>(?!(\* |\* )(''|''')(\[\[|\[)|(\* |\* )<translate>)(\* |\* )([A-Za-z0-9 ()'+-_#,.()]+)</nowiki> | ||
| <nowiki>* | | <nowiki>* <translate>$4</translate></nowiki> | ||
|} | |} |