Browse files

Merge branch 'master' of github.com:mgkimsal/php-i18n-class

  • Loading branch information...
2 parents 88fcbe9 + 1dce137 commit c68393cc4a1a79c666183ca7c53fc8be3b8925e8 Michael Kimsal committed Mar 14, 2012
Showing with 16 additions and 0 deletions.
  1. +16 −0 README.txt
View
16 README.txt
@@ -7,3 +7,19 @@ more easily.
The samples are taken from the Grails project, but I didn't bring
them all over - just a couple to give you an idea of how to get
started.
+
+// Examples
+
+$es = new il8n("es");
+echo $es->getPhrase("invalid.creditCard","123456");
+// 123456 no es un número de tarjeta de credit válida
+
+$en = new il8n("en");
+echo $en->getPhrase("invalid.creditCard","123456");
+// Value 123456 is not a valid credit card number.
+
+echo $es->getPhrase("invalid.range", 44, 55, 66);
+// 44 no entra en el rango válido de 55 y 66.
+
+echo $en->getPhrase("invalid.range", 44, 55, 66);
+// Value 44 does not fall within the valid range from 55 to 66.

0 comments on commit c68393c

Please sign in to comment.