I have a web page in PHP and I'm translating with gettext _("STRING_TO_TRANSLATE")
.
I have in my DB one table with all user profiles for my website. I put them in a selection box to choose one.
Now I want to translate the profile names.
Is there ANY way to translate (USING GETTEXT) the profile names coming from database?
Code example of my selection box:
while($row = mysqli_fetch_array($result_user_type))
{
echo "<option $selected value=\"".$row['id']."\">".$row['designation']." </option>";
}