1. Olemis Lang
  2. bloodhound-trac


bloodhound-trac / trac / prefs / templates / prefs_language.html

<!DOCTYPE html
    PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
<html xmlns="http://www.w3.org/1999/xhtml"
  <xi:include href="prefs.html" />

    <div class="field" py:with="session_language = settings.session.get('language', '').replace('-', '_')">
        <select name="language">
          <option value="">Default language</option>
          <option py:for="locale, language in languages"
                  selected="${session_language == locale or None}"
      <p class="hint">Configuring your language will result in all text
      displayed on this site to use your language instead of that of the

      <p class="hint" i18n:msg="">The <strong>Default language</strong> option uses the browser's
        language negotiation feature to select the appropriate language.</p>

      <p py:if="not languages" class="hint" xml:lang="en">
        <strong>Note:</strong> Translations are currently unavailable.
          <py:when test="'TRAC_ADMIN' in req.perm">
            Trac has been 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 when installing Trac. See
            <a href="${href.wiki('TracInstall')}">TracInstall</a> for details.
            Please contact your
            <a py:strip="not project.admin" href="mailto:${project.admin}">Trac administrator</a>
            to enable existing translations.