Skip to content

Implement translation hints in PHP #973

@vitormattos

Description

@vitormattos

Following the pattern described in Nextcloud developer manual, PHP codes that do translations could have hints to help translators to understand the context of sentence to translate.

Example:

<ul id="translations">
    <li id="add-new">
        <?php
            // TRANSLATORS Will be shown inside a popup and asks the user to add a new file
            p($l->t('Add new file'));
        ?>
    </li>
</ul>

Suggestion:
Now we have a lot of sentences to put hint. To don't have a very big pull request, do small pull requests, maybe maximum implementing 10 hints.

Using the follow command, you can found the total of rows with translation method in PHP code.

grep -Rn -e "->t(" lib/ | wc -l

To see all the rows, remove | wc -l

Metadata

Metadata

Assignees

No one assigned

    Projects

    Status

    0. Needs triage

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions