localization and TextDomain
|Reported by:||bueltge||Owned by:|
It is possible to use the value TextDomain in the comments of a plugin to set a textdomain for lacalization. It's is not simple to use this value in the php-code, only with a own function, she parse this value from the plugin and give the value to a constant or var.
Also it is hard to write translations-files .po /.mo include the string on this comment. PoEdit or WP-plugin localization from Heiko Rabe cant read this string. Maybe it is possible to change this and parse in get_plugin_data() for a string to the Value 'TextDomain' => 'Text Domain'; than it is possible to write the string in the default fucntions __() or other and use poEdit or similar.
The same problem is the value Domain Path. He is also a redundant value in the code of a plugin or the developer must parse his own comments on this section.
Change History (5)
- Keywords changed from localization, textdomain to localization textdomain
- Component changed from General to i18n
- Milestone changed from Awaiting Triage to Future Release