Just fixes
This commit is contained in:
@@ -5,13 +5,13 @@ function getGreeting() {
|
||||
datetoday.setTime(timenow);
|
||||
var thehour = datetoday.getHours();
|
||||
|
||||
if (thehour >= 2 && thehour < 12) display = "morning";
|
||||
else if (thehour >= 12 && thehour <=17) display = "afternoon";
|
||||
else display = "evening"
|
||||
if (thehour >= 2 && thehour < 12) display = qsTr("morning");
|
||||
else if (thehour >= 12 && thehour <=17) display = qsTr("afternoon");
|
||||
else display = qsTr("evening")
|
||||
|
||||
|
||||
|
||||
var greeting = ("Good " + display + "!");
|
||||
var greeting = (qsTr("Good")+" " + display + "!");
|
||||
return greeting//document.write(greeting);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user