Translating user-defined strings (module developers)

Old functions tt() and ts() have been deprecated. Use i18nstrings() and i18nstrings_update() instead.

The Internationalization module provides translation services for user-defined strings. It also tracks source strings and keeps them up-to-date using a 'string key' that is a string with these elements "textgroup:object_type:object_key:property_name".

Some examples of these 'string keys' are:


For translating these strings, the module must call this function before displaying them:

 * Translate or update user defined string.
 * @param $name
 *   Textgroup and location glued with ':'.
 * @param $string
 *   String in default language. Default language may or may not be English.
 * @param $langcode
 *   Optional language code if different from current request language.
 * @return $string
 *   Translated string, $string if not found
function i18nstrings($name, $string, $langcode = NULL) {

For strings that have an input format, you must use the function i18nstrings_text() that takes care of applying the correct filters if there is a translation.

* Get filtered translation

SmartGit (Linux, Mac, Win)

SmartGit is a Git client for Windows, Mac OS X and Linux. It provides a GUI to the Git command-line interface. SmartGit is free for non-commercial use, but unfortunately it isn't open source.


[Clarify the ways this is important to committer stats on]

Tutorial 1: On login redirect to the particular page using Trigger

In this tutorial we will use the Trigger core module to configure a simple page redirection after a user has logged in. You may also use Rules module described here

3a) Remote Access Quickstart: Bridged Networking

Out of the box, Virtualbox has the host computer (Windows/Mac) to act as a NAT for the guest (Quickstart). This means Quickstart can see the rest of the network, but the network can't see Quickstart. If you want to access the sites on Quickstart from the host computer (or any other computer on the network) in a web browser or to edit the files, you'll need to use one of the options below to make Quickstart visible.

Before making changes to networking please be sure to read & understand how to secure Quickstart. When you're ready to proceed, multiple options have been documented here by users. However, please note:

  • The following options are user-suggested. Use at your own risk.
  • Different network configurations and computer setups greatly affect the success of these networks. You might have to fiddle with these.
  • Consequently, please don't file support requests for this setup.
  • There may be security issues -- proceed with caution!

Options for accessing Quickstart files remotely:

  1. Use bridged networking
  2. Set up an OpenSSH server
  3. Add a listening port to Apache
  4. Use two network adapters

9) Building a Quickstart Virtual Machine

Note: This is unnecessary if you want to *use* quickstart. Just follow the installation instructions.

If you for some reason need to rebuild a virtual machine "from scratch", these are the steps. Not all of the configuration is scripted. Much of the GUI configuration (inc setting up Firefox Add-ons) is manual.

Tutorial 8: Working with users, roles, and permissions

- 'Active user' - the user who triggers the action
- 'Authenticated user' - logged in user


Subscribe with RSS Subscribe to RSS - Programmers