commiting uncommited changes on live site
[weblabels.fsf.org.git] / crm.fsf.org / 20131203 / files / sites / all / modules-new / civicrm / tests / qunit / crm-translate / test.js
1 module('Translation');
2
3 test('ts()', function() {
4 equal(ts('Lexicographical enigma'), "Lexicographical enigma", "If a string has no translation, pass it through");
5 equal(ts('One, two, three'), "Un, deux, trois", "We expect translations to work");
6 equal(ts('I know'), "Je sais", "We expect translations to work");
7 });
8
9 test('CRM.ts()', function() {
10 (function (ts) {
11 equal(ts('Lexicographical enigma'), "Lexicographical enigma", "If a string has no translation, pass it through");
12 equal(ts('One, two, three'), "Un, deux, trois", "Fallback to translations from default domain");
13 equal(ts('I know'), "Je connais", "We expect translations to work");
14 }(CRM.ts('org.example.foo')));
15 });