Total Complexity | 1 |
Complexity/F | 1 |
Lines of Code | 16 |
Function Count | 1 |
Duplicated Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | |||
2 | var text = t('This text is in a javascript file.'); |
||
3 | |||
4 | function bothWorlds() |
||
5 | { |
||
6 | return t('This text is used serverside and on the client.'); |
||
7 | } |
||
8 | |||
9 | var multiline = t( |
||
10 | 'It is possible to write long texts ' + |
||
11 | 'using text concatenation in the source ' + |
||
12 | 'code to keep it readable.' |
||
13 | ); |
||
14 | |||
15 | var someVariable = ''; |
||
16 | |||
17 | var text2 = t('Texts with variables in them are ignored.'+someVariable); |