<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://70.231.62.181/index.php?action=history&amp;feed=atom&amp;title=MyWiki%3AWikiProject_User_scripts%2FScripts%2FLanguage_Converter</id>
	<title>MyWiki:WikiProject User scripts/Scripts/Language Converter - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://70.231.62.181/index.php?action=history&amp;feed=atom&amp;title=MyWiki%3AWikiProject_User_scripts%2FScripts%2FLanguage_Converter"/>
	<link rel="alternate" type="text/html" href="http://70.231.62.181/index.php?title=MyWiki:WikiProject_User_scripts/Scripts/Language_Converter&amp;action=history"/>
	<updated>2026-04-22T14:49:09Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.45.1</generator>
	<entry>
		<id>http://70.231.62.181/index.php?title=MyWiki:WikiProject_User_scripts/Scripts/Language_Converter&amp;diff=1392758&amp;oldid=prev</id>
		<title>imported&gt;WOSlinker: fix syntaxhighlight</title>
		<link rel="alternate" type="text/html" href="http://70.231.62.181/index.php?title=MyWiki:WikiProject_User_scripts/Scripts/Language_Converter&amp;diff=1392758&amp;oldid=prev"/>
		<updated>2023-10-10T09:24:22Z</updated>

		<summary type="html">&lt;p&gt;fix syntaxhighlight&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;This script adds a menu at the top of pages and let you change the spellings from/to Britsh/American English based in lists of words ([[Wikipedia:WikiProject User scripts/Scripts/Language Converter/Dictionary/en-US|en-US]] and [[Wikipedia:WikiProject User scripts/Scripts/Language Converter/Dictionary/en-GB|en-GB]]), editable by anyone.&lt;br /&gt;
&lt;br /&gt;
You can see the changes directly in the dictionary pages, for example, or accessing articles where there are words in the lists (like [[Belgium]] and [[Special:WhatLinksHere/Template:British English|others]]).&lt;br /&gt;
== Features ==&lt;br /&gt;
=== Dictionaries ===&lt;br /&gt;
The conversion between English variants is done based on the following dictionaries (which are based on [https://wiki.ubuntu.com/EnglishTranslation/WordSubstitution this list] and still needs to be reviewed by native English speakers):&lt;br /&gt;
* [[Wikipedia:WikiProject User scripts/Scripts/Language Converter/Dictionary/en-GB|Dictionary/en-GB]]&lt;br /&gt;
* [[Wikipedia:WikiProject User scripts/Scripts/Language Converter/Dictionary/en-US|Dictionary/en-US]]&lt;br /&gt;
Both dictionaries are also displayed side by side on [[Wikipedia:WikiProject User scripts/Scripts/Language Converter/Dictionary|this page]].&lt;br /&gt;
&lt;br /&gt;
All users can help to improve the dictionaries used by this script editing the corresponding page. All dictionaries use the same syntax to define the conversion rules:&lt;br /&gt;
:&amp;lt;code&amp;gt;&amp;lt;span style=&amp;quot;color:red&amp;quot;&amp;gt;*&amp;lt;/span&amp;gt;original expression&amp;lt;span style=&amp;quot;color:red&amp;quot;&amp;gt;:&amp;lt;/span&amp;gt; converted expression&amp;lt;span style=&amp;quot;color:red&amp;quot;&amp;gt;//&amp;lt;/span&amp;gt;comments or &amp;lt;nowiki&amp;gt;&amp;lt;ref&amp;gt;&amp;lt;/nowiki&amp;gt;Notes about this rule, if necessary&amp;lt;nowiki&amp;gt;&amp;lt;/ref&amp;gt;&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
On this example, &amp;quot;converted expression&amp;quot; is the expression to which &amp;quot;original expression&amp;quot; should be converted (and this is an expression which is present in various articles). The text after &amp;quot;//&amp;quot; will be ignored when converting the page, so it is possible to use this space to add relevant notes about specific rules, to clarify its purpose or help future editors of the dictionary.&lt;br /&gt;
&lt;br /&gt;
If necessary, it is possible to disable a rule (without completely removing it from the dictionary) by changing the &amp;quot;*&amp;quot; by &amp;quot;:&amp;quot;. This is useful when a user notice a rule which causes false positives, and the rule can be further discussed on the dictionary talk page and eventually removed.&lt;br /&gt;
It is also possible to define some [[regular expression]]s in [[b:pt:User:He7d3r/Tools/LanguageConverterForEnglish.js|the configuration]] of the script for pre-converting the text.&lt;br /&gt;
&lt;br /&gt;
=== Avoiding conversion on specific places ===&lt;br /&gt;
It is possible to avoid the conversion of the text of some HTML elements by adding the class &amp;quot;no-conversion&amp;quot; to them. This is useful to avoid false positives in some places.&lt;br /&gt;
&lt;br /&gt;
=== Local dictionaries ===&lt;br /&gt;
In addition to the global dictionaries, each page can have a local dictionary which will be used through that page. The format is as follows (this can be added to a template similar to [[s:pt:Template:Modernização automática|this]], for easy of use and/or tracking purposes)&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;html&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;div id=&amp;quot;lang-conv&amp;quot; style=&amp;quot;display:none;&amp;quot; &amp;gt;&lt;br /&gt;
&amp;lt;div id=&amp;quot;local-dic-GB&amp;quot;&amp;gt;&lt;br /&gt;
* some: conversion rule&lt;br /&gt;
* another: conversion rule // This is a comment related to this rule&lt;br /&gt;
&amp;lt;/div&amp;gt;&amp;lt;div id=&amp;quot;local-dic-US&amp;quot;&amp;gt;&lt;br /&gt;
* one more: conversion rule&lt;br /&gt;
&amp;lt;/div&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
== Installation ==&lt;br /&gt;
To install this user script, add the following code to [[Special:MyPage/common.js|your common.js]]. It will import the content of [[b:pt:User:He7d3r/Tools/LanguageConverterForEnglish.js|the JavaScript]] and [[b:pt:User:He7d3r/Tools/LanguageConverterForEnglish.css|the CSS]] used by the script.&lt;br /&gt;
=== JavaScript ===&lt;br /&gt;
&amp;lt;div class=&amp;quot;plainlinks&amp;quot; style=&amp;quot;font-family: monospace,&amp;#039;Courier New&amp;#039;; padding: 1em; border: 1px dashed #2f6fab; color: black; background: #f9f9f9;&amp;quot;&amp;gt;&lt;br /&gt;
// Keep the line below. It is used to check the global usage of the script at [[[[Special:GlobalUsage/User:He7d3r/Tools/LanguageConverter.js]]]]&amp;lt;br /&amp;gt;&lt;br /&gt;
// [[[[:File:User:He7d3r/Tools/LanguageConverter.js]]]] (see [[[[phab:T35355]]]])&amp;lt;br /&amp;gt;&lt;br /&gt;
mw.loader.load( &amp;#039;[//pt.wikibooks.org/w/index.php?title=Utilizador:He7d3r/Tools/LanguageConverterForEnglish.js&amp;amp;action=raw&amp;amp;ctype=text/javascript //pt.wikibooks.org/w/index.php?title=Utilizador:He7d3r/Tools/LanguageConverterForEnglish.js&amp;#039;&amp;#039;&amp;#039;&amp;amp;action=raw&amp;amp;ctype=text/javascript]&amp;#039; );&amp;lt;br /&amp;gt;&lt;br /&gt;
mw.loader.load( &amp;#039;[//pt.wikibooks.org/w/index.php?title=Utilizador:He7d3r/Tools/LanguageConverterForEnglish.css&amp;amp;action=raw&amp;amp;ctype=text/css //pt.wikibooks.org/w/index.php?title=Utilizador:He7d3r/Tools/LanguageConverterForEnglish.css&amp;#039;&amp;#039;&amp;#039;&amp;amp;action=raw&amp;amp;ctype=text/css]&amp;#039;, &amp;#039;text/css&amp;#039; );&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
* [[WP:ENGVAR]]&lt;br /&gt;
* [[phab:T33015]] - Convert between English language variants in display of pages&lt;br /&gt;
* [[Wikipedia:Village pump (proposals)/Archive_77#Script to compensate for nationality differences in articles|Wikipedia:Village pump (proposals)#Script to compensate for nationality differences in articles]]&lt;br /&gt;
* [[wikisource:pt:Utilizador:He7d3r/Tools/LanguageConverter|Script documentation on Portuguese Wikisource]] (in Portuguese)&lt;br /&gt;
&lt;br /&gt;
[[Category:Wikipedia scripts]]&lt;/div&gt;</summary>
		<author><name>imported&gt;WOSlinker</name></author>
	</entry>
</feed>