Ok, i just install kdyby translator and i had the
Class Nette\Latte\MacroTokens has been renamed to Latte\MacroTokens
and i think the new nette framework (2.2.1) change the Nette\Latte\MacroTokens to Latte\MacroTokens so i just edit the LatteExtractor.php kdyby file (Nette\vendor\kdyby\translation\src\Kdyby\Translation\Extractors\LatteExtractor.php) on line 15 and 16
replacecing to this
use Latte\MacroTokens; use Latte\PhpWriter; }
and deleting 23 to 25 lines.