Sunday, January 23, 2011

Text-domain

domain name extensions

I'm having a little problem understanding the difference between the language files in: wp-includes/languages and the language files in /wp-content/themes/my_theme.
Further I have a message in the "Language locale settings" saying: " Theme localization is not enabled because you didn't enter a text-domain."
What is a text-domain, can someone give me an example?

http://domainvideo.blogspot.com/
"When the theme was created, the texts were wrapped in gettext calls. Each call includes two arguments – the string that needs to be translated and a second argument called the text-domain. This second argument identifies all the texts in the theme as belonging to it. You need to enter this value in the text domain field, so that WPML can load the translation file and assign it to the theme."

No comments:

Post a Comment