[wp-trac] [WordPress Trac] #13819: localization and TextDomain
WordPress Trac
wp-trac at lists.automattic.com
Thu Jun 10 13:06:17 UTC 2010
#13819: localization and TextDomain
-----------------------------+----------------------------------------------
Reporter: bueltge | Owner:
Type: feature request | Status: new
Priority: normal | Milestone: 3.1
Component: General | Version:
Severity: normal | Keywords: localization, textdomain
-----------------------------+----------------------------------------------
wp-admin/includes/plugin.php
Function `get_plugin_data()`
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.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/13819>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list