Ticket #606 (closed defect: wontfix)
Make "Read more" translatable
| Reported by: | msi | Owned by: | l10n |
|---|---|---|---|
| Priority: | major | Milestone: | 0.6 |
| Component: | Habari Core Software | Version: | SVN |
| Keywords: | Cc: |
Description
This is my patch for the more() function in "format.php". It will create a translatable string if no one is used. And if it includes a placeholder like %s it will call sprintf().
An example for a theme call
Format::apply_with_hook_params( 'more', 'post_content_out', _t('Continue reading %s') );
I know it could produce an error if someone uses more than one placeholder in the string. I don't have any idea how to avoid this at this time. :-(
Attachments
Change History
Note: See
TracTickets for help on using
tickets.
