Loco Translate

Descrição

Loco Translate provides in-browser editing of WordPress translation files.

It also provides localization tools for developers, such as extracting strings and generating templates.

Features include:

  • Built-in translation editor within WordPress admin
  • Create and update language files directly in your theme or plugin
  • Extraction of translatable strings from your source code
  • Native MO file compilation without the need for Gettext on your system
  • Support for PO features including comments, references and plural forms
  • PO source view with clickable source code references
  • Protected language directory for saving custom translations
  • Configurable PO file backups
  • Built-in WordPress locale codes

Official Loco WordPress plugin by @timwhitlock / Tim Whitlock

More info

Coming soon

These features are on our todo list. There’s no particular timeframe for any of them and they’re in no particular order:

  • Integration with Google and Bing for automatic translation
  • Integration with Loco API for collaborative translation
  • Screens showing installed bundles per language

Keyboard shortcuts

The PO file editor supports the following keyboard shortcuts for faster translating:

  • Done and Next: Ctrl ↵
  • Next string: Ctrl ↓
  • Previous string: Ctrl ↑
  • Next untranslated: Shift Ctrl ↓
  • Previous untranslated: Shift Ctrl ↑
  • Copy from source text: Ctrl B
  • Clear translation: Ctrl K
  • Toggle Fuzzy: Ctrl U
  • Save PO / compile MO: Ctrl S
  • Toggle invisibles: Shift Ctrl I

Mac users can use ⌘ Cmd instead of Ctrl.

Ecrãs

  • Translating strings in the browser with the Loco PO Editor
  • Showing translation progress for theme language files
  • PO source view with text filter and clickable file references

Instalação

Installing manually:

  1. Unzip all files to the /wp-content/plugins/loco-translate directory
  2. Log into WordPress admin and activate the ‘Loco Translate’ plugin through the ‘Plugins’ menu
  3. Go to Loco Translate > Home in the left-hand menu to start translating

Basic usage:

Translators: To translate a theme into your language, follow these steps:

  1. Create the protected languages directory at wp-content/languages/loco/themes
  2. Ensure this directory writeable by the web server
  3. Find the theme in the list at Loco Translate > Themes
  4. Click + New language and follow the on-screen prompts.

Developers: To translate your own theme or plugin for distribution, follow these steps:

  1. Create a languages subdirectory in your bundle’s root directory
  2. Ensure this directory writeable by the web server
  3. Find the bundle at either Loco Translate > Themes or Loco Translate > Plugins
  4. Click + Create template and follow the on-screen prompts to extract your strings.
  5. Click + New language and follow the on-screen prompts to add your own translations.

More information on using the plugin is available here.

Perguntas frequentes

Installation Instructions

Installing manually:

  1. Unzip all files to the /wp-content/plugins/loco-translate directory
  2. Log into WordPress admin and activate the ‘Loco Translate’ plugin through the ‘Plugins’ menu
  3. Go to Loco Translate > Home in the left-hand menu to start translating

Basic usage:

Translators: To translate a theme into your language, follow these steps:

  1. Create the protected languages directory at wp-content/languages/loco/themes
  2. Ensure this directory writeable by the web server
  3. Find the theme in the list at Loco Translate > Themes
  4. Click + New language and follow the on-screen prompts.

Developers: To translate your own theme or plugin for distribution, follow these steps:

  1. Create a languages subdirectory in your bundle’s root directory
  2. Ensure this directory writeable by the web server
  3. Find the bundle at either Loco Translate > Themes or Loco Translate > Plugins
  4. Click + Create template and follow the on-screen prompts to extract your strings.
  5. Click + New language and follow the on-screen prompts to add your own translations.

More information on using the plugin is available here.

How do I use it?

Try our beginner’s guide, or the more technical overview if you’re familiar with WordPress localization.

How do I get help?

Please see getting help with Loco Translate and note that personal support by email is not available for this plugin.
Help is provided via the plugin support forum only.

Avaliações

Ler todas as 235 avaliações

Contribuidores e programadores

“Loco Translate” is open source software. The following people have contributed to this plugin.

Contribuidores

“Loco Translate” foi traduzido para 18 locales. Obrigado aos tradutores pelas suas contribuições.

Traduza o “Loco Translate” para o seu idioma.

Interessado no desenvolvimento?

Browse the code, check out the SVN repository, or subscribe to the development log by RSS.

Registo de alterações

2.0.17

  • Unofficial languages showing in “Installed” dropdown
  • Fixed extraction bug where comment confused with file header
  • Fixed issue where src attributes requested from server during HTML strip
  • Added loco_admin_init hook into ajax router for consistency
  • Added warning on file info page when file is managed by WordPress
  • Minor help link and layout tweaks
  • Bumped WP compatibility to 4.9.1

2.0.16

  • File writer observes wp_is_file_mod_allowed
  • Fixed progress bug in editor for locales with nplurals=1
  • Made plural form categories translatable for editor UI
  • Sync-from-source raises warning when files are skipped
  • Added hack for extracting from .twig as per .php
  • Added warning when child themes declare parent text domain
  • Added option to control PO line wrapping
  • Bumped WP compatibility to 4.8.2

2.0.15

  • Permanently removed legacy version 1.x
  • Fixed bug where editor code view was not redrawn on resize
  • Fixed bug where fuzzy flag caused format flag to be ignored
  • Fixed bug where autoloader responded to very long class names
  • Purging WP object cache when active plugin list changes
  • Added experimental source word count into POT info tab
  • Bumped WP compatibility to 4.8.1

2.0.14

  • Editor improvements inc. column sorting
  • Added warnings that legacy version will be removed
  • Added PO source view text filtering
  • Added _fs_nonce for 4.7.5 compatibility
  • Migrated to canonical text domain
  • Removed wp class autoloading

2.0.13

  • CSS conflict fixes
  • Added option for UTF-8 byte order mark
  • Printf highlighting observes no-php-format flag
  • Fixed issue with translator role losing “read” permission

2.0.12

  • Minor fix for root path configs
  • Added alternative PHP extensions setting
  • Bumped WP version to 4.7.3
  • LoadHelper fix for core files
  • Allow revoking of permissions from translator role
  • Allow network admins to deny access to site admins

2.0.11

  • Extra debug logging and error diagnostics
  • Forcefully clear output buffers before Ajax flush
  • Bumped WordPress version to 4.7
  • Experimental wildcard text domain support

2.0.10

  • Allows missing domain argument in plugin_locale filter
  • Reverted editor changes that disabled readonly text
  • Added invisibles and coding editor switches
  • Added table filtering via text query
  • Added Last-Translator user preference

2.0.9

  • Bumped minimum WordPress version to 4.1
  • Some optimisation of transient caching
  • Fixed hash table settings bug

2.0.8

  • Source refs fix for files in unknown subsets
  • Downgrades PO formatting exceptions to PHP warnings
  • Renamed function prefixes to avoid PHP 7 warnings
  • Better support for php-format and no-php-format flag
  • PO source and editor UI tweaks
  • Localised strings and implemented in js

2.0.7

  • Fixed prototype.js conflict
  • More Windows file path fixes
  • Added loco_current_translator filter
  • Fixed false positive in extra files test

2.0.6

  • PO wrapping bugfix
  • Downgraded source code bugfix
  • Tolerating headerless POT files
  • Core bundle metadata tweaks

2.0.5

  • Deferred missing tokenizer warning
  • Allows editing of files in unconfigured sets
  • Added maximum PHP file size for string extraction
  • Display of PHP fatal errors during Ajax

2.0.4

  • Reduced session failures to debug notices
  • Added wp_roles support for WP < 4.3
  • Fixed domain listener bugs

2.0.3

  • Added support for Windows servers
  • Removed incomplete config warning on bundle overview

2.0.2

  • Fixed bug when absolute path used to get plugins
  • Added loco_plugins_data filter
  • Added theme Template Name header extraction
  • Minor copy amends

2.0.1

  • Added help link in settings page
  • Fixed opendir warnings in legacy code
  • Catching session errors during init
  • Removing meta row link when plugin not found

2.0.0

  • First release of completely rebuilt version 2