diff options
author | webchick <webchick@24967.no-reply.drupal.org> | 2011-10-17 09:49:19 -0700 |
---|---|---|
committer | webchick <webchick@24967.no-reply.drupal.org> | 2011-10-17 09:49:19 -0700 |
commit | 89ad342620ab99728f64de4a32e4edf6ade55aa0 (patch) | |
tree | 8c8888b525b6f6168a3ebdfa269e24341c276589 /modules/locale | |
parent | 36dfb0797bffc5df535a58ca77eef9eb65e4ced8 (diff) | |
download | brdo-89ad342620ab99728f64de4a32e4edf6ade55aa0.tar.gz brdo-89ad342620ab99728f64de4a32e4edf6ade55aa0.tar.bz2 |
Oops. Forgot a file.
Diffstat (limited to 'modules/locale')
-rw-r--r-- | modules/locale/tests/locale_test.js | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/modules/locale/tests/locale_test.js b/modules/locale/tests/locale_test.js new file mode 100644 index 000000000..251d115c3 --- /dev/null +++ b/modules/locale/tests/locale_test.js @@ -0,0 +1,35 @@ + +Drupal.t("Standard Call t"); +Drupal +. +t +( +"Whitespace Call t" +) +; + +Drupal.t('Single Quote t'); +Drupal.t('Single Quote \'Escaped\' t'); +Drupal.t('Single Quote ' + 'Concat ' + 'strings ' + 't'); + +Drupal.t("Double Quote t"); +Drupal.t("Double Quote \"Escaped\" t"); +Drupal.t("Double Quote " + "Concat " + "strings " + "t"); + + +Drupal.formatPlural(1, "Standard Call plural", "Standard Call @count plural"); +Drupal +. +formatPlural +( +1, +"Whitespace Call plural", +"Whitespace Call @count plural", +) +; + +Drupal.formatPlural(1, 'Single Quote plural', 'Single Quote @count plural'); +Drupal.formatPlural(1, 'Single Quote \'Escaped\' plural', 'Single Quote \'Escaped\' @count plural'); + +Drupal.formatPlural(1, "Double Quote plural", "Double Quote @count plural"); +Drupal.formatPlural(1, "Double Quote \"Escaped\" plural", "Double Quote \"Escaped\" @count plural"); |