@locale comments that you can add to the code work like the following:
// @locale some text explaining the context of the following string
_e('pith path ponies in the bath');
Then the @locale comment block will show in the translation template
so translators have a bit of context for translating things; instead
of just seeing some random string and the location of that string in a
file.
This would be particularly useful when you have printf style strings like:
_t(''moved %s blocks to %s.');
moved what to what? give the translator some help with a little context
// @locale the first placeholder string is the colour of the
block, while the second is bin name. eg. "moved red blocks to trash"
_t(''moved %s blocks to %s.');
I beat you thought the first placeholder was the number of blocks,
didn't you? :P
--
Matt Read
http://mattread.info
http://mattread.com
--
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at http://groups.google.com/group/habari-dev