[wp-meta] [Making WordPress.org] #1675: Provide more information when plugin is "not prepared properly for translation"
Making WordPress.org
noreply at wordpress.org
Tue Apr 19 09:26:17 UTC 2016
#1675: Provide more information when plugin is "not prepared properly for
translation"
-------------------------------------+------------------
Reporter: leewillis77 | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone:
Component: translate.wordpress.org | Resolution:
Keywords: |
-------------------------------------+------------------
Comment (by Otto42):
For reference, that plugin is not properly prepared for translation
because:
a) It's using the wrong text domain.
https://plugins.svn.wordpress.org/cart-recovery/tags/1.7/cart-recovery-
for-wordpress.php
This file has "Text Domain: crfw" in it, when the actual text-domain for
this plugin is "cart-recovery".
Similarly, the function calls are using the wrong text-domains:
https://plugins.svn.wordpress.org/cart-
recovery/tags/1.7/classes/CartTemplate.php
`return _x( 'friend', 'Used as a first name if none is available.', 'crfw'
);`
The 'crfw' should be 'cart-recovery'.
b) Lots of the translation functions calls in the plugin are simply wholly
missing the text-domains as well:
https://plugins.svn.wordpress.org/cart-recovery/tags/1.7/templates/admin-
status-page.php
`<?php _e( 'Pending' ); ?>`
That should be:
`<?php _e( 'Pending', 'cart-recovery' ); ?>`
However, back to the original point: that line that you're referring to on
translate.w.org points to this URL:
https://developer.wordpress.org/plugins/internationalization/how-to-
internationalize-your-plugin/
..which gives all this information about text-domains, how to use the
escaping functions properly, etc.
--
Ticket URL: <https://meta.trac.wordpress.org/ticket/1675#comment:2>
Making WordPress.org <https://meta.trac.wordpress.org/>
Making WordPress.org
More information about the wp-meta
mailing list