Thread: [Japi-cvs] SF.net SVN: japi:[1037] progs/jeduca/trunk/src/prj/net/sf/japi/progs/jeduca /jtest/gui
Status: Beta
Brought to you by:
christianhujer
|
From: <chr...@us...> - 2009-02-22 09:45:46
|
Revision: 1037
http://japi.svn.sourceforge.net/japi/?rev=1037&view=rev
Author: christianhujer
Date: 2009-02-22 09:45:37 +0000 (Sun, 22 Feb 2009)
Log Message:
-----------
Fixed checkstyle issues.
Modified Paths:
--------------
progs/jeduca/trunk/src/prj/net/sf/japi/progs/jeduca/jtest/gui/QuestionCollectionGUI.java
progs/jeduca/trunk/src/prj/net/sf/japi/progs/jeduca/jtest/gui/action.properties
Added Paths:
-----------
progs/jeduca/trunk/src/prj/net/sf/japi/progs/jeduca/jtest/gui/texts.properties
progs/jeduca/trunk/src/prj/net/sf/japi/progs/jeduca/jtest/gui/texts_de.properties
Removed Paths:
-------------
progs/jeduca/trunk/src/prj/net/sf/japi/progs/jeduca/jtest/gui/action_de.properties
Modified: progs/jeduca/trunk/src/prj/net/sf/japi/progs/jeduca/jtest/gui/QuestionCollectionGUI.java
===================================================================
--- progs/jeduca/trunk/src/prj/net/sf/japi/progs/jeduca/jtest/gui/QuestionCollectionGUI.java 2009-02-22 09:14:16 UTC (rev 1036)
+++ progs/jeduca/trunk/src/prj/net/sf/japi/progs/jeduca/jtest/gui/QuestionCollectionGUI.java 2009-02-22 09:45:37 UTC (rev 1037)
@@ -21,7 +21,6 @@
import static java.awt.BorderLayout.CENTER;
import java.awt.CardLayout;
import static java.awt.event.KeyEvent.VK_N;
-import java.util.ResourceBundle;
import javax.swing.Action;
import javax.swing.JComponent;
import javax.swing.JMenu;
@@ -42,10 +41,6 @@
/** Serial Version. */
private static final long serialVersionUID = 1L;
- /** The Resource bundle. */
- // TODO:2009-02-22:christianhujer:Get rid of resource bundle.
- private static final ResourceBundle RES = ResourceBundle.getBundle("net.sf.japi.progs.jeduca.jtest.gui.action");
-
/** Constant for showing the collection info. */
private static final String COLLECTION_INFO = "CollectionInfo";
@@ -312,8 +307,8 @@
* @return Navigation Menu
*/
public JMenu createNavigationMenu() {
- final JMenu menu = new JMenu(RES.getString("nav.text"));
- menu.setName(RES.getString("nav.text"));
+ final JMenu menu = new JMenu(ACTION_BUILDER.getString("nav.text"));
+ menu.setName(ACTION_BUILDER.getString("nav.text"));
for (final Action action : navigationActions) {
menu.add(new JMenuItem(action));
}
Modified: progs/jeduca/trunk/src/prj/net/sf/japi/progs/jeduca/jtest/gui/action.properties
===================================================================
--- progs/jeduca/trunk/src/prj/net/sf/japi/progs/jeduca/jtest/gui/action.properties 2009-02-22 09:14:16 UTC (rev 1036)
+++ progs/jeduca/trunk/src/prj/net/sf/japi/progs/jeduca/jtest/gui/action.properties 2009-02-22 09:45:37 UTC (rev 1037)
@@ -15,125 +15,53 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
+ActionBuilder.additionalBundles=net.sf.japi.progs.jeduca.jtest.gui.texts
+
###########
# Document
-doc.text=Document
-doc.mnemonic=D
-
-open.text=open...
-open.shortdescription=Open a new test
-open.longdescription=Loads a new test from a file
-open.mnemonic=O
open.accel=ctrl pressed O
open.icon=general/Open16
-open.error.text=Error while loading
-save.text=save...
-save.shortdescription=Save test
-save.longdescription=Saves the test in a new file
-save.mnemonic=S
save.accel=ctrl pressed S
save.icon=general/Save16
-save.error.text=Error while saving
-print.text=Print...
-print.shortdescription=Print current view
-print.longdescription=Prints the current view
-print.mnemonic=P
print.accel=ctrl pressed P
print.icon=general/Print16
-quit.text=quit
-quit.shortdescription=Quit program
-quit.longdescription=Quits the program
-quit.mnemonic=Q
quit.accel=ctrl pressed Q
quit.icon=kde/exit16
-quit.question=Really quit?
#######
# View
-view.text=View
-view.mnemonic=V
-
-viewShowAll.text=Show all
-viewHideAll.text=Hide all
-
-toolbars.text=Toolbars
-toolbars.mnemonic=T
-
-configureToolbars.text=Change toolbars...
-configureToolbars.mnemonic=C
-
-menuToolBar.name=Menubar
menuToolBar.accel=ctrl pressed M
programToolBar.toolbar=open save print
-programToolBar.name=Program toolbar
navigationToolBar.toolbar=start first prev next last review end
-navigationToolBar.name=Navigation toolbar
-menus.text=Menus
-configureMenus.text=Change menus...
-internalFrames.text=Windows
-configureInternalFrames.text=Change windows...
-
-
#############
# Navigation
-nav.text=Navigation
-nav.mnemonic=N
-
-start.text=Start
-start.shortdescription=Begin test
-start.longdescription=Begins the test
-start.mnemonic=S
start.accel=ctrl pressed B
start.icon=media/Play16
-first.text=First
-first.shortdescription=First question
-first.longdescription=Navigates to the first question
-first.mnemonic=F
first.accel=ctrl pressed HOME
first.icon=general/Undo16
-prev.text=Previous
-prev.shortdescription=Previous question
-prev.longdescription=Navigates to the previous question
-prev.mnemonic=P
prev.accel=ctrl pressed PAGE_UP
prev.icon=navigation/Back16
-next.text=Next
-next.shortdescription=Next question
-next.longdescription=Navigates to the next question
-next.mnemonic=N
next.accel=ctrl pressed PAGE_DOWN
next.icon=navigation/Forward16
-last.text=Last
-last.shortdescription=Last question
-last.longdescription=Navigates to the last question
-last.mnemonic=L
last.accel=ctrl pressed END
last.icon=general/Redo16
-review.text=Review
-review.shortdescription=Review questions
-review.longdescription=Shows a review of all questions
-review.mnemonic=R
review.accel=ctrl pressed INSERT
review.icon=general/History16
-end.text=End
-end.shortdescription=Test end and results
-end.longdescription=Ends the test and shows your test results
-end.mnemonic=E
end.accel=ctrl pressed ESCAPE
end.icon=general/Stop16
@@ -141,13 +69,6 @@
###########
# Settings
-settings.text=Settings
-settings.mnemonic=S
-
-config.text=Configure JEduca...
-config.shortdescription=Change JEduca preferences
-config.longdescription=Displays a dialog to change JEduca preferences
-config.mnemonic=C
#config.accel=
config.icon=general/Preferences16
@@ -155,30 +76,14 @@
#######
# Help
-help.text=Help
-help.mnemonic=H
-
-about.text=About JEduca...
-about.shortdescription=Information about JEduca
-about.longdescription=Displays a dialog with informations about JEduca
about.icon=general/About16
################
# General Stuff
-ok.text=OK
-ok.mnemonic=O
ok.accel=ENTER
-cancel.text=Cancel
-cancel.mnemonic=C
cancel.accel=ESCAPE
-delete.text=Delete
-delete.mnemonic=D
-
selectFile.icon=general/Open16
-
-about=<html><head><meta http-equiv='Content-Type' content='text/html'></meta><title>About</title></head><body><h1>About</h1><p>JEduca Version 1.0</p><p>\xA9 2004-2008 Chrsitian Hujer. All rights reserved.</p></body></html>
-application.name=JEduca
Deleted: progs/jeduca/trunk/src/prj/net/sf/japi/progs/jeduca/jtest/gui/action_de.properties
===================================================================
--- progs/jeduca/trunk/src/prj/net/sf/japi/progs/jeduca/jtest/gui/action_de.properties 2009-02-22 09:14:16 UTC (rev 1036)
+++ progs/jeduca/trunk/src/prj/net/sf/japi/progs/jeduca/jtest/gui/action_de.properties 2009-02-22 09:45:37 UTC (rev 1037)
@@ -1,181 +0,0 @@
-#
-# Copyright (C) 2009 Christian Hujer
-#
-# 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/>.
-#
-
-###########
-# Document
-
-doc.text=Dokument
-doc.mnemonic=D
-
-open.text=\xD6ffnen...
-open.shortdescription=\xD6ffnet einen Test
-open.longdescription=L\xE4dt einen neuen Test aus einer Datei
-open.mnemonic=F
-open.accel=ctrl pressed O
-#open.icon
-open.error.text=Fehler beim Laden
-
-save.text=Speichern...
-save.shortdescription=Speichert den Test
-save.longdescription=Speichert den Test in einer Datei
-save.mnemonic=S
-save.accel=ctrl pressed S
-#save.icon
-save.error.text=Fehler beim Speichern
-
-print.text=Drucken...
-print.shortdescription=Aktuelle Ansicht drucken
-print.longdescription=Druckt die aktuelle Ansicht
-print.mnemonic=D
-print.accel=ctrl pressed P
-#print.icon=
-
-quit.text=Beenden
-quit.shortdescription=Beendet das Programm
-quit.longdescription=Beendet das Programm
-quit.mnemonic=B
-quit.accel=ctrl pressed Q
-#quit.icon
-quit.question=Wirklich beenden?
-
-
-#######
-# View
-
-view.text=Ansicht
-view.mnemonic=A
-
-viewShowAll.text=Alle anzeigen
-viewHideAll.text=Alle verbergen
-
-toolbars.text=Symbolleisten
-toolbars.mnemonic=S
-
-configureToolbars.text=Symbolleisten anpassen...
-configureToolbars.mnemonic=A
-
-menuToolBar.name=Men\xFCleiste
-menuToolBar.accel=ctrl pressed M
-programToolBar.name=Programmleiste
-navigationToolBar.name=Navigationsleiste
-
-menus.text=Men\xFCs
-configureMenus.text=Men\xFCs anpassen...
-
-internalFrames.text=Fenster
-configureInternalFrames.text=Fenster anpassen...
-
-
-#############
-# Navigation
-
-nav.text=Gehe zu
-nav.mnemonic=N
-
-start.text=Start
-start.shortdescription=Test beginnen
-start.longdescription=Beginnt den Test
-start.mnemonic=S
-start.accel=ctrl pressed B
-#start.icon
-
-first.text=Erste
-first.shortdescription=Erste Frage
-first.longdescription=Springt zur ersten Frage
-first.mnemonic=E
-first.accel=ctrl pressed HOME
-#first.icon
-
-prev.text=Vorherige
-prev.shortdescription=Vorherige Frage
-prev.longdescription=Springt zur vorherigen Frage
-prev.mnemonic=V
-prev.accel=ctrl pressed PAGE_UP
-#prev.icon
-
-next.text=N\xE4chste
-next.shortdescription=N\xE4chste Frage
-next.longdescription=Springt zur n\xE4chsten Frage
-next.mnemonic=N
-next.accel=ctrl pressed PAGE_DOWN
-#next.icon
-
-last.text=Letzte
-last.shortdescription=Letzte Frage
-last.longdescription=Springt zur letzten Frage
-last.mnemonic=L
-last.accel=ctrl pressed END
-#last.icon
-
-review.text=Review
-review.shortdescription=\xDCbersicht
-review.longdescription=Springt zur Fragen\xFCbersicht
-review.mnemonic=R
-review.accel=ctrl pressed INSERT
-#review.icon
-
-end.text=Ende
-end.shortdescription=Test-Ende und Auswertung
-end.longdescription=Beendet den Test und zeigt das Testergebnis
-end.mnemonic=N
-end.accel=ctrl pressed ESCAPE
-#end.icon
-
-
-###########
-# Settings
-
-settings.text=Einstellungen
-settings.mnemonic=E
-
-config.text=JEduca konfigurieren...
-config.shortdescription=JEduca Einstellungen \xE4ndern
-config.longdescription=Zeigt einen Dialog zum \xC4ndern der JEduca Einstellungen
-config.mnemonic=K
-#config.accel
-#config.icon
-
-
-#######
-# Help
-
-help.text=Hilfe
-help.mnemonic=H
-
-about.text=\xDCber JEduca...
-about.shortdescription=Informationen \xFCber JEduca
-about.longdescription=Zeigt einen Dialog mit Informationen \xFCber JEduca
-#about.icon
-
-
-################
-# General Stuff
-
-ok.text=OK
-ok.mnemonic=O
-ok.accel=ENTER
-
-cancel.text=Abbruch
-cancel.mnemonic=A
-cancel.accel=ESCAPE
-
-delete.text=L\xF6schen
-delete.mnemonic=L
-
-#selectFile.icon=
-about=<html><head><meta http-equiv='Content-Type' content='text/html'></meta><title>\xDCber</title></head><body><h1>\xDCber</h1><p>JEduca Version 1.0</p><p>\xA9 2004-2008 Chrsitian Hujer. Alle Rechte vorbehalten.</p></body></html>
-application.name=JEduca
Added: progs/jeduca/trunk/src/prj/net/sf/japi/progs/jeduca/jtest/gui/texts.properties
===================================================================
--- progs/jeduca/trunk/src/prj/net/sf/japi/progs/jeduca/jtest/gui/texts.properties (rev 0)
+++ progs/jeduca/trunk/src/prj/net/sf/japi/progs/jeduca/jtest/gui/texts.properties 2009-02-22 09:45:37 UTC (rev 1037)
@@ -0,0 +1,152 @@
+#
+# Copyright (C) 2009 Christian Hujer
+#
+# 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/>.
+#
+
+###########
+# Document
+
+doc.text=Document
+doc.mnemonic=D
+
+open.text=open...
+open.shortdescription=Open a new test
+open.longdescription=Loads a new test from a file
+open.mnemonic=O
+open.error.text=Error while loading
+
+save.text=save...
+save.shortdescription=Save test
+save.longdescription=Saves the test in a new file
+save.mnemonic=S
+save.error.text=Error while saving
+
+print.text=Print...
+print.shortdescription=Print current view
+print.longdescription=Prints the current view
+print.mnemonic=P
+
+quit.text=quit
+quit.shortdescription=Quit program
+quit.longdescription=Quits the program
+quit.mnemonic=Q
+quit.question=Really quit?
+
+
+#######
+# View
+
+view.text=View
+view.mnemonic=V
+
+viewShowAll.text=Show all
+viewHideAll.text=Hide all
+
+toolbars.text=Toolbars
+toolbars.mnemonic=T
+
+configureToolbars.text=Change toolbars...
+configureToolbars.mnemonic=C
+
+menuToolBar.name=Menubar
+programToolBar.name=Program toolbar
+navigationToolBar.name=Navigation toolbar
+
+menus.text=Menus
+configureMenus.text=Change menus...
+
+internalFrames.text=Windows
+configureInternalFrames.text=Change windows...
+
+
+#############
+# Navigation
+
+nav.text=Navigation
+nav.mnemonic=N
+
+start.text=Start
+start.shortdescription=Begin test
+start.longdescription=Begins the test
+start.mnemonic=S
+
+first.text=First
+first.shortdescription=First question
+first.longdescription=Navigates to the first question
+first.mnemonic=F
+
+prev.text=Previous
+prev.shortdescription=Previous question
+prev.longdescription=Navigates to the previous question
+prev.mnemonic=P
+
+next.text=Next
+next.shortdescription=Next question
+next.longdescription=Navigates to the next question
+next.mnemonic=N
+
+last.text=Last
+last.shortdescription=Last question
+last.longdescription=Navigates to the last question
+last.mnemonic=L
+
+review.text=Review
+review.shortdescription=Review questions
+review.longdescription=Shows a review of all questions
+review.mnemonic=R
+
+end.text=End
+end.shortdescription=Test end and results
+end.longdescription=Ends the test and shows your test results
+end.mnemonic=E
+
+
+###########
+# Settings
+
+settings.text=Settings
+settings.mnemonic=S
+
+config.text=Configure JEduca...
+config.shortdescription=Change JEduca preferences
+config.longdescription=Displays a dialog to change JEduca preferences
+config.mnemonic=C
+
+
+#######
+# Help
+
+help.text=Help
+help.mnemonic=H
+
+about.text=About JEduca...
+about.shortdescription=Information about JEduca
+about.longdescription=Displays a dialog with informations about JEduca
+
+
+################
+# General Stuff
+
+ok.text=OK
+ok.mnemonic=O
+
+cancel.text=Cancel
+cancel.mnemonic=C
+
+delete.text=Delete
+delete.mnemonic=D
+
+about=<html><head><meta http-equiv='Content-Type' content='text/html'></meta><title>About</title></head><body><h1>About</h1><p>JEduca Version 1.0</p><p>\xA9 2004-2008 Chrsitian Hujer. All rights reserved.</p></body></html>
+application.name=JEduca
Property changes on: progs/jeduca/trunk/src/prj/net/sf/japi/progs/jeduca/jtest/gui/texts.properties
___________________________________________________________________
Added: svn:mime-type
+ text/plain
Added: svn:eol-style
+ LF
Added: progs/jeduca/trunk/src/prj/net/sf/japi/progs/jeduca/jtest/gui/texts_de.properties
===================================================================
--- progs/jeduca/trunk/src/prj/net/sf/japi/progs/jeduca/jtest/gui/texts_de.properties (rev 0)
+++ progs/jeduca/trunk/src/prj/net/sf/japi/progs/jeduca/jtest/gui/texts_de.properties 2009-02-22 09:45:37 UTC (rev 1037)
@@ -0,0 +1,153 @@
+#
+# Copyright (C) 2009 Christian Hujer
+#
+# 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/>.
+#
+
+###########
+# Document
+
+doc.text=Dokument
+doc.mnemonic=D
+
+open.text=\xD6ffnen...
+open.shortdescription=\xD6ffnet einen Test
+open.longdescription=L\xE4dt einen neuen Test aus einer Datei
+open.mnemonic=F
+open.error.text=Fehler beim Laden
+
+save.text=Speichern...
+save.shortdescription=Speichert den Test
+save.longdescription=Speichert den Test in einer Datei
+save.mnemonic=S
+save.error.text=Fehler beim Speichern
+
+print.text=Drucken...
+print.shortdescription=Aktuelle Ansicht drucken
+print.longdescription=Druckt die aktuelle Ansicht
+print.mnemonic=D
+
+quit.text=Beenden
+quit.shortdescription=Beendet das Programm
+quit.longdescription=Beendet das Programm
+quit.mnemonic=B
+quit.question=Wirklich beenden?
+
+
+#######
+# View
+
+view.text=Ansicht
+view.mnemonic=A
+
+viewShowAll.text=Alle anzeigen
+viewHideAll.text=Alle verbergen
+
+toolbars.text=Symbolleisten
+toolbars.mnemonic=S
+
+configureToolbars.text=Symbolleisten anpassen...
+configureToolbars.mnemonic=A
+
+menuToolBar.name=Men\xFCleiste
+programToolBar.name=Programmleiste
+navigationToolBar.name=Navigationsleiste
+
+menus.text=Men\xFCs
+configureMenus.text=Men\xFCs anpassen...
+
+internalFrames.text=Fenster
+configureInternalFrames.text=Fenster anpassen...
+
+
+#############
+# Navigation
+
+nav.text=Gehe zu
+nav.mnemonic=N
+
+start.text=Start
+start.shortdescription=Test beginnen
+start.longdescription=Beginnt den Test
+start.mnemonic=S
+
+first.text=Erste
+first.shortdescription=Erste Frage
+first.longdescription=Springt zur ersten Frage
+first.mnemonic=E
+
+prev.text=Vorherige
+prev.shortdescription=Vorherige Frage
+prev.longdescription=Springt zur vorherigen Frage
+prev.mnemonic=V
+
+next.text=N\xE4chste
+next.shortdescription=N\xE4chste Frage
+next.longdescription=Springt zur n\xE4chsten Frage
+next.mnemonic=N
+
+last.text=Letzte
+last.shortdescription=Letzte Frage
+last.longdescription=Springt zur letzten Frage
+last.mnemonic=L
+
+review.text=Review
+review.shortdescription=\xDCbersicht
+review.longdescription=Springt zur Fragen\xFCbersicht
+review.mnemonic=R
+
+end.text=Ende
+end.shortdescription=Test-Ende und Auswertung
+end.longdescription=Beendet den Test und zeigt das Testergebnis
+end.mnemonic=N
+
+
+###########
+# Settings
+
+settings.text=Einstellungen
+settings.mnemonic=E
+
+config.text=JEduca konfigurieren...
+config.shortdescription=JEduca Einstellungen \xE4ndern
+config.longdescription=Zeigt einen Dialog zum \xC4ndern der JEduca Einstellungen
+config.mnemonic=K
+
+
+#######
+# Help
+
+help.text=Hilfe
+help.mnemonic=H
+
+about.text=\xDCber JEduca...
+about.shortdescription=Informationen \xFCber JEduca
+about.longdescription=Zeigt einen Dialog mit Informationen \xFCber JEduca
+
+
+################
+# General Stuff
+
+ok.text=OK
+ok.mnemonic=O
+
+cancel.text=Abbruch
+cancel.mnemonic=A
+
+delete.text=L\xF6schen
+delete.mnemonic=L
+
+#selectFile.icon=
+about=<html><head><meta http-equiv='Content-Type' content='text/html'></meta><title>\xDCber</title></head><body><h1>\xDCber</h1><p>JEduca Version 1.0</p><p>\xA9 2004-2008 Chrsitian Hujer. Alle Rechte vorbehalten.</p></body></html>
+application.name=JEduca
Property changes on: progs/jeduca/trunk/src/prj/net/sf/japi/progs/jeduca/jtest/gui/texts_de.properties
___________________________________________________________________
Added: svn:mime-type
+ text/plain
Added: svn:eol-style
+ LF
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|