-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathchange-fourm-name.lang.js
More file actions
59 lines (52 loc) · 2.16 KB
/
Copy pathchange-fourm-name.lang.js
File metadata and controls
59 lines (52 loc) · 2.16 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
{% case current_user.language %}
{% when 'English' %}
<b>Support Center</b><p>
Support hours: 7 a.m. - 7 p.m., Eastern Time<p>
> Create a new <a href="http://support..ca/tickets/new">support ticket</a>.<p>
> Send us an <a href="mailto:support@.ca">email</a>.<p>
> Call us at 1
{% when 'Français' %}
<b>Centre de Soutien </b><p>
Heures de soutien : 7h - 19h, heure normale de l'est.<p>
> Nouveau <a href="http://support..ca/tickets/new">ticket de soutien</a>.<p>
> Envoyez-nous un <a href="mailto:soutien@.ca">courriel</a>.<p>
> Appelez-nous au 1
{% endcase %}
<script>
$j(document).ready(function() {
function trim11 (str) {
str = str.replace(/^\s+/, '');
for (var i = str.length - 1; i >= 0; i--) {
if (/\S/.test(str.charAt(i))) {
str = str.substring(0, i + 1);
break;
}
}
return str;
}
var selectedLang = "";
if('{{current_user.name}}' == 'Anonymous user'){
selectedLang = $j('li.main.right.language_selector a.tab').text();
$j('div#userNamewidget').html(selectedLang);
if(trim11(selectedLang) == 'English'){jQuery('#top-menu li.tab_forums a').html('Knowledge Center'); }
else
if(trim11(selectedLang) == 'Français'){
jQuery('#top-menu li.tab_forums a').html('Base de Connaissance');
jQuery('h2#search_box').html('Base de Connaissance');
jQuery('h2.forums a:contains(Knowledge Center)').attr('href','/forums').text(' Base de Connaissance');
}
}
if('{{current_user.name}}' !== 'Anonymous user'){
selectedLang = $j('li.main.right.language_selector a.tab').text();
$j('div#userNamewidget').html(selectedLang);
if(trim11(selectedLang) == 'English'){ jQuery('#top-menu li.tab_forums a').html('Knowledge Center');}
else
if(trim11(selectedLang) == 'Français'){
jQuery('#top-menu li.tab_forums a').html('Base de Connaissance');
jQuery('h2#search_box').html('Base de Connaissance');
jQuery('h2.forums').html('Base de Connaissance');
jQuery('h2.forums a:contains(Knowledge Center)').attr('href','/forums').text(' Base de Connaissance');
}
}
});
</script>