From f387144862ac9672530f6c99033fcce9ec04533e Mon Sep 17 00:00:00 2001 From: zapata Date: Fri, 13 Dec 2002 20:59:41 +0000 Subject: [PATCH] full support for comment status in admin --- bundles/admin_ay.properties | 2 + bundles/admin_de.properties | 5 +- bundles/admin_en.properties | 27 +- bundles/admin_es.properties | 5 +- bundles/admin_gn.properties | 3 + bundles/admin_qu.properties | 3 + bundles/admin_tr.properties | Bin 29480 -> 29834 bytes dbscripts/help_comment_status.sql | 2 + source/mir/entity/adapter/EntityAdapter.java | 2 +- source/mir/storage/StorageObject.java | 486 ++++++++++----------- .../basic/MirBasicDataModelLocalizer.java | 16 + .../basic/MirBasicProducerAssistantLocalizer.java | 19 +- source/mircoders/servlet/ServletModuleComment.java | 30 +- source/mircoders/servlet/ServletModuleContent.java | 24 +- .../mircoders/servlet/ServletModuleLocalizer.java | 25 ++ source/mircoders/storage/DatabaseArticleType.java | 167 ++++--- .../mircoders/storage/DatabaseCommentStatus.java | 4 + source/mircoders/storage/DatabaseLanguage.java | 177 ++++---- templates/admin/comment.template | 205 +++++---- templates/admin/commentlist.template | 2 +- templates/admin/content.template | 6 +- templates/admin/contentlist.template | 4 - 22 files changed, 668 insertions(+), 546 deletions(-) create mode 100755 dbscripts/help_comment_status.sql diff --git a/bundles/admin_ay.properties b/bundles/admin_ay.properties index eb65ffe7..e2044e94 100755 --- a/bundles/admin_ay.properties +++ b/bundles/admin_ay.properties @@ -84,6 +84,8 @@ comment.email=email comment.url=url comment.creator=autor comment.article=del artículo +comment.html=HTML? +comment.status=Status # needs translation commentlist.htmltitle=lista de comentarios commentlist.published=publicado diff --git a/bundles/admin_de.properties b/bundles/admin_de.properties index fa49b73f..cb0e71ea 100755 --- a/bundles/admin_de.properties +++ b/bundles/admin_de.properties @@ -1,6 +1,6 @@ ########## admin ########## # language: deutsch / german -# $Id: admin_de.properties,v 1.19 2002/12/13 18:00:23 zapata Exp $ +# $Id: admin_de.properties,v 1.20 2002/12/13 21:00:03 zapata Exp $ # general yes=ja @@ -91,6 +91,9 @@ comment.email=Email comment.url=Url comment.creator=Uhrheber comment.article=zu artikel +comment.html=HTML? +comment.status=Status # needs translation +comment.language=Sprache commentlist.htmltitle=commentlist commentlist.published=publiziert diff --git a/bundles/admin_en.properties b/bundles/admin_en.properties index 45f8fffc..4f1fd477 100755 --- a/bundles/admin_en.properties +++ b/bundles/admin_en.properties @@ -1,6 +1,6 @@ ########## admin ########## # language: english -# $Id: admin_en.properties,v 1.27 2002/12/13 18:00:23 zapata Exp $ +# $Id: admin_en.properties,v 1.28 2002/12/13 21:00:03 zapata Exp $ # general yes=yes @@ -84,17 +84,20 @@ breaking.date=date breakinglist.htmltitle=Breaking news overview # comment -comment.htmltitle=comment -comment.date=date -comment.title=title -comment.published=published -comment.text=comment text -comment.address=address -comment.phone=phone -comment.email=email -comment.url=url -comment.creator=author -comment.article=for article +comment.htmltitle=Comment +comment.date=Date +comment.title=Title +comment.published=Published +comment.text=Comment text +comment.address=Address +comment.phone=Phone +comment.email=Email +comment.url=Url +comment.creator=Author +comment.article=For article +comment.html=HTML? +comment.status=Status +comment.language=Language commentlist.htmltitle=Comments commentlist.published=published diff --git a/bundles/admin_es.properties b/bundles/admin_es.properties index 1add7abc..6feb7364 100755 --- a/bundles/admin_es.properties +++ b/bundles/admin_es.properties @@ -1,6 +1,6 @@ ########## admin ########## # language: espanol / spanish -# $Id: admin_es.properties,v 1.11 2002/12/13 18:00:23 zapata Exp $ +# $Id: admin_es.properties,v 1.12 2002/12/13 21:00:03 zapata Exp $ # general yes=sí @@ -88,6 +88,9 @@ comment.email=email comment.url=url comment.creator=autor comment.article=del artículo +comment.html=es HTML? +comment.status=Status # needs translation +comment.language=Lengua commentlist.htmltitle=lista de comentarios commentlist.published=publicado diff --git a/bundles/admin_gn.properties b/bundles/admin_gn.properties index 4f87cbdf..8f79b5e4 100755 --- a/bundles/admin_gn.properties +++ b/bundles/admin_gn.properties @@ -85,6 +85,9 @@ comment.email=email comment.url=url comment.creator=autor comment.article=del artículo +comment.html=es HTML? +comment.status=Status # needs translation +comment.language=Lengua commentlist.htmltitle=lista de comentarios commentlist.published=publicado diff --git a/bundles/admin_qu.properties b/bundles/admin_qu.properties index 9c9fc9c5..939e6a1a 100755 --- a/bundles/admin_qu.properties +++ b/bundles/admin_qu.properties @@ -85,6 +85,9 @@ comment.email=email comment.url=url comment.creator=autor comment.article=del artículo +comment.html=es HTML? +comment.status=Status # needs translation +comment.language=Lengua commentlist.htmltitle=lista de comentarios commentlist.published=publicado diff --git a/bundles/admin_tr.properties b/bundles/admin_tr.properties index 547a68ef30079f76617569a9b61e425270094422..6a2886ff125628195eb0cc8422abc062bb6dc059 100755 GIT binary patch delta 118 zcmZ4SjIrw_ - + - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- ${lang("comment.date")}:${utility.encodeHTML(utility.encodeHTML(data.webdb_create))}
- ${lang("comment.title")}:
- ${lang("comment.creator")}:
- ${lang("comment.url")}:
- ${lang("comment.email")}:
- ${lang("comment.phone")}:
- ${lang("comment.address")}:
- ${lang("comment.text")}:
- ${lang("comment.published")} checked> - - - - - -
- - - + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ ${lang("comment.date")} + + ${utility.encodeHTML(utility.encodeHTML(data.webdb_create))} +
+ ${lang("comment.status")} + + +
+ ${lang("comment.title")} + + +
+ ${lang("comment.creator")} + + +
+ ${lang("comment.url")} + + +
+ ${lang("comment.email")} + + +
+ ${lang("comment.phone")} + + +
+ ${lang("comment.address")} + + +
+ ${lang("comment.language")} + + +
+ ${lang("comment.text")}
+ ${lang("comment.html")} checked> +
+ +
+ + ${lang("comment.published")} checked> + + + + + + +
+
+ + diff --git a/templates/admin/commentlist.template b/templates/admin/commentlist.template index 3d35d348..151a3817 100755 --- a/templates/admin/commentlist.template +++ b/templates/admin/commentlist.template @@ -93,7 +93,7 @@
- ${entry.title}
+ ${entry.status.name} - ${entry.title}
${lang("comment.creator")}: ${entry.creator}
${entry.description} diff --git a/templates/admin/content.template b/templates/admin/content.template index 741f068a..bf3403c1 100755 --- a/templates/admin/content.template +++ b/templates/admin/content.template @@ -20,7 +20,11 @@ - +
 ${lang("content.comments")} + + ${lang("content.comments")} + + ${lang("content.published")} : checked> diff --git a/templates/admin/contentlist.template b/templates/admin/contentlist.template index 9141311a..86e79221 100755 --- a/templates/admin/contentlist.template +++ b/templates/admin/contentlist.template @@ -46,10 +46,6 @@ [${op}] - -  | newswire - - class="list3"class="list4" valign="top"> -- 2.11.0