From: <fg...@us...> - 2009-12-27 17:23:27
|
Revision: 1551 http://openutils.svn.sourceforge.net/openutils/?rev=1551&view=rev Author: fgiust Date: 2009-12-27 17:23:17 +0000 (Sun, 27 Dec 2009) Log Message: ----------- restyle Modified Paths: -------------- trunk/openutils-mgnlmessages/src/main/java/net/sourceforge/openutils/mgnlmessages/pages/MessagesImpExpPage.java trunk/openutils-mgnlmessages/src/main/resources/mgnl-messages/messages/messages_en.properties trunk/openutils-mgnlmessages/src/main/resources/mgnl-messages/messages/messages_it.properties trunk/openutils-mgnlmessages/src/main/resources/net/sourceforge/openutils/mgnlmessages/pages/ExtractMessagesFromDialogsPage.html trunk/openutils-mgnlmessages/src/main/resources/net/sourceforge/openutils/mgnlmessages/pages/MessagesImpExpPage.html Added Paths: ----------- trunk/openutils-mgnlmessages/src/main/resources/mgnl-resources/messages/css/mgnladmin.css trunk/openutils-mgnlmessages/src/main/resources/mgnl-resources/messages/img/ trunk/openutils-mgnlmessages/src/main/resources/mgnl-resources/messages/img/admin-bottomleft.png trunk/openutils-mgnlmessages/src/main/resources/mgnl-resources/messages/img/admin-bottomright.png trunk/openutils-mgnlmessages/src/main/resources/mgnl-resources/messages/img/admin-topleft.png trunk/openutils-mgnlmessages/src/main/resources/mgnl-resources/messages/img/admin-topright.png trunk/openutils-mgnlmessages/src/main/resources/mgnl-resources/messages/img/ico-warning.png trunk/openutils-mgnlmessages/src/main/resources/mgnl-resources/messages/img/openmind-logo.png Modified: trunk/openutils-mgnlmessages/src/main/java/net/sourceforge/openutils/mgnlmessages/pages/MessagesImpExpPage.java =================================================================== --- trunk/openutils-mgnlmessages/src/main/java/net/sourceforge/openutils/mgnlmessages/pages/MessagesImpExpPage.java 2009-12-27 16:57:46 UTC (rev 1550) +++ trunk/openutils-mgnlmessages/src/main/java/net/sourceforge/openutils/mgnlmessages/pages/MessagesImpExpPage.java 2009-12-27 17:23:17 UTC (rev 1551) @@ -177,6 +177,11 @@ */ public String importExcel() { + if (uploadFile == null) + { + AlertUtil.setMessage("Please select an excel file for upload"); + return this.show(); + } FileInputStream fis; try { Modified: trunk/openutils-mgnlmessages/src/main/resources/mgnl-messages/messages/messages_en.properties =================================================================== --- trunk/openutils-mgnlmessages/src/main/resources/mgnl-messages/messages/messages_en.properties 2009-12-27 16:57:46 UTC (rev 1550) +++ trunk/openutils-mgnlmessages/src/main/resources/mgnl-messages/messages/messages_en.properties 2009-12-27 17:23:17 UTC (rev 1551) @@ -3,3 +3,4 @@ messages.expimppage.doexport=Export messages.expimppage.doimport=Import messages.expimppage.uploadFile=Upload excel +messages.expimpinfo=From here you can upload an excel file for easily import translations. Click on "export" to get an excel with actual translations that you can edit. \ No newline at end of file Modified: trunk/openutils-mgnlmessages/src/main/resources/mgnl-messages/messages/messages_it.properties =================================================================== --- trunk/openutils-mgnlmessages/src/main/resources/mgnl-messages/messages/messages_it.properties 2009-12-27 16:57:46 UTC (rev 1550) +++ trunk/openutils-mgnlmessages/src/main/resources/mgnl-messages/messages/messages_it.properties 2009-12-27 17:23:17 UTC (rev 1551) @@ -3,3 +3,4 @@ messages.expimppage.doexport=Esporta messages.expimppage.doimport=Importa messages.expimppage.uploadFile=Carica file excel +messages.expimpinfo=Da qui puoi caricare un file excel per importare velocemente un elenco di traduzioni. Clicca su "esporta" per scaricare un file excel con le traduzioni attuali che potrai editare. Added: trunk/openutils-mgnlmessages/src/main/resources/mgnl-resources/messages/css/mgnladmin.css =================================================================== --- trunk/openutils-mgnlmessages/src/main/resources/mgnl-resources/messages/css/mgnladmin.css (rev 0) +++ trunk/openutils-mgnlmessages/src/main/resources/mgnl-resources/messages/css/mgnladmin.css 2009-12-27 17:23:17 UTC (rev 1551) @@ -0,0 +1,102 @@ +body.ma { + background-color: #333; + padding: 10px; + margin: 0; +} + +body.ma form { + margin: 0; + padding: 0; + display: block; +} + +body.ma img { + border: none; +} + +body.ma div,body.ma span,body.ma p,body.ma input,body.ma select,body.ma pre,body.ma textarea { + font-size: 12px; + font-family: verdana, sans-serif; +} + +.ma-frame { + background-color: #fff; + background-image: url("../img/admin-topleft.png"); + background-repeat: no-repeat; + background-position: top left; + padding: 0; + margin: 0; +} + +.ma-frame h2 { + background-image: url("../img/admin-topright.png"); + background-repeat: no-repeat; + background-repeat: no-repeat; + background-position: top right; + height: 59px; + color: #fff; + padding: 0 20px 0 20px; + font-family: georgia, sans-serif; + font-weight: lighter; + font-size: 20px; + line-height: 55px; +} + +.ma-framecenter { + padding: 10px 20px 10px 20px; +} + +.ma-framefooter { + background-image: url("../img/admin-bottomleft.png"); + background-repeat: no-repeat; + background-repeat: no-repeat; + background-position: bottom left; + height: 75px; + padding: 0; + color: #fff; +} + +.ma-framefooterinner { + padding: 0 20px 0 20px; + background-image: url("../img/admin-bottomright.png"); + background-repeat: no-repeat; + background-repeat: no-repeat; + background-position: bottom right; + height: 75px; +} + +.ma-buttons { + text-align: right; + padding-top: 40px; +} + +.ma-warning { + border: 1px solid #FFD324; + padding: 10px 11px 8px 10px; + background-color: #FFF8BF; + color: #B35F00; + margin: 0 0 20px 0; +} + +.ma-warning p { + margin: 0; +} + +.ma-info { + border: 1px solid #769837; + padding: 10px 11px 8px 10px; + background-color: #eaf5d6; + margin: 0 0 20px 0; + color: #769837; +} + +.ma-formel-container { + margin-bottom: 10px; +} + +.ma-formel-left { + float: left; + width: 150px; + color: #769837; + font-weight: bold; +} \ No newline at end of file Property changes on: trunk/openutils-mgnlmessages/src/main/resources/mgnl-resources/messages/css/mgnladmin.css ___________________________________________________________________ Added: svn:mime-type + text/plain Added: svn:eol-style + native Added: trunk/openutils-mgnlmessages/src/main/resources/mgnl-resources/messages/img/admin-bottomleft.png =================================================================== (Binary files differ) Property changes on: trunk/openutils-mgnlmessages/src/main/resources/mgnl-resources/messages/img/admin-bottomleft.png ___________________________________________________________________ Added: svn:mime-type + image/png Added: trunk/openutils-mgnlmessages/src/main/resources/mgnl-resources/messages/img/admin-bottomright.png =================================================================== (Binary files differ) Property changes on: trunk/openutils-mgnlmessages/src/main/resources/mgnl-resources/messages/img/admin-bottomright.png ___________________________________________________________________ Added: svn:mime-type + image/png Added: trunk/openutils-mgnlmessages/src/main/resources/mgnl-resources/messages/img/admin-topleft.png =================================================================== (Binary files differ) Property changes on: trunk/openutils-mgnlmessages/src/main/resources/mgnl-resources/messages/img/admin-topleft.png ___________________________________________________________________ Added: svn:mime-type + image/png Added: trunk/openutils-mgnlmessages/src/main/resources/mgnl-resources/messages/img/admin-topright.png =================================================================== (Binary files differ) Property changes on: trunk/openutils-mgnlmessages/src/main/resources/mgnl-resources/messages/img/admin-topright.png ___________________________________________________________________ Added: svn:mime-type + image/png Added: trunk/openutils-mgnlmessages/src/main/resources/mgnl-resources/messages/img/ico-warning.png =================================================================== (Binary files differ) Property changes on: trunk/openutils-mgnlmessages/src/main/resources/mgnl-resources/messages/img/ico-warning.png ___________________________________________________________________ Added: svn:mime-type + image/png Added: trunk/openutils-mgnlmessages/src/main/resources/mgnl-resources/messages/img/openmind-logo.png =================================================================== (Binary files differ) Property changes on: trunk/openutils-mgnlmessages/src/main/resources/mgnl-resources/messages/img/openmind-logo.png ___________________________________________________________________ Added: svn:mime-type + image/png Modified: trunk/openutils-mgnlmessages/src/main/resources/net/sourceforge/openutils/mgnlmessages/pages/ExtractMessagesFromDialogsPage.html =================================================================== --- trunk/openutils-mgnlmessages/src/main/resources/net/sourceforge/openutils/mgnlmessages/pages/ExtractMessagesFromDialogsPage.html 2009-12-27 16:57:46 UTC (rev 1550) +++ trunk/openutils-mgnlmessages/src/main/resources/net/sourceforge/openutils/mgnlmessages/pages/ExtractMessagesFromDialogsPage.html 2009-12-27 17:23:17 UTC (rev 1551) @@ -3,19 +3,36 @@ <head> <title>Magnolia</title> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> - <link href="${this.request.contextPath}/.resources/admin-css/admin-all.css" type="text/css" rel="stylesheet" /> + <link href="${this.request.contextPath}/.resources/messages/css/mgnladmin.css" type="text/css" rel="stylesheet" /> </head> - <body id="mgnl" class="mgnlBgLight mgnlImportExport"> - <h2>Extract messages from dialogs</h2> - <div class="pageframe"> - Select dialogs roots to extract messages from: + <body class="ma"> + <div class="ma-frame"> + <h2> + Extract messages from dialogs + <a target="_blank" href="http://www.openmindonline.it" style="position:absolute;right:45px;"> + <img class="omlogo" alt="openmind" src="${this.request.contextPath}/.resources/repoutils/img/openmind-logo.png" /> + </a> + </h2> <form method="post" action="" enctype="multipart/form-data"> - <input type="hidden" name="command" value="extract" /> - <ul style="list-style: none"><#list this.dialogsRoot as root> - <li><input type="checkbox" name="dialogsRoots" value="${root}"/>${root}</li> - </#list> - </ul> - <input type="submit" name="doextract" value='Do extract' /> + <div class="ma-framecenter"> + Select dialogs roots to extract messages from: + <input type="hidden" name="command" value="extract" /> + <ul style="list-style: none"> + [#list this.dialogsRoot as root] + <li> + <input type="checkbox" name="dialogsRoots" value="${root}" /> + ${root} + </li> + [/#list] + </ul> + </div> + <div class="ma-framefooter"> + <div class="ma-framefooterinner"> + <div class="ma-buttons"> + <input type="submit" name="doextract" value='Do extract' /> + </div> + </div> + </div> </form> </div> </body> Modified: trunk/openutils-mgnlmessages/src/main/resources/net/sourceforge/openutils/mgnlmessages/pages/MessagesImpExpPage.html =================================================================== --- trunk/openutils-mgnlmessages/src/main/resources/net/sourceforge/openutils/mgnlmessages/pages/MessagesImpExpPage.html 2009-12-27 16:57:46 UTC (rev 1550) +++ trunk/openutils-mgnlmessages/src/main/resources/net/sourceforge/openutils/mgnlmessages/pages/MessagesImpExpPage.html 2009-12-27 17:23:17 UTC (rev 1551) @@ -3,25 +3,44 @@ <head> <title>Magnolia</title> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> - <link href="${this.request.contextPath}/.resources/admin-css/admin-all.css" type="text/css" rel="stylesheet" /> + <link href="${this.request.contextPath}/.resources/messages/css/mgnladmin.css" type="text/css" rel="stylesheet" /> </head> - <body id="mgnl" class="mgnlBgLight mgnlImportExport"> - <h2>${this.messages.get("messages.expimppage")}</h2> - <div class="pageframe"> + <body class="ma"> + <div class="ma-frame"> + <h2> + ${this.messages.get("messages.expimppage")} + <a target="_blank" href="http://www.openmindonline.it" style="position:absolute;right:45px;"> + <img class="omlogo" alt="openmind" src="${this.request.contextPath}/.resources/repoutils/img/openmind-logo.png" /> + </a> + </h2> <form method="post" action="" enctype="multipart/form-data"> - <input type="hidden" name="command" value="exportExcel" /> - <input type="submit" name="doexport" value='${this.messages.get("messages.expimppage.doexport")}' /> - </form> - </div> - <div class="pageframe"> - <form method="post" action="" enctype="multipart/form-data"> - <div class="formelement"> - <label for="uploadFile">${this.messages.get("messages.expimppage.uploadFile")} - </label> - <input name="uploadFile" type="file" /> + <div class="ma-framecenter"> + <div class="ma-warning"> + <p>${this.messages.get("messages.expimpinfo")}</p> + </div> + <div class="ma-formel-container"> + <div class="ma-formel-left"> + <label for="uploadFile">${this.messages.get("messages.expimppage.uploadFile")}</label> + </div> + <div class="ma-formel-right"> + <input name="uploadFile" type="file" /> + </div> + </div> + <input type="hidden" name="command" value="importExcel" id="command" /> + [#if message?exists] + <pre class="ma-info">${message}</pre> + [/#if] </div> - <input type="hidden" name="command" value="importExcel" /> - <input type="submit" name="doimport" value='${this.messages.get("messages.expimppage.doimport")}' /> + <div class="ma-framefooter"> + <div class="ma-framefooterinner"> + <div class="ma-buttons"> + <input type="submit" name="doexport" value='${this.messages.get("messages.expimppage.doexport")}' + onclick="document.getElementById('command').value='exportExcel'" /> + <input type="submit" name="doimport" value='${this.messages.get("messages.expimppage.doimport")}' + onclick="document.getElementById('command').value='importExcel'" /> + </div> + </div> + </div> </form> </div> </body> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <mmu...@us...> - 2010-02-09 09:35:38
|
Revision: 1861 http://openutils.svn.sourceforge.net/openutils/?rev=1861&view=rev Author: mmunaretto Date: 2010-02-09 09:35:30 +0000 (Tue, 09 Feb 2010) Log Message: ----------- added licenses to source code Modified Paths: -------------- trunk/openutils-mgnlmessages/src/main/java/net/sourceforge/openutils/mgnlmessages/configuration/MessagesConfigurationManager.java trunk/openutils-mgnlmessages/src/main/java/net/sourceforge/openutils/mgnlmessages/i18n/EmptyResourceBundle.java trunk/openutils-mgnlmessages/src/main/java/net/sourceforge/openutils/mgnlmessages/i18n/ModulePropertyMessagesImpl.java trunk/openutils-mgnlmessages/src/main/java/net/sourceforge/openutils/mgnlmessages/i18n/OpenutilsMessagesImpl.java trunk/openutils-mgnlmessages/src/main/java/net/sourceforge/openutils/mgnlmessages/i18n/OpenutilsMgnlMessagesManager.java trunk/openutils-mgnlmessages/src/main/java/net/sourceforge/openutils/mgnlmessages/i18n/RepositoryMessagesImpl.java trunk/openutils-mgnlmessages/src/main/java/net/sourceforge/openutils/mgnlmessages/i18n/SimpleMessagesImpl.java trunk/openutils-mgnlmessages/src/main/java/net/sourceforge/openutils/mgnlmessages/lifecycle/MessagesModuleLifecycle.java trunk/openutils-mgnlmessages/src/main/java/net/sourceforge/openutils/mgnlmessages/pages/DefaultMessagesImpl.java trunk/openutils-mgnlmessages/src/main/java/net/sourceforge/openutils/mgnlmessages/pages/ExtractMessagesFromDialogsPage.java trunk/openutils-mgnlmessages/src/main/java/net/sourceforge/openutils/mgnlmessages/pages/MessagesEditPage.java trunk/openutils-mgnlmessages/src/main/java/net/sourceforge/openutils/mgnlmessages/pages/MessagesImpExpPage.java trunk/openutils-mgnlmessages/src/main/java/net/sourceforge/openutils/mgnlmessages/setup/MessagesModuleVersionHandler.java Added Paths: ----------- trunk/openutils-mgnlmessages/src/main/etc/ trunk/openutils-mgnlmessages/src/main/etc/header.txt Added: trunk/openutils-mgnlmessages/src/main/etc/header.txt =================================================================== --- trunk/openutils-mgnlmessages/src/main/etc/header.txt (rev 0) +++ trunk/openutils-mgnlmessages/src/main/etc/header.txt 2010-02-09 09:35:30 UTC (rev 1861) @@ -0,0 +1,16 @@ + +${name} (${url}) +Copyright(C) ${year}, Openmind S.r.l. http://www.openmindonline.it + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see <http://www.gnu.org/licenses/>. \ No newline at end of file Property changes on: trunk/openutils-mgnlmessages/src/main/etc/header.txt ___________________________________________________________________ Added: svn:mime-type + text/plain Added: svn:keywords + Author Date Id Revision Added: svn:eol-style + native Modified: trunk/openutils-mgnlmessages/src/main/java/net/sourceforge/openutils/mgnlmessages/configuration/MessagesConfigurationManager.java =================================================================== --- trunk/openutils-mgnlmessages/src/main/java/net/sourceforge/openutils/mgnlmessages/configuration/MessagesConfigurationManager.java 2010-02-09 09:15:26 UTC (rev 1860) +++ trunk/openutils-mgnlmessages/src/main/java/net/sourceforge/openutils/mgnlmessages/configuration/MessagesConfigurationManager.java 2010-02-09 09:35:30 UTC (rev 1861) @@ -1,20 +1,22 @@ /** - * Copyright Openmind http://www.openmindonline.it * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. + * Magnolia Messages Module (http://www.openmindlab.com/lab/products/groovy.html) + * Copyright(C) null-2010, Openmind S.r.l. http://www.openmindonline.it * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see <http://www.gnu.org/licenses/>. + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see <http://www.gnu.org/licenses/>. */ + package net.sourceforge.openutils.mgnlmessages.configuration; import info.magnolia.cms.beans.config.ContentRepository; Modified: trunk/openutils-mgnlmessages/src/main/java/net/sourceforge/openutils/mgnlmessages/i18n/EmptyResourceBundle.java =================================================================== --- trunk/openutils-mgnlmessages/src/main/java/net/sourceforge/openutils/mgnlmessages/i18n/EmptyResourceBundle.java 2010-02-09 09:15:26 UTC (rev 1860) +++ trunk/openutils-mgnlmessages/src/main/java/net/sourceforge/openutils/mgnlmessages/i18n/EmptyResourceBundle.java 2010-02-09 09:35:30 UTC (rev 1861) @@ -1,20 +1,22 @@ /** - * Copyright Openmind http://www.openmindonline.it * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. + * Magnolia Messages Module (http://www.openmindlab.com/lab/products/groovy.html) + * Copyright(C) null-2010, Openmind S.r.l. http://www.openmindonline.it * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see <http://www.gnu.org/licenses/>. + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see <http://www.gnu.org/licenses/>. */ + package net.sourceforge.openutils.mgnlmessages.i18n; import java.util.Enumeration; Modified: trunk/openutils-mgnlmessages/src/main/java/net/sourceforge/openutils/mgnlmessages/i18n/ModulePropertyMessagesImpl.java =================================================================== --- trunk/openutils-mgnlmessages/src/main/java/net/sourceforge/openutils/mgnlmessages/i18n/ModulePropertyMessagesImpl.java 2010-02-09 09:15:26 UTC (rev 1860) +++ trunk/openutils-mgnlmessages/src/main/java/net/sourceforge/openutils/mgnlmessages/i18n/ModulePropertyMessagesImpl.java 2010-02-09 09:35:30 UTC (rev 1861) @@ -1,20 +1,22 @@ /** - * Copyright Openmind http://www.openmindonline.it * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. + * Magnolia Messages Module (http://www.openmindlab.com/lab/products/groovy.html) + * Copyright(C) null-2010, Openmind S.r.l. http://www.openmindonline.it * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see <http://www.gnu.org/licenses/>. + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see <http://www.gnu.org/licenses/>. */ + package net.sourceforge.openutils.mgnlmessages.i18n; import info.magnolia.cms.i18n.AbstractMessagesImpl; Modified: trunk/openutils-mgnlmessages/src/main/java/net/sourceforge/openutils/mgnlmessages/i18n/OpenutilsMessagesImpl.java =================================================================== --- trunk/openutils-mgnlmessages/src/main/java/net/sourceforge/openutils/mgnlmessages/i18n/OpenutilsMessagesImpl.java 2010-02-09 09:15:26 UTC (rev 1860) +++ trunk/openutils-mgnlmessages/src/main/java/net/sourceforge/openutils/mgnlmessages/i18n/OpenutilsMessagesImpl.java 2010-02-09 09:35:30 UTC (rev 1861) @@ -1,20 +1,22 @@ /** - * Copyright Openmind http://www.openmindonline.it * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. + * Magnolia Messages Module (http://www.openmindlab.com/lab/products/groovy.html) + * Copyright(C) null-2010, Openmind S.r.l. http://www.openmindonline.it * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see <http://www.gnu.org/licenses/>. + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see <http://www.gnu.org/licenses/>. */ + package net.sourceforge.openutils.mgnlmessages.i18n; import info.magnolia.cms.i18n.DefaultMessagesImpl; Modified: trunk/openutils-mgnlmessages/src/main/java/net/sourceforge/openutils/mgnlmessages/i18n/OpenutilsMgnlMessagesManager.java =================================================================== --- trunk/openutils-mgnlmessages/src/main/java/net/sourceforge/openutils/mgnlmessages/i18n/OpenutilsMgnlMessagesManager.java 2010-02-09 09:15:26 UTC (rev 1860) +++ trunk/openutils-mgnlmessages/src/main/java/net/sourceforge/openutils/mgnlmessages/i18n/OpenutilsMgnlMessagesManager.java 2010-02-09 09:35:30 UTC (rev 1861) @@ -1,20 +1,22 @@ /** - * Copyright Openmind http://www.openmindonline.it * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. + * Magnolia Messages Module (http://www.openmindlab.com/lab/products/groovy.html) + * Copyright(C) null-2010, Openmind S.r.l. http://www.openmindonline.it * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see <http://www.gnu.org/licenses/>. + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see <http://www.gnu.org/licenses/>. */ + package net.sourceforge.openutils.mgnlmessages.i18n; import info.magnolia.cms.i18n.DefaultMessagesManager; Modified: trunk/openutils-mgnlmessages/src/main/java/net/sourceforge/openutils/mgnlmessages/i18n/RepositoryMessagesImpl.java =================================================================== --- trunk/openutils-mgnlmessages/src/main/java/net/sourceforge/openutils/mgnlmessages/i18n/RepositoryMessagesImpl.java 2010-02-09 09:15:26 UTC (rev 1860) +++ trunk/openutils-mgnlmessages/src/main/java/net/sourceforge/openutils/mgnlmessages/i18n/RepositoryMessagesImpl.java 2010-02-09 09:35:30 UTC (rev 1861) @@ -1,20 +1,22 @@ /** - * Copyright Openmind http://www.openmindonline.it * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. + * Magnolia Messages Module (http://www.openmindlab.com/lab/products/groovy.html) + * Copyright(C) null-2010, Openmind S.r.l. http://www.openmindonline.it * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see <http://www.gnu.org/licenses/>. + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see <http://www.gnu.org/licenses/>. */ + package net.sourceforge.openutils.mgnlmessages.i18n; import info.magnolia.cms.core.Content; Modified: trunk/openutils-mgnlmessages/src/main/java/net/sourceforge/openutils/mgnlmessages/i18n/SimpleMessagesImpl.java =================================================================== --- trunk/openutils-mgnlmessages/src/main/java/net/sourceforge/openutils/mgnlmessages/i18n/SimpleMessagesImpl.java 2010-02-09 09:15:26 UTC (rev 1860) +++ trunk/openutils-mgnlmessages/src/main/java/net/sourceforge/openutils/mgnlmessages/i18n/SimpleMessagesImpl.java 2010-02-09 09:35:30 UTC (rev 1861) @@ -1,20 +1,22 @@ /** - * Copyright Openmind http://www.openmindonline.it * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. + * Magnolia Messages Module (http://www.openmindlab.com/lab/products/groovy.html) + * Copyright(C) null-2010, Openmind S.r.l. http://www.openmindonline.it * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see <http://www.gnu.org/licenses/>. + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see <http://www.gnu.org/licenses/>. */ + package net.sourceforge.openutils.mgnlmessages.i18n; import info.magnolia.cms.i18n.AbstractMessagesImpl; Modified: trunk/openutils-mgnlmessages/src/main/java/net/sourceforge/openutils/mgnlmessages/lifecycle/MessagesModuleLifecycle.java =================================================================== --- trunk/openutils-mgnlmessages/src/main/java/net/sourceforge/openutils/mgnlmessages/lifecycle/MessagesModuleLifecycle.java 2010-02-09 09:15:26 UTC (rev 1860) +++ trunk/openutils-mgnlmessages/src/main/java/net/sourceforge/openutils/mgnlmessages/lifecycle/MessagesModuleLifecycle.java 2010-02-09 09:35:30 UTC (rev 1861) @@ -1,20 +1,22 @@ /** - * Copyright Openmind http://www.openmindonline.it * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. + * Magnolia Messages Module (http://www.openmindlab.com/lab/products/groovy.html) + * Copyright(C) null-2010, Openmind S.r.l. http://www.openmindonline.it * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see <http://www.gnu.org/licenses/>. + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see <http://www.gnu.org/licenses/>. */ + package net.sourceforge.openutils.mgnlmessages.lifecycle; import info.magnolia.module.ModuleLifecycle; Modified: trunk/openutils-mgnlmessages/src/main/java/net/sourceforge/openutils/mgnlmessages/pages/DefaultMessagesImpl.java =================================================================== --- trunk/openutils-mgnlmessages/src/main/java/net/sourceforge/openutils/mgnlmessages/pages/DefaultMessagesImpl.java 2010-02-09 09:15:26 UTC (rev 1860) +++ trunk/openutils-mgnlmessages/src/main/java/net/sourceforge/openutils/mgnlmessages/pages/DefaultMessagesImpl.java 2010-02-09 09:35:30 UTC (rev 1861) @@ -1,20 +1,22 @@ /** - * Copyright Openmind http://www.openmindonline.it * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. + * Magnolia Messages Module (http://www.openmindlab.com/lab/products/groovy.html) + * Copyright(C) null-2010, Openmind S.r.l. http://www.openmindonline.it * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see <http://www.gnu.org/licenses/>. + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see <http://www.gnu.org/licenses/>. */ + package net.sourceforge.openutils.mgnlmessages.pages; import info.magnolia.cms.util.ClasspathResourcesUtil; Modified: trunk/openutils-mgnlmessages/src/main/java/net/sourceforge/openutils/mgnlmessages/pages/ExtractMessagesFromDialogsPage.java =================================================================== --- trunk/openutils-mgnlmessages/src/main/java/net/sourceforge/openutils/mgnlmessages/pages/ExtractMessagesFromDialogsPage.java 2010-02-09 09:15:26 UTC (rev 1860) +++ trunk/openutils-mgnlmessages/src/main/java/net/sourceforge/openutils/mgnlmessages/pages/ExtractMessagesFromDialogsPage.java 2010-02-09 09:35:30 UTC (rev 1861) @@ -1,20 +1,22 @@ /** - * Copyright Openmind http://www.openmindonline.it * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. + * Magnolia Messages Module (http://www.openmindlab.com/lab/products/groovy.html) + * Copyright(C) null-2010, Openmind S.r.l. http://www.openmindonline.it * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see <http://www.gnu.org/licenses/>. + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see <http://www.gnu.org/licenses/>. */ + package net.sourceforge.openutils.mgnlmessages.pages; import info.magnolia.cms.beans.config.ContentRepository; Modified: trunk/openutils-mgnlmessages/src/main/java/net/sourceforge/openutils/mgnlmessages/pages/MessagesEditPage.java =================================================================== --- trunk/openutils-mgnlmessages/src/main/java/net/sourceforge/openutils/mgnlmessages/pages/MessagesEditPage.java 2010-02-09 09:15:26 UTC (rev 1860) +++ trunk/openutils-mgnlmessages/src/main/java/net/sourceforge/openutils/mgnlmessages/pages/MessagesEditPage.java 2010-02-09 09:35:30 UTC (rev 1861) @@ -1,20 +1,22 @@ /** - * Copyright Openmind http://www.openmindonline.it * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. + * Magnolia Messages Module (http://www.openmindlab.com/lab/products/groovy.html) + * Copyright(C) null-2010, Openmind S.r.l. http://www.openmindonline.it * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see <http://www.gnu.org/licenses/>. + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see <http://www.gnu.org/licenses/>. */ + package net.sourceforge.openutils.mgnlmessages.pages; import info.magnolia.cms.core.Content; Modified: trunk/openutils-mgnlmessages/src/main/java/net/sourceforge/openutils/mgnlmessages/pages/MessagesImpExpPage.java =================================================================== --- trunk/openutils-mgnlmessages/src/main/java/net/sourceforge/openutils/mgnlmessages/pages/MessagesImpExpPage.java 2010-02-09 09:15:26 UTC (rev 1860) +++ trunk/openutils-mgnlmessages/src/main/java/net/sourceforge/openutils/mgnlmessages/pages/MessagesImpExpPage.java 2010-02-09 09:35:30 UTC (rev 1861) @@ -1,20 +1,22 @@ /** - * Copyright Openmind http://www.openmindonline.it * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. + * Magnolia Messages Module (http://www.openmindlab.com/lab/products/groovy.html) + * Copyright(C) null-2010, Openmind S.r.l. http://www.openmindonline.it * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see <http://www.gnu.org/licenses/>. + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see <http://www.gnu.org/licenses/>. */ + package net.sourceforge.openutils.mgnlmessages.pages; import info.magnolia.cms.beans.runtime.Document; Modified: trunk/openutils-mgnlmessages/src/main/java/net/sourceforge/openutils/mgnlmessages/setup/MessagesModuleVersionHandler.java =================================================================== --- trunk/openutils-mgnlmessages/src/main/java/net/sourceforge/openutils/mgnlmessages/setup/MessagesModuleVersionHandler.java 2010-02-09 09:15:26 UTC (rev 1860) +++ trunk/openutils-mgnlmessages/src/main/java/net/sourceforge/openutils/mgnlmessages/setup/MessagesModuleVersionHandler.java 2010-02-09 09:35:30 UTC (rev 1861) @@ -1,20 +1,22 @@ /** - * Copyright Openmind http://www.openmindonline.it * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. + * Magnolia Messages Module (http://www.openmindlab.com/lab/products/groovy.html) + * Copyright(C) null-2010, Openmind S.r.l. http://www.openmindonline.it * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see <http://www.gnu.org/licenses/>. + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see <http://www.gnu.org/licenses/>. */ + package net.sourceforge.openutils.mgnlmessages.setup; import it.openutils.mgnltasks.SimpleModuleVersionHandler; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <fg...@us...> - 2010-09-11 13:34:30
|
Revision: 3047 http://openutils.svn.sourceforge.net/openutils/?rev=3047&view=rev Author: fgiust Date: 2010-09-11 13:34:22 +0000 (Sat, 11 Sep 2010) Log Message: ----------- MESSAGES-2 Missing default translations for menu item and pages (+ some nice icons) Modified Paths: -------------- trunk/openutils-mgnlmessages/src/main/resources/mgnl-bootstrap/messages/config.modules.adminInterface.config.menu.messages.xml trunk/openutils-mgnlmessages/src/main/resources/mgnl-bootstrap/messages/config.modules.messages.pages.messagesEdit.xml trunk/openutils-mgnlmessages/src/main/resources/mgnl-bootstrap/messages/config.modules.messages.pages.messagesExtract.xml trunk/openutils-mgnlmessages/src/main/resources/mgnl-bootstrap/messages/config.modules.messages.pages.messagesImportExport.xml trunk/openutils-mgnlmessages/src/main/resources/net/sourceforge/openutils/mgnlmessages/pages/MessagesImpExpPage.html Added Paths: ----------- trunk/openutils-mgnlmessages/src/main/java/net/sourceforge/openutils/mgnlmessages/pages/IgnoreMissingBundlesMessagesImpl.java trunk/openutils-mgnlmessages/src/main/resources/mgnl-bootstrap/messages-nooverwrite/ trunk/openutils-mgnlmessages/src/main/resources/mgnl-bootstrap/messages-nooverwrite/config.modules.messages.basenames.xml trunk/openutils-mgnlmessages/src/main/resources/mgnl-bootstrap/messages-nooverwrite/config.modules.messages.locales.xml trunk/openutils-mgnlmessages/src/main/resources/mgnl-resources/messages/icons/ico-16-edit.png trunk/openutils-mgnlmessages/src/main/resources/mgnl-resources/messages/icons/ico-16-export.png trunk/openutils-mgnlmessages/src/main/resources/mgnl-resources/messages/icons/ico-24-msg.png trunk/openutils-mgnlmessages/src/main/resources/net/sourceforge/openutils/mgnlmessages/lang/ trunk/openutils-mgnlmessages/src/main/resources/net/sourceforge/openutils/mgnlmessages/lang/messages_en.properties trunk/openutils-mgnlmessages/src/main/resources/net/sourceforge/openutils/mgnlmessages/lang/messages_it.properties Removed Paths: ------------- trunk/openutils-mgnlmessages/src/main/java/net/sourceforge/openutils/mgnlmessages/pages/DefaultMessagesImpl.java trunk/openutils-mgnlmessages/src/main/resources/mgnl-bootstrap/messages/config.modules.adminInterface.config.menu.tools.messagesExtract.xml trunk/openutils-mgnlmessages/src/main/resources/mgnl-bootstrap/messages/config.modules.adminInterface.config.menu.tools.messagesJCR.xml trunk/openutils-mgnlmessages/src/main/resources/mgnl-bootstrap/messages/config.modules.messages.basenames.xml trunk/openutils-mgnlmessages/src/main/resources/mgnl-bootstrap/messages/config.modules.messages.locales.xml trunk/openutils-mgnlmessages/src/main/resources/mgnl-messages/ Deleted: trunk/openutils-mgnlmessages/src/main/java/net/sourceforge/openutils/mgnlmessages/pages/DefaultMessagesImpl.java =================================================================== --- trunk/openutils-mgnlmessages/src/main/java/net/sourceforge/openutils/mgnlmessages/pages/DefaultMessagesImpl.java 2010-09-11 12:28:44 UTC (rev 3046) +++ trunk/openutils-mgnlmessages/src/main/java/net/sourceforge/openutils/mgnlmessages/pages/DefaultMessagesImpl.java 2010-09-11 13:34:22 UTC (rev 3047) @@ -1,114 +0,0 @@ -/** - * - * Magnolia Messages Module (http://www.openmindlab.com/lab/products/groovy.html) - * Copyright(C) null-2010, Openmind S.r.l. http://www.openmindonline.it - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see <http://www.gnu.org/licenses/>. - */ - -package net.sourceforge.openutils.mgnlmessages.pages; - -import info.magnolia.cms.util.ClasspathResourcesUtil; - -import java.io.IOException; -import java.io.InputStream; -import java.util.Locale; -import java.util.PropertyResourceBundle; -import java.util.ResourceBundle; - -import org.apache.commons.io.IOUtils; -import org.apache.commons.lang.StringUtils; - - -/** - * @author molaschi - * @version $Id: DefaultMessagesImpl.java 4124 2008-09-22 14:56:46Z fgiust $ - */ -public class DefaultMessagesImpl extends info.magnolia.cms.i18n.DefaultMessagesImpl -{ - - /** - * @param basename - * @param locale - */ - public DefaultMessagesImpl(String basename, Locale locale) - { - super(basename, locale); - } - - /** - * {@inheritDoc} - */ - @Override - public String get(String key) - { - if (this.getBundle() == null) - { - return "??????"; - } - return super.get(key); - } - - /** - * {@inheritDoc} - */ - @Override - protected ResourceBundle getBundle() - { - if (bundle == null) - { - InputStream stream = null; - try - { - if (StringUtils.isEmpty(getLocale().getCountry())) - { - stream = ClasspathResourcesUtil.getStream("/" - + StringUtils.replace(basename, ".", "/") - + "_" - + getLocale().getLanguage() - + ".properties", false); - } - else - { - stream = ClasspathResourcesUtil.getStream("/" - + StringUtils.replace(basename, ".", "/") - + "_" - + getLocale().getLanguage() - + "_" - + getLocale().getCountry() - + ".properties", false); - } - - if (stream != null) - { - bundle = new PropertyResourceBundle(stream); - } - else - { - bundle = null; - } - } - catch (IOException e) - { - log.error("can't load messages for " + basename); - } - finally - { - IOUtils.closeQuietly(stream); - } - } - return bundle; - } - -} Copied: trunk/openutils-mgnlmessages/src/main/java/net/sourceforge/openutils/mgnlmessages/pages/IgnoreMissingBundlesMessagesImpl.java (from rev 3043, trunk/openutils-mgnlmessages/src/main/java/net/sourceforge/openutils/mgnlmessages/pages/DefaultMessagesImpl.java) =================================================================== --- trunk/openutils-mgnlmessages/src/main/java/net/sourceforge/openutils/mgnlmessages/pages/IgnoreMissingBundlesMessagesImpl.java (rev 0) +++ trunk/openutils-mgnlmessages/src/main/java/net/sourceforge/openutils/mgnlmessages/pages/IgnoreMissingBundlesMessagesImpl.java 2010-09-11 13:34:22 UTC (rev 3047) @@ -0,0 +1,114 @@ +/** + * + * Magnolia Messages Module (http://www.openmindlab.com/lab/products/groovy.html) + * Copyright(C) null-2010, Openmind S.r.l. http://www.openmindonline.it + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see <http://www.gnu.org/licenses/>. + */ + +package net.sourceforge.openutils.mgnlmessages.pages; + +import info.magnolia.cms.util.ClasspathResourcesUtil; + +import java.io.IOException; +import java.io.InputStream; +import java.util.Locale; +import java.util.PropertyResourceBundle; +import java.util.ResourceBundle; + +import org.apache.commons.io.IOUtils; +import org.apache.commons.lang.StringUtils; + + +/** + * @author molaschi + * @version $Id: DefaultMessagesImpl.java 4124 2008-09-22 14:56:46Z fgiust $ + */ +public class IgnoreMissingBundlesMessagesImpl extends info.magnolia.cms.i18n.DefaultMessagesImpl +{ + + /** + * @param basename + * @param locale + */ + public IgnoreMissingBundlesMessagesImpl(String basename, Locale locale) + { + super(basename, locale); + } + + /** + * {@inheritDoc} + */ + @Override + public String get(String key) + { + if (this.getBundle() == null) + { + return "??????"; + } + return super.get(key); + } + + /** + * {@inheritDoc} + */ + @Override + protected ResourceBundle getBundle() + { + if (bundle == null) + { + InputStream stream = null; + try + { + if (StringUtils.isEmpty(getLocale().getCountry())) + { + stream = ClasspathResourcesUtil.getStream("/" + + StringUtils.replace(basename, ".", "/") + + "_" + + getLocale().getLanguage() + + ".properties", false); + } + else + { + stream = ClasspathResourcesUtil.getStream("/" + + StringUtils.replace(basename, ".", "/") + + "_" + + getLocale().getLanguage() + + "_" + + getLocale().getCountry() + + ".properties", false); + } + + if (stream != null) + { + bundle = new PropertyResourceBundle(stream); + } + else + { + bundle = null; + } + } + catch (IOException e) + { + log.error("can't load messages for " + basename); + } + finally + { + IOUtils.closeQuietly(stream); + } + } + return bundle; + } + +} Modified: trunk/openutils-mgnlmessages/src/main/resources/mgnl-bootstrap/messages/config.modules.adminInterface.config.menu.messages.xml =================================================================== --- trunk/openutils-mgnlmessages/src/main/resources/mgnl-bootstrap/messages/config.modules.adminInterface.config.menu.messages.xml 2010-09-11 12:28:44 UTC (rev 3046) +++ trunk/openutils-mgnlmessages/src/main/resources/mgnl-bootstrap/messages/config.modules.adminInterface.config.menu.messages.xml 2010-09-11 13:34:22 UTC (rev 3047) @@ -6,9 +6,15 @@ <sv:property sv:name="jcr:uuid" sv:type="String"> <sv:value>7219418a-40aa-402b-a837-f836ef5845c3</sv:value> </sv:property> + <sv:property sv:name="i18nBasename" sv:type="String"> + <sv:value>net.sourceforge.openutils.mgnlmessages.lang.messages</sv:value> + </sv:property> <sv:property sv:name="icon" sv:type="String"> - <sv:value>/.resources/icons/24/gears.gif</sv:value> + <sv:value>/.resources/messages/icons/ico-24-msg.png</sv:value> </sv:property> + <sv:property sv:name="jcr:createdBy" sv:type="String"> + <sv:value>admin</sv:value> + </sv:property> <sv:property sv:name="label" sv:type="String"> <sv:value>menu.messages</sv:value> </sv:property> @@ -19,6 +25,9 @@ <sv:property sv:name="jcr:primaryType" sv:type="Name"> <sv:value>mgnl:metaData</sv:value> </sv:property> + <sv:property sv:name="jcr:createdBy" sv:type="String"> + <sv:value>admin</sv:value> + </sv:property> <sv:property sv:name="mgnl:activated" sv:type="Boolean"> <sv:value>false</sv:value> </sv:property> @@ -26,7 +35,7 @@ <sv:value>superuser</sv:value> </sv:property> <sv:property sv:name="mgnl:authorid" sv:type="String"> - <sv:value>admin</sv:value> + <sv:value>superuser</sv:value> </sv:property> <sv:property sv:name="mgnl:creationdate" sv:type="Date"> <sv:value>2006-02-15T09:01:47.223+01:00</sv:value> @@ -35,7 +44,7 @@ <sv:value>2008-07-10T11:24:09.671Z</sv:value> </sv:property> <sv:property sv:name="mgnl:lastmodified" sv:type="Date"> - <sv:value>2008-08-18T17:08:02.426+02:00</sv:value> + <sv:value>2010-09-11T14:54:52.456+02:00</sv:value> </sv:property> </sv:node> <sv:node sv:name="edit"> @@ -48,9 +57,15 @@ <sv:property sv:name="jcr:uuid" sv:type="String"> <sv:value>76fdecae-8bf9-445b-bc8d-ca4825f1066c</sv:value> </sv:property> + <sv:property sv:name="i18nBasename" sv:type="String"> + <sv:value>net.sourceforge.openutils.mgnlmessages.lang.messages</sv:value> + </sv:property> <sv:property sv:name="icon" sv:type="String"> - <sv:value>/.resources/media/icons/browse16.gif</sv:value> + <sv:value>/.resources/messages/icons/ico-16-edit.png</sv:value> </sv:property> + <sv:property sv:name="jcr:createdBy" sv:type="String"> + <sv:value>admin</sv:value> + </sv:property> <sv:property sv:name="label" sv:type="String"> <sv:value>Edit</sv:value> </sv:property> @@ -61,6 +76,9 @@ <sv:property sv:name="jcr:primaryType" sv:type="Name"> <sv:value>mgnl:metaData</sv:value> </sv:property> + <sv:property sv:name="jcr:createdBy" sv:type="String"> + <sv:value>admin</sv:value> + </sv:property> <sv:property sv:name="mgnl:activated" sv:type="Boolean"> <sv:value>false</sv:value> </sv:property> @@ -77,7 +95,7 @@ <sv:value>2008-07-10T13:14:46.870Z</sv:value> </sv:property> <sv:property sv:name="mgnl:lastmodified" sv:type="Date"> - <sv:value>2008-07-10T13:15:00.133Z</sv:value> + <sv:value>2010-09-11T14:55:15.704+02:00</sv:value> </sv:property> </sv:node> </sv:node> @@ -91,9 +109,15 @@ <sv:property sv:name="jcr:uuid" sv:type="String"> <sv:value>212932a0-287e-48e4-87ba-fbacd2ebd999</sv:value> </sv:property> + <sv:property sv:name="i18nBasename" sv:type="String"> + <sv:value>net.sourceforge.openutils.mgnlmessages.lang.messages</sv:value> + </sv:property> <sv:property sv:name="icon" sv:type="String"> - <sv:value>/.resources/media/icons/browse16.gif</sv:value> + <sv:value>/.resources/messages/icons/ico-16-export.png</sv:value> </sv:property> + <sv:property sv:name="jcr:createdBy" sv:type="String"> + <sv:value>admin</sv:value> + </sv:property> <sv:property sv:name="label" sv:type="String"> <sv:value>Import/export</sv:value> </sv:property> @@ -104,6 +128,9 @@ <sv:property sv:name="jcr:primaryType" sv:type="Name"> <sv:value>mgnl:metaData</sv:value> </sv:property> + <sv:property sv:name="jcr:createdBy" sv:type="String"> + <sv:value>admin</sv:value> + </sv:property> <sv:property sv:name="mgnl:activated" sv:type="Boolean"> <sv:value>false</sv:value> </sv:property> @@ -111,7 +138,7 @@ <sv:value>admin</sv:value> </sv:property> <sv:property sv:name="mgnl:authorid" sv:type="String"> - <sv:value>admin</sv:value> + <sv:value>superuser</sv:value> </sv:property> <sv:property sv:name="mgnl:creationdate" sv:type="Date"> <sv:value>2008-06-17T14:45:51.521Z</sv:value> @@ -120,7 +147,7 @@ <sv:value>2008-07-15T12:19:15.513Z</sv:value> </sv:property> <sv:property sv:name="mgnl:lastmodified" sv:type="Date"> - <sv:value>2008-07-15T12:19:32.803Z</sv:value> + <sv:value>2010-09-11T14:55:17.775+02:00</sv:value> </sv:property> </sv:node> </sv:node> Deleted: trunk/openutils-mgnlmessages/src/main/resources/mgnl-bootstrap/messages/config.modules.adminInterface.config.menu.tools.messagesExtract.xml =================================================================== --- trunk/openutils-mgnlmessages/src/main/resources/mgnl-bootstrap/messages/config.modules.adminInterface.config.menu.tools.messagesExtract.xml 2010-09-11 12:28:44 UTC (rev 3046) +++ trunk/openutils-mgnlmessages/src/main/resources/mgnl-bootstrap/messages/config.modules.adminInterface.config.menu.tools.messagesExtract.xml 2010-09-11 13:34:22 UTC (rev 3047) @@ -1,44 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<sv:node sv:name="messagesExtract" xmlns:sv="http://www.jcp.org/jcr/sv/1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> - <sv:property sv:name="jcr:primaryType" sv:type="Name"> - <sv:value>mgnl:contentNode</sv:value> - </sv:property> - <sv:property sv:name="jcr:mixinTypes" sv:type="Name"> - <sv:value>mix:lockable</sv:value> - </sv:property> - <sv:property sv:name="jcr:uuid" sv:type="String"> - <sv:value>2d9f9414-9741-441a-b4a3-939c96c0465b</sv:value> - </sv:property> - <sv:property sv:name="icon" sv:type="String"> - <sv:value>/.resources/media/icons/browse16.gif</sv:value> - </sv:property> - <sv:property sv:name="label" sv:type="String"> - <sv:value>Extract Messages</sv:value> - </sv:property> - <sv:property sv:name="onclick" sv:type="String"> - <sv:value>MgnlAdminCentral.showContent('/.magnolia/pages/messagesExtract.html');</sv:value> - </sv:property> - <sv:node sv:name="MetaData"> - <sv:property sv:name="jcr:primaryType" sv:type="Name"> - <sv:value>mgnl:metaData</sv:value> - </sv:property> - <sv:property sv:name="mgnl:activated" sv:type="Boolean"> - <sv:value>false</sv:value> - </sv:property> - <sv:property sv:name="mgnl:activatorid" sv:type="String"> - <sv:value>superuser</sv:value> - </sv:property> - <sv:property sv:name="mgnl:authorid" sv:type="String"> - <sv:value>admin</sv:value> - </sv:property> - <sv:property sv:name="mgnl:creationdate" sv:type="Date"> - <sv:value>2008-06-17T14:45:51.521Z</sv:value> - </sv:property> - <sv:property sv:name="mgnl:lastaction" sv:type="Date"> - <sv:value>2008-07-10T13:14:46.870Z</sv:value> - </sv:property> - <sv:property sv:name="mgnl:lastmodified" sv:type="Date"> - <sv:value>2008-08-13T17:28:41.678+02:00</sv:value> - </sv:property> - </sv:node> -</sv:node> Deleted: trunk/openutils-mgnlmessages/src/main/resources/mgnl-bootstrap/messages/config.modules.adminInterface.config.menu.tools.messagesJCR.xml =================================================================== --- trunk/openutils-mgnlmessages/src/main/resources/mgnl-bootstrap/messages/config.modules.adminInterface.config.menu.tools.messagesJCR.xml 2010-09-11 12:28:44 UTC (rev 3046) +++ trunk/openutils-mgnlmessages/src/main/resources/mgnl-bootstrap/messages/config.modules.adminInterface.config.menu.tools.messagesJCR.xml 2010-09-11 13:34:22 UTC (rev 3047) @@ -1,44 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<sv:node sv:name="messagesJCR" xmlns:sv="http://www.jcp.org/jcr/sv/1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> - <sv:property sv:name="jcr:primaryType" sv:type="Name"> - <sv:value>mgnl:contentNode</sv:value> - </sv:property> - <sv:property sv:name="jcr:uuid" sv:type="String"> - <sv:value>a31dd578-053e-4576-80b6-48780218aa82</sv:value> - </sv:property> - <sv:property sv:name="icon" sv:type="String"> - <sv:value>/.resources/icons/16/gears.gif</sv:value> - </sv:property> - <sv:property sv:name="label" sv:type="String"> - <sv:value>Messages JCR</sv:value> - </sv:property> - <sv:property sv:name="onclick" sv:type="String"> - <sv:value>MgnlAdminCentral.showTree('messages');</sv:value> - </sv:property> - <sv:node sv:name="MetaData"> - <sv:property sv:name="jcr:primaryType" sv:type="Name"> - <sv:value>mgnl:metaData</sv:value> - </sv:property> - <sv:property sv:name="mgnl:Data" sv:type="String"> - <sv:value>MetaData</sv:value> - </sv:property> - <sv:property sv:name="mgnl:activated" sv:type="Boolean"> - <sv:value>false</sv:value> - </sv:property> - <sv:property sv:name="mgnl:activatorid" sv:type="String"> - <sv:value>superuser</sv:value> - </sv:property> - <sv:property sv:name="mgnl:authorid" sv:type="String"> - <sv:value>admin</sv:value> - </sv:property> - <sv:property sv:name="mgnl:creationdate" sv:type="Date"> - <sv:value>2005-05-16T20:46:43.549+02:00</sv:value> - </sv:property> - <sv:property sv:name="mgnl:lastaction" sv:type="Date"> - <sv:value>2008-06-20T11:50:30.531Z</sv:value> - </sv:property> - <sv:property sv:name="mgnl:lastmodified" sv:type="Date"> - <sv:value>2008-08-18T17:09:20.288+02:00</sv:value> - </sv:property> - </sv:node> -</sv:node> Deleted: trunk/openutils-mgnlmessages/src/main/resources/mgnl-bootstrap/messages/config.modules.messages.basenames.xml =================================================================== --- trunk/openutils-mgnlmessages/src/main/resources/mgnl-bootstrap/messages/config.modules.messages.basenames.xml 2010-09-11 12:28:44 UTC (rev 3046) +++ trunk/openutils-mgnlmessages/src/main/resources/mgnl-bootstrap/messages/config.modules.messages.basenames.xml 2010-09-11 13:34:22 UTC (rev 3047) @@ -1,146 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<sv:node sv:name="basenames" xmlns:sv="http://www.jcp.org/jcr/sv/1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> - <sv:property sv:name="jcr:primaryType" sv:type="Name"> - <sv:value>mgnl:content</sv:value> - </sv:property> - <sv:property sv:name="jcr:mixinTypes" sv:type="Name"> - <sv:value>mix:lockable</sv:value> - </sv:property> - <sv:property sv:name="jcr:uuid" sv:type="String"> - <sv:value>ac73a05e-e7c3-4ec2-90a9-9a68c1042ebd</sv:value> - </sv:property> - <sv:node sv:name="MetaData"> - <sv:property sv:name="jcr:primaryType" sv:type="Name"> - <sv:value>mgnl:metaData</sv:value> - </sv:property> - <sv:property sv:name="mgnl:activated" sv:type="Boolean"> - <sv:value>false</sv:value> - </sv:property> - <sv:property sv:name="mgnl:activatorid" sv:type="String"> - <sv:value>admin</sv:value> - </sv:property> - <sv:property sv:name="mgnl:authorid" sv:type="String"> - <sv:value>admin</sv:value> - </sv:property> - <sv:property sv:name="mgnl:creationdate" sv:type="Date"> - <sv:value>2008-07-15T14:01:08.195Z</sv:value> - </sv:property> - <sv:property sv:name="mgnl:lastaction" sv:type="Date"> - <sv:value>2008-07-15T14:01:13.990Z</sv:value> - </sv:property> - <sv:property sv:name="mgnl:lastmodified" sv:type="Date"> - <sv:value>2008-07-15T14:01:14.001Z</sv:value> - </sv:property> - </sv:node> - <sv:node sv:name="admin"> - <sv:property sv:name="jcr:primaryType" sv:type="Name"> - <sv:value>mgnl:contentNode</sv:value> - </sv:property> - <sv:property sv:name="jcr:mixinTypes" sv:type="Name"> - <sv:value>mix:lockable</sv:value> - </sv:property> - <sv:property sv:name="jcr:uuid" sv:type="String"> - <sv:value>6802fef7-bbed-4dd6-9c8e-e1b8069756d6</sv:value> - </sv:property> - <sv:property sv:name="basename" sv:type="String"> - <sv:value>info.magnolia.module.admininterface.messages</sv:value> - </sv:property> - <sv:node sv:name="MetaData"> - <sv:property sv:name="jcr:primaryType" sv:type="Name"> - <sv:value>mgnl:metaData</sv:value> - </sv:property> - <sv:property sv:name="mgnl:activated" sv:type="Boolean"> - <sv:value>false</sv:value> - </sv:property> - <sv:property sv:name="mgnl:activatorid" sv:type="String"> - <sv:value>admin</sv:value> - </sv:property> - <sv:property sv:name="mgnl:authorid" sv:type="String"> - <sv:value>admin</sv:value> - </sv:property> - <sv:property sv:name="mgnl:creationdate" sv:type="Date"> - <sv:value>2008-07-15T14:01:17.570Z</sv:value> - </sv:property> - <sv:property sv:name="mgnl:lastaction" sv:type="Date"> - <sv:value>2008-07-15T14:01:36.269Z</sv:value> - </sv:property> - <sv:property sv:name="mgnl:lastmodified" sv:type="Date"> - <sv:value>2008-07-15T14:02:12.839Z</sv:value> - </sv:property> - </sv:node> - </sv:node> - <sv:node sv:name="templating"> - <sv:property sv:name="jcr:primaryType" sv:type="Name"> - <sv:value>mgnl:contentNode</sv:value> - </sv:property> - <sv:property sv:name="jcr:mixinTypes" sv:type="Name"> - <sv:value>mix:lockable</sv:value> - </sv:property> - <sv:property sv:name="jcr:uuid" sv:type="String"> - <sv:value>b1c9de59-128d-4d8e-bfcf-f3fc5f02ad78</sv:value> - </sv:property> - <sv:property sv:name="basename" sv:type="String"> - <sv:value>info.magnolia.module.admininterface.messages_templating</sv:value> - </sv:property> - <sv:node sv:name="MetaData"> - <sv:property sv:name="jcr:primaryType" sv:type="Name"> - <sv:value>mgnl:metaData</sv:value> - </sv:property> - <sv:property sv:name="mgnl:activated" sv:type="Boolean"> - <sv:value>false</sv:value> - </sv:property> - <sv:property sv:name="mgnl:activatorid" sv:type="String"> - <sv:value>admin</sv:value> - </sv:property> - <sv:property sv:name="mgnl:authorid" sv:type="String"> - <sv:value>admin</sv:value> - </sv:property> - <sv:property sv:name="mgnl:creationdate" sv:type="Date"> - <sv:value>2008-07-15T14:01:17.570Z</sv:value> - </sv:property> - <sv:property sv:name="mgnl:lastaction" sv:type="Date"> - <sv:value>2008-07-15T14:01:44.913Z</sv:value> - </sv:property> - <sv:property sv:name="mgnl:lastmodified" sv:type="Date"> - <sv:value>2008-07-15T14:02:18.430Z</sv:value> - </sv:property> - </sv:node> - </sv:node> - <sv:node sv:name="templating-custom"> - <sv:property sv:name="jcr:primaryType" sv:type="Name"> - <sv:value>mgnl:contentNode</sv:value> - </sv:property> - <sv:property sv:name="jcr:mixinTypes" sv:type="Name"> - <sv:value>mix:lockable</sv:value> - </sv:property> - <sv:property sv:name="jcr:uuid" sv:type="String"> - <sv:value>58009318-ca00-43be-9b3d-62076ee92cce</sv:value> - </sv:property> - <sv:property sv:name="basename" sv:type="String"> - <sv:value>info.magnolia.module.admininterface.messages_templating_custom</sv:value> - </sv:property> - <sv:node sv:name="MetaData"> - <sv:property sv:name="jcr:primaryType" sv:type="Name"> - <sv:value>mgnl:metaData</sv:value> - </sv:property> - <sv:property sv:name="mgnl:activated" sv:type="Boolean"> - <sv:value>false</sv:value> - </sv:property> - <sv:property sv:name="mgnl:activatorid" sv:type="String"> - <sv:value>admin</sv:value> - </sv:property> - <sv:property sv:name="mgnl:authorid" sv:type="String"> - <sv:value>admin</sv:value> - </sv:property> - <sv:property sv:name="mgnl:creationdate" sv:type="Date"> - <sv:value>2008-07-15T14:01:17.570Z</sv:value> - </sv:property> - <sv:property sv:name="mgnl:lastaction" sv:type="Date"> - <sv:value>2008-07-15T14:02:29.547Z</sv:value> - </sv:property> - <sv:property sv:name="mgnl:lastmodified" sv:type="Date"> - <sv:value>2008-07-15T14:02:56.069Z</sv:value> - </sv:property> - </sv:node> - </sv:node> -</sv:node> Deleted: trunk/openutils-mgnlmessages/src/main/resources/mgnl-bootstrap/messages/config.modules.messages.locales.xml =================================================================== --- trunk/openutils-mgnlmessages/src/main/resources/mgnl-bootstrap/messages/config.modules.messages.locales.xml 2010-09-11 12:28:44 UTC (rev 3046) +++ trunk/openutils-mgnlmessages/src/main/resources/mgnl-bootstrap/messages/config.modules.messages.locales.xml 2010-09-11 13:34:22 UTC (rev 3047) @@ -1,220 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<sv:node sv:name="locales" xmlns:sv="http://www.jcp.org/jcr/sv/1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> - <sv:property sv:name="jcr:primaryType" sv:type="Name"> - <sv:value>mgnl:content</sv:value> - </sv:property> - <sv:property sv:name="jcr:mixinTypes" sv:type="Name"> - <sv:value>mix:lockable</sv:value> - </sv:property> - <sv:property sv:name="jcr:uuid" sv:type="String"> - <sv:value>42bfcab1-726a-4576-8c42-98052dd35e7d</sv:value> - </sv:property> - <sv:node sv:name="MetaData"> - <sv:property sv:name="jcr:primaryType" sv:type="Name"> - <sv:value>mgnl:metaData</sv:value> - </sv:property> - <sv:property sv:name="mgnl:activated" sv:type="Boolean"> - <sv:value>false</sv:value> - </sv:property> - <sv:property sv:name="mgnl:activatorid" sv:type="String"> - <sv:value>admin</sv:value> - </sv:property> - <sv:property sv:name="mgnl:authorid" sv:type="String"> - <sv:value>admin</sv:value> - </sv:property> - <sv:property sv:name="mgnl:creationdate" sv:type="Date"> - <sv:value>2008-07-15T14:39:20.864Z</sv:value> - </sv:property> - <sv:property sv:name="mgnl:lastaction" sv:type="Date"> - <sv:value>2008-07-15T14:39:25.135Z</sv:value> - </sv:property> - <sv:property sv:name="mgnl:lastmodified" sv:type="Date"> - <sv:value>2008-07-15T14:39:25.151Z</sv:value> - </sv:property> - </sv:node> - <sv:node sv:name="it"> - <sv:property sv:name="jcr:primaryType" sv:type="Name"> - <sv:value>mgnl:contentNode</sv:value> - </sv:property> - <sv:property sv:name="jcr:uuid" sv:type="String"> - <sv:value>19982d1e-7cd3-4c24-9385-0622da4e7a01</sv:value> - </sv:property> - <sv:property sv:name="country" sv:type="String"> - <sv:value/> - </sv:property> - <sv:property sv:name="language" sv:type="String"> - <sv:value>it</sv:value> - </sv:property> - <sv:node sv:name="MetaData"> - <sv:property sv:name="jcr:primaryType" sv:type="Name"> - <sv:value>mgnl:metaData</sv:value> - </sv:property> - <sv:property sv:name="mgnl:activated" sv:type="Boolean"> - <sv:value>false</sv:value> - </sv:property> - <sv:property sv:name="mgnl:activatorid" sv:type="String"> - <sv:value>admin</sv:value> - </sv:property> - <sv:property sv:name="mgnl:authorid" sv:type="String"> - <sv:value>admin</sv:value> - </sv:property> - <sv:property sv:name="mgnl:creationdate" sv:type="Date"> - <sv:value>2007-05-10T17:29:33.876+02:00</sv:value> - </sv:property> - <sv:property sv:name="mgnl:lastaction" sv:type="Date"> - <sv:value>2008-07-15T14:39:40.745Z</sv:value> - </sv:property> - <sv:property sv:name="mgnl:lastmodified" sv:type="Date"> - <sv:value>2008-07-15T14:39:40.759Z</sv:value> - </sv:property> - </sv:node> - </sv:node> - <sv:node sv:name="en"> - <sv:property sv:name="jcr:primaryType" sv:type="Name"> - <sv:value>mgnl:contentNode</sv:value> - </sv:property> - <sv:property sv:name="jcr:uuid" sv:type="String"> - <sv:value>5473d7e7-2359-4565-bca2-e30690292bee</sv:value> - </sv:property> - <sv:property sv:name="country" sv:type="String"> - <sv:value/> - </sv:property> - <sv:property sv:name="language" sv:type="String"> - <sv:value>en</sv:value> - </sv:property> - <sv:node sv:name="MetaData"> - <sv:property sv:name="jcr:primaryType" sv:type="Name"> - <sv:value>mgnl:metaData</sv:value> - </sv:property> - <sv:property sv:name="mgnl:activated" sv:type="Boolean"> - <sv:value>false</sv:value> - </sv:property> - <sv:property sv:name="mgnl:activatorid" sv:type="String"> - <sv:value>admin</sv:value> - </sv:property> - <sv:property sv:name="mgnl:authorid" sv:type="String"> - <sv:value>admin</sv:value> - </sv:property> - <sv:property sv:name="mgnl:creationdate" sv:type="Date"> - <sv:value>2007-05-10T17:29:24.221+02:00</sv:value> - </sv:property> - <sv:property sv:name="mgnl:lastaction" sv:type="Date"> - <sv:value>2008-07-15T14:39:54.415Z</sv:value> - </sv:property> - <sv:property sv:name="mgnl:lastmodified" sv:type="Date"> - <sv:value>2008-07-15T14:39:54.422Z</sv:value> - </sv:property> - </sv:node> - </sv:node> - <sv:node sv:name="en_US"> - <sv:property sv:name="jcr:primaryType" sv:type="Name"> - <sv:value>mgnl:contentNode</sv:value> - </sv:property> - <sv:property sv:name="jcr:uuid" sv:type="String"> - <sv:value>15998733-7d94-42cf-9b1b-4620b03d92a1</sv:value> - </sv:property> - <sv:property sv:name="country" sv:type="String"> - <sv:value>US</sv:value> - </sv:property> - <sv:property sv:name="language" sv:type="String"> - <sv:value>en</sv:value> - </sv:property> - <sv:node sv:name="MetaData"> - <sv:property sv:name="jcr:primaryType" sv:type="Name"> - <sv:value>mgnl:metaData</sv:value> - </sv:property> - <sv:property sv:name="mgnl:activated" sv:type="Boolean"> - <sv:value>false</sv:value> - </sv:property> - <sv:property sv:name="mgnl:activatorid" sv:type="String"> - <sv:value>admin</sv:value> - </sv:property> - <sv:property sv:name="mgnl:authorid" sv:type="String"> - <sv:value>admin</sv:value> - </sv:property> - <sv:property sv:name="mgnl:creationdate" sv:type="Date"> - <sv:value>2007-05-10T17:29:24.221+02:00</sv:value> - </sv:property> - <sv:property sv:name="mgnl:lastaction" sv:type="Date"> - <sv:value>2008-07-15T14:40:12.510Z</sv:value> - </sv:property> - <sv:property sv:name="mgnl:lastmodified" sv:type="Date"> - <sv:value>2008-07-15T14:40:17.971Z</sv:value> - </sv:property> - </sv:node> - </sv:node> - <sv:node sv:name="de"> - <sv:property sv:name="jcr:primaryType" sv:type="Name"> - <sv:value>mgnl:contentNode</sv:value> - </sv:property> - <sv:property sv:name="jcr:uuid" sv:type="String"> - <sv:value>cbe08170-3c02-454e-8cd2-9d13f4c2b7ec</sv:value> - </sv:property> - <sv:property sv:name="country" sv:type="String"> - <sv:value/> - </sv:property> - <sv:property sv:name="language" sv:type="String"> - <sv:value>de</sv:value> - </sv:property> - <sv:node sv:name="MetaData"> - <sv:property sv:name="jcr:primaryType" sv:type="Name"> - <sv:value>mgnl:metaData</sv:value> - </sv:property> - <sv:property sv:name="mgnl:activated" sv:type="Boolean"> - <sv:value>false</sv:value> - </sv:property> - <sv:property sv:name="mgnl:activatorid" sv:type="String"> - <sv:value>admin</sv:value> - </sv:property> - <sv:property sv:name="mgnl:authorid" sv:type="String"> - <sv:value>admin</sv:value> - </sv:property> - <sv:property sv:name="mgnl:creationdate" sv:type="Date"> - <sv:value>2007-05-10T17:29:34.827+02:00</sv:value> - </sv:property> - <sv:property sv:name="mgnl:lastaction" sv:type="Date"> - <sv:value>2008-07-15T14:40:43.418Z</sv:value> - </sv:property> - <sv:property sv:name="mgnl:lastmodified" sv:type="Date"> - <sv:value>2008-07-15T14:40:43.423Z</sv:value> - </sv:property> - </sv:node> - </sv:node> - <sv:node sv:name="fr"> - <sv:property sv:name="jcr:primaryType" sv:type="Name"> - <sv:value>mgnl:contentNode</sv:value> - </sv:property> - <sv:property sv:name="jcr:uuid" sv:type="String"> - <sv:value>ceb726d2-3e20-43c8-aa84-b919dfca630e</sv:value> - </sv:property> - <sv:property sv:name="country" sv:type="String"> - <sv:value/> - </sv:property> - <sv:property sv:name="language" sv:type="String"> - <sv:value>fr</sv:value> - </sv:property> - <sv:node sv:name="MetaData"> - <sv:property sv:name="jcr:primaryType" sv:type="Name"> - <sv:value>mgnl:metaData</sv:value> - </sv:property> - <sv:property sv:name="mgnl:activated" sv:type="Boolean"> - <sv:value>false</sv:value> - </sv:property> - <sv:property sv:name="mgnl:activatorid" sv:type="String"> - <sv:value>admin</sv:value> - </sv:property> - <sv:property sv:name="mgnl:authorid" sv:type="String"> - <sv:value>admin</sv:value> - </sv:property> - <sv:property sv:name="mgnl:creationdate" sv:type="Date"> - <sv:value>2007-05-10T17:29:34.957+02:00</sv:value> - </sv:property> - <sv:property sv:name="mgnl:lastaction" sv:type="Date"> - <sv:value>2008-07-15T14:40:52.502Z</sv:value> - </sv:property> - <sv:property sv:name="mgnl:lastmodified" sv:type="Date"> - <sv:value>2008-07-15T14:40:52.508Z</sv:value> - </sv:property> - </sv:node> - </sv:node> -</sv:node> Modified: trunk/openutils-mgnlmessages/src/main/resources/mgnl-bootstrap/messages/config.modules.messages.pages.messagesEdit.xml =================================================================== --- trunk/openutils-mgnlmessages/src/main/resources/mgnl-bootstrap/messages/config.modules.messages.pages.messagesEdit.xml 2010-09-11 12:28:44 UTC (rev 3046) +++ trunk/openutils-mgnlmessages/src/main/resources/mgnl-bootstrap/messages/config.modules.messages.pages.messagesEdit.xml 2010-09-11 13:34:22 UTC (rev 3047) @@ -12,10 +12,19 @@ <sv:property sv:name="class" sv:type="String"> <sv:value>net.sourceforge.openutils.mgnlmessages.pages.MessagesEditPage</sv:value> </sv:property> + <sv:property sv:name="i18nBasename" sv:type="String"> + <sv:value>net.sourceforge.openutils.mgnlmessages.lang.messages</sv:value> + </sv:property> + <sv:property sv:name="jcr:createdBy" sv:type="String"> + <sv:value>admin</sv:value> + </sv:property> <sv:node sv:name="MetaData"> <sv:property sv:name="jcr:primaryType" sv:type="Name"> <sv:value>mgnl:metaData</sv:value> </sv:property> + <sv:property sv:name="jcr:createdBy" sv:type="String"> + <sv:value>admin</sv:value> + </sv:property> <sv:property sv:name="mgnl:activated" sv:type="Boolean"> <sv:value>false</sv:value> </sv:property> @@ -32,7 +41,7 @@ <sv:value>2008-07-10T13:14:27.562Z</sv:value> </sv:property> <sv:property sv:name="mgnl:lastmodified" sv:type="Date"> - <sv:value>2008-07-10T13:14:27.573Z</sv:value> + <sv:value>2010-09-11T14:53:26.772+02:00</sv:value> </sv:property> </sv:node> </sv:node> Modified: trunk/openutils-mgnlmessages/src/main/resources/mgnl-bootstrap/messages/config.modules.messages.pages.messagesExtract.xml =================================================================== --- trunk/openutils-mgnlmessages/src/main/resources/mgnl-bootstrap/messages/config.modules.messages.pages.messagesExtract.xml 2010-09-11 12:28:44 UTC (rev 3046) +++ trunk/openutils-mgnlmessages/src/main/resources/mgnl-bootstrap/messages/config.modules.messages.pages.messagesExtract.xml 2010-09-11 13:34:22 UTC (rev 3047) @@ -12,10 +12,19 @@ <sv:property sv:name="class" sv:type="String"> <sv:value>net.sourceforge.openutils.mgnlmessages.pages.ExtractMessagesFromDialogsPage</sv:value> </sv:property> + <sv:property sv:name="i18nBasename" sv:type="String"> + <sv:value>net.sourceforge.openutils.mgnlmessages.lang.messages</sv:value> + </sv:property> + <sv:property sv:name="jcr:createdBy" sv:type="String"> + <sv:value>admin</sv:value> + </sv:property> <sv:node sv:name="MetaData"> <sv:property sv:name="jcr:primaryType" sv:type="Name"> <sv:value>mgnl:metaData</sv:value> </sv:property> + <sv:property sv:name="jcr:createdBy" sv:type="String"> + <sv:value>admin</sv:value> + </sv:property> <sv:property sv:name="mgnl:activated" sv:type="Boolean"> <sv:value>false</sv:value> </sv:property> @@ -23,7 +32,7 @@ <sv:value>superuser</sv:value> </sv:property> <sv:property sv:name="mgnl:authorid" sv:type="String"> - <sv:value>admin</sv:value> + <sv:value>superuser</sv:value> </sv:property> <sv:property sv:name="mgnl:creationdate" sv:type="Date"> <sv:value>2008-06-18T15:49:04.038Z</sv:value> @@ -32,7 +41,7 @@ <sv:value>2008-07-10T13:14:27.562Z</sv:value> </sv:property> <sv:property sv:name="mgnl:lastmodified" sv:type="Date"> - <sv:value>2008-08-13T17:27:16.936+02:00</sv:value> + <sv:value>2010-09-11T14:53:28.260+02:00</sv:value> </sv:property> </sv:node> </sv:node> Modified: trunk/openutils-mgnlmessages/src/main/resources/mgnl-bootstrap/messages/config.modules.messages.pages.messagesImportExport.xml =================================================================== --- trunk/openutils-mgnlmessages/src/main/resources/mgnl-bootstrap/messages/config.modules.messages.pages.messagesImportExport.xml 2010-09-11 12:28:44 UTC (rev 3046) +++ trunk/openutils-mgnlmessages/src/main/resources/mgnl-bootstrap/messages/config.modules.messages.pages.messagesImportExport.xml 2010-09-11 13:34:22 UTC (rev 3047) @@ -12,10 +12,19 @@ <sv:property sv:name="class" sv:type="String"> <sv:value>net.sourceforge.openutils.mgnlmessages.pages.MessagesImpExpPage</sv:value> </sv:property> + <sv:property sv:name="i18nBasename" sv:type="String"> + <sv:value>net.sourceforge.openutils.mgnlmessages.lang.messages</sv:value> + </sv:property> + <sv:property sv:name="jcr:createdBy" sv:type="String"> + <sv:value>admin</sv:value> + </sv:property> <sv:node sv:name="MetaData"> <sv:property sv:name="jcr:primaryType" sv:type="Name"> <sv:value>mgnl:metaData</sv:value> </sv:property> + <sv:property sv:name="jcr:createdBy" sv:type="String"> + <sv:value>admin</sv:value> + </sv:property> <sv:property sv:name="mgnl:activated" sv:type="Boolean"> <sv:value>false</sv:value> </sv:property> @@ -23,7 +32,7 @@ <sv:value>admin</sv:value> </sv:property> <sv:property sv:name="mgnl:authorid" sv:type="String"> - <sv:value>admin</sv:value> + <sv:value>superuser</sv:value> </sv:property> <sv:property sv:name="mgnl:creationdate" sv:type="Date"> <sv:value>2008-06-18T15:49:04.038Z</sv:value> @@ -32,7 +41,7 @@ <sv:value>2008-07-15T10:30:05.518Z</sv:value> </sv:property> <sv:property sv:name="mgnl:lastmodified" sv:type="Date"> - <sv:value>2008-07-15T10:30:16.162Z</sv:value> + <sv:value>2010-09-11T14:53:29.669+02:00</sv:value> </sv:property> </sv:node> </sv:node> Copied: trunk/openutils-mgnlmessages/src/main/resources/mgnl-bootstrap/messages-nooverwrite/config.modules.messages.basenames.xml (from rev 3043, trunk/openutils-mgnlmessages/src/main/resources/mgnl-bootstrap/messages/config.modules.messages.basenames.xml) =================================================================== --- trunk/openutils-mgnlmessages/src/main/resources/mgnl-bootstrap/messages-nooverwrite/config.modules.messages.basenames.xml (rev 0) +++ trunk/openutils-mgnlmessages/src/main/resources/mgnl-bootstrap/messages-nooverwrite/config.modules.messages.basenames.xml 2010-09-11 13:34:22 UTC (rev 3047) @@ -0,0 +1,146 @@ +<?xml version="1.0" encoding="UTF-8"?> +<sv:node sv:name="basenames" xmlns:sv="http://www.jcp.org/jcr/sv/1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> + <sv:property sv:name="jcr:primaryType" sv:type="Name"> + <sv:value>mgnl:content</sv:value> + </sv:property> + <sv:property sv:name="jcr:mixinTypes" sv:type="Name"> + <sv:value>mix:lockable</sv:value> + </sv:property> + <sv:property sv:name="jcr:uuid" sv:type="String"> + <sv:value>ac73a05e-e7c3-4ec2-90a9-9a68c1042ebd</sv:value> + </sv:property> + <sv:node sv:name="MetaData"> + <sv:property sv:name="jcr:primaryType" sv:type="Name"> + <sv:value>mgnl:metaData</sv:value> + </sv:property> + <sv:property sv:name="mgnl:activated" sv:type="Boolean"> + <sv:value>false</sv:value> + </sv:property> + <sv:property sv:name="mgnl:activatorid" sv:type="String"> + <sv:value>admin</sv:value> + </sv:property> + <sv:property sv:name="mgnl:authorid" sv:type="String"> + <sv:value>admin</sv:value> + </sv:property> + <sv:property sv:name="mgnl:creationdate" sv:type="Date"> + <sv:value>2008-07-15T14:01:08.195Z</sv:value> + </sv:property> + <sv:property sv:name="mgnl:lastaction" sv:type="Date"> + <sv:value>2008-07-15T14:01:13.990Z</sv:value> + </sv:property> + <sv:property sv:name="mgnl:lastmodified" sv:type="Date"> + <sv:value>2008-07-15T14:01:14.001Z</sv:value> + </sv:property> + </sv:node> + <sv:node sv:name="admin"> + <sv:property sv:name="jcr:primaryType" sv:type="Name"> + <sv:value>mgnl:contentNode</sv:value> + </sv:property> + <sv:property sv:name="jcr:mixinTypes" sv:type="Name"> + <sv:value>mix:lockable</sv:value> + </sv:property> + <sv:property sv:name="jcr:uuid" sv:type="String"> + <sv:value>6802fef7-bbed-4dd6-9c8e-e1b8069756d6</sv:value> + </sv:property> + <sv:property sv:name="basename" sv:type="String"> + <sv:value>info.magnolia.module.admininterface.messages</sv:value> + </sv:property> + <sv:node sv:name="MetaData"> + <sv:property sv:name="jcr:primaryType" sv:type="Name"> + <sv:value>mgnl:metaData</sv:value> + </sv:property> + <sv:property sv:name="mgnl:activated" sv:type="Boolean"> + <sv:value>false</sv:value> + </sv:property> + <sv:property sv:name="mgnl:activatorid" sv:type="String"> + <sv:value>admin</sv:value> + </sv:property> + <sv:property sv:name="mgnl:authorid" sv:type="String"> + <sv:value>admin</sv:value> + </sv:property> + <sv:property sv:name="mgnl:creationdate" sv:type="Date"> + <sv:value>2008-07-15T14:01:17.570Z</sv:value> + </sv:property> + <sv:property sv:name="mgnl:lastaction" sv:type="Date"> + <sv:value>2008-07-15T14:01:36.269Z</sv:value> + </sv:property> + <sv:property sv:name="mgnl:lastmodified" sv:type="Date"> + <sv:value>2008-07-15T14:02:12.839Z</sv:value> + </sv:property> + </sv:node> + </sv:node> + <sv:node sv:name="templating"> + <sv:property sv:name="jcr:primaryType" sv:type="Name"> + <sv:value>mgnl:contentNode</sv:value> + </sv:property> + <sv:property sv:name="jcr:mixinTypes" sv:type="Name"> + <sv:value>mix:lockable</sv:value> + </sv:property> + <sv:property sv:name="jcr:uuid" sv:type="String"> + <sv:value>b1c9de59-128d-4d8e-bfcf-f3fc5f02ad78</sv:value> + </sv:property> + <sv:property sv:name="basename" sv:type="String"> + <sv:value>info.magnolia.module.admininterface.messages_templating</sv:value> + </sv:property> + <sv:node sv:name="MetaData"> + <sv:property sv:name="jcr:primaryType" sv:type="Name"> + <sv:value>mgnl:metaData</sv:value> + </sv:property> + <sv:property sv:name="mgnl:activated" sv:type="Boolean"> + <sv:value>false</sv:value> + </sv:property> + <sv:property sv:name="mgnl:activatorid" sv:type="String"> + <sv:value>admin</sv:value> + </sv:property> + <sv:property sv:name="mgnl:authorid" sv:type="String"> + <sv:value>admin</sv:value> + </sv:property> + <sv:property sv:name="mgnl:creationdate" sv:type="Date"> + <sv:value>2008-07-15T14:01:17.570Z</sv:value> + </sv:property> + <sv:property sv:name="mgnl:lastaction" sv:type="Date"> + <sv:value>2008-07-15T14:01:44.913Z</sv:value> + </sv:property> + <sv:property sv:name="mgnl:lastmodified" sv:type="Date"> + <sv:value>2008-07-15T14:02:18.430Z</sv:value> + </sv:property> + </sv:node> + </sv:node> + <sv:node sv:name="templating-custom"> + <sv:property sv:name="jcr:primaryType" sv:type="Name"> + <sv:value>mgnl:contentNode</sv:value> + </sv:property> + <sv:property sv:name="jcr:mixinTypes" sv:type="Name"> + <sv:value>mix:lockable</sv:value> + </sv:property> + <sv:property sv:name="jcr:uuid" sv:type="String"> + <sv:value>58009318-ca00-43be-9b3d-62076ee92cce</sv:value> + </sv:property> + <sv:property sv:name="basename" sv:type="String"> + <sv:value>info.magnolia.module.admininterface.messages_templating_custom</sv:value> + </sv:property> + <sv:node sv:name="MetaData"> + <sv:property sv:name="jcr:primaryType" sv:type="Name"> + <sv:value>mgnl:metaData</sv:value> + </sv:property> + <sv:property sv:name="mgnl:activated" sv:type="Boolean"> + <sv:value>false</sv:value> + </sv:property> + <sv:property sv:name="mgnl:activatorid" sv:type="String"> + <sv:value>admin</sv:value> + </sv:property> + <sv:property sv:name="mgnl:authorid" sv:type="String"> + <sv:value>admin</sv:value> + </sv:property> + <sv:property sv:name="mgnl:creationdate" sv:type="Date"> + <sv:value>2008-07-15T14:01:17.570Z</sv:value> + </sv:property> + <sv:property sv:name="mgnl:lastaction" sv:type="Date"> + <sv:value>2008-07-15T14:02:29.547Z</sv:value> + </sv:property> + <sv:property sv:name="mgnl:lastmodified" sv:type="Date"> + <sv:value>2008-07-15T14:02:56.069Z</sv:value> + </sv:property> + </sv:node> + </sv:node> +</sv:node> Copied: trunk/openutils-mgnlmessages/src/main/resources/mgnl-bootstrap/messages-nooverwrite/config.modules.messages.locales.xml (from rev 3043, trunk/openutils-mgnlmessages/src/main/resources/mgnl-bootstrap/messages/config.modules.messages.locales.xml) =================================================================== --- trunk/openutils-mgnlmessages/src/main/resources/mgnl-bootstrap/messages-nooverwrite/config.modules.messages.locales.xml (rev 0) +++ trunk/openutils-mgnlmessages/src/main/resources/mgnl-bootstrap/messages-nooverwrite/config.modules.messages.locales.xml 2010-09-11 13:34:22 UTC (rev 3047) @@ -0,0 +1,220 @@ +<?xml version="1.0" encoding="UTF-8"?> +<sv:node sv:name="locales" xmlns:sv="http://www.jcp.org/jcr/sv/1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> + <sv:property sv:name="jcr:primaryType" sv:type="Name"> + <sv:value>mgnl:content</sv:value> + </sv:property> + <sv:property sv:name="jcr:mixinTypes" sv:type="Name"> + <sv:value>mix:lockable</sv:value> + </sv:property> + <sv:property sv:name="jcr:uuid" sv:type="String"> + <sv:value>42bfcab1-726a-4576-8c42-98052dd35e7d</sv:value> + </sv:property> + <sv:node sv:name="MetaData"> + <sv:property sv:name="jcr:primaryType" sv:type="Name"> + <sv:value>mgnl:metaData</sv:value> + </sv:property> + <sv:property sv:name="mgnl:activated" sv:type="Boolean"> + <sv:value>false</sv:value> + </sv:property> + <sv:property sv:name="mgnl:activatorid" sv:type="String"> + <sv:value>admin</sv:value> + </sv:property> + <sv:property sv:name="mgnl:authorid" sv:type="String"> + <sv:value>admin</sv:value> + </sv:property> + <sv:property sv:name="mgnl:creationdate" sv:type="Date"> + <sv:value>2008-07-15T14:39:20.864Z</sv:value> + </sv:property> + <sv:property sv:name="mgnl:lastaction" sv:type="Date"> + <sv:value>2008-07-15T14:39:25.135Z</sv:value> + </sv:property> + <sv:property sv:name="mgnl:lastmodified" sv:type="Date"> + <sv:value>2008-07-15T14:39:25.151Z</sv:value> + </sv:property> + </sv:node> + <sv:node sv:name="it"> + <sv:property sv:name="jcr:primaryType" sv:type="Name"> + <sv:value>mgnl:contentNode</sv:value> + </sv:property> + <sv:property sv:name="jcr:uuid" sv:type="String"> + <sv:value>19982d1e-7cd3-4c24-9385-0622da4e7a01</sv:value> + </sv:property> + <sv:property sv:name="country" sv:type="String"> + <sv:value/> + </sv:property> + <sv:property sv:name="language" sv:type="String"> + <sv:value>it</sv:value> + </sv:property> + <sv:node sv:name="MetaData"> + <sv:property sv:name="jcr:primaryType" sv:type="Name"> + <sv:value>mgnl:metaData</sv:value> + </sv:property> + <sv:property sv:name="mgnl:activated" sv:type="Boolean"> + <sv:value>false</sv:value> + </sv:property> + <sv:property sv:name="mgnl:activatorid" sv:type="String"> + <sv:value>admin</sv:value> + </sv:property> + <sv:property sv:name="mgnl:authorid" sv:type="String"> + <sv:value>admin</sv:value> + </sv:property> + <sv:property sv:name="mgnl:creationdate" sv:type="Date"> + <sv:value>2007-05-10T17:29:33.876+02:00</sv:value> + </sv:property> + <sv:property sv:name="mgnl:lastaction" sv:type="Date"> + <sv:value>2008-07-15T14:39:40.745Z</sv:value> + </sv:property> + <sv:property sv:name="mgnl:lastmodified" sv:type="Date"> + <sv:value>2008-07-15T14:39:40.759Z</sv:value> + </sv:property> + </sv:node> + </sv:node> + <sv:node sv:name="en"> + <sv:property sv:name="jcr:primaryType" sv:type="Name"> + <sv:value>mgnl:contentNode</sv:value> + </sv:property> + <sv:property sv:name="jcr:uuid" sv:type="String"> + <sv:value>5473d7e7-2359-4565-bca2-e30690292bee</sv:value> + </sv:property> + <sv:property sv:name="country" sv:type="String"> + <sv:value/> + </sv:property> + <sv:property sv:name="language" sv:type="String"> + <sv:value>en</sv:value> + </sv:property> + <sv:node sv:name="MetaData"> + <sv:property sv:name="jcr:primaryType" sv:type="Name"> + <sv:value>mgnl:metaData</sv:value> + </sv:property> + <sv:property sv:name="mgnl:activated" sv:type="Boolean"> + <sv:value>false</sv:value> + </sv:property> + <sv:property sv:name="mgnl:activatorid" sv:type="String"> + <sv:value>admin</sv:value> + </sv:property> + <sv:property sv:name="mgnl:authorid" sv:type="String"> + <sv:value>admin</sv:value> + </sv:property> + <sv:property sv:name="mgnl:creationdate" sv:type="Date"> + <sv:value>2007-05-10T17:29:24.221+02:00</sv:value> + </sv:property> + <sv:property sv:name="mgnl:lastaction" sv:type="Date"> + <sv:value>2008-07-15T14:39:54.415Z</sv:value> + </sv:property> + <sv:property sv:name="mgnl:lastmodified" sv:type="Date"> + <sv:value>2008-07-15T14:39:54.422Z</sv:value> + </sv:property> + </sv:node> + </sv:node> + <sv:node sv:name="en_US"> + <sv:property sv:name="jcr:primaryType" sv:type="Name"> + <sv:value>mgnl:contentNode</sv:value> + </sv:property> + <sv:property sv:name="jcr:uuid" sv:type="String"> + <sv:value>15998733-7d94-42cf-9b1b-4620b03d92a1</sv:value> + </sv:property> + <sv:property sv:name="country" sv:type="String"> + <sv:value>US</sv:value> + </sv:property> + <sv:property sv:name="language" sv:type="String"> + <sv:value>en</sv:value> + </sv:property> + <sv:node sv:name="MetaData"> + <sv:property sv:name="jcr:primaryType" sv:type="Name"> + <sv:value>mgnl:metaData</sv:value> + </sv:property> + <sv:property sv:name="mgnl:activated" sv:type="Boolean"> + <sv:value>false</sv:value> + </sv:property> + <sv:property sv:name="mgnl:activatorid" sv:type="String"> + <sv:value>admin</sv:value> + </sv:property> + <sv:property sv:name="mgnl:authorid" sv:type="String"> + <sv:value>admin</sv:value> + </sv:property> + <sv:property sv:name="mgnl:creationdate" sv:type="Date"> + <sv:value>2007-05-10T17:29:24.221+02:00</sv:value> + </sv:property> + <sv:property sv:name="mgnl:lastaction" sv:type="Date"> + <sv:value>2008-07-15T14:40:12.510Z</sv:value> + </sv:property> + <sv:property sv:name="mgnl:lastmodified" sv:type="Date"> + <sv:value>2008-07-15T14:40:17.971Z</sv:value> + </sv:property> + </sv:node> + </sv:node> + <sv:node sv:name="de"> + <sv:property sv:name="jcr:primaryType" sv:type="Name"> + <sv:value>mgnl:contentNode</sv:value> + </sv:property> + <sv:property sv:name="jcr:uuid" sv:type="String"> + <sv:value>cbe08170-3c02-454e-8cd2-9d13f4c2b7ec</sv:value> + </sv:property> + <sv:property sv:name="country" sv:type="String"> + <sv:value/> + </sv:property> + <sv:property sv:name="language" sv:type="String"> + <sv:value>de</sv:value> + </sv:property> + <sv:node sv:name="MetaData"> + <sv:property sv:name="jcr:primaryType" sv:type="Name"> + <sv:value>mgnl:metaData</sv:value> + </sv:property> + <sv:property sv:name="mgnl:activated" sv:type="Boolean"> + <sv:value>false</sv:value> + </sv:property> + <sv:property sv:name="mgnl:activatorid" sv:type="String"> + <sv:value>admin</sv:value> + </sv:property> + <sv:property sv:name="mgnl:authorid" sv:type="String"> + <sv:value>admin</sv:value> + </sv:property> + <sv:property sv:name="mgnl:creationdate" sv:type="Date"> + <sv:value>2007-05-10T17:29:34.827+02:00</sv:value> + </sv:property> + <sv:property sv:name="mgnl:lastaction" sv:type="Date"> + <sv:value>2008-07-15T14:40:43.418Z</sv:value> + </sv:property> + <sv:property sv:name="mgnl:lastmodified" sv:type="Date"> + <sv:value>2008-07-15T14:40:43.423Z</sv:value> + </sv:property> + </sv:node> + </sv:node> + <sv:node sv:name="fr"> + <sv:property sv:name="jcr:primaryType" sv:type="Name"> + <sv:value>mgnl:contentNode</sv:value> + </sv:property> + <sv:property sv:name="jcr:uuid" sv:type="String"> + <sv:value>ceb726d2-3e20-43c8-aa84-b919dfca630e</sv:value> + </sv:property> + <sv:property sv:name="country" sv:type="String"> + <sv:value/> + </sv:property> + <sv:property sv:name="language" sv:type="String"> + <sv:value>fr</sv:value> + </sv:property> + <sv:node sv:name="MetaData"> + <sv:property sv:name="jcr:primaryType" sv:type="Name"> + <sv:value>mgnl:metaData</sv:value> + </sv:property> + <sv:property sv:name="mgnl:activated" sv:type="Boolean"> + <sv:value>false</sv:value> + </sv:property> + <sv:property sv:name="mgnl:activatorid" sv:type="String"> + <sv:value>admin</sv:value> + </sv:property> + <sv:property sv:name="mgnl:authorid" sv:type="String"> + <sv:value>admin</sv:value> + </sv:property> + <sv:property sv:name="mgnl:creationdate" sv:type="Date"> + <sv:value>2007-05-10T17:29:34.957+02:00</sv:value> + </sv:property> + <sv:property sv:name="mgnl:lastaction" sv:type="Date"> + <sv:value>2008-07-15T14:40:52.502Z</sv:value> + </sv:property> + <sv:property sv:name="mgnl:lastmodified" sv:type="Date"> + <sv:value>2008-07-15T14:40:52.508Z</sv:value> + </sv:property> + </sv:node> + </sv:node> +</sv:node> Added: trunk/openutils-mgnlmessages/src/main/resources/mgnl-resources/messages/icons/ico-16-edit.png =================================================================== (Binary files differ) Property changes on: trunk/openutils-mgnlmessages/src/main/resources/mgnl-resources/messages/icons/ico-16-edit.png ___________________________________________________________________ Added: svn:mime-type + image/png Added: trunk/openutils-mgnlmessages/src/main/resources/mgnl-resources/messages/icons/ico-16-export.png =================================================================== (Binary files differ) Property changes on: trunk/openutils-mgnlmessages/src/main/resources/mgnl-resources/messages/icons/ico-16-export.png ___________________________________________________________________ Added: svn:mime-type + image/png Added: trunk/openutils-mgnlmessages/src/main/resources/mgnl-resources/messages/icons/ico-24-msg.png =================================================================== (Binary files differ) Property changes on: trunk/openutils-mgnlmessages/src/main/resources/mgnl-resources/messages/icons/ico-24-msg.png ___________________________________________________________________ Added: svn:mime-type + image/png Copied: trunk/openutils-mgnlmessages/src/main/resources/net/sourceforge/openutils/mgnlmessages/lang/messages_en.properties (from rev 3043, trunk/openutils-mgnlmessages/src/main/resources/mgnl-messages/messages/messages_en.properties) =================================================================== --- trunk/openutils-mgnlmessages/src/main/resources/net/sourceforge/... [truncated message content] |
From: <fg...@us...> - 2010-11-17 14:32:16
|
Revision: 3141 http://openutils.svn.sourceforge.net/openutils/?rev=3141&view=rev Author: fgiust Date: 2010-11-17 14:32:10 +0000 (Wed, 17 Nov 2010) Log Message: ----------- MESSAGES-8 MessageManager should automatically use bundles defined in messages/basename configuration Modified Paths: -------------- trunk/openutils-mgnlmessages/src/main/resources/META-INF/magnolia/messages.xml trunk/openutils-mgnlmessages/src/main/resources/mgnl-bootstrap/messages-nooverwrite/config.modules.messages.basenames.xml Added Paths: ----------- trunk/openutils-mgnlmessages/src/main/java/net/sourceforge/openutils/mgnlmessages/i18n/MultiBundleMessagesImpl.java trunk/openutils-mgnlmessages/src/main/java/net/sourceforge/openutils/mgnlmessages/i18n/MultiBundleMgnlMessagesManager.java Added: trunk/openutils-mgnlmessages/src/main/java/net/sourceforge/openutils/mgnlmessages/i18n/MultiBundleMessagesImpl.java =================================================================== --- trunk/openutils-mgnlmessages/src/main/java/net/sourceforge/openutils/mgnlmessages/i18n/MultiBundleMessagesImpl.java (rev 0) +++ trunk/openutils-mgnlmessages/src/main/java/net/sourceforge/openutils/mgnlmessages/i18n/MultiBundleMessagesImpl.java 2010-11-17 14:32:10 UTC (rev 3141) @@ -0,0 +1,108 @@ +/** + * + * Magnolia Messages Module (http://www.openmindlab.com/lab/products/groovy.html) + * Copyright(C) 2008-2010, Openmind S.r.l. http://www.openmindonline.it + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see <http://www.gnu.org/licenses/>. + */ + +package net.sourceforge.openutils.mgnlmessages.i18n; + +import info.magnolia.cms.i18n.AbstractMessagesImpl; + +import java.util.ArrayList; +import java.util.HashSet; +import java.util.Iterator; +import java.util.List; +import java.util.Locale; +import java.util.MissingResourceException; +import java.util.Set; + +import net.sourceforge.openutils.mgnlmessages.configuration.MessagesConfigurationManager; + +import org.apache.commons.collections.IteratorUtils; +import org.apache.commons.lang.StringUtils; + + +/** + * @author molaschi + * @version $Id$ + */ +public class MultiBundleMessagesImpl extends AbstractMessagesImpl +{ + + private List<OpenutilsMessagesImpl> messages; + + /** + * @param basename + * @param locale + */ + public MultiBundleMessagesImpl(Locale locale) + { + super(null, locale); + messages = new ArrayList<OpenutilsMessagesImpl>(); + for (String basename : MessagesConfigurationManager.getBaseNames()) + { + messages.add(new OpenutilsMessagesImpl(basename, locale)); + } + } + + /** + * {@inheritDoc} + */ + public String get(String key) + { + for (OpenutilsMessagesImpl message : messages) + { + String value = message.get(key); + if (StringUtils.isNotBlank(value) && !StringUtils.startsWith(value, "???")) + { + return value; + } + } + return "???" + key + "???"; + } + + /** + * {@inheritDoc} + */ + public Iterator<String> keys() + { + Set<String> keys = new HashSet<String>(); + for (OpenutilsMessagesImpl message : messages) + { + try + { + keys.addAll(IteratorUtils.toList(message.keys())); + } + catch (MissingResourceException ex) + { + // ignore + } + } + return keys.iterator(); + } + + /** + * {@inheritDoc} + */ + public void reload() throws Exception + { + for (OpenutilsMessagesImpl message : messages) + { + message.reload(); + } + } + +} Property changes on: trunk/openutils-mgnlmessages/src/main/java/net/sourceforge/openutils/mgnlmessages/i18n/MultiBundleMessagesImpl.java ___________________________________________________________________ Added: svn:mime-type + text/plain Added: svn:keywords + Author Date Id Revision Added: svn:eol-style + native Added: trunk/openutils-mgnlmessages/src/main/java/net/sourceforge/openutils/mgnlmessages/i18n/MultiBundleMgnlMessagesManager.java =================================================================== --- trunk/openutils-mgnlmessages/src/main/java/net/sourceforge/openutils/mgnlmessages/i18n/MultiBundleMgnlMessagesManager.java (rev 0) +++ trunk/openutils-mgnlmessages/src/main/java/net/sourceforge/openutils/mgnlmessages/i18n/MultiBundleMgnlMessagesManager.java 2010-11-17 14:32:10 UTC (rev 3141) @@ -0,0 +1,48 @@ +/** + * + * Magnolia Messages Module (http://www.openmindlab.com/lab/products/groovy.html) + * Copyright(C) 2008-2010, Openmind S.r.l. http://www.openmindonline.it + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see <http://www.gnu.org/licenses/>. + */ + +package net.sourceforge.openutils.mgnlmessages.i18n; + +import info.magnolia.cms.i18n.DefaultMessagesManager; +import info.magnolia.cms.i18n.Messages; +import info.magnolia.cms.i18n.MessagesChain; + + +/** + * @author molaschi + * @version $Id$ + */ +public class MultiBundleMgnlMessagesManager extends DefaultMessagesManager +{ + + /** + * {@inheritDoc} + */ + @Override + protected Messages newMessages(MessagesID messagesID) + { + + Messages parentMessages = super.newMessages(messagesID); + Messages repositoryMsg = new RepositoryMessagesImpl(messagesID.getBasename(), messagesID.getLocale()); + Messages multiBundle = new MultiBundleMessagesImpl(messagesID.getLocale()); + + return new MessagesChain(repositoryMsg).chain(multiBundle).chain(parentMessages); + } + +} \ No newline at end of file Property changes on: trunk/openutils-mgnlmessages/src/main/java/net/sourceforge/openutils/mgnlmessages/i18n/MultiBundleMgnlMessagesManager.java ___________________________________________________________________ Added: svn:mime-type + text/plain Added: svn:keywords + Author Date Id Revision Added: svn:eol-style + native Modified: trunk/openutils-mgnlmessages/src/main/resources/META-INF/magnolia/messages.xml =================================================================== --- trunk/openutils-mgnlmessages/src/main/resources/META-INF/magnolia/messages.xml 2010-11-12 16:29:56 UTC (rev 3140) +++ trunk/openutils-mgnlmessages/src/main/resources/META-INF/magnolia/messages.xml 2010-11-17 14:32:10 UTC (rev 3141) @@ -10,7 +10,7 @@ <properties> <property> <name>info.magnolia.cms.i18n.MessagesManager</name> - <value>net.sourceforge.openutils.mgnlmessages.i18n.OpenutilsMgnlMessagesManager</value> + <value>net.sourceforge.openutils.mgnlmessages.i18n.MultiBundleMgnlMessagesManager</value> </property> </properties> <dependencies> Modified: trunk/openutils-mgnlmessages/src/main/resources/mgnl-bootstrap/messages-nooverwrite/config.modules.messages.basenames.xml =================================================================== --- trunk/openutils-mgnlmessages/src/main/resources/mgnl-bootstrap/messages-nooverwrite/config.modules.messages.basenames.xml 2010-11-12 16:29:56 UTC (rev 3140) +++ trunk/openutils-mgnlmessages/src/main/resources/mgnl-bootstrap/messages-nooverwrite/config.modules.messages.basenames.xml 2010-11-17 14:32:10 UTC (rev 3141) @@ -69,78 +69,4 @@ </sv:property> </sv:node> </sv:node> - <sv:node sv:name="templating"> - <sv:property sv:name="jcr:primaryType" sv:type="Name"> - <sv:value>mgnl:contentNode</sv:value> - </sv:property> - <sv:property sv:name="jcr:mixinTypes" sv:type="Name"> - <sv:value>mix:lockable</sv:value> - </sv:property> - <sv:property sv:name="jcr:uuid" sv:type="String"> - <sv:value>b1c9de59-128d-4d8e-bfcf-f3fc5f02ad78</sv:value> - </sv:property> - <sv:property sv:name="basename" sv:type="String"> - <sv:value>info.magnolia.module.admininterface.messages_templating</sv:value> - </sv:property> - <sv:node sv:name="MetaData"> - <sv:property sv:name="jcr:primaryType" sv:type="Name"> - <sv:value>mgnl:metaData</sv:value> - </sv:property> - <sv:property sv:name="mgnl:activated" sv:type="Boolean"> - <sv:value>false</sv:value> - </sv:property> - <sv:property sv:name="mgnl:activatorid" sv:type="String"> - <sv:value>admin</sv:value> - </sv:property> - <sv:property sv:name="mgnl:authorid" sv:type="String"> - <sv:value>admin</sv:value> - </sv:property> - <sv:property sv:name="mgnl:creationdate" sv:type="Date"> - <sv:value>2008-07-15T14:01:17.570Z</sv:value> - </sv:property> - <sv:property sv:name="mgnl:lastaction" sv:type="Date"> - <sv:value>2008-07-15T14:01:44.913Z</sv:value> - </sv:property> - <sv:property sv:name="mgnl:lastmodified" sv:type="Date"> - <sv:value>2008-07-15T14:02:18.430Z</sv:value> - </sv:property> - </sv:node> - </sv:node> - <sv:node sv:name="templating-custom"> - <sv:property sv:name="jcr:primaryType" sv:type="Name"> - <sv:value>mgnl:contentNode</sv:value> - </sv:property> - <sv:property sv:name="jcr:mixinTypes" sv:type="Name"> - <sv:value>mix:lockable</sv:value> - </sv:property> - <sv:property sv:name="jcr:uuid" sv:type="String"> - <sv:value>58009318-ca00-43be-9b3d-62076ee92cce</sv:value> - </sv:property> - <sv:property sv:name="basename" sv:type="String"> - <sv:value>info.magnolia.module.admininterface.messages_templating_custom</sv:value> - </sv:property> - <sv:node sv:name="MetaData"> - <sv:property sv:name="jcr:primaryType" sv:type="Name"> - <sv:value>mgnl:metaData</sv:value> - </sv:property> - <sv:property sv:name="mgnl:activated" sv:type="Boolean"> - <sv:value>false</sv:value> - </sv:property> - <sv:property sv:name="mgnl:activatorid" sv:type="String"> - <sv:value>admin</sv:value> - </sv:property> - <sv:property sv:name="mgnl:authorid" sv:type="String"> - <sv:value>admin</sv:value> - </sv:property> - <sv:property sv:name="mgnl:creationdate" sv:type="Date"> - <sv:value>2008-07-15T14:01:17.570Z</sv:value> - </sv:property> - <sv:property sv:name="mgnl:lastaction" sv:type="Date"> - <sv:value>2008-07-15T14:02:29.547Z</sv:value> - </sv:property> - <sv:property sv:name="mgnl:lastmodified" sv:type="Date"> - <sv:value>2008-07-15T14:02:56.069Z</sv:value> - </sv:property> - </sv:node> - </sv:node> -</sv:node> +</sv:node> \ No newline at end of file This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <die...@us...> - 2011-08-25 17:08:41
|
Revision: 3632 http://openutils.svn.sourceforge.net/openutils/?rev=3632&view=rev Author: diego_schivo Date: 2011-08-25 17:08:35 +0000 (Thu, 25 Aug 2011) Log Message: ----------- MESSAGES-14 JsonStore Modified Paths: -------------- trunk/openutils-mgnlmessages/src/main/java/net/sourceforge/openutils/mgnlmessages/pages/MessagesEditPage.java trunk/openutils-mgnlmessages/src/main/resources/mgnl-resources/messages/js/MessagesViewer.js trunk/openutils-mgnlmessages/src/main/resources/mgnl-resources/messages/js/SearchPanel.js Modified: trunk/openutils-mgnlmessages/src/main/java/net/sourceforge/openutils/mgnlmessages/pages/MessagesEditPage.java =================================================================== --- trunk/openutils-mgnlmessages/src/main/java/net/sourceforge/openutils/mgnlmessages/pages/MessagesEditPage.java 2011-08-25 15:44:09 UTC (rev 3631) +++ trunk/openutils-mgnlmessages/src/main/java/net/sourceforge/openutils/mgnlmessages/pages/MessagesEditPage.java 2011-08-25 17:08:35 UTC (rev 3632) @@ -223,6 +223,12 @@ return JSON_VIEW; } + public String search() + { + json = "[ {id: '0', key: 'about.build'}, {id: '1', key: 'about.title'} ]"; + return JSON_VIEW; + } + /** * move a node (from AdminTreeMVCHandler copymoveNode) * @param source source node Modified: trunk/openutils-mgnlmessages/src/main/resources/mgnl-resources/messages/js/MessagesViewer.js =================================================================== --- trunk/openutils-mgnlmessages/src/main/resources/mgnl-resources/messages/js/MessagesViewer.js 2011-08-25 15:44:09 UTC (rev 3631) +++ trunk/openutils-mgnlmessages/src/main/resources/mgnl-resources/messages/js/MessagesViewer.js 2011-08-25 17:08:35 UTC (rev 3632) @@ -35,6 +35,10 @@ mainPanel.changeKey(key); }); + search.on('selectedKey', function(key) { + mainPanel.changeKey(key); + }); + var viewport = new Ext.Viewport( { layout :'border', items : [ Modified: trunk/openutils-mgnlmessages/src/main/resources/mgnl-resources/messages/js/SearchPanel.js =================================================================== --- trunk/openutils-mgnlmessages/src/main/resources/mgnl-resources/messages/js/SearchPanel.js 2011-08-25 15:44:09 UTC (rev 3631) +++ trunk/openutils-mgnlmessages/src/main/resources/mgnl-resources/messages/js/SearchPanel.js 2011-08-25 17:08:35 UTC (rev 3632) @@ -1,13 +1,65 @@ SearchPanel = function() { + var ds = new Ext.data.JsonStore( { + fields : [ 'id', 'key' ], + url: pageUrl + }); + var pn = this; + + var sm = new Ext.grid.RowSelectionModel( { + singleSelect :true, + listeners : { + rowselect : function(selmodel, rowIndex, r) { + pn.fireEvent('selectedKey', r.get('key')); + } + } + }); + + var cm = new Ext.grid.ColumnModel( [ { + id :'key', + header :"Message key", + dataIndex :'key', + editor :new Ext.form.TextField( { + allowBlank :false + }) + } ]); + + cm.defaultSortable = true; + SearchPanel.superclass.constructor.call(this, { id :'search', region :'center', title :'Search', margins :'0 0 0 0', - cmargins :'0 0 0 0' + cmargins :'0 0 0 0', + store :ds, + sm :sm, + cm :cm, + autoExpandColumn :'key', + clicksToEdit :2, + tbar : [ 'Filter: ', ' ', new SearchPanel.FilterField( { + store :ds + }) ] }); } -Ext.extend(SearchPanel, Ext.Panel); +Ext.extend(SearchPanel, Ext.grid.EditorGridPanel); + +SearchPanel.FilterField = Ext.extend(Ext.form.TriggerField, { + initComponent : function() { + SearchPanel.FilterField.superclass.initComponent.call(this); + this.on('keyup', function(f, e) { + this.onTriggerClick(); + }, this); + }, + + enableKeyEvents :true, + + triggerClass :'x-form-search-trigger', + + onTriggerClick : function() { + var v = this.getRawValue(); + this.store.load({ params: { command: 'search', text: v } }); + } +}); \ No newline at end of file This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |