Skip to content
Snippets Groups Projects
  1. Oct 13, 2015
    • Roman Imankulov's avatar
      Ensure babel i18n extactor works properly with non-ascii input · d838e449
      Roman Imankulov authored
      If mako templates contain something like "_('Köln')", babel extractor converts
      it to pure ASCII so that resulting .po file would contain "K\xf6ln". Not all
      translation tools and translations are ready for such kind of escape sequences.
      
      Babel allows message ids to be non-ascii, the plugin just has to return Unicode
      objects instead of ASCII strings (and that's exactly how Babel built-in Python
      and JavaScript extractors work).
      
      This fix ensures mako extractor doesn't excape non-ascii symbols, works well
      both for Unicode and non-unicode input (there is a test for cp1251 encoding),
      and also provides a workaround for babel charset detector python-babel/babel#274.
      d838e449
  2. Mar 25, 2015
  3. Jan 22, 2015
  4. Aug 26, 2014
  5. Aug 25, 2014
Loading