Localize
Localize copied to clipboard
Doesn't show translator comments
I noticed that my XML comments for translators are not visible in the list of phrases.
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?
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.
I agree, that's the best way to manage comments for translations. Does It work now?
No, not yet, unfortunately. But we should add it together with https://github.com/delight-im/Localize/issues/20