File tree 2 files changed +14
-0
lines changed
2 files changed +14
-0
lines changed Original file line number Diff line number Diff line change 23
23
<tr>
24
24
<th>Locale</th>
25
25
<th>Translation</th>
26
+ <th> </th>
26
27
</tr>
27
28
<?php
29
+ $ reference_locale = Project::getReferenceLocale ($ repo );
28
30
foreach ($ translations as $ locale => $ translation ) {
29
31
$ rtl_support = RTLSupport::isRTL ($ locale ) ? 'dir="rtl" ' : '' ;
32
+ $ search_link = "/?sourcelocale= {$ reference_locale }&locale= {$ locale }&repo= {$ repo }&search_type=entities&recherche= {$ entity }&perfect_match=perfect_match " ;
30
33
echo "<tr id=' {$ locale }''> \n" .
31
34
" <th><a href='# {$ locale }'> {$ locale }</a></th> \n" .
32
35
" <td lang='# {$ locale }' {$ rtl_support } > " . Utils::secureText ($ translation ) . "</td> \n" .
36
+ " <td><a class='onestring_search' href=' {$ search_link }' title='Search for the entity in this locale'>🔍</a></td> \n" .
33
37
"</tr> \n" ;
34
38
}
35
39
?>
Original file line number Diff line number Diff line change @@ -267,6 +267,16 @@ td {
267
267
display : none;
268
268
}
269
269
270
+ td a .onestring_search {
271
+ display : block;
272
+ margin : 0 auto;
273
+ padding : 0 4px ;
274
+ }
275
+
276
+ td a .onestring_search : hover {
277
+ text-decoration : none;
278
+ }
279
+
270
280
td a em ,
271
281
td em .error {
272
282
font-style : normal;
You can’t perform that action at this time.
0 commit comments