<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Locale on System Overlord</title><link>https://systemoverlord.com/tags/locale.html</link><description>Recent content in Locale on System Overlord</description><generator>Hugo</generator><language>en-us</language><managingEditor>david@systemoverlord.com (David Tomaschik)</managingEditor><webMaster>david@systemoverlord.com (David Tomaschik)</webMaster><lastBuildDate>Thu, 29 Sep 2011 04:15:00 +0000</lastBuildDate><atom:link href="https://systemoverlord.com/tags/locale/index.xml" rel="self" type="application/rss+xml"/><item><title>Customizing Built-in Strings in Drupal</title><link>https://systemoverlord.com/2011/09/29/customizing-built-in-strings-in-drupal/</link><pubDate>Thu, 29 Sep 2011 04:15:00 +0000</pubDate><author>david@systemoverlord.com (David Tomaschik)</author><guid>https://systemoverlord.com/2011/09/29/customizing-built-in-strings-in-drupal/</guid><description>&lt;p&gt;
	At work, we had a situation where one of the strings built in to the Drupal User Interface made things somewhat confusing.  By default, 'Enter your &lt;strong&gt;sitename&lt;/strong&gt; username.' is displayed beneath the username box on the login form.  However, we use a centralized authentication system called 'NetID', so this prompt was confusing to some users.&lt;/p&gt;
&lt;p&gt;
	One of my coworkers had received the request from the user to change this text to "Please enter your KSU NetID."  His first thought was to create a subtheme of our base theme and modify a .tpl.php.  (It turns out this isn't even directly possible, you have to register a special .tpl.php handler first.)  My first thought was hook_form_alter, but after a moment, I realized that was overkill for the task of changing a single string.  I recalled that before we had used locale settings to modify strings being output, so I wondered if we couldn't do that here as well.  The first step was to find the raw string, before any processing.&lt;/p&gt;</description></item></channel></rss>