forked from GitHub/gf-core
minibar: tool tip on the feedback button and hint in the feedback form
that the user should select a language from the To: menu to suggest a better translation to a particular language.
This commit is contained in:
@@ -126,8 +126,11 @@ Minibar.prototype.append_extra_buttons=function(extra,options) {
|
|||||||
with(this) {
|
with(this) {
|
||||||
if(options.try_google)
|
if(options.try_google)
|
||||||
extra.appendChild(button("Try Google Translate",bind(try_google,this)));
|
extra.appendChild(button("Try Google Translate",bind(try_google,this)));
|
||||||
if(options.feedback_url)
|
if(options.feedback_url) {
|
||||||
appendChildren(extra,[text(" "),button("Feedback",bind(open_feedback,this))]);
|
var b=button("Feedback",bind(open_feedback,this));
|
||||||
|
b.title="Click to suggest improvements. Select a language in the To: menu first to suggest a better translation to that language."
|
||||||
|
appendChildren(extra,[text(" "),b]);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -170,7 +173,7 @@ function prefill_feedback_form() {
|
|||||||
setField(form,"from",langpart(state.current.from,gn));
|
setField(form,"from",langpart(state.current.from,gn));
|
||||||
setField(form,"input",state.current.input);
|
setField(form,"input",state.current.input);
|
||||||
setField(form,"to",to);
|
setField(form,"to",to);
|
||||||
if(to=="All") element("translation_box").style.display="none";
|
if(to=="All") element("translation_box").innerHTML=" To suggest a better translation to a particular language, select that language in the To: menu before pressing the Feedback button."
|
||||||
else setField(form,"translation",trans.single_translation.join(" / "));
|
else setField(form,"translation",trans.single_translation.join(" / "));
|
||||||
|
|
||||||
// Browser info:
|
// Browser info:
|
||||||
|
|||||||
Reference in New Issue
Block a user