Permalink
Browse files

Updating Set dockblocks.

  • Loading branch information...
mariuswilms committed Oct 20, 2009
1 parent 5563356 commit 5a40337c15bc15d6a66c7b8ddcae047a38d4f93b
Showing with 112 additions and 120 deletions.
  1. +6 −4 libraries/lithium/g11n/Message.php
  2. +106 −116 libraries/lithium/util/Set.php
@@ -37,10 +37,11 @@ class Message extends \lithium\core\StaticObject {
* @param string $singular Either a single or the singular form of the message.
* Used as the message ID.
* @param array $options Allowed keys are:
- * - `'count'`: Used to determine the correct plural form.
* - `'plural'`: Used as a fall back if needed.
+ * - `'count'`: Used to determine the correct plural form.
* - `'replacements'`: An array with replacements for placeholders.
* - `'locale'`: The target locale, defaults to current locale.
+ * - `'scope'`: The scope of the message.
* @return string
*/
public static function translate($singular, $options = array()) {
@@ -65,8 +66,9 @@ public static function translate($singular, $options = array()) {
*
* @param string $id The singular form of the message.
* @param string $locale The target locale.
- * @param integer|void $count Used to determine the correct plural form (optional).
- * @return string|void The translated message or `null` if $singular is not
+ * @param integer $count Used to determine the correct plural form (optional).
+ * @param string $scope The scope of the message ID (optional).
+ * @return string|void The translated message or `null` if `$singular` is not
* translateable or a plural rule couldn't be found.
* @todo Message pages need caching.
*/
@@ -95,4 +97,4 @@ protected static function _translated($id, $locale, $count = null, $scope = null
}
}
-?>
+?`>
Oops, something went wrong.

0 comments on commit 5a40337

Please sign in to comment.