Welcome to mirror list, hosted at ThFree Co, Russian Federation.

translationsearch.directive.html « translationsearch « angularjs « LanguagesManager « plugins - github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 775e7aaa36cbfe5a9a6678b6142eb3862a59a7df (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
<div>

    <p>
        This page helps you to find existing translations that you can reuse in your Plugin.
        If you want to know more about translations have a look at our <a href="https://developer.matomo.org/guides/internationalization" rel="noreferrer"  target="_blank">Internationalization guide</a>.
        Enter a search term to find translations and their corresponding keys:
    </p>

    <div piwik-field uicontrol="text" name="alias"
         inline-help="Search for English translation. Max 1000 results will be shown."
         ng-model="translationSearch.searchTerm"
         placeholder="Search for English translation">
    </div>

    <div piwik-field uicontrol="select" name="translationSearch.compareLanguage"
         inline-help="Optionally select a language to compare the English language with."
         ng-model="translationSearch.compareLanguage"
         ng-change="translationSearch.doCompareLanguage()"
         options='translationSearch.languages'>
    </div>

    <br />
    <br />

    <table piwik-content-table
           ng-show="translationSearch.searchTerm"
           style="word-break: break-all;">
        <thead>
            <tr>
                <th style="width:250px;">Key</th>
                <th>English translation</th>
                <th ng-show="translationSearch.compareLanguage && translationSearch.compareTranslations">Compare translation</th>
            </tr>
        </thead>
        <tbody>
            <tr ng-repeat="translation in translationSearch.existingTranslations | filter:translationSearch.searchTerm | limitTo: 1000">
                <td>{{ translation.label }}</td>
                <td>{{ translation.value }}</td>
                <td ng-show="translationSearch.compareLanguage && translationSearch.compareTranslations">{{ translationSearch.compareTranslations[translation.label] }}</td>
            </tr>
        </tbody>
    </table>

</div>