t

Versions
4.6 – 5
t($string, $args = 0)
6
t($string, $args = array(), $langcode = NULL)
7
t($string, array $args = array(), array $options = array())

Translate strings to the current locale.

When using t(), try to put entire sentences and strings in one t() call. This makes it easier for translators. HTML markup within translation strings is acceptable, if necessary. The suggested syntax for a link embedded within a translation string is:

<?php

$msg = t('You must log in below or <a href="%url">create a new
account</a> before viewing the next page.', array('%url'
=> url('user/register')));

?>

We suggest the same syntax for links to other sites. This makes it easy to change link URLs if needed (which happens often) without requiring updates to translations.

Parameters

$string A string containing the English string to translate.

$args An associative array of replacements to make after translation. Incidences of any key in this array are replaced with the corresponding value.

Return value

The translated string.

▾ 443 functions call t()

aggregator_admin_edit_category in modules/aggregator.module
Menu callback; displays the category edit form, or saves changes and redirects to the overview page.
aggregator_admin_edit_feed in modules/aggregator.module
Menu callback; displays the feed edit form.
aggregator_block in modules/aggregator.module
Implementation of hook_block().
aggregator_edit in modules/aggregator.module
aggregator_form_category in modules/aggregator.module
aggregator_form_feed in modules/aggregator.module
aggregator_help in modules/aggregator.module
Implementation of hook_help().
aggregator_menu in modules/aggregator.module
Implementation of hook_menu().
aggregator_page_categories in modules/aggregator.module
Menu callback; displays all the categories used by the aggregator.
aggregator_page_sources in modules/aggregator.module
Menu callback; displays all the feeds used by the aggregator.
aggregator_parse_feed in modules/aggregator.module
aggregator_refresh in modules/aggregator.module
Checks a news feed for new items.
aggregator_remove in modules/aggregator.module
aggregator_settings in modules/aggregator.module
aggregator_view in modules/aggregator.module
archive_block in modules/archive.module
Implementation of hook_block().
archive_calendar in modules/archive.module
Generates a monthly calendar, for display in the archive block.
archive_help in modules/archive.module
Implementation of hook_help().
archive_menu in modules/archive.module
Implementation of hook_menu().
archive_page in modules/archive.module
Menu callback; lists all nodes posted on a given date.
block_admin in modules/block.module
Menu callback; displays the block overview page.
block_admin_configure in modules/block.module
Menu callback; displays the block configuration form.
block_admin_display in modules/block.module
Prepare the main block administration form.
block_admin_save in modules/block.module
block_box_add in modules/block.module
Menu callback; displays the block creation form.
block_box_delete in modules/block.module
Menu callback; confirm and delete custom blocks.
block_box_form in modules/block.module
block_example_block in developer/examples/block_example.module
Implementation of hook_block().
block_example_contents in developer/examples/block_example.module
A block content function.
block_example_help in developer/examples/block_example.module
Implementation of hook_help().
block_help in modules/block.module
Implementation of hook_help().
block_menu in modules/block.module
Implementation of hook_menu().
block_user in modules/block.module
Implementation of hook_user().
blogapi_blogger_edit_post in modules/blogapi.module
Blogging API callback. Modifies the specified blog node.
blogapi_blogger_new_post in modules/blogapi.module
Blogging API callback. Inserts a new blog post as a node.
blogapi_help in modules/blogapi.module
Implementation of hook_help().
blogapi_menu in modules/blogapi.module
blogapi_metaweblog_new_media_object in modules/blogapi.module
Blogging API callback. Inserts a file into Drupal.
blogapi_mt_get_trackback_pings in modules/blogapi.module
Blogging API callback. Can not be implemented without support from trackback module.
blogapi_settings in modules/blogapi.module
blogapi_validate_user in modules/blogapi.module
Ensure that the given user has permission to edit a blog.
blogapi_xmlrpc in modules/blogapi.module
Implementation of hook_xmlrpc().
blogap_mti_publish_post in modules/blogapi.module
Blogging API callback. Publishes the given node
blog_block in modules/blog.module
Implementation of hook_block().
blog_form in modules/blog.module
Implementation of hook_form().
blog_help in modules/blog.module
Implementation of hook_help().
blog_link in modules/blog.module
Implementation of hook_link().
blog_menu in modules/blog.module
Implementation of hook_menu().
blog_node_name in modules/blog.module
Implementation of hook_node_name().
blog_page_last in modules/blog.module
Displays a Drupal page containing recent blog entries of all users.
blog_page_user in modules/blog.module
Displays a Drupal page containing recent blog entries of a given user.
blog_user in modules/blog.module
Implementation of hook_user().
blog_view in modules/blog.module
Implementation of hook_view().
book_admin in modules/book.module
Menu callback; displays the book administration page.
book_admin_orphan in modules/book.module
Menu callback; displays a listing of all orphaned book pages.
book_admin_save in modules/book.module
book_admin_view in modules/book.module
Display an administrative view of the hierarchy of a book.
book_admin_view_line in modules/book.module
book_block in modules/book.module
Implementation of hook_block().
book_content in modules/book.module
book_form in modules/book.module
Implementation of hook_form().
book_help in modules/book.module
Implementation of hook_help().
book_link in modules/book.module
Implementation of hook_link().
book_menu in modules/book.module
Implementation of hook_menu().
book_nodeapi in modules/book.module
Implementation of hook_nodeapi().
book_node_name in modules/book.module
Implementation of hook_node_name().
book_outline in modules/book.module
Implementation of function book_outline() Handles all book outline operations.
book_render in modules/book.module
Menu callback; prints a listing of all books.
book_toc in modules/book.module
book_view in modules/book.module
Implementation of hook_view().
chameleon_comment in themes/chameleon/chameleon.theme
chameleon_node in themes/chameleon/chameleon.theme
comment_admin_edit in modules/comment.module
Menu callback; edit a comment from the administrative interface.
comment_admin_overview in modules/comment.module
Menu callback; present an administrative comment listing.
comment_block in modules/comment.module
Implementation of hook_block().
comment_configure in modules/comment.module
Menu callback; presents the comment settings page.
comment_delete in modules/comment.module
Menu callback; delete a comment.
comment_help in modules/comment.module
Implementation of hook_help().
comment_link in modules/comment.module
Implementation of hook_link().
comment_links in modules/comment.module
comment_matrix_settings in modules/comment.module
Menu callback; presents the moderation vote matrix.
comment_menu in modules/comment.module
Implementation of hook_menu().
comment_moderation_form in modules/comment.module
comment_nodeapi in modules/comment.module
Implementation of hook_nodeapi().
comment_post in modules/comment.module
comment_preview in modules/comment.module
comment_render in modules/comment.module
comment_reply in modules/comment.module
comment_role_settings in modules/comment.module
Menu callback; allows admin to set default scores for different roles.
comment_save in modules/comment.module
comment_threshold_settings in modules/comment.module
Menu callback; displays settings for thresholds at which comments are displayed.
comment_user in modules/comment.module
Implementation of hook_user().
comment_validate_form in modules/comment.module
comment_vote_settings in modules/comment.module
Menu callback; displays page for assigning names to vote values.
contact_help in modules/contact.module
Implementation of hook_help().
contact_mail_user in modules/contact.module
contact_menu in modules/contact.module
Implementation of hook_menu().
contact_user in modules/contact.module
Implementation of hook_user().
drupal_access_denied in includes/common.inc
Generates a 403 error if the request is not allowed.
drupal_auth in modules/drupal.module
Implementation of hook_auth().
drupal_check_token in includes/common.inc
Check the form token if there is POST data for an authenticated user to defend against cross site request forgeries.
drupal_convert_to_utf8 in includes/common.inc
Convert data to UTF-8
drupal_directory_ping in modules/drupal.module
Callback function from drupal_xmlrpc() called when another site pings this one.
drupal_help in modules/drupal.module
Implementation of hook_help().
drupal_menu in modules/drupal.module
Implementation of hook_menu().
drupal_notify in modules/drupal.module
Sends a ping to the Drupal directory server.
drupal_not_found in includes/common.inc
Generates a 404 error if the request can not be handled.
drupal_settings in modules/drupal.module
Implementation of hook_settings().
drupal_xmlrpc in modules/drupal.module
Implementation of hook_xmlrpc().
drupal_xml_parser_create in includes/common.inc
Prepare a new XML parser.
error_handler in includes/common.inc
Log errors as defined by administrator Error levels: 1 = Log errors to database. 2 = Log errors to database and to screen.
fileupload_form in developer/examples/fileupload.module
fileupload_help in developer/examples/fileupload.module
fileupload_link in developer/examples/fileupload.module
Integrate with Drupal
fileupload_node_name in developer/examples/fileupload.module
fileupload_validate in developer/examples/fileupload.module
file_check_directory in includes/file.inc
Check that directory exists and is writable.
file_copy in includes/file.inc
Copies a file to a new location. This is a powerful function that in many ways performs like an advanced version of copy().
file_move in includes/file.inc
Moves a file to a new location.
file_save_data in includes/file.inc
Save a string to the specified destination
file_save_upload in includes/file.inc
Saves a file upload to a new location. The source file is validated as a proper upload and handled as such.
filter_admin_add in modules/filter.module
Add a new input format.
filter_admin_configure in modules/filter.module
Menu callback; display settings defined by filters.
filter_admin_delete in modules/filter.module
Menu callback; confirm deletion of a format.
filter_admin_filters in modules/filter.module
Menu callback; configure the filters for a format.
filter_admin_filters_save in modules/filter.module
Save enabled/disabled status for filters in a format.
filter_admin_order in modules/filter.module
Menu callback; display form for ordering filters for a format.
filter_admin_order_save in modules/filter.module
Save the weights of filters in a format.
filter_admin_overview in modules/filter.module
Menu callback; allows administrators to set up input formats.
filter_admin_save in modules/filter.module
Save input formats on the overview page.
filter_example_filter in developer/examples/filter_example.module
Implementation of hook_filter().
filter_example_filter_tips in developer/examples/filter_example.module
Implementation of hook_filter_tips().
filter_example_help in developer/examples/filter_example.module
Implementation of hook_help().
filter_filter in modules/filter.module
Implementation of hook_filter(). Contains a basic set of essential filters.
filter_filter_tips in modules/filter.module
Implementation of hook_filter_tips().
filter_form in modules/filter.module
Generate a selector for choosing a format in a form.
filter_help in modules/filter.module
Implementation of hook_help().
filter_menu in modules/filter.module
Implementation of hook_menu().
format_date in includes/common.inc
Format a date with the given configured format or a custom format string.
format_interval in includes/common.inc
Format a time interval with the requested granularity.
format_name in includes/common.inc
Format a username.
format_plural in includes/common.inc
Format a string containing a count of items.
format_size in includes/common.inc
Generate a string representation for the given byte count.
forum_admin in modules/forum.module
Administration page which allows maintaining forums
forum_admin_configure in modules/forum.module
Implementation of hook_settings
forum_block in modules/forum.module
Implementation of hook_block().
forum_form in modules/forum.module
Implementation of hook_form().
forum_form_container in modules/forum.module
Returns a form for adding a container to the forum vocabulary
forum_form_forum in modules/forum.module
Returns a form for adding a forum to the forum vocabulary
forum_get_topics in modules/forum.module
forum_help in modules/forum.module
Implementation of hook_help().
forum_link in modules/forum.module
Implementation of hook_link().
forum_menu in modules/forum.module
Implementation of hook_menu().
forum_node_name in modules/forum.module
Implementation of hook_node_name().
forum_overview in modules/forum.module
Returns an overview list of existing forums and containers
forum_page in modules/forum.module
Menu callback; prints a forum listing.
forum_validate in modules/forum.module
Implementation of hook_validate().
help_help in modules/help.module
Implementation of hook_help().
help_links_as_list in modules/help.module
help_main in modules/help.module
Menu callback; prints a page listing a glossary of Drupal terminology.
help_menu in modules/help.module
Implementation of hook_menu().
help_page in modules/help.module
Menu callback; prints a page listing general help for all modules.
hook_block in developer/hooks/core.php
Declare a block or set of blocks.
hook_filter in developer/hooks/core.php
Define content filters.
hook_filter_tips in developer/hooks/core.php
Provide tips for using filters.
hook_form in developer/hooks/node.php
Display a node editing form.
hook_help in developer/hooks/core.php
Provide online user help.
hook_link in developer/hooks/core.php
Define internal Drupal links.
hook_menu in developer/hooks/core.php
Define menu items and page callbacks.
hook_nodeapi in developer/hooks/core.php
Act on nodes defined by other modules.
hook_node_name in developer/hooks/node.php
Define the human-readable name of a node type.
hook_search in developer/hooks/core.php
Define a custom search routine.
hook_settings in developer/hooks/core.php
Declare administrative settings for a module.
hook_user in developer/hooks/core.php
Act on user account actions.
hook_validate in developer/hooks/node.php
Verify a node editing form.
hook_view in developer/hooks/node.php
Display a node.
image_gd_settings in includes/image.inc
Retrieve settings for the GD2 toolkit (not used).
image_get_available_toolkits in includes/image.inc
Return a list of available toolkits.
image_toolkit_invoke in includes/image.inc
Invokes the given method using the currently selected toolkit.
legacy_filter in modules/legacy.module
Implementation of hook_filter(). Handles URL upgrades from Drupal 4.1.
legacy_help in modules/legacy.module
Implementation of hook_help().
legacy_menu in modules/legacy.module
Implementation of hook_menu().
locale_admin_export in modules/locale.module
Page handler for the translation export screen
locale_admin_import in modules/locale.module
Page handler for the translation import screen
locale_admin_manage in modules/locale.module
Page handler for the language management screen
locale_admin_manage_add in modules/locale.module
Page handler for the language addition screen
locale_admin_manage_delete_screen in modules/locale.module
User interface for the language deletion confirmation screen
locale_admin_string in modules/locale.module
Page handler for the string search and administration screen
locale_help in modules/locale.module
Implementation of hook_help().
locale_menu in modules/locale.module
Implementation of hook_menu().
locale_user in modules/locale.module
Implementation of hook_user().
menu_add_menu in modules/menu.module
Menu callback; handle the adding of a new menu.
menu_delete_item in modules/menu.module
Menu callback; delete a single custom item.
menu_disable_item in modules/menu.module
Menu callback; hide a menu item.
menu_edit_item in modules/menu.module
Menu callback; dispatch to the appropriate menu item edit function.
menu_edit_item_form in modules/menu.module
Present the menu item editing form.
menu_edit_item_save in modules/menu.module
Save changes to a menu item into the database.
menu_edit_item_validate in modules/menu.module
Confirm that an edited menu item has fields properly filled in.
menu_get_active_breadcrumb in includes/menu.inc
Returns an array of rendered menu items in the active breadcrumb trail.
menu_help in modules/menu.module
Implementation of hook_help().
menu_menu in modules/menu.module
Implementation of hook_menu().
menu_overview_tree in modules/menu.module
Present the menu tree, rendered along with links to edit menu items.
menu_overview_tree_rows in modules/menu.module
menu_parent_options in modules/menu.module
Return a list of menu items that are valid possible parents for the given menu item.
menu_reset in modules/menu.module
Menu callback; clear the database, resetting the menu to factory defaults.
menu_reset_item in modules/menu.module
Menu callback; reset a single modified item.
message_access in includes/common.inc
Return a string with an "access denied" message.
message_na in includes/common.inc
Return a string with a "not applicable" message.
nodeapi_example_help in developer/examples/nodeapi_example.module
Implementation of hook_help().
nodeapi_example_nodeapi in developer/examples/nodeapi_example.module
Implementation of hook_nodeapi().
node_access_example_help in developer/examples/node_access_example.module
Implementation of hook_help().
node_access_example_nodeapi in developer/examples/node_access_example.module
Implementation of hook_nodeapi().
node_add in modules/node.module
Present a node submission form or a set of links to such forms.
node_admin in modules/node.module
Menu callback; presents the content administration overview.
node_admin_nodes in modules/node.module
Generate the content administration overview.
node_block in modules/node.module
Implementation of hook_block().
node_configure in modules/node.module
Menu callback; presents general node configuration options.
node_delete in modules/node.module
Ask for confirmation, and delete the node.
node_example_form in developer/examples/node_example.module
Implementation of hook_form().
node_example_help in developer/examples/node_example.module
Implementation of hook_help().
node_example_link in developer/examples/node_example.module
Implementation of hook_link().
node_example_menu in developer/examples/node_example.module
Implementation of hook_menu().
node_example_node_name in developer/examples/node_example.module
Implementation of hook_node_name().
node_example_validate in developer/examples/node_example.module
Implementation of hook_validate().
node_form in modules/node.module
Generate the node editing form.
node_help in modules/node.module
Implementation of hook_help().
node_link in modules/node.module
Implementation of hook_link().
node_menu in modules/node.module
Implementation of hook_menu().
node_nodeapi in modules/node.module
Implementation of hook_nodeapi().
node_page in modules/node.module
Menu callback; dispatches control to the appropriate operation handler.
node_page_default in modules/node.module
Generate a listing of promoted nodes.
node_preview in modules/node.module
Generate a node preview, including a form for further edits.
node_revision_delete in modules/node.module
Delete the revision with specified revision number.
node_revision_overview in modules/node.module
Generate an overview table of older revisions of a node.
node_revision_rollback in modules/node.module
Roll back to the revision with the specified revision number.
node_search in modules/node.module
Implementation of hook_search().
node_submit in modules/node.module
Accepts a submission of new or changed node content.
node_types_configure in modules/node.module
Menu callback; presents each node type configuration page.
node_validate in modules/node.module
Perform validation checks on the given node.
page_example_help in developer/examples/page_example.module
Implementation of hook_help().
page_example_menu in developer/examples/page_example.module
Implementation of hook_menu().
page_form in modules/page.module
Implementation of hook_form().
page_help in modules/page.module
Implementation of hook_help().
page_menu in modules/page.module
Implementation of hook_menu().
page_node_name in modules/page.module
Implementation of hook_node_name().
path_admin_delete in modules/path.module
Menu callback; handles deletion of an URL alias.
path_admin_edit in modules/path.module
Menu callback; handles pages for creating and editing URL aliases.
path_form in modules/path.module
Return a form for editing or creating an individual URL alias.
path_help in modules/path.module
Implementation of hook_help().
path_menu in modules/path.module
Implementation of hook_menu().
path_nodeapi in modules/path.module
Implementation of hook_nodeapi().
path_overview in modules/path.module
Return a listing of all defined URL aliases.
path_save in modules/path.module
Verify that a new URL alias is valid, and save it to the database.
ping_help in modules/ping.module
Implementation of hook_help().
ping_ping in modules/ping.module
Implementation of hook_ping().
poll_block in modules/poll.module
Implementation of hook_block().
poll_form in modules/poll.module
Implementation of hook_form().
poll_help in modules/poll.module
Implementation of hook_help().
poll_menu in modules/poll.module
Implementation of hook_menu().
poll_node_name in modules/poll.module
Implementation of hook_node_name().
poll_page in modules/poll.module
poll_validate in modules/poll.module
Implementation of hook_validate().
poll_view in modules/poll.module
Implementation of hook_view().
poll_view_results in modules/poll.module
Generates a graphical representation of the results of a poll.
poll_view_voting in modules/poll.module
Generates the voting form for a poll.
poll_vote in modules/poll.module
Callback for processing a vote
profile_admin_add in modules/profile.module
Menu callback; adds a new field to all user profiles.
profile_admin_delete in modules/profile.module
Menu callback; deletes a field from all user profiles.
profile_admin_edit in modules/profile.module
Menu callback; displays the profile field editing form.
profile_admin_overview in modules/profile.module
Menu callback; display a listing of all editable profile fields.
profile_browse in modules/profile.module
Menu callback; display a list of user information.
profile_help in modules/profile.module
Implementation of hook_help().
profile_menu in modules/profile.module
Implementation of hook_menu().
profile_validate_form in modules/profile.module
profile_validate_profile in modules/profile.module
profile_view_profile in modules/profile.module
queue_block in modules/queue.module
Implementation of hook_block().
queue_help in modules/queue.module
Implementation of hook_help().
queue_menu in modules/queue.module
Implementation of hook_menu().
queue_nodeapi in modules/queue.module
Implementation of hook_nodeapi().
queue_overview in modules/queue.module
Display a page listing the nodes in the submission queue.
queue_settings in modules/queue.module
queue_view in modules/queue.module
Display a queued node along with voting options for it.
queue_vote in modules/queue.module
search_admin in modules/search.module
Menu callback; displays the search module settings page.
search_block in modules/search.module
Implementation of hook_block().
search_form in modules/search.module
Render a search form.
search_help in modules/search.module
Implementation of hook_help().
search_menu in modules/search.module
Implementation of hook_menu().
search_view in modules/search.module
Menu callback; presents the search form and/or search results.
statistics_access_log in modules/statistics.module
statistics_block in modules/statistics.module
Implementation of hook_block().
statistics_help in modules/statistics.module
Implementation of hook_help().
statistics_menu in modules/statistics.module
Implementation of hook_menu().
statistics_node_tracker in modules/statistics.module
statistics_recent_hits in modules/statistics.module
Menu callback; presents the "Recent hits" page.
statistics_settings in modules/statistics.module
Implementation of hook_settings().
statistics_top_pages in modules/statistics.module
Menu callback; presents the "Top pages" page.
statistics_top_referrers in modules/statistics.module
Menu callback; presents the "Top referrers" page.
statistics_top_users in modules/statistics.module
Menu callback; presents the "Top users" page.
statistics_user_tracker in modules/statistics.module
story_form in modules/story.module
Implementation of hook_form().
story_help in modules/story.module
Implementation of hook_help().
story_menu in modules/story.module
Implementation of hook_menu().
story_node_name in modules/story.module
Implementation of hook_node_name().
system_help in modules/system.module
Implementation of hook_help().
system_listing_save in modules/system.module
system_menu in modules/system.module
Implementation of hook_menu().
system_modules in modules/system.module
Menu callback; displays a listing of all modules.
system_module_listing in modules/system.module
Generate a list of all the available modules, as well as update the system list.
system_settings_form in modules/system.module
system_settings_save in modules/system.module
system_themes in modules/system.module
Menu callback; displays a listing of all themes.
system_theme_listing in modules/system.module
Generate a list of all the available theme/style combinations.
system_theme_settings in modules/system.module
Menu callback; display theme configuration for entire site and individual themes.
system_user in modules/system.module
Implementation of hook_user().
system_view_general in modules/system.module
tablesort_header in includes/tablesort.inc
Format a column header.
taxonomy_admin in modules/taxonomy.module
Menu callback; dispatches to the proper taxonomy administration function.
taxonomy_del_term in modules/taxonomy.module
taxonomy_del_vocabulary in modules/taxonomy.module
taxonomy_form in modules/taxonomy.module
Generate a form element for selecting terms from a vocabulary.
taxonomy_form_term in modules/taxonomy.module
taxonomy_form_vocabulary in modules/taxonomy.module
taxonomy_help in modules/taxonomy.module
Implementation of hook_help().
taxonomy_menu in modules/taxonomy.module
Implementation of hook_menu().
taxonomy_overview in modules/taxonomy.module
Generate a tabular listing of administrative functions for vocabularies.
taxonomy_render_nodes in modules/taxonomy.module
Accepts the result of a pager_query() call, such as that performed by taxonomy_select_nodes(), and formats each node along with a pager.
taxonomy_save_term in modules/taxonomy.module
taxonomy_save_vocabulary in modules/taxonomy.module
theme_aggregator_block_item in modules/aggregator.module
Format an individual feed item for display in the block.
theme_aggregator_feed in modules/aggregator.module
Format a news feed.
theme_aggregator_page_item in modules/aggregator.module
Format an individual feed item for display on the aggregator page.
theme_aggregator_summary_item in modules/aggregator.module
Return a themed item heading for summary pages located at "aggregator/sources" and "aggregator/categories".
theme_book_navigation in modules/book.module
Prepares both the custom breadcrumb trail and the forward/backward navigation for a node presented as a book page.
theme_comment in modules/comment.module
theme_comment_controls in modules/comment.module
theme_comment_folded in modules/comment.module
theme_comment_form in modules/comment.module
theme_comment_per_page_form in modules/comment.module
theme_comment_post_forbidden in modules/comment.module
theme_comment_threshold in modules/comment.module
theme_confirm in includes/theme.inc
Output a confirmation form
theme_filter_tips in modules/filter.module
Format a set of filter tips.
theme_forum_display in modules/forum.module
Format the forum body.
theme_forum_list in modules/forum.module
Format the forum listing.
theme_forum_topic_list in modules/forum.module
Format the topic listing.
theme_get_settings in includes/theme.inc
Retrieve an associative array containing the settings for a theme.
theme_help in includes/theme.inc
Hook Help - returns theme specific help and information.
theme_more_help_link in includes/theme.inc
theme_nodeapi_example_rating in developer/examples/nodeapi_example.module
A custom theme function.
theme_node_example_order_info in developer/examples/node_example.module
A custom theme function.
theme_node_preview in modules/node.module
Display a node preview for display during node creation and editing.
theme_pager in includes/pager.inc
Format a query pager.
theme_user_picture in modules/user.module
theme_xml_icon in includes/theme.inc
Return code that emits an XML icon.
throttle_exit in modules/throttle.module
Implementation of hook_exit().
throttle_help in modules/throttle.module
Implementation of hook_help().
throttle_settings in modules/throttle.module
Implementation of hook_settings().
tracker_help in modules/tracker.module
Implementation of hook_help().
tracker_menu in modules/tracker.module
Implementation of hook_menu().
tracker_page in modules/tracker.module
Menu callback. Prints a listing of active nodes on the site.
upload_admin in modules/upload.module
upload_form in modules/upload.module
upload_help in modules/upload.module
Implementation of hook_help().
upload_link in modules/upload.module
Implementation of hook_link().
upload_menu in modules/upload.module
Implementation of hook_menu().
upload_munge_filename in modules/upload.module
Munge the filename as needed for security purposes.
upload_nodeapi in modules/upload.module
Implementation of hook_nodeapi().
user_admin in modules/user.module
user_admin_access in modules/user.module
Menu callback: list all access rules
user_admin_access_add in modules/user.module
Menu callback: add an access rule
user_admin_access_check in modules/user.module
Menu callback: check an access rule
user_admin_access_delete in modules/user.module
Menu callback: delete an access rule
user_admin_access_edit in modules/user.module
Menu callback: edit an access rule
user_admin_account in modules/user.module
user_admin_create in modules/user.module
user_admin_perm in modules/user.module
Menu callback: administer permissions.
user_admin_role in modules/user.module
Menu callback: administer roles.
user_authenticate in modules/user.module
user_block in modules/user.module
Implementation of hook_block().
user_configure_settings in modules/user.module
user_edit in modules/user.module
user_edit_form in modules/user.module
user_edit_validate in modules/user.module
user_help in modules/user.module
Implementation of hook_help().
user_login in modules/user.module
user_logout in modules/user.module
Menu callback; logs the current user out, and redirects to the home page.
user_menu in modules/user.module
Implementation of hook_menu().
user_page in modules/user.module
user_pass in modules/user.module
user_register in modules/user.module
user_search in modules/user.module
Implementation of hook_search().
user_user in modules/user.module
Implementation of hook_user().
user_validate_authmap in modules/user.module
user_validate_mail in modules/user.module
user_validate_name in modules/user.module
Verify the syntax of the given name.
user_validate_picture in modules/user.module
watchdog_event in modules/watchdog.module
Menu callback; displays details about a log message.
watchdog_help in modules/watchdog.module
Implementation of hook_help().
watchdog_menu in modules/watchdog.module
Implementation of hook_menu().
watchdog_overview in modules/watchdog.module
Menu callback; displays a listing of log messages.
xmlrpc in includes/xmlrpc.inc
Perform an XML-RPC request.
xmlrpc_server in includes/xmlrpcs.inc
xmlrpc_server_call in includes/xmlrpcs.inc
xmlrpc_server_method_signature in includes/xmlrpcs.inc
xmlrpc_server_multicall in includes/xmlrpcs.inc
xtemplate_comment in themes/engines/xtemplate/xtemplate.engine
xtemplate_node in themes/engines/xtemplate/xtemplate.engine
xtemplate_page in themes/engines/xtemplate/xtemplate.engine
_aggregator_page_list in modules/aggregator.module
Prints an aggregator page listing a number of feed items. Various menu callbacks use this function to print their feeds.
_comment_delete_thread in modules/comment.module
_comment_get_modes in modules/comment.module
Return an array of viewing modes for comment listings.
_comment_get_orders in modules/comment.module
Return an array of viewing orders for comment listings.
_filter_html_settings in modules/filter.module
Settings for the HTML filter.
_forum_confirm_delete in modules/forum.module
Returns a confirmation page for deleting a forum taxonomy term
_forum_format in modules/forum.module
Formats a topic for display
_forum_parent_select in modules/forum.module
Returns a select box for available parent terms
_locale_add_language in includes/locale.inc
Helper function to add a language
_locale_admin_export_screen in includes/locale.inc
User interface for the translation export screen
_locale_admin_import_screen in includes/locale.inc
User interface for the translation import screen
_locale_admin_manage_add_screen in includes/locale.inc
User interface for the language addition screen
_locale_admin_manage_screen in includes/locale.inc
User interface for the language management screen
_locale_export_po in includes/locale.inc
Exports a Portable Object (Template) file for a language
_locale_import_parse_plural_forms in includes/locale.inc
Parses a Plural-Forms entry from a Gettext Portable Object file header
_locale_import_po in includes/locale.inc
Parses Gettext Portable Object file information and inserts into database
_locale_import_read_po in includes/locale.inc
Parses Gettext Portable Object file into an array
_locale_prepare_iso_list in includes/locale.inc
Prepares the language code list for a select form item with only the unsupported ones
_locale_string_delete in includes/locale.inc
_locale_string_edit in includes/locale.inc
User interface for string editing
_locale_string_save in includes/locale.inc
Action handler for string editing
_locale_string_seek in includes/locale.inc
Perform a string search and display results in a table
_locale_string_seek_form in includes/locale.inc
User interface for the string search screen
_menu_build in includes/menu.inc
Build the menu by querying both modules and the database.
_profile_field_form in modules/profile.module
_profile_field_types in modules/profile.module
_profile_form_explanation in modules/profile.module
_taxonomy_confirm_del_term in modules/taxonomy.module
_taxonomy_confirm_del_vocabulary in modules/taxonomy.module
_throttle_validate in modules/throttle.module
_upload_image in modules/upload.module
Check an upload, if it is an image, make sure it fits within the maximum dimensions allowed.
_user_admin_access_form in modules/user.module
_user_mail_text in modules/user.module

Code

includes/common.inc, line 535

<?php
function t($string, $args = 0) {
  global $locale;
  if (function_exists('locale') && $locale != 'en') {
    $string = locale($string);
  }

  if (!$args) {
    return $string;
  }
  else {
    return strtr($string, $args);
  }
}
?>
Login or register to post comments
 
 

All source code and documentation on this site is released under the terms of the GNU General Public License, version 2 and later. Drupal is a registered trademark of Dries Buytaert.