|
20 | 20 | $page_title = '3 locales search'; |
21 | 21 | $page_descr = 'One source locale, get search results for two target locales'; |
22 | 22 | break; |
23 | | - case 'news': |
24 | | - $controller = 'changelog'; |
25 | | - $page_title = 'Transvision News and Release Notes'; |
26 | | - $page_descr = ''; |
27 | | - $css_include = ['changelog.css']; |
| 23 | + case 'accesskeys': |
| 24 | + $view = 'accesskeys'; |
| 25 | + $page_title = 'Access Keys'; |
| 26 | + $page_descr = 'Check your access keys.'; |
28 | 27 | break; |
29 | | - case 'rss': |
30 | | - $controller = 'changelog'; |
| 28 | + case Strings::StartsWith($url['path'], 'api'): |
| 29 | + $controller = 'api'; |
| 30 | + $page_title = 'API response'; |
| 31 | + $page_descr = ''; |
31 | 32 | $template = false; |
32 | 33 | break; |
33 | | - case 'stats': |
34 | | - $view = 'showrepos'; |
35 | | - $page_title = 'Status Overview'; |
36 | | - $page_descr = 'Repository status overview.'; |
37 | | - break; |
38 | | - case 'repocomparison': |
39 | | - $view = 'repocomparison'; |
40 | | - break; |
41 | | - case 'gaia': |
42 | | - $view = 'gaia'; |
43 | | - $page_title = 'Gaia Comparison'; |
44 | | - $page_descr = 'Check the Status of your GAIA strings across repositories.'; |
45 | | - break; |
46 | 34 | case 'channelcomparison': |
47 | 35 | $controller = 'channelcomparison'; |
48 | 36 | $page_title = 'Channel Comparison'; |
49 | 37 | $page_descr = 'Compare strings from channel to channel.'; |
50 | 38 | break; |
51 | | - case 'accesskeys': |
52 | | - $view = 'accesskeys'; |
53 | | - $page_title = 'Access Keys'; |
54 | | - $page_descr = 'Check your access keys.'; |
| 39 | + case 'consistency': |
| 40 | + $experimental = true; |
| 41 | + $controller = 'consistency'; |
| 42 | + $page_title = 'Translation Consistency'; |
| 43 | + $page_descr = 'Analyze translation consistency across repositories.'; |
55 | 44 | break; |
56 | 45 | case 'credits': |
57 | 46 | $view = 'credits'; |
|
64 | 53 | $page_descr = 'Create and download your own <abbr title="Translation Memory eXchange">TMX</abbr> file containing the strings you need.'; |
65 | 54 | $css_include = ['tmx.css']; |
66 | 55 | break; |
| 56 | + case 'gaia': |
| 57 | + $view = 'gaia'; |
| 58 | + $page_title = 'Gaia Comparison'; |
| 59 | + $page_descr = 'Check the Status of your GAIA strings across repositories.'; |
| 60 | + break; |
| 61 | + case 'news': |
| 62 | + $controller = 'changelog'; |
| 63 | + $page_title = 'Transvision News and Release Notes'; |
| 64 | + $page_descr = ''; |
| 65 | + $css_include = ['changelog.css']; |
| 66 | + break; |
| 67 | + case 'productization': |
| 68 | + $view = 'productization'; |
| 69 | + $page_title = 'Productization Overview'; |
| 70 | + $page_descr = 'Show productization aspects for this locale.'; |
| 71 | + $css_include = ['productization.css']; |
| 72 | + break; |
| 73 | + case 'repocomparison': |
| 74 | + $view = 'repocomparison'; |
| 75 | + break; |
| 76 | + case 'rss': |
| 77 | + $controller = 'changelog'; |
| 78 | + $template = false; |
| 79 | + break; |
67 | 80 | case 'showrepos': |
68 | 81 | $experimental = true; |
69 | 82 | $controller = 'health_status'; |
70 | 83 | $page_title = 'Health status'; |
71 | 84 | $page_descr = 'Check the health status of locales.'; |
72 | 85 | $css_include = ['health.css']; |
73 | 86 | break; |
| 87 | + case 'stats': |
| 88 | + $view = 'showrepos'; |
| 89 | + $page_title = 'Status Overview'; |
| 90 | + $page_descr = 'Repository status overview.'; |
| 91 | + break; |
74 | 92 | case 'string': |
75 | 93 | $controller = 'onestring'; |
76 | 94 | $page_title = 'All translations for this string:'; |
|
86 | 104 | $page_title = 'Variables Overview'; |
87 | 105 | $page_descr = 'Show potential errors related to missing or mispelled variables in your strings.'; |
88 | 106 | break; |
89 | | - case 'productization': |
90 | | - $view = 'productization'; |
91 | | - $page_title = 'Productization Overview'; |
92 | | - $page_descr = 'Show productization aspects for this locale.'; |
93 | | - $css_include = ['productization.css']; |
94 | | - break; |
95 | | - case Strings::StartsWith($url['path'], 'api'): |
96 | | - $controller = 'api'; |
97 | | - $page_title = 'API response'; |
98 | | - $page_descr = ''; |
99 | | - $template = false; |
100 | | - break; |
101 | 107 | default: |
102 | 108 | $controller = 'mainsearch'; |
103 | 109 | break; |
|
0 commit comments