<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-GB">
	<id>https://wiki.eprints.org/w/index.php?action=history&amp;feed=atom&amp;title=API%3AEPrints%2FPlugin%2FScreen%2FSetLang</id>
	<title>API:EPrints/Plugin/Screen/SetLang - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.eprints.org/w/index.php?action=history&amp;feed=atom&amp;title=API%3AEPrints%2FPlugin%2FScreen%2FSetLang"/>
	<link rel="alternate" type="text/html" href="https://wiki.eprints.org/w/index.php?title=API:EPrints/Plugin/Screen/SetLang&amp;action=history"/>
	<updated>2026-04-22T14:33:47Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.31.8</generator>
	<entry>
		<id>https://wiki.eprints.org/w/index.php?title=API:EPrints/Plugin/Screen/SetLang&amp;diff=16653&amp;oldid=prev</id>
		<title>Pod2wiki at 10:36, 2 August 2024</title>
		<link rel="alternate" type="text/html" href="https://wiki.eprints.org/w/index.php?title=API:EPrints/Plugin/Screen/SetLang&amp;diff=16653&amp;oldid=prev"/>
		<updated>2024-08-02T10:36:40Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en-GB&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;Revision as of 10:36, 2 August 2024&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l17&quot; &gt;Line 17:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 17:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;!-- Pod2Wiki=head_description --&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;!-- Pod2Wiki=head_description --&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==DESCRIPTION==&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==DESCRIPTION==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;This plugin allows a cookie called &amp;lt;tt&amp;gt;eprints_lang&amp;lt;/tt&amp;gt; to set that &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;specify &lt;/del&gt;the language that be used for the current visitor to the&amp;#160; repository.&amp;#160; &amp;#160;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;This plugin allows a cookie called &amp;lt;tt&amp;gt;eprints_lang&amp;lt;/tt&amp;gt; to set that &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;specifies &lt;/ins&gt;the language that be used for the current visitor to the&amp;#160; repository.&amp;#160; &amp;#160;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;This takes the value of the &amp;lt;tt&amp;gt;lang&amp;lt;/tt&amp;gt; attribute from the HTTP GET of&amp;#160; the request (&amp;lt;tt&amp;gt;/cgi/set_lang&amp;lt;/tt&amp;gt;) to set the cookie.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;This takes the value of the &amp;lt;tt&amp;gt;lang&amp;lt;/tt&amp;gt; attribute from the HTTP GET of&amp;#160; the request (&amp;lt;tt&amp;gt;/cgi/set_lang&amp;lt;/tt&amp;gt;) to set the cookie.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Pod2wiki</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.eprints.org/w/index.php?title=API:EPrints/Plugin/Screen/SetLang&amp;diff=16652&amp;oldid=prev</id>
		<title>Pod2wiki: Created page with &quot;&lt;!-- Pod2Wiki=_preamble_   This page has been automatically generated from the EPrints 3.4 source. Any wiki changes made between the 'Pod2Wiki=*' and 'Edit below this comment'...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.eprints.org/w/index.php?title=API:EPrints/Plugin/Screen/SetLang&amp;diff=16652&amp;oldid=prev"/>
		<updated>2024-08-02T10:29:00Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;&amp;lt;!-- Pod2Wiki=_preamble_   This page has been automatically generated from the EPrints 3.4 source. Any wiki changes made between the &amp;#039;Pod2Wiki=*&amp;#039; and &amp;#039;Edit below this comment&amp;#039;...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;lt;!-- Pod2Wiki=_preamble_ &lt;br /&gt;
This page has been automatically generated from the EPrints 3.4 source. Any wiki changes made between the 'Pod2Wiki=*' and 'Edit below this comment' comments will be lost.&lt;br /&gt;
 --&amp;gt;{{API}}{{Pod2Wiki}}{{API:Source|file=EPrints/Plugin/Screen/SetLang.pm|package_name=EPrints::Plugin::Screen::SetLang}}[[Category:API|SETLANG]][[Category:API:EPrints/Plugin/Screen|SETLANG]]&amp;lt;div&amp;gt;&amp;lt;!-- Edit below this comment --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- Pod2Wiki=_private_ --&amp;gt;&amp;lt;!-- Pod2Wiki=head_name --&amp;gt;&lt;br /&gt;
==NAME==&lt;br /&gt;
'''EPrints::Plugin::Screen::SetLang''' - Screen plugin for setting a cookie for the language to use on repository web pages.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style='background-color: #e8e8f; margin: 0.5em 0em 1em 0em; border: solid 1px #cce;  padding: 0em 1em 0em 1em; font-size: 80%; '&amp;gt;&lt;br /&gt;
&amp;lt;span style='display:none'&amp;gt;User Comments&amp;lt;/span&amp;gt;&lt;br /&gt;
&amp;lt;!-- Edit below this comment --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- Pod2Wiki= --&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;!-- Pod2Wiki=head_description --&amp;gt;&lt;br /&gt;
==DESCRIPTION==&lt;br /&gt;
This plugin allows a cookie called &amp;lt;tt&amp;gt;eprints_lang&amp;lt;/tt&amp;gt; to set that specify the language that be used for the current visitor to the  repository.  &lt;br /&gt;
&lt;br /&gt;
This takes the value of the &amp;lt;tt&amp;gt;lang&amp;lt;/tt&amp;gt; attribute from the HTTP GET of  the request (&amp;lt;tt&amp;gt;/cgi/set_lang&amp;lt;/tt&amp;gt;) to set the cookie.&lt;br /&gt;
&lt;br /&gt;
Once the language is set the user is returned the page they original came from, which now should display in their preferred lanaguage.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style='background-color: #e8e8f; margin: 0.5em 0em 1em 0em; border: solid 1px #cce;  padding: 0em 1em 0em 1em; font-size: 80%; '&amp;gt;&lt;br /&gt;
&amp;lt;span style='display:none'&amp;gt;User Comments&amp;lt;/span&amp;gt;&lt;br /&gt;
&amp;lt;!-- Edit below this comment --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- Pod2Wiki= --&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;!-- Pod2Wiki=head_methods --&amp;gt;&lt;br /&gt;
==METHODS==&lt;br /&gt;
&amp;lt;div style='background-color: #e8e8f; margin: 0.5em 0em 1em 0em; border: solid 1px #cce;  padding: 0em 1em 0em 1em; font-size: 80%; '&amp;gt;&lt;br /&gt;
&amp;lt;span style='display:none'&amp;gt;User Comments&amp;lt;/span&amp;gt;&lt;br /&gt;
&amp;lt;!-- Edit below this comment --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- Pod2Wiki= --&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;!-- Pod2Wiki=item_from --&amp;gt;&lt;br /&gt;
===from===&lt;br /&gt;
&lt;br /&gt;
 EPrints::Plugin::Screen::SetLang-&amp;amp;gt;from&lt;br /&gt;
Creates the &amp;lt;tt&amp;gt;eprints_lang&amp;lt;/tt&amp;gt; cookie using the value of &amp;lt;tt&amp;gt;lang&amp;lt;/tt&amp;gt; attribute  from the HTTP GET of the request (&amp;lt;tt&amp;gt;/cgi/set_lang&amp;lt;/tt&amp;gt;).&lt;br /&gt;
&lt;br /&gt;
Once the cookie is set the client is redirected back to their original  page (specified by the &amp;lt;tt&amp;gt;Referrer&amp;lt;/tt&amp;gt; header of the request or the  repository homepage.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style='background-color: #e8e8f; margin: 0.5em 0em 1em 0em; border: solid 1px #cce;  padding: 0em 1em 0em 1em; font-size: 80%; '&amp;gt;&lt;br /&gt;
&amp;lt;span style='display:none'&amp;gt;User Comments&amp;lt;/span&amp;gt;&lt;br /&gt;
&amp;lt;!-- Edit below this comment --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- Pod2Wiki= --&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;!-- Pod2Wiki=item_render_action_link --&amp;gt;&lt;br /&gt;
===render_action_link===&lt;br /&gt;
&lt;br /&gt;
 EPrints::Plugin::Screen::SetLang-&amp;amp;gt;render_action_link&lt;br /&gt;
Returns a XHTML DOM fragment for a link or links to alternative  languages that could be used on the repository, (including a link to clear the currently selected language). Once one of these links is  clicked, the &amp;lt;tt&amp;gt;eprints_lang&amp;lt;/tt&amp;gt; cookie will be updated appropriately.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style='background-color: #e8e8f; margin: 0.5em 0em 1em 0em; border: solid 1px #cce;  padding: 0em 1em 0em 1em; font-size: 80%; '&amp;gt;&lt;br /&gt;
&amp;lt;span style='display:none'&amp;gt;User Comments&amp;lt;/span&amp;gt;&lt;br /&gt;
&amp;lt;!-- Edit below this comment --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- Pod2Wiki= --&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;!-- Pod2Wiki=item_render --&amp;gt;&lt;br /&gt;
===render===&lt;br /&gt;
&lt;br /&gt;
 EPrints::Plugin::Screen::SetLang-&amp;amp;gt;render&lt;br /&gt;
Returns an XHTML DOM object that is a rendering of screen.  As the  client should be always be redirected from this page, once the  &amp;lt;tt&amp;gt;eprints_lang&amp;lt;/tt&amp;gt; cookie is updated, it just contain as message saying  the redirect failed.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style='background-color: #e8e8f; margin: 0.5em 0em 1em 0em; border: solid 1px #cce;  padding: 0em 1em 0em 1em; font-size: 80%; '&amp;gt;&lt;br /&gt;
&amp;lt;span style='display:none'&amp;gt;User Comments&amp;lt;/span&amp;gt;&lt;br /&gt;
&amp;lt;!-- Edit below this comment --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- Pod2Wiki= --&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;!-- Pod2Wiki=head_copyright --&amp;gt;&lt;br /&gt;
==COPYRIGHT==&lt;br /&gt;
{{API:Copyright}}&lt;br /&gt;
&amp;lt;div style='background-color: #e8e8f; margin: 0.5em 0em 1em 0em; border: solid 1px #cce;  padding: 0em 1em 0em 1em; font-size: 80%; '&amp;gt;&lt;br /&gt;
&amp;lt;span style='display:none'&amp;gt;User Comments&amp;lt;/span&amp;gt;&lt;br /&gt;
&amp;lt;!-- Edit below this comment --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- Pod2Wiki= --&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;!-- Pod2Wiki=_postamble_ --&amp;gt;&amp;lt;!-- Edit below this comment --&amp;gt;&lt;/div&gt;</summary>
		<author><name>Pod2wiki</name></author>
		
	</entry>
</feed>