From 3732f229c6dc4d56dc85cb01b104b28ff419ed5c Mon Sep 17 00:00:00 2001 From: Ugnich Anton Date: Tue, 16 Oct 2012 13:06:36 +0700 Subject: message recomended by... --- src/java/Global.properties | 2 ++ src/java/Global_ru.properties | 2 ++ src/java/User.properties | 1 + src/java/User_ru.properties | 1 + src/java/com/juick/http/www/PageTemplates.java | 4 ++-- src/java/com/juick/http/www/UserThread.java | 25 ++++++++++++++++++------- 6 files changed, 26 insertions(+), 9 deletions(-) (limited to 'src/java') diff --git a/src/java/Global.properties b/src/java/Global.properties index b0e9525e..164b57a2 100644 --- a/src/java/Global.properties +++ b/src/java/Global.properties @@ -16,7 +16,9 @@ Help=Help Older=Older Newer=Newer (replies)\ by=by +Recommended\ by=Recommended by Comment=Comment +Add\ a\ comment=Add a comment... Sponsored\ by=Sponsored by Block\ user=Block user Send\ private\ message=Send private message diff --git a/src/java/Global_ru.properties b/src/java/Global_ru.properties index 8d315dbf..b98693da 100644 --- a/src/java/Global_ru.properties +++ b/src/java/Global_ru.properties @@ -16,7 +16,9 @@ Help=\u0421\u043f\u0440\u0430\u0432\u043a\u0430 Older=\u0421\u0442\u0430\u0440\u044b\u0435 Newer=\u041d\u043e\u0432\u044b\u0435 (replies)\ by=\u043e\u0442 +Recommended\ by=\u0420\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u043e\u0432\u0430\u043b\u0438 Comment=\u041e\u0442\u0432\u0435\u0442\u0438\u0442\u044c +Add\ a\ comment=\u041d\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u0439... Sponsored\ by=\u041f\u0440\u0438 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0435 Block\ user=\u0417\u0430\u0431\u043b\u043e\u043a\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f Send\ private\ message=\u041e\u0442\u043f\u0440\u0430\u0432\u0438\u0442\u044c \u043f\u0440\u0438\u0432\u0430\u0442\u043d\u043e\u0435 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0435 diff --git a/src/java/User.properties b/src/java/User.properties index 4d54c498..f3b563db 100644 --- a/src/java/User.properties +++ b/src/java/User.properties @@ -11,6 +11,7 @@ (Menu)\ Photos=Photos and videos (Menu)\ Tags=Tags (Menu)\ Search=Search +Replies=Replies Expand\ all=Expand all View\ as\ list=View as list View\ as\ tree=View as tree diff --git a/src/java/User_ru.properties b/src/java/User_ru.properties index 6a257a49..fd38d0d5 100644 --- a/src/java/User_ru.properties +++ b/src/java/User_ru.properties @@ -11,6 +11,7 @@ (Menu)\ Photos=\u0424\u043e\u0442\u043e \u0438 \u0432\u0438\u0434\u0435\u043e (Menu)\ Tags=\u0422\u0435\u0433\u0438 (Menu)\ Search=\u041f\u043e\u0438\u0441\u043a +Replies=\u041e\u0442\u0432\u0435\u0442\u044b Expand\ all=\u0420\u0430\u0441\u043a\u0440\u044b\u0442\u044c \u0432\u0441\u0435 View\ as\ list=\u041f\u043e\u043a\u0430\u0437\u0430\u0442\u044c \u0441\u043f\u0438\u0441\u043a\u043e\u043c View\ as\ tree=\u041f\u043e\u043a\u0430\u0437\u0430\u0442\u044c \u0434\u0435\u0440\u0435\u0432\u043e\u043c diff --git a/src/java/com/juick/http/www/PageTemplates.java b/src/java/com/juick/http/www/PageTemplates.java index 08e88342..69fbb5ce 100644 --- a/src/java/com/juick/http/www/PageTemplates.java +++ b/src/java/com/juick/http/www/PageTemplates.java @@ -407,7 +407,7 @@ public class PageTemplates { out.println("
" + formatReplies(rs.getInt(10), locale) + " " + rb.getString("(replies) by") + " " + repliesby + "
"); } else if (cancomment) { out.println("
"); - out.println("
"); + out.println("
"); out.println("
"); } out.println(" "); @@ -417,7 +417,7 @@ public class PageTemplates { } finally { Utils.finishSQL(rs, stmt); } - } + } /* public static void printPhotos(PrintWriter out, Connection sql, ArrayList mids, Locale locale) { ResourceBundle rb = ResourceBundle.getBundle("Global", locale); diff --git a/src/java/com/juick/http/www/UserThread.java b/src/java/com/juick/http/www/UserThread.java index 1680ca8e..320c62ba 100644 --- a/src/java/com/juick/http/www/UserThread.java +++ b/src/java/com/juick/http/www/UserThread.java @@ -141,6 +141,11 @@ public class UserThread { out.println(""); } @@ -230,7 +241,7 @@ public class UserThread { out.print("li').show(); $('#replies .msg-comments').hide(); return false\">" + rbuser.getString("Expand all") + " · " + rbuser.getString("View as list") + ""); } out.print(""); - out.println("

Replies (" + replies.size() + ")

"); + out.println("

"+rbuser.getString("Replies")+" (" + replies.size() + ")

"); out.println(""); out.println("