File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2323 <tr>
2424 <th>Locale</th>
2525 <th>Translation</th>
26+ <th> </th>
2627 </tr>
2728 <?php
29+ $ reference_locale = Project::getReferenceLocale ($ repo );
2830 foreach ($ translations as $ locale => $ translation ) {
2931 $ 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 " ;
3033 echo "<tr id=' {$ locale }''> \n" .
3134 " <th><a href='# {$ locale }'> {$ locale }</a></th> \n" .
3235 " <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" .
3337 "</tr> \n" ;
3438 }
3539 ?>
Original file line number Diff line number Diff line change @@ -267,6 +267,16 @@ td {
267267 display : none;
268268}
269269
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+
270280td a em ,
271281td em .error {
272282 font-style : normal;
You can’t perform that action at this time.
0 commit comments