{# Copyright (C) 2006-2023 Edgewall Software This software is licensed as described in the file COPYING, which you should have received as part of this distribution. The terms are also available at https://trac.edgewall.org/wiki/TracLicense. This software consists of voluntary contributions made by many individuals. For the exact contribution history, see the revision history and logs, available at https://trac.edgewall.org/. #} # extends 'prefs.html'
# set session_language = session.get('language', '').replace('-', '_') # if 'TRAC_ADMIN' in req.perm: # if not has_babel: ${_("Install Babel for extended language support.")} # endif # if has_babel and not languages: ${_("Message catalogs have not been compiled.")} # endif # endif | |
# if languages:
# trans Configuring your language will result in all text displayed on this site to use your language instead of that of the server. # endtrans # trans The Default language option uses the browser's language negotiation feature to select the appropriate language. # endtrans # else:## Don't use trans here because of no available languages # if '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 Babel package needs to be present when installing Trac. See TracInstall for details. # else: # set project_admin # if project.admin: Trac administrator # else: Trac administrator # endif # endset Please contact your ${project_admin} to enable existing translations. # endif # endif |
|
# trans Configuring your time zone will result in all dates and times displayed on this site to use your time zone instead of that of the server. # endtrans
# set now = datetime.now(utc)
# set nowtz = selected_tz.normalize(now.astimezone(selected_tz))
# set formatted
${format_time(now, 'iso8601', tzinfo=req.tz)}
# endset
# set time
${format_time(now, 'iso8601', tzinfo=utc)}
# endset
# trans time
Example: The current time is ${time} (UTC).
# endtrans
# trans
Note: Universal Co-ordinated Time (UTC) is also known as
Greenwich Mean Time (GMT). |
|
# trans Configuring your date format will result in formatting and parsing datetime displayed on this site to use your date format instead of that of the server. # endtrans |
|
# trans Configuring your relative/absolute format will result in formatting datetime displayed on this site to use your format instead of that of the server. # endtrans |