This is an automated email from the git hooks/post-receive script. New commit to branch feature/1183_Fenetre_Popup_infos_manquantes in repository lima. See http://git.chorem.org/lima.git commit 5752b0dc540e563d2167a4e20e175c8718794d35 Author: dcosse <cosse@codelutin.com> Date: Mon Mar 2 19:04:38 2015 +0100 fixes #1183 Ajout d'une description plus complète de lima dans la partie "A propos" --- .../java/org/chorem/lima/ui/MainViewHandler.java | 22 ++++++++++++++-------- .../resources/i18n/lima-swing_fr_FR.properties | 2 +- 2 files changed, 15 insertions(+), 9 deletions(-) diff --git a/lima-swing/src/main/java/org/chorem/lima/ui/MainViewHandler.java b/lima-swing/src/main/java/org/chorem/lima/ui/MainViewHandler.java index 1bdba49..1d66c5a 100644 --- a/lima-swing/src/main/java/org/chorem/lima/ui/MainViewHandler.java +++ b/lima-swing/src/main/java/org/chorem/lima/ui/MainViewHandler.java @@ -266,6 +266,17 @@ public class MainViewHandler { } } + protected JEditorPane getJEditorPane() { + JEditorPane translateArea = new JEditorPane(); + translateArea.setContentType("text/html"); + translateArea.setEditable(false); + if (translateArea.getFont() != null) { + translateArea.setFont(translateArea.getFont().deriveFont((float) 11)); + } + translateArea.setBorder(null); + return translateArea; + } + public void showAbout(JAXXContext context) { MainView ui = getUI(context); AboutPanel about = new AboutPanel(); @@ -276,16 +287,11 @@ public class MainViewHandler { about.setLicenseFile("META-INF/lima-LICENSE.txt"); about.setThirdpartyFile("META-INF/lima-THIRD-PARTY.txt"); - JScrollPane component = new JScrollPane(); - JEditorPane translateArea = new JEditorPane(); - translateArea.setContentType("text/html"); - translateArea.setEditable(false); - if (translateArea.getFont() != null) { - translateArea.setFont(translateArea.getFont().deriveFont((float) 11)); - } - translateArea.setBorder(null); + JEditorPane translateArea = getJEditorPane(); String text = t("lima.help.about.translate.content"); translateArea.setText(text); + + JScrollPane component = new JScrollPane(); component.getViewport().add(translateArea); about.getTabs().add(t("lima.help.about.translate.title"), component); about.init(); diff --git a/lima-swing/src/main/resources/i18n/lima-swing_fr_FR.properties b/lima-swing/src/main/resources/i18n/lima-swing_fr_FR.properties index 282493f..5d62add 100644 --- a/lima-swing/src/main/resources/i18n/lima-swing_fr_FR.properties +++ b/lima-swing/src/main/resources/i18n/lima-swing_fr_FR.properties @@ -337,7 +337,7 @@ lima.fiscalYears=Exercices lima.help=Aide lima.help.about=À Propos lima.help.about.title=À propos de Lima... -lima.help.about.title.description=Logiciel de comptabilité Libre +lima.help.about.title.description=<h2>Acronyme de Lutin Invoice Monitoring and Accounting</h2><p>Lima est un logiciel de comptabilité libre pensé pour être le plus ergonomique possible et facile d'accès à tout utilisateur, quelque soit son niveau en comptabilité \: débutant comme confirmé. La particularité de Lima est qu'il s'agit d'un produit évolutif permettant de répondre aux besoins spécifiques de toute entreprise ou organisation, tout en garantissant le maintien des données comptabl [...] lima.help.about.translate.content=<h2>Comment traduire Lima</h2>Vous pouvez nous aider à traduire Lima.<hr/><br/><ul><li>Récupérer le fichier <strong>lima-i18n.csv</strong> dans le répertoire <strong>i18n</strong></li><li>ouvrez le avec un tableur (le caractère séprateur est une Tabultation)</li><li>Traduisez, Améliorer, ...</li><li>Enfin renvoyez-le nous</li></ul><br/>Nous intégrerons vos modifications avant la prochaine version. lima.help.about.translate.title=traduire Lima lima.help.i18n=Langue -- To stop receiving notification emails like this one, please contact chorem.org SCM administrator <admin+scm@chorem.org>.