Localize icon indicating copy to clipboard operation
Localize copied to clipboard

Doesn't show translator comments

Open murraycu opened this issue 11 years ago • 4 comments

I noticed that my XML comments for translators are not visible in the list of phrases.

murraycu avatar Oct 01 '14 09:10 murraycu

You're right, this should be added. However, we need to agree on a format for those comments. What about this: Any comment that immediately precedes an entry (separated by no more than a single line break) will be used to describe that entry.

Example:

<?xml version="1.0" encoding="utf-8"?>
<resources>
    <string name="password">Password</string>
    <!-- The name used to sign in -->
    <string name="username">Username</string>

    <!-- Activity titles -->

    <string name="example">Example</string>
    <!-- The title of the introductory screen --> <string name="introduction">Introduction</string>
</resources>

That would mean username has a description here, introduction has, but all the other don't have one, notably example.

When importing, these comments should be extracted. When exporting, the comments should be available as well for output (include by default, offer option to disable).

What do you think?

ocram avatar Oct 02 '14 14:10 ocram

Yes, that seems to be the most commonly used convention and the most obvious method that the Android developer documentation so vaguely hints at. Thanks.

murraycu avatar Oct 03 '14 10:10 murraycu

I agree, that's the best way to manage comments for translations. Does It work now?

boris-dev avatar Jan 04 '15 23:01 boris-dev

No, not yet, unfortunately. But we should add it together with https://github.com/delight-im/Localize/issues/20

ocram avatar Jan 06 '15 15:01 ocram