Exporting Translations

You can export either your custom translations or a template of the untranslated strings. Exporting the translations or the template allows you to use an external editor to do the translating, which is significantly more efficient than using the web interface. You can also use the resulting file to load a translation into another site or share with others (on Drupal.org, for example).

Start an export by clicking the Export tab on the localization page (admin/locale/language/ export). You have the choice of exporting a translation (if you've made any) or the base template. Either choice will result in the creation of a PO file on your local hard drive.

â– Caution At the point when you've created and activated the first alternate language, the database table that tracks the source strings is empty. It gets populated with the source strings as they are used in the Drupal code. This means your first search will return only a small fraction of the total number of untranslated strings. Solve this problem by having a program such as Wget (http://www.gnu.org/software/wget/ wget.html) access all of the pages on your site, so that all the text is displayed. If you are interested in only a couple of strings, navigating to the page where they appear will have the same effect.

0 0

Post a comment