Development Seed

Blog

New Features and Improved Workflow in the l10n_client

Streamlining the Translation Process for Multilingual Websites

Recently we built a multilingual website for the International Council on Archives. Training their staff on how to use the website drove home - again - just how bulky it was to translate text in multilingual Drupal websites. So last week I worked on an update on the l10n_client to streamline the translating process and simply make translating content easier.

Here's a screencast that shows how you can now translate text with the update:

The l10n_client update includes several bugfixes/optimizations as well as some cool new features:

Bugfixes

  • The string list now displays translated strings in the target rather than source language.
  • Strings are now stored in a hidden DOM tree rather than a javascript array. The array was causing browser slowdowns on some pages with lots of strings.
  • Several other small fixes and optimizations.

New Features

  • String list "live search"
  • Simple keybindings: F1 toggles the l10n_client panel, ESC clears a live search
  • Selected-text quicksearch: Hilight a string to be translated and hit F1 to automatically find it in the string list

Many thanks to Gabor Hojtsy, lead Drupal 6 developer and maintainer of the l10n_client module. Also, a big thanks to Jose Reyero who backported l10n_client to Drupal 5. We're now using l10n_client on several multilingual Drupal 5 sites and have gotten very useful feedback from our users. These improvements should find their way back to the Drupal CVS version of l10n_client sometime next week. You can also find Jose's Drupal 5 backport of l10n_client in our repository here:

http://svn3.cvsdude.com/vvc/devseed/sandbox/l10n_client_backport/(Note: requires a patch to the locale module)

Technical Note

  • If you're wondering why the search is case sensitive, it is because l10n_client makes use of the JQuery selector :contains. This is an incredibly powerful and fast selector - it more than doubled the speed of l10n_client's search (which was previously case-insensitive but much more costly).

I can't find the screen

I can't find the screen cast. Where is it now?

The localization client only

The localization client only appeared once after I activated it. After I clicked on the "x" to close the window, it never show up again. I clicked the F1 to try to access its functions, but the F1 just calls up the Firefox help page. How to access its functions in this case?

this error occur while

this error occur while installing drupal multiligual site.Please help me.....
Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 8192 bytes) in C:\wamp\www\DocumentRoot\drupal\themes\engines\phptemplate\phptemplate.engine on line 1

Best Place for Help

Hi Hijas,
The best place to go for help with issues like this is http://groups.drupal.org/translations. Best of luck!

Bonnie

404

404 come from the screencast.com

My apologies...

Please check out from

http://svn3.cvsdude.com/devseed/sandbox/l10n_client_backport/

(without the /vvc).

yh

I can't check out the code,

I can't check out the code, getting this error:

svn: PROPFIND request failed on '/vvc/devseed/sandbox/l10n_client_backport'

svn: PROPFIND of '/vvc/devseed/sandbox/l10n_client_backport': 301 Moved (http://svn3.cvsdude.com)