Modulo potx aggiornato ieri, 28 giugno.
Molti bug del modulo potx sono stati risolti. Tra i più gravi quello che saltava le informazioni dei file .info. Vorrà dire che rigenererò tutti i pot che ho fatto in questi giorni :(
- vastly improved potx backend based on ideas from Bruno Massa, but with improved implementation:
- do not pass tokens, token lookup, and gathered strings around, it pollutes the argument lists and is a memory hog
use global variables instead, which look less nice, but better for performance
- allow potx to be used as an extraction API, by providing custom callbacks to store file versions,
strings found, and even if building the basic POT files, a callback for the header generated
- add drupal_set_message() functionality for web interface, allow marker error to be translateable
- fix info file folding issues previously reported by Alexander HassTested the changes both with the web interface and with the command line interface. Diffed the results against the Drupal core translation templates in CVS, and all seem to be right. The web interface even has the info folding bug fixed.
- whitelist 'name', 'description' and 'package' keys from .info files as other values are cropping up, which we don't need for translation, so a blacklist approach was not feasible; thanks for Alexander Hass who reported the issue.
- Accedi o registrati per inserire commenti.