Skip to content

Commit 97acadd

Browse files
authored
Fix: Unknown '__s' function (#103)
1 parent a9c5d55 commit 97acadd

File tree

3 files changed

+23
-23
lines changed

3 files changed

+23
-23
lines changed

templates/config.html.twig

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030

3131
<div class="hr-text">
3232
<i class="fa-2x ti ti-sitemap"></i>
33-
<span>{{ __s('Treeview - Configuration', 'treeview') }}</span>
33+
<span>{{ __('Treeview - Configuration', 'treeview') }}</span>
3434
</div>
3535

3636
<form name='form' action='{{ action }}' method='post' class='left'>
@@ -41,64 +41,64 @@
4141
'target',
4242
current_config['target'],
4343
{
44-
'_blank': __s('New window', 'treeview'),
45-
'right': __s('The central console', 'treeview')
44+
'_blank': __('New window', 'treeview'),
45+
'right': __('The central console', 'treeview')
4646
},
47-
__s('Target for all the nodes', 'treeview')
47+
__('Target for all the nodes', 'treeview')
4848
) }}
4949

5050
{{ fields.checkboxField(
5151
'folderLinks',
5252
current_config['folderLinks'],
53-
__s('Should folders be links', 'treeview')
53+
__('Should folders be links', 'treeview')
5454
) }}
5555

5656
{{ fields.checkboxField(
5757
'useSelection',
5858
current_config['useSelection'],
59-
__s('Nodes can be highlighted', 'treeview')
59+
__('Nodes can be highlighted', 'treeview')
6060
) }}
6161

6262
{{ fields.checkboxField(
6363
'useLines',
6464
current_config['useLines'],
65-
__s('Tree is drawn with lines', 'treeview')
65+
__('Tree is drawn with lines', 'treeview')
6666
) }}
6767

6868
{{ fields.checkboxField(
6969
'useIcons',
7070
current_config['useIcons'],
71-
__s('Tree is drawn with icons', 'treeview')
71+
__('Tree is drawn with icons', 'treeview')
7272
) }}
7373

7474
{{ fields.checkboxField(
7575
'closeSameLevel',
7676
current_config['closeSameLevel'],
77-
__s('Only one node within a parent', 'treeview') ~ ' ' ~ __s('can be expanded at the same time.', 'treeview')
77+
__('Only one node within a parent', 'treeview') ~ ' ' ~ __('can be expanded at the same time.', 'treeview')
7878
) }}
7979

8080
{{ fields.dropdownArrayField(
8181
'itemName',
8282
current_config['itemName'],
8383
{
84-
'0': __s('Name'),
85-
'1': __s('Inventory number'),
86-
'2': __s('%1$s / %2$s', {'%1$s': __s('Name'), '%2$s': __s('Inventory number')}),
87-
'3': __s('%1$s / %2$s', {'%1$s': __s('Inventory number'), '%2$s': __s('Name')})
84+
'0': __('Name'),
85+
'1': __('Inventory number'),
86+
'2': __('%1$s / %2$s', {'%1$s': __('Name'), '%2$s': __('Inventory number')}),
87+
'3': __('%1$s / %2$s', {'%1$s': __('Inventory number'), '%2$s': __('Name')})
8888
},
89-
__s('Item name', 'treeview')
89+
__('Item name', 'treeview')
9090
) }}
9191

9292
{{ fields.dropdownArrayField(
9393
'locationName',
9494
current_config['locationName'],
9595
{
96-
'0': __s('Short name', 'treeview'),
97-
'1': __s('Long name', 'treeview'),
98-
'2': __s('%1$s / %2$s', {'%1$s': __s('Short name', 'treeview'), '%2$s': __s('Comment', 'treeview')}),
99-
'3': __s('%1$s / %2$s', {'%1$s': __s('Long name', 'treeview'), '%2$s': __s('Comment', 'treeview')})
96+
'0': __('Short name', 'treeview'),
97+
'1': __('Long name', 'treeview'),
98+
'2': __('%1$s / %2$s', {'%1$s': __('Short name', 'treeview'), '%2$s': __('Comment', 'treeview')}),
99+
'3': __('%1$s / %2$s', {'%1$s': __('Long name', 'treeview'), '%2$s': __('Comment', 'treeview')})
100100
},
101-
__s('Location name', 'treeview')
101+
__('Location name', 'treeview')
102102
) }}
103103

104104
<div class="hr"></div>

templates/preference.html.twig

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030

3131
<div class="hr-text">
3232
<i class="fa-2x ti ti-sitemap"></i>
33-
<span>{{ __s('Treeview - Configuration', 'treeview') }}</span>
33+
<span>{{ __('Treeview - Configuration', 'treeview') }}</span>
3434
</div>
3535

3636
<form action="{{ target }}" method="post">
@@ -40,7 +40,7 @@
4040
{{ fields.checkboxField(
4141
'show_on_load',
4242
show_on_load,
43-
__s('Launch Treeview at GLPI startup', 'treeview')
43+
__('Launch Treeview at GLPI startup', 'treeview')
4444
) }}
4545

4646
<div class="hr"></div>

templates/profile.html.twig

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030

3131
<div class="hr-text">
3232
<i class="fa-2x ti ti-sitemap"></i>
33-
<span>{{ __s('Treeview - Configuration', 'treeview') }}</span>
33+
<span>{{ __('Treeview - Configuration', 'treeview') }}</span>
3434
</div>
3535

3636
<form action="{{ target }}" method="post">
@@ -40,7 +40,7 @@
4040
{{ fields.checkboxField(
4141
'treeview',
4242
current_right,
43-
__s('Can use the treeview', 'treeview')
43+
__('Can use the treeview', 'treeview')
4444
) }}
4545

4646
<div class="hr"></div>

0 commit comments

Comments
 (0)