Gallery2:Localization Server - Gallery Codex
Personal tools

Gallery2:Localization Server

From Gallery Codex

Localization Server (l10n_server) is a tool for translating the Gallery interface strings into foreign languages. Using the GNU gettext standard l10n_server extracts user interface strings and presents them to translators through a web interface. Language groups allow delegation of role/right based permissions on a per language basis. Unauthenticated users are able to participate in translating with minimal effort by submitting suggestions. Language group administrators have the ability to accept or reject suggested translations.

Usage

Web Interface

  1. Select a language and module to translate
  2. Click "Edit"
  3. Enter translations

Manual Translation

You can download PO files for offline editing by selecting a language and project and clicking "export". After you finish modifying the PO file you can upload your changes by clicking import from the module page.

Administration

Installation

  1. Install the latest release of Drupal 5.x
  2. Extract l10n_server into the Drupal /modules directory
  3. Activate l10n_community, l10n_gallery, and l10n_groups modules in the Drupal administration
  4. Create a directory to store Gallery packages
  5. Activate the Drupal Cron task to parse Gallery packages
  6. Create a Cron job to fetch the latest Gallery packages

Architecture

Drupal

l10n_server was created specifically for translating the Drupal CMS and is implemented as a set of Drupal modules. It has been adapted for use in translating Gallery (l10n_gallery).

l10n_community

Manages imported strings by project, release, file, line number, etc.

l10n_gallery

l10n_gallery scans a local directory for gallery packages. It extracts and parses the packages passing the translatable source files to the modified potx module.

l10n_groups

The l10n_groups module interfaces l10n_server with the Drupal Organic Groups (og) module.

potx

A modified version of the Drupal Translation Template Extractor (potx) module is used to extract strings from source files.

advertisements