Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Backport unit tests from branch 2.0 (tests for strings concatenated w…

…ith '.')
  • Loading branch information...
commit 68035b5ac9e6555d628954e607367a5b2d129109 1 parent bfbdcfb
@zoydsan authored
Showing with 13 additions and 1 deletion.
  1. +13 −1 cake/tests/test_app/views/pages/extract.ctp
View
14 cake/tests/test_app/views/pages/extract.ctp
@@ -11,4 +11,16 @@ __dn('domain', 'You have %d new message (domain).', 'You have %d new messages (d
__dn('domain', 'You deleted %d message (domain).', 'You deleted %d messages (domain).', $messages['count']);
// Duplicated Message
-__('Editing this Page');
+__('Editing this Page');
+
+// Multiline with comments
+__('Hot features!'
+ . "\n - No Configuration:" // Comments will be stripped
+ . ' Set-up the database and let the magic begin'
+ . "\n - Extremely Simple:" // Comments will be stripped
+ . ' Just look at the name...It\'s Cake'
+ . "\n - Active, Friendly Community:" // Comments will be stripped
+ . ' Join us #cakephp on IRC. We\'d love to help you get started');
+
+// This throws an error and is not parsed
+__('Found ' . $count . ' new messages');
Please sign in to comment.
Something went wrong with that request. Please try again.