I built contact form plugin in in wordpress. I am planing to translate field name to diffrent languages. In that cause i will use Poedit. My question is does wordpress has some language options in database, wich could be used. For example when wp is installed you could choose diffrent lang options? So my question how i will trigger translation for my plugin? I read something about constant in wp-config, is there any way to trigger change of language without this constant, cuz i am having separate plugin
You get the current language of the install with the function
get_locale(). WordPress save the language in the
WPLANG. But inside the Multisite install is in the table
But is not important. You should use the default functions to load a language file inside the theme template or the plugin.
You find a small example inside this contact form template, public.