3

I work on a website which handles people honorific: “Mr”, “Miss”, “Dr”…

In German, “Mister” is “Herr”. In French, it’s “Monsieur” (shortened “M.”).

Can I translate theses honorifics (short and long) in PHP the way I can translate dates or countries (e.g. intl extension)?

Gui-Don
  • 1,366
  • 11
  • 25
  • Eh, you mean if there is a php function that allows you to do `echo $honorific['en']` and that shows the english version? – Epodax Apr 13 '16 at 10:15
  • Basically, yes. As it’s possible with [`intl` with countries](https://stackoverflow.com/questions/12515530/how-would-i-use-php-intl-to-convert-country-codes-to-localized-country-names). – Gui-Don Apr 13 '16 at 10:25

0 Answers0