Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

Currently i'm working on a simple WordPress Plugin.

I know within the Plugin i need to write my strings as __() or _e() and call load_plugin_textdomain() but i wonder how to localize the Plugin Description.

Example:
example

This is not the Plugin i'm working on. It's just an example to show what i mean.

share|improve this question
    
Plugin description is in comment block and I think it can't be localized –  Mamaduka Aug 11 '11 at 11:59
    
I know it's a comment block thats why i ask :) Plugin URI and Author URI are parsed as link. It should be possible to translate. Makes sense imho... –  gearsdigital Aug 11 '11 at 12:05
add comment

1 Answer

up vote 3 down vote accepted

Add two extra headers:

Text Domain: your-text-domain
Domain Path: /languages

Then use the plugin Codestyling Localization to create your language files. Usually it'll find the description.

share|improve this answer
    
It's not exactly what i want if i understand you correctly. Localization is not the problem, i'm using Poedit. As i can read the Plugin only reads gettext components. But i'm not sure the Plugin-Description is a gettext component. –  gearsdigital Aug 11 '11 at 13:12
1  
It is what you want – if you use the Codestyling plugin instead of Poedit. You could hack around Poedit’s restriction by inserting a dummy string with the content of your description somewhere. –  toscho Aug 11 '11 at 13:47
    
Ok, but every user who installed my plugin needs to install the Codestyling Localization Plugin too, isn't it? –  gearsdigital Aug 11 '11 at 14:04
    
No, this plugin is needed to create the language files only. –  toscho Aug 11 '11 at 14:09
    
@toscho, +1+, this doesn't seems to be documented anywhere else... Cannot wait to try it :) –  brasofilo Dec 18 '12 at 16:08
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.