@@ -34,54 +34,54 @@ discard block |
||
34 | 34 | |
35 | 35 | const ERROR_NO_SOURCES_AVAILABLE = 40001; |
36 | 36 | |
37 | - /** |
|
38 | - * @var string |
|
39 | - */ |
|
37 | + /** |
|
38 | + * @var string |
|
39 | + */ |
|
40 | 40 | protected $installPath; |
41 | 41 | |
42 | - /** |
|
43 | - * @var Localization_Source[] |
|
44 | - */ |
|
42 | + /** |
|
43 | + * @var Localization_Source[] |
|
44 | + */ |
|
45 | 45 | protected $sources; |
46 | 46 | |
47 | - /** |
|
48 | - * @var \AppUtils\Request |
|
49 | - */ |
|
47 | + /** |
|
48 | + * @var \AppUtils\Request |
|
49 | + */ |
|
50 | 50 | protected $request; |
51 | 51 | |
52 | - /** |
|
53 | - * @var Localization_Source |
|
54 | - */ |
|
52 | + /** |
|
53 | + * @var Localization_Source |
|
54 | + */ |
|
55 | 55 | protected $activeSource; |
56 | 56 | |
57 | - /** |
|
58 | - * @var Localization_Scanner |
|
59 | - */ |
|
57 | + /** |
|
58 | + * @var Localization_Scanner |
|
59 | + */ |
|
60 | 60 | protected $scanner; |
61 | 61 | |
62 | - /** |
|
63 | - * @var Localization_Locale[] |
|
64 | - */ |
|
62 | + /** |
|
63 | + * @var Localization_Locale[] |
|
64 | + */ |
|
65 | 65 | protected $appLocales = array(); |
66 | 66 | |
67 | - /** |
|
68 | - * @var Localization_Locale |
|
69 | - */ |
|
67 | + /** |
|
68 | + * @var Localization_Locale |
|
69 | + */ |
|
70 | 70 | protected $activeAppLocale; |
71 | 71 | |
72 | - /** |
|
73 | - * @var Localization_Editor_Filters |
|
74 | - */ |
|
72 | + /** |
|
73 | + * @var Localization_Editor_Filters |
|
74 | + */ |
|
75 | 75 | protected $filters; |
76 | 76 | |
77 | - /** |
|
78 | - * @var string[]string |
|
79 | - */ |
|
77 | + /** |
|
78 | + * @var string[]string |
|
79 | + */ |
|
80 | 80 | protected $requestParams = array(); |
81 | 81 | |
82 | - /** |
|
83 | - * @var string |
|
84 | - */ |
|
82 | + /** |
|
83 | + * @var string |
|
84 | + */ |
|
85 | 85 | protected $varPrefix = 'applocalize_'; |
86 | 86 | |
87 | 87 | public function __construct() |
@@ -100,15 +100,15 @@ discard block |
||
100 | 100 | return $this->request; |
101 | 101 | } |
102 | 102 | |
103 | - /** |
|
104 | - * Adds a request parameter that will be persisted in all URLs |
|
105 | - * within the editor. This can be used when integrating the |
|
106 | - * editor in an existing page that needs specific request params. |
|
107 | - * |
|
108 | - * @param string $name |
|
109 | - * @param string $value |
|
110 | - * @return Localization_Editor |
|
111 | - */ |
|
103 | + /** |
|
104 | + * Adds a request parameter that will be persisted in all URLs |
|
105 | + * within the editor. This can be used when integrating the |
|
106 | + * editor in an existing page that needs specific request params. |
|
107 | + * |
|
108 | + * @param string $name |
|
109 | + * @param string $value |
|
110 | + * @return Localization_Editor |
|
111 | + */ |
|
112 | 112 | public function addRequestParam(string $name, string $value) : Localization_Editor |
113 | 113 | { |
114 | 114 | $this->requestParams[$name] = $value; |
@@ -263,34 +263,34 @@ discard block |
||
263 | 263 | </a> |
264 | 264 | <div class="dropdown-menu" aria-labelledby="dropdown01"> |
265 | 265 | <?php |
266 | - foreach($this->sources as $source) |
|
267 | - { |
|
268 | - ?> |
|
266 | + foreach($this->sources as $source) |
|
267 | + { |
|
268 | + ?> |
|
269 | 269 | <a class="dropdown-item" href="<?php echo $this->getSourceURL($source) ?>"> |
270 | 270 | <?php |
271 | - if($source->getID() === $this->activeSource->getID()) |
|
272 | - { |
|
273 | - ?> |
|
271 | + if($source->getID() === $this->activeSource->getID()) |
|
272 | + { |
|
273 | + ?> |
|
274 | 274 | <b><?php echo $source->getLabel() ?></b> |
275 | 275 | <?php |
276 | - } |
|
277 | - else |
|
278 | - { |
|
279 | - echo $source->getLabel(); |
|
280 | - } |
|
281 | - ?> |
|
276 | + } |
|
277 | + else |
|
278 | + { |
|
279 | + echo $source->getLabel(); |
|
280 | + } |
|
281 | + ?> |
|
282 | 282 | <?php |
283 | - $untranslated = $source->countUntranslated($this->scanner); |
|
284 | - if($untranslated > 0) { |
|
285 | - ?> |
|
283 | + $untranslated = $source->countUntranslated($this->scanner); |
|
284 | + if($untranslated > 0) { |
|
285 | + ?> |
|
286 | 286 | (<span class="text-danger" title="<?php pt('%1$s texts have not been translated in this text source.', $untranslated) ?>"><?php echo $untranslated ?></span>) |
287 | 287 | <?php |
288 | - } |
|
289 | - ?> |
|
288 | + } |
|
289 | + ?> |
|
290 | 290 | </a> |
291 | 291 | <?php |
292 | - } |
|
293 | - ?> |
|
292 | + } |
|
293 | + ?> |
|
294 | 294 | </div> |
295 | 295 | </li> |
296 | 296 | <li class="nav-item dropdown"> |
@@ -299,15 +299,15 @@ discard block |
||
299 | 299 | </a> |
300 | 300 | <div class="dropdown-menu" aria-labelledby="dropdown01"> |
301 | 301 | <?php |
302 | - foreach($this->appLocales as $locale) |
|
303 | - { |
|
304 | - ?> |
|
302 | + foreach($this->appLocales as $locale) |
|
303 | + { |
|
304 | + ?> |
|
305 | 305 | <a class="dropdown-item" href="<?php echo $this->getLocaleURL($locale) ?>"> |
306 | 306 | <?php echo $locale->getLabel() ?> |
307 | 307 | </a> |
308 | 308 | <?php |
309 | - } |
|
310 | - ?> |
|
309 | + } |
|
310 | + ?> |
|
311 | 311 | </div> |
312 | 312 | </li> |
313 | 313 | <li class="nav-item"> |
@@ -317,8 +317,8 @@ discard block |
||
317 | 317 | </a> |
318 | 318 | </li> |
319 | 319 | <?php |
320 | - if($this->scanner->hasWarnings()) { |
|
321 | - ?> |
|
320 | + if($this->scanner->hasWarnings()) { |
|
321 | + ?> |
|
322 | 322 | <li class="nav-item"> |
323 | 323 | <a href="<?php echo $this->getWarningsURL() ?>"> |
324 | 324 | <span class="badge badge-warning" title="<?php pts('The last scan for translateable texts reported warnings.'); pts('Click for details.'); ?>" data-toggle="tooltip"> |
@@ -328,8 +328,8 @@ discard block |
||
328 | 328 | </a> |
329 | 329 | </li> |
330 | 330 | <?php |
331 | - } |
|
332 | - ?> |
|
331 | + } |
|
332 | + ?> |
|
333 | 333 | </ul> |
334 | 334 | <?php |
335 | 335 | } |
@@ -345,36 +345,36 @@ discard block |
||
345 | 345 | </a> |
346 | 346 | <?php |
347 | 347 | } |
348 | - ?> |
|
348 | + ?> |
|
349 | 349 | </div> |
350 | 350 | </nav> |
351 | 351 | <main role="main" class="container"> |
352 | 352 | <div> |
353 | 353 | <?php |
354 | - if(empty($this->appLocales)) |
|
355 | - { |
|
356 | - ?> |
|
354 | + if(empty($this->appLocales)) |
|
355 | + { |
|
356 | + ?> |
|
357 | 357 | <div class="alert alert-danger"> |
358 | 358 | <i class="fa fa-exclamation-triangle"></i> |
359 | 359 | <b><?php pt('Nothing to translate:') ?></b> |
360 | 360 | <?php pt('No application locales were added to translate to.') ?> |
361 | 361 | </div> |
362 | 362 | <?php |
363 | - } |
|
364 | - else if($this->request->getBool($this->getVarName('warnings'))) |
|
365 | - { |
|
366 | - echo $this->renderWarnings(); |
|
367 | - } |
|
368 | - else |
|
369 | - { |
|
370 | - ?> |
|
363 | + } |
|
364 | + else if($this->request->getBool($this->getVarName('warnings'))) |
|
365 | + { |
|
366 | + echo $this->renderWarnings(); |
|
367 | + } |
|
368 | + else |
|
369 | + { |
|
370 | + ?> |
|
371 | 371 | <h1><?php echo $this->activeSource->getLabel() ?></h1> |
372 | 372 | <?php |
373 | - if(!empty($_SESSION['localization_messages'])) |
|
374 | - { |
|
375 | - foreach($_SESSION['localization_messages'] as $def) |
|
376 | - { |
|
377 | - ?> |
|
373 | + if(!empty($_SESSION['localization_messages'])) |
|
374 | + { |
|
375 | + foreach($_SESSION['localization_messages'] as $def) |
|
376 | + { |
|
377 | + ?> |
|
378 | 378 | <div class="alert alert-<?php echo $def['type'] ?>" role="alert"> |
379 | 379 | <?php echo $def['text'] ?> |
380 | 380 | <button type="button" class="close" data-dismiss="alert" aria-label="<?php pt('Close') ?>" title="<?php pt('Dismiss this message.') ?>" data-toggle="tooltip"> |
@@ -382,28 +382,28 @@ discard block |
||
382 | 382 | </button> |
383 | 383 | </div> |
384 | 384 | <?php |
385 | - } |
|
385 | + } |
|
386 | 386 | |
387 | - // reset the messages after having displayed them |
|
388 | - $_SESSION['localization_messages'] = array(); |
|
389 | - } |
|
390 | - ?> |
|
387 | + // reset the messages after having displayed them |
|
388 | + $_SESSION['localization_messages'] = array(); |
|
389 | + } |
|
390 | + ?> |
|
391 | 391 | <p> |
392 | 392 | <?php |
393 | - pt( |
|
394 | - 'You are translating to %1$s', |
|
395 | - '<span class="badge badge-info">'. |
|
396 | - $this->activeAppLocale->getLabel(). |
|
397 | - '</span>' |
|
393 | + pt( |
|
394 | + 'You are translating to %1$s', |
|
395 | + '<span class="badge badge-info">'. |
|
396 | + $this->activeAppLocale->getLabel(). |
|
397 | + '</span>' |
|
398 | 398 | ); |
399 | - ?><br> |
|
399 | + ?><br> |
|
400 | 400 | <?php pt('Found %1$s texts to translate.', $this->activeSource->countUntranslated($this->scanner)) ?> |
401 | 401 | </p> |
402 | 402 | <br> |
403 | 403 | <?php |
404 | - if(!$this->scanner->isScanAvailable()) |
|
405 | - { |
|
406 | - ?> |
|
404 | + if(!$this->scanner->isScanAvailable()) |
|
405 | + { |
|
406 | + ?> |
|
407 | 407 | <div class="alert alert-primary" role="alert"> |
408 | 408 | <b><?php pt('No texts found:') ?></b> |
409 | 409 | <?php pt('The source folders have not been scanned yet.') ?> |
@@ -415,15 +415,15 @@ discard block |
||
415 | 415 | </a> |
416 | 416 | </p> |
417 | 417 | <?php |
418 | - } |
|
419 | - else |
|
420 | - { |
|
421 | - echo $this->filters->renderForm(); |
|
422 | - echo $this->renderList(); |
|
423 | - } |
|
418 | + } |
|
419 | + else |
|
420 | + { |
|
421 | + echo $this->filters->renderForm(); |
|
422 | + echo $this->renderList(); |
|
423 | + } |
|
424 | 424 | |
425 | - } |
|
426 | - ?> |
|
425 | + } |
|
426 | + ?> |
|
427 | 427 | </div> |
428 | 428 | </main> |
429 | 429 | </body> |
@@ -441,22 +441,22 @@ discard block |
||
441 | 441 | <h1><?php pt('Warnings') ?></h1> |
442 | 442 | <p class="abstract"> |
443 | 443 | <?php |
444 | - pts('The following shows all texts where the system decided that they cannot be translated.'); |
|
445 | - ?> |
|
444 | + pts('The following shows all texts where the system decided that they cannot be translated.'); |
|
445 | + ?> |
|
446 | 446 | </p> |
447 | 447 | <dl> |
448 | 448 | <?php |
449 | - $warnings = $this->scanner->getWarnings(); |
|
449 | + $warnings = $this->scanner->getWarnings(); |
|
450 | 450 | |
451 | - foreach($warnings as $warning) |
|
452 | - { |
|
453 | - ?> |
|
451 | + foreach($warnings as $warning) |
|
452 | + { |
|
453 | + ?> |
|
454 | 454 | <dt><?php echo FileHelper::relativizePathByDepth($warning->getFile(), 3) ?>:<?php echo $warning->getLine() ?></dt> |
455 | 455 | <dd><?php echo $warning->getMessage() ?></dd> |
456 | 456 | <?php |
457 | - } |
|
457 | + } |
|
458 | 458 | |
459 | - ?> |
|
459 | + ?> |
|
460 | 460 | </dl> |
461 | 461 | <?php |
462 | 462 | |
@@ -525,13 +525,13 @@ discard block |
||
525 | 525 | <form method="post"> |
526 | 526 | <div class="form-hiddens"> |
527 | 527 | <?php |
528 | - $params = $this->getRequestParams(); |
|
529 | - foreach($params as $name => $value) { |
|
530 | - ?> |
|
528 | + $params = $this->getRequestParams(); |
|
529 | + foreach($params as $name => $value) { |
|
530 | + ?> |
|
531 | 531 | <input type="hidden" name="<?php echo $name ?>" value="<?php echo $value ?>"> |
532 | 532 | <?php |
533 | - } |
|
534 | - ?> |
|
533 | + } |
|
534 | + ?> |
|
535 | 535 | </div> |
536 | 536 | <table class="table table-hover"> |
537 | 537 | <thead> |
@@ -544,20 +544,20 @@ discard block |
||
544 | 544 | </thead> |
545 | 545 | <tbody> |
546 | 546 | <?php |
547 | - foreach($keep as $string) |
|
548 | - { |
|
549 | - $this->renderListEntry($string); |
|
550 | - } |
|
551 | - ?> |
|
547 | + foreach($keep as $string) |
|
548 | + { |
|
549 | + $this->renderListEntry($string); |
|
550 | + } |
|
551 | + ?> |
|
552 | 552 | </tbody> |
553 | 553 | </table> |
554 | 554 | <?php |
555 | - if($pager->hasPages()) |
|
556 | - { |
|
557 | - $prevUrl = $this->getPaginationURL($pager->getPreviousPage()); |
|
558 | - $nextUrl = $this->getPaginationURL($pager->getNextPage()); |
|
555 | + if($pager->hasPages()) |
|
556 | + { |
|
557 | + $prevUrl = $this->getPaginationURL($pager->getPreviousPage()); |
|
558 | + $nextUrl = $this->getPaginationURL($pager->getNextPage()); |
|
559 | 559 | |
560 | - ?> |
|
560 | + ?> |
|
561 | 561 | <nav aria-label="<?php pt('Navigate available pages of texts.') ?>"> |
562 | 562 | <ul class="pagination"> |
563 | 563 | <li class="page-item"> |
@@ -566,20 +566,20 @@ discard block |
||
566 | 566 | </a> |
567 | 567 | </li> |
568 | 568 | <?php |
569 | - $numbers = $pager->getPageNumbers(); |
|
570 | - foreach($numbers as $number) |
|
571 | - { |
|
572 | - $url = $this->getPaginationURL($number); |
|
569 | + $numbers = $pager->getPageNumbers(); |
|
570 | + foreach($numbers as $number) |
|
571 | + { |
|
572 | + $url = $this->getPaginationURL($number); |
|
573 | 573 | |
574 | - ?> |
|
574 | + ?> |
|
575 | 575 | <li class="page-item <?php if($pager->isCurrentPage($number)) { echo 'active'; } ?>"> |
576 | 576 | <a class="page-link" href="<?php echo $url ?>"> |
577 | 577 | <?php echo $number ?> |
578 | 578 | </a> |
579 | 579 | </li> |
580 | 580 | <?php |
581 | - } |
|
582 | - ?> |
|
581 | + } |
|
582 | + ?> |
|
583 | 583 | <li class="page-item"> |
584 | 584 | <a class="page-link" href="<?php echo $nextUrl ?>"> |
585 | 585 | <i class="fa fa-arrow-right"></i> |
@@ -588,8 +588,8 @@ discard block |
||
588 | 588 | </ul> |
589 | 589 | </nav> |
590 | 590 | <?php |
591 | - } |
|
592 | - ?> |
|
591 | + } |
|
592 | + ?> |
|
593 | 593 | <br> |
594 | 594 | <p> |
595 | 595 | <button type="submit" name="<?php echo $this->getVarName('save') ?>" value="yes" class="btn btn-primary"> |
@@ -647,48 +647,48 @@ discard block |
||
647 | 647 | <div class="files-list"> |
648 | 648 | <p> |
649 | 649 | <?php |
650 | - $totalFiles = count($files); |
|
650 | + $totalFiles = count($files); |
|
651 | 651 | |
652 | - if($totalFiles == 1) |
|
653 | - { |
|
654 | - pt('Found in a single file:'); |
|
655 | - } |
|
656 | - else |
|
657 | - { |
|
658 | - pt('Found in %1$s files:', $totalFiles); |
|
659 | - } |
|
660 | - ?> |
|
652 | + if($totalFiles == 1) |
|
653 | + { |
|
654 | + pt('Found in a single file:'); |
|
655 | + } |
|
656 | + else |
|
657 | + { |
|
658 | + pt('Found in %1$s files:', $totalFiles); |
|
659 | + } |
|
660 | + ?> |
|
661 | 661 | </p> |
662 | 662 | <div class="files-scroller"> |
663 | 663 | <ul> |
664 | 664 | <?php |
665 | - $locations = $string->getStrings(); |
|
665 | + $locations = $string->getStrings(); |
|
666 | 666 | |
667 | - foreach($locations as $location) |
|
668 | - { |
|
669 | - $file = $location->getSourceFile(); |
|
670 | - $line = $location->getLine(); |
|
667 | + foreach($locations as $location) |
|
668 | + { |
|
669 | + $file = $location->getSourceFile(); |
|
670 | + $line = $location->getLine(); |
|
671 | 671 | |
672 | - $icon = ''; |
|
672 | + $icon = ''; |
|
673 | 673 | |
674 | - $ext = \AppUtils\FileHelper::getExtension($file); |
|
674 | + $ext = \AppUtils\FileHelper::getExtension($file); |
|
675 | 675 | |
676 | - if($ext == 'php') { |
|
677 | - $icon = 'fab fa-php'; |
|
678 | - } else if($ext == 'js') { |
|
679 | - $icon = 'fab fa-js-square'; |
|
680 | - } else { |
|
681 | - $icon = 'fas fa-file-code'; |
|
682 | - } |
|
676 | + if($ext == 'php') { |
|
677 | + $icon = 'fab fa-php'; |
|
678 | + } else if($ext == 'js') { |
|
679 | + $icon = 'fab fa-js-square'; |
|
680 | + } else { |
|
681 | + $icon = 'fas fa-file-code'; |
|
682 | + } |
|
683 | 683 | |
684 | - ?> |
|
684 | + ?> |
|
685 | 685 | <li> |
686 | 686 | <i class="<?php echo $icon ?>"></i> |
687 | 687 | <?php echo $file ?><span class="line-number">:<?php echo $line ?></span> |
688 | 688 | </li> |
689 | 689 | <?php |
690 | - } |
|
691 | - ?> |
|
690 | + } |
|
691 | + ?> |
|
692 | 692 | </ul> |
693 | 693 | </div> |
694 | 694 | </div> |
@@ -899,13 +899,13 @@ discard block |
||
899 | 899 | ); |
900 | 900 | } |
901 | 901 | |
902 | - /** |
|
903 | - * Sets the application name shown in the main navigation |
|
904 | - * in the user interface. |
|
905 | - * |
|
906 | - * @param string $name |
|
907 | - * @return Localization_Editor |
|
908 | - */ |
|
902 | + /** |
|
903 | + * Sets the application name shown in the main navigation |
|
904 | + * in the user interface. |
|
905 | + * |
|
906 | + * @param string $name |
|
907 | + * @return Localization_Editor |
|
908 | + */ |
|
909 | 909 | public function setAppName(string $name) : Localization_Editor |
910 | 910 | { |
911 | 911 | $this->setOption('appname', $name); |
@@ -922,27 +922,27 @@ discard block |
||
922 | 922 | return t('Localization editor'); |
923 | 923 | } |
924 | 924 | |
925 | - /** |
|
926 | - * Selects the default source to use if none has been |
|
927 | - * explicitly selected. |
|
928 | - * |
|
929 | - * @param string $sourceID |
|
930 | - */ |
|
925 | + /** |
|
926 | + * Selects the default source to use if none has been |
|
927 | + * explicitly selected. |
|
928 | + * |
|
929 | + * @param string $sourceID |
|
930 | + */ |
|
931 | 931 | public function selectDefaultSource(string $sourceID) : Localization_Editor |
932 | 932 | { |
933 | 933 | $this->setOption('default-source', $sourceID); |
934 | 934 | return $this; |
935 | 935 | } |
936 | 936 | |
937 | - /** |
|
938 | - * Sets an URL that the translators can use to go back to |
|
939 | - * the main application, for example if it is integrated into |
|
940 | - * an existing application. |
|
941 | - * |
|
942 | - * @param string $url The URL to use for the link |
|
943 | - * @param string $label Label of the link |
|
944 | - * @return Localization_Editor |
|
945 | - */ |
|
937 | + /** |
|
938 | + * Sets an URL that the translators can use to go back to |
|
939 | + * the main application, for example if it is integrated into |
|
940 | + * an existing application. |
|
941 | + * |
|
942 | + * @param string $url The URL to use for the link |
|
943 | + * @param string $label Label of the link |
|
944 | + * @return Localization_Editor |
|
945 | + */ |
|
946 | 946 | public function setBackURL(string $url, string $label) : Localization_Editor |
947 | 947 | { |
948 | 948 | $this->setOption('back-url', $url); |
@@ -20,25 +20,25 @@ discard block |
||
20 | 20 | */ |
21 | 21 | class Localization_Editor_Filters |
22 | 22 | { |
23 | - /** |
|
24 | - * @var Localization_Editor |
|
25 | - */ |
|
23 | + /** |
|
24 | + * @var Localization_Editor |
|
25 | + */ |
|
26 | 26 | protected $editor; |
27 | 27 | |
28 | - /** |
|
29 | - * @var \AppUtils\Request |
|
30 | - */ |
|
28 | + /** |
|
29 | + * @var \AppUtils\Request |
|
30 | + */ |
|
31 | 31 | |
32 | 32 | protected $request; |
33 | 33 | |
34 | - /** |
|
35 | - * @var string |
|
36 | - */ |
|
34 | + /** |
|
35 | + * @var string |
|
36 | + */ |
|
37 | 37 | protected $sessionName = 'localize_filters'; |
38 | 38 | |
39 | - /** |
|
40 | - * @var string[]string |
|
41 | - */ |
|
39 | + /** |
|
40 | + * @var string[]string |
|
41 | + */ |
|
42 | 42 | protected $vars = array( |
43 | 43 | 'resetfilter' => '', |
44 | 44 | 'filter' => '', |
@@ -191,13 +191,13 @@ discard block |
||
191 | 191 | <form class="form-inline"> |
192 | 192 | <div class="form-hiddens"> |
193 | 193 | <?php |
194 | - $params = $this->editor->getRequestParams(); |
|
195 | - foreach($params as $name => $value) { |
|
196 | - ?> |
|
194 | + $params = $this->editor->getRequestParams(); |
|
195 | + foreach($params as $name => $value) { |
|
196 | + ?> |
|
197 | 197 | <input type="hidden" name="<?php echo $name ?>" value="<?php echo $value ?>"> |
198 | 198 | <?php |
199 | - } |
|
200 | - ?> |
|
199 | + } |
|
200 | + ?> |
|
201 | 201 | </div> |
202 | 202 | <div class="form-row"> |
203 | 203 | <div class="col-auto"> |
@@ -205,42 +205,42 @@ discard block |
||
205 | 205 | </div> |
206 | 206 | <div class="col-auto"> |
207 | 207 | <?php |
208 | - echo $this->renderSelect( |
|
209 | - $this->vars['status'], |
|
210 | - array( |
|
211 | - array( |
|
212 | - 'value' => '', |
|
213 | - 'label' => t('Status...') |
|
214 | - ), |
|
215 | - array( |
|
216 | - 'value' => 'untranslated', |
|
217 | - 'label' => t('Not translated') |
|
218 | - ), |
|
219 | - array( |
|
220 | - 'value' => 'translated', |
|
221 | - 'label' => t('Translated') |
|
222 | - ) |
|
223 | - ) |
|
224 | - ); |
|
208 | + echo $this->renderSelect( |
|
209 | + $this->vars['status'], |
|
210 | + array( |
|
211 | + array( |
|
212 | + 'value' => '', |
|
213 | + 'label' => t('Status...') |
|
214 | + ), |
|
215 | + array( |
|
216 | + 'value' => 'untranslated', |
|
217 | + 'label' => t('Not translated') |
|
218 | + ), |
|
219 | + array( |
|
220 | + 'value' => 'translated', |
|
221 | + 'label' => t('Translated') |
|
222 | + ) |
|
223 | + ) |
|
224 | + ); |
|
225 | 225 | |
226 | - echo $this->renderSelect( |
|
227 | - $this->vars['location'], |
|
228 | - array( |
|
229 | - array( |
|
230 | - 'value' => '', |
|
231 | - 'label' => t('Location...') |
|
232 | - ), |
|
233 | - array( |
|
234 | - 'value' => 'client', |
|
235 | - 'label' => t('Clientside') |
|
236 | - ), |
|
237 | - array( |
|
238 | - 'value' => 'server', |
|
239 | - 'label' => t('Serverside') |
|
240 | - ) |
|
241 | - ) |
|
242 | - ); |
|
243 | - ?> |
|
226 | + echo $this->renderSelect( |
|
227 | + $this->vars['location'], |
|
228 | + array( |
|
229 | + array( |
|
230 | + 'value' => '', |
|
231 | + 'label' => t('Location...') |
|
232 | + ), |
|
233 | + array( |
|
234 | + 'value' => 'client', |
|
235 | + 'label' => t('Clientside') |
|
236 | + ), |
|
237 | + array( |
|
238 | + 'value' => 'server', |
|
239 | + 'label' => t('Serverside') |
|
240 | + ) |
|
241 | + ) |
|
242 | + ); |
|
243 | + ?> |
|
244 | 244 | </div> |
245 | 245 | <div class="col-auto"> |
246 | 246 | <button type="submit" name="<?php echo $this->vars['filter'] ?>" value="yes" class="btn btn-primary mb-2" title="<?php pt('Filter the list with the selected criteria.') ?>" data-toggle="tooltip"> |
@@ -255,9 +255,9 @@ discard block |
||
255 | 255 | </form> |
256 | 256 | <p> |
257 | 257 | <small class="text-muted"><?php |
258 | - pts('Hint:'); |
|
259 | - pt('Search works in translated and untranslated text, as well as the file name.') |
|
260 | - ?></small> |
|
258 | + pts('Hint:'); |
|
259 | + pt('Search works in translated and untranslated text, as well as the file name.') |
|
260 | + ?></small> |
|
261 | 261 | </p> |
262 | 262 | <br> |
263 | 263 | <?php |