Last modified: 2011-08-31 08:03:56 UTC
It would be good to have an "add documentation" button in addition to the "Help" button that would automatically generate a FIXME in code review for the message where this is needed. Sometimes this should be automatic even... messages with arguments often need this.
You mean "request documentation"? How would you automatically identify in which revision messages are added? How to extend that to all projects we support?
(In reply to comment #1) > You mean "request documentation"? How would you automatically identify in which > revision messages are added? How to extend that to all projects we support? svn annotate will easily find the last revision to touch a line of code. IIRC, git annotate does the same thing. For non-mw software, maybe have a way that such software could provide an email destination, then send them an email with the committee name and and revision number that the change was made in. Probably a way to put in a URL that Translate could trigger would work for both MW software and other software.
SVN annotate is slow. On the other hand it is pretty easy to find the i18n file where the message comes from.
Little more: how to know on which line(s) of the file given message key is?
(In reply to comment #4) > Little more: how to know on which line(s) of the file given message key is? "grep -n file" works for me ;) Alternatively use file_get_contents() and count the newlines before the message you're searching for. Or, use token_get_all()
Think about some key named "off" or "no". Grep will match about anything.
(In reply to comment #6) > Think about some key named "off" or "no". Grep will match about anything. Sure. And the author should not provide such stupid keys. But in any case, the line number isn't strictly necessary, is it? If you find multiple matches, don't give them a line number, just the message key.
I'm still not convinced about this. Poking the developers manually seems easy enough as long as someone does it.
Marking WONTFIX unless someone comes up with a great idea how to do this.