views:

38

answers:

1

I have a site which targets several industries.
So in one industry the manager would be called "department head" and in the other "inspector".
Can I solve this issue with gettext, as it is in a way a multi linguistic problem.

A: 

You can easily solve this with gettext even if the site will be multilanguage. On the page load you need to define the language this time "dep. head" or "inspector".

fabrik
Not sure I understood you. Both of those wordings are of the same LOCALE
Itay Moav
It's no problem. Based on the requested industry you load the related "language" file which isn't a real language but a different style.
fabrik
so I can call the locale what ever I want?
Itay Moav
i don't see any restriction at setlocale's documentation. I tried to set a fictional language and it doesn't throw an error. And finally: you can set any unused (real) language if everything else fails. :)
fabrik