For the standalone (non-extension) tool that can be used to translate SVGs, see: toolforge:svgtranslate.

MediaWiki extensions manual
TranslateSvg
Release status: unmaintained
Implementation Special page
Description Provides a special page to allow for native SVG translating.
Author(s) Harry Burt
Latest version 1.0.0 (2011-12-20)
MediaWiki
License GNU General Public License 2.0
Download
log
Hooks used
  • BeforePageDisplay
  • LoadExtensionSchemaUpdates
  • MakeGlobalVariablesScript
  • TranslateBeforeAddModules
  • TranslateGetBoxes
  • TranslateGetSpecialTranslateOptions
  • TranslatePrefillTranslation
  • TranslateGetExtraInputs
  • TranslateFormatMessageBeforeTable
  • TranslateGetAPIMessageGroupsPropertyDescs
  • TranslateGetAPIMessageGroupsParameterDescs
  • TranslateGetAPIMessageGroupsParameterList
  • TranslatePostInitGroups
  • TranslateProcessAPIMessageGroupsProperties
Quarterly downloads 1 (Ranked 169th)
Translate the TranslateSvg extension if it is available at translatewiki.net
Issues Open tasks · Report a bug

TranslateSvg is a MediaWiki extension that creates a Special page to provide a native-style interface for translating SVGs in line with the SVG1.1 specification.

Status

To see the latest version of the extension in action, watch File:TranslateSvg.ogv, which is updated with every new release. (Note that any visible SVG text alignment issues are the result of problems in rsvg for Windows and not problems with the extension.)

This extension was developed as part of Harry Burt's GSoC project.

For notes about the development of the project, see Extension:TranslateSvg/2.0.

Installation

NOTE: Latest instructions are at this page.

  • First install the Translate extension.
  • Download and place the file(s) in a directory called TranslateSvg in your extensions/ folder.
  • Only when installing from Git, run Composer to install PHP dependencies, by issuing composer install --no-dev in the extension directory. (See task T173141 for potential complications.)
  • Add the following code at the bottom of your LocalSettings.php file:
    wfLoadExtension( 'TranslateSvg' );
    
  • Run the update script which will automatically create the necessary database tables that this extension needs.
  • Yes Done – Navigate to Special:Version on your wiki to verify that the extension is successfully installed.

To users running MediaWiki 1.24 or earlier:

The instructions above describe the new way of installing this extension using wfLoadExtension(). If you need to install this extension on these earlier versions (MediaWiki 1.24 and earlier), instead of wfLoadExtension( 'TranslateSvg' );, you need to use:

require_once "$IP/extensions/TranslateSvg/TranslateSvg.php";

See also

This article is issued from Mediawiki. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.