Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixing an small error with token parsing, tests added. Refs #333.
- Loading branch information
Showing
3 changed files
with
20 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,14 @@ | ||
<?php | ||
$count = 10; | ||
$message = array('count' => 10); | ||
$messages = array('count' => 10); | ||
|
||
// Plural | ||
__n('You have %d new message.', 'You have %d new messages.', $count); | ||
__n('You deleted %d message.', 'You deleted %d messages.', $messages['count']); | ||
|
||
// Domain Plural | ||
__dn('domain', 'You have %d new message (domain).', 'You have %d new messages (domain).', '10'); | ||
__dn('domain', 'You deleted %d message (domain).', 'You deleted %d messages (domain).', $messages['count']); | ||
__dn('domain', 'You deleted %d message (domain).', 'You deleted %d messages (domain).', $messages['count']); | ||
|
||
// Duplicated Message | ||
__('Editing this Page'); |