Bengali to localization phonetic english/latin - Hack The Tech - Latest News related to Computer and Technology

Hack The Tech - Latest News related to Computer and Technology

Get Daily Latest News related to Computer and Technology and hack the world.

Saturday, July 22, 2023

Bengali to localization phonetic english/latin

I am working on a php project where I will generate permalink from a non-english (bengali) string to english charechter. I have used php 'intl' extension but sometimes it automatically stop working and can not load classes. Currently I am using something like that and I wanna get like that.

`<?php
$transliterator = Transliterator::create('Bengali-Latin/BGN');
$bengaliText = 'বাংলা';
$englishText = $transliterator->transliterate($bengaliText);
echo $englishText; // Output: "Bangla"
?>`

is there any other options (not paid) except 'intl' extension by which I can convert phonetically bengali to english?



source https://stackoverflow.com/questions/76740100/bengali-to-localization-phonetic-english-latin

No comments:

Post a Comment