Fork me on GitHub
Subscribe 1

Ticket #497 (fixed enhancement)

Add sprintf functionality to translation system

  • Created: 2011-09-21 22:08:39
  • Reported by: Franz
  • Assigned to: Franz
  • Milestone: 2.0-alpha1
  • Component: localization
  • Priority: normal

Instead of calling sprintf() separately, we can simply add this functionality to the Flux_Lang::t() function.

Also, Gettext supports stuff like pluralization. That should be taken care of, too.


Franz 2011-10-17 22:15:10

Commit 85ad723 to fluxbb fluxbb-2.0

#497: Add sprintf() functionality to translation system.

Fix some minor issues in the Flux_Lang class.

Franz 2011-10-18 23:17:40

  • Status changed from open to fixed.

Additional parameters can simply be passed to the Flux_Lang::t() function now - it works just like sprintf().