blob: 4ea25ac1b3485b2b73b189d5405af7ee6f2a3b14 [file] [log] [blame]
<!--!
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing,
software distributed under the License is distributed on an
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, either express or implied. See the License for the
specific language governing permissions and limitations
under the License.
-->
<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:py="http://genshi.edgewall.org/"
xmlns:xi="http://www.w3.org/2001/XInclude"
xmlns:i18n="http://genshi.edgewall.org/i18n">
<xi:include href="bh_prefs.html" />
<head>
<title>Language</title>
</head>
<body>
<div class="field" py:with="session_language = settings.session.get('language', '').replace('-', '_')">
<label>Language:
<select 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" 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:choose>
<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.
</py:when>
<py:otherwise>
Please contact your
<a py:strip="not project.admin" href="mailto:${project.admin}">Trac administrator</a>
to enable existing translations.
</py:otherwise>
</py:choose>
</p>
</div>
</body>
</html>