#10382 closed defect (bug) (fixed)
plugins descriptions aren't localized
Reported by: |
|
Owned by: |
|
---|---|---|---|
Milestone: | 2.9 | Priority: | normal |
Severity: | normal | Version: | 2.8 |
Component: | I18N | Keywords: | has-patch tested |
Focuses: | Cc: |
Description
WP uses the wrong argument for load_plugin_textdomain().
Attachments (1)
Change History (19)
#4
@
16 years ago
try this: in load_plugin_textdomain(), add a var_dump($path). See it return a completely erroneous value. With or without a "Domain Path: /lang" header in the plugin.
#6
@
16 years ago
oh, lol, I'm not making sense of the no. opened #10383 for translating theme descriptions then. :D
#7
@
16 years ago
- Cc pavelevap@… added
For me also translation does not work. You can test plugin Custom Field Images (version 2.0). It contains Czech translation file and also uses translated plugin description, but these are always displayed in original english...
#8
in reply to:
↑ 3
@
16 years ago
Replying to Denis-de-Bernardy:
no?
Sorry about my words frugality. As you correctly realized after that, my No meant there was no reason.
#9
@
16 years ago
- Keywords tested added; dev-feedback removed
Yeah. It initially sounded very scary. :-D
#10
@
16 years ago
I tried attached patch, but it does not help to resolve my problem (description is not translated)....
#11
@
16 years ago
Odd... It worked fine with my own tests... Try adding two lines at the beginning of the plugin file:
http://plugins.trac.wordpress.org/browser/custom-field-images/trunk/custom-field-images.php
Author: scribu Author URI: http://scribu.net/ Plugin URI: http://scribu.net/wordpress/custom-field-images
Change that to:
Author: scribu Author URI: http://scribu.net/ Plugin URI: http://scribu.net/wordpress/custom-field-images Text Domain: custom-field-images Domain Path: /lang
#12
@
16 years ago
Yes, these two lines helped and it works now...
There are also other problems:
1) On plugins page - plugins are listed alphabetically - but when plugin name is translated, then plugins are listed alphabetically by original (and not translated) name.
2) I tried it also with 2.9-rare and there are some problems adding these two lines (there is NULL at the top of page) and activating plugin...
#15
@
16 years ago
Does not work for me without adding these lines to plugin:
Text Domain: custom-field-images Domain Path: /lang
So, it is problem of this plugin and author should add these lines or it problem of Wordpress?
#16
@
16 years ago
So, it is problem of this plugin and author should add these lines or it problem of Wordpress?
If the plugin does not specify its Text Domain, and the path to the language files, theres nothing WordPress can do, it cant guess it very well.
while we're on the topic, is there any reason for which theme descriptions aren't localizable?