Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- // Compute the translation id for the XLIFF catalog as Symfony (4.x) does
- $source = 'A string to be translated';
- echo strtr(substr(base64_encode(hash('sha256', $source, true)), 0, 7), '/+', '._');
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement