{# 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' # block preftitle ${_("Localization")} # endblock preftitle # block prefpanel # set session_tzname = session.get('tz') # set selected_tz = timezone(session_tzname) or utc # set session_lc_time = session.get('lc_time') # set session_dateinfo = session.get('dateinfo')
# 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
# if session_tzname: # trans tz = nowtz.tzname(), formatted In your time zone ${tz}, this would be displayed as ${formatted}. # endtrans # else: # trans formatted In the default time zone, this would be displayed as ${formatted}. # endtrans # endif

# trans Note: Universal Co-ordinated Time (UTC) is also known as Greenwich Mean Time (GMT).
A positive offset is used to indicate a timezone at the east of Greenwich, i.e. ahead of Universal Time. # endtrans

# 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

# endblock prefpanel