Ticket #606 (closed defect: wontfix)

Opened 3 months ago

Last modified 3 months ago

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

format.patch (1.0 kB) - added by msi 3 months ago.

Change History

Changed 3 months ago by msi

  Changed 3 months ago by msi

  • milestone changed from Undetermined to 0.6

in reply to: ↑ description   Changed 3 months ago by msi

  • status changed from new to closed
  • resolution set to wontfix

I did not find a solution for this problem Replying to msi:

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. :-(

I close this ticket. After some thinking I do not see a big problem using sprintf() directly in the theme to call "more". :-)

Note: See TracTickets for help on using tickets.