2009-08-06 21:14:25 +00:00
|
|
|
<?php
|
|
|
|
$count = 10;
|
2010-02-12 13:52:58 +00:00
|
|
|
$messages = array('count' => 10);
|
2009-08-06 21:14:25 +00:00
|
|
|
|
|
|
|
// Plural
|
2010-04-15 16:43:43 +00:00
|
|
|
echo __n('You have %d new message.', 'You have %d new messages.', $count);
|
|
|
|
echo __n('You deleted %d message.', 'You deleted %d messages.', $messages['count']);
|
2009-08-06 21:14:25 +00:00
|
|
|
|
|
|
|
// Domain Plural
|
2010-04-15 16:43:43 +00:00
|
|
|
echo __dn('domain', 'You have %d new message (domain).', 'You have %d new messages (domain).', '10');
|
|
|
|
echo __dn('domain', 'You deleted %d message (domain).', 'You deleted %d messages (domain).', $messages['count']);
|
2010-02-12 13:52:58 +00:00
|
|
|
|
|
|
|
// Duplicated Message
|
2011-04-25 17:22:14 +00:00
|
|
|
echo __('Editing this Page');
|
|
|
|
|
|
|
|
// Multiline
|
|
|
|
__('Hot features!'
|
|
|
|
. "\n - No Configuration:"
|
|
|
|
. ' Set-up the database and let the magic begin'
|
|
|
|
. "\n - Extremely Simple:"
|
|
|
|
. ' Just look at the name...It\'s Cake'
|
|
|
|
. "\n - Active, Friendly Community:"
|
|
|
|
. ' Join us #cakephp on IRC. We\'d love to help you get started');
|