# HG changeset patch
# Parent f930f56e51638d2b4a2f3d4a273da419834f39f0
0.12.2dev: apologies for no translations being available, in the //Language// preference panel.

diff -r f930f56e5163 trac/prefs/templates/prefs_language.html
--- a/trac/prefs/templates/prefs_language.html	Thu Sep 30 22:24:40 2010 +0200
+++ b/trac/prefs/templates/prefs_language.html	Fri Oct 01 07:30:19 2010 +0200
@@ -10,20 +10,39 @@
   </head>
   <body>
 
-    <div class="field" py:with="session_language = settings.session.get('language')">
-      <label>Language:
-      <select name="language">
+    <div class="field"
+         py:with="session_language = settings.session.get('language')">
+      <label for="language">Language:</label>
+      <select id="language" name="language">
         <option value="">default language</option>
         <option py:for="locale, language in languages"
                 selected="${session_language == locale or None}"
                 value="$locale">$language</option>
-      </select></label>
-      <p class="hint">Configuring your language will result in all text
-      displayed on this site to use your language instead of that of the
-      server.</p>
-
-      <p class="hint">The 'default language' option uses the browser's
-        language negotiation feature to select the appropriate language.</p>
+      </select>
+      <py:choose>
+        <py:when test="languages">
+          <p class="hint" py:choose="">
+            Configuring your language will result in all text
+            displayed on this site to use your language instead of
+            that of the server.
+          </p>
+          <p class="hint">
+            The 'default language' option uses the browser's language
+            negotiation feature to select the appropriate language.
+          </p>
+        </py:when>
+        <py:otherwise>
+          <p class="hint">
+            We're sorry, but no translations are available.  Trac has
+            localized to more than a dozen of languages but in order
+            to be able to use them, the
+            <a href="http://babel.edgewall.org">Babel</a> package needs to be
+            present at installation time. See
+            <a href="${href.wiki('TracInstall')}">TracInstall</a>
+            for details.
+          </p>
+        </py:otherwise>
+      </py:choose>
     </div>
 
   </body>

