Dave Jarvis' Repositories

git clone https://repo.autonoma.ca/repo/keenwrite.git

externalized strings to messages.properties

AuthorKarl Tauber <email>
Date2016-02-12 13:30:56 GMT+0100
Commitc72b2dcf2d09f7ccd9c98c9a43a42c74f5015580
Parentdafe8f4
Delta279 lines added, 70 lines removed, 209-line increase
src/main/resources/org/markdownwriterfx/messages.properties
+#
+# Copyright (c) 2016 Karl Tauber <karl at jformdesigner dot com>
+# All rights reserved.
+#
+# Redistribution and use in source and binary forms, with or without
+# modification, are permitted provided that the following conditions are met:
+#
+# * Redistributions of source code must retain the above copyright
+# notice, this list of conditions and the following disclaimer.
+#
+# * Redistributions in binary form must reproduce the above copyright
+# notice, this list of conditions and the following disclaimer in the
+# documentation and/or other materials provided with the distribution.
+#
+# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
+# HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+#
+
+#---- MainWindow ----
+
+MainWindow.fileMenu=File
+MainWindow.fileNewAction=New
+MainWindow.fileOpenAction=Open...
+MainWindow.fileCloseAction=Close
+MainWindow.fileCloseAllAction=Close All
+MainWindow.fileSaveAction=Save
+MainWindow.fileSaveAllAction=Save All
+MainWindow.fileExitAction=Exit
+
+MainWindow.editMenu=Edit
+MainWindow.editUndoAction=Undo
+MainWindow.editRedoAction=Redo
+
+MainWindow.insertMenu=Insert
+MainWindow.insertBoldAction=Bold
+MainWindow.insertItalicAction=Italic
+MainWindow.insertStrikethroughAction=Strikethrough
+MainWindow.insertBlockquoteAction=Blockquote
+MainWindow.insertCodeAction=Inline Code
+MainWindow.insertFencedCodeBlockAction=Fenced Code Block
+MainWindow.insertFencedCodeBlockText=enter code here
+MainWindow.insertLinkAction=Link...
+MainWindow.insertImageAction=Image...
+MainWindow.insertHeader1Action=Header 1
+MainWindow.insertHeader1Text=header 1
+MainWindow.insertHeader2Action=Header 2
+MainWindow.insertHeader2Text=header 2
+MainWindow.insertHeader3Action=Header 3
+MainWindow.insertHeader3Text=header 3
+MainWindow.insertHeader4Action=Header 4
+MainWindow.insertHeader4Text=header 4
+MainWindow.insertHeader5Action=Header 5
+MainWindow.insertHeader5Text=header 5
+MainWindow.insertHeader6Action=Header 6
+MainWindow.insertHeader6Text=header 6
+MainWindow.insertUnorderedListAction=Unordered List
+MainWindow.insertOrderedListAction=Ordered List
+MainWindow.insertHorizontalRuleAction=Horizontal Rule
+
+MainWindow.toolsMenu=Tools
+MainWindow.toolsOptionsAction=Options
+
+MainWindow.helpMenu=Help
+MainWindow.helpAboutAction=About Markdown Writer FX
+
+MainWindow.about.title=About
+MainWindow.about.headerText=Markdown Writer FX
+MainWindow.about.contentText=Copyright (c) 2015 Karl Tauber <karl at jformdesigner dot com>\nAll rights reserved.
+
+
+#---- FileEditor ----
+
+FileEditor.untitled=Untitled
+FileEditor.loadFailed.message=Failed to load ''{0}''.\n\nReason: {1}
+FileEditor.loadFailed.title=Load
+FileEditor.saveFailed.message=Failed to save ''{0}''.\n\nReason: {1}
+FileEditor.saveFailed.title=Save
+
+
+#---- FileEditorTabPane ----
+
+FileEditorTabPane.openChooser.title=Open Markdown File
+FileEditorTabPane.saveChooser.title=Save Markdown File
+FileEditorTabPane.closeAlert.message=''{0}'' has been modified. Save changes?
+FileEditorTabPane.closeAlert.title=Close
+FileEditorTabPane.chooser.markdownFilesFilter=Markdown Files
+FileEditorTabPane.chooser.allFilesFilter=All Files
+
+
+#==== Controls ================================================================
+
+#---- BrowseDirectoryButton ----
+
+BrowseDirectoryButton.tooltip=Browse for local folder
+BrowseDirectoryButton.chooser.title=Browse for local folder
+
+
+#---- BrowseFileButton ----
+
+BrowseFileButton.tooltip=Browse for local file
+BrowseFileButton.chooser.title=Browse for local file
+BrowseFileButton.chooser.allFilesFilter=All Files
+
+
+#==== Dialogs =================================================================
+
+#---- ImageDialog ----
+
+ImageDialog.title=Image
+ImageDialog.chooser.imagesFilter=Images
+ImageDialog.previewLabel.text=Markdown Preview\:
+ImageDialog.textLabel.text=Alternate Text\:
+ImageDialog.titleLabel.text=Title (tooltip)\:
+ImageDialog.urlLabel.text=Image URL\:
+
+
+#---- LinkDialog ----
+
+LinkDialog.title=Link
+LinkDialog.previewLabel.text=Markdown Preview\:
+LinkDialog.textLabel.text=Link Text\:
+LinkDialog.titleLabel.text=Title (tooltip)\:
+LinkDialog.urlLabel.text=Link URL\:
+
+
+#==== Options =================================================================
+
+#---- OptionsDialog ----
+
+OptionsDialog.title=Options
+OptionsDialog.generalTab.text=General
+OptionsDialog.markdownTab.text=Markdown
+
+
+#---- GeneralOptionsPane ----
+
+GeneralOptionsPane.encodingLabel.text=En_coding\:
+GeneralOptionsPane.lineSeparatorLabel.text=_Line separator\:
+GeneralOptionsPane.lineSeparatorLabel2.text=(applies to new files only)
+GeneralOptionsPane.showWhitespaceCheckBox.text=Show _Whitespace Characters
+
+GeneralOptionsPane.platformDefault=Platform Default ({0})
+GeneralOptionsPane.sepWindows=Windows (CRLF)
+GeneralOptionsPane.sepUnix=Unix (LF)
+
+
+#---- MarkdownOptionsPane ----
+
+MarkdownOptionsPane.abbreviationsExtCheckBox.text=A_bbreviations in the way of
+MarkdownOptionsPane.abbreviationsExtLink.text=Markdown Extra
+MarkdownOptionsPane.anchorlinksExtCheckBox.text=_Anchor links in headers
+MarkdownOptionsPane.atxHeaderSpaceExtCheckBox.text=Requires a space char after Atx \# header prefixes, so that \#dasdsdaf is not a header
+MarkdownOptionsPane.autolinksExtCheckBox.text=_Plain (undelimited) autolinks in the way of
+MarkdownOptionsPane.autolinksExtLink.text=Github-flavoured-Markdown
+MarkdownOptionsPane.definitionListsExtCheckBox.text=_Definition lists in the way of
+MarkdownOptionsPane.definitionListsExtLink.text=Markdown Extra
+MarkdownOptionsPane.extAnchorLinksExtCheckBox.text=Generate anchor links for headers using complete contents of the header
+MarkdownOptionsPane.fencedCodeBlocksExtCheckBox.text=_Fenced Code Blocks in the way of
+MarkdownOptionsPane.fencedCodeBlocksExtLabel.text=or
+MarkdownOptionsPane.fencedCodeBlocksExtLink.text=Markdown Extra
+MarkdownOptionsPane.fencedCodeBlocksExtLink2.text=Github-flavoured-Markdown
+MarkdownOptionsPane.forceListItemParaExtCheckBox.text=Force List and Definition Paragraph wrapping if it includes more than just a single paragraph
+MarkdownOptionsPane.hardwrapsExtCheckBox.text=_Newlines in paragraph-like content as real line breaks, see
+MarkdownOptionsPane.hardwrapsExtLink.text=Github-flavoured-Markdown
+MarkdownOptionsPane.quotesExtCheckBox.text=Beautify single _quotes, double quotes and double angle quotes (� and �)
+MarkdownOptionsPane.relaxedHrRulesExtCheckBox.text=Allow horizontal rules without a blank line following them
+MarkdownOptionsPane.smartsExtCheckBox.text=Beautify apostrophes, _ellipses ("..." and ". . .") and dashes ("--" and "---")
+MarkdownOptionsPane.strikethroughExtCheckBox.text=_Strikethrough
+MarkdownOptionsPane.suppressHtmlBlocksExtCheckBox.text=Suppress the _output of HTML blocks
+MarkdownOptionsPane.suppressInlineHtmlExtCheckBox.text=Suppress the o_utput of inline HTML elements
+MarkdownOptionsPane.tablesExtCheckBox.text=_Tables similar to
+MarkdownOptionsPane.tablesExtLabel.text=(like
+MarkdownOptionsPane.tablesExtLabel2.text=tables, but with colspan support)
+MarkdownOptionsPane.tablesExtLink.text=MultiMarkdown
+MarkdownOptionsPane.tablesExtLink2.text=Markdown Extra
+MarkdownOptionsPane.taskListItemsExtCheckBox.text=GitHub style task list items
+MarkdownOptionsPane.wikilinksExtCheckBox.text=_Wiki-style links ("[[wiki link]]")
+
+
+#===== preview ================================================================
+
+#---- MarkdownPreviewPane ----
+
+MarkdownPreviewPane.astTab=Markdown AST
+MarkdownPreviewPane.htmlSourceTab=HTML Source
+MarkdownPreviewPane.webViewTab=Preview
src/main/java/org/markdownwriterfx/options/GeneralOptionsPane.jfd
-JFDML JFormDesigner: "9.9.9.9.9999" Java: "1.8.0_51" encoding: "UTF-8"
+JFDML JFormDesigner: "9.9.9.9.9999" Java: "1.8.0_66" encoding: "UTF-8"
new FormModel {
+ "i18n.bundlePackage": "org.markdownwriterfx"
+ "i18n.bundleName": "messages"
+ "i18n.autoExternalize": true
+ "i18n.keyPrefix": "GeneralOptionsPane"
contentType: "form/javafx"
root: new FormRoot {
add( new FormComponent( "javafx.scene.control.Label" ) {
name: "lineSeparatorLabel"
- "text": "_Line separator:"
+ "text": new FormMessage( null, "GeneralOptionsPane.lineSeparatorLabel.text" )
"mnemonicParsing": true
auxiliary() {
add( new FormComponent( "javafx.scene.control.Label" ) {
name: "lineSeparatorLabel2"
- "text": "(applies to new files only)"
+ "text": new FormMessage( null, "GeneralOptionsPane.lineSeparatorLabel2.text" )
auxiliary() {
"JavaCodeGenerator.variableLocal": true
}
}, new FormLayoutConstraints( class net.miginfocom.layout.CC ) {
"value": "cell 2 0"
} )
add( new FormComponent( "javafx.scene.control.Label" ) {
name: "encodingLabel"
- "text": "En_coding:"
+ "text": new FormMessage( null, "GeneralOptionsPane.encodingLabel.text" )
"mnemonicParsing": true
auxiliary() {
add( new FormComponent( "javafx.scene.control.CheckBox" ) {
name: "showWhitespaceCheckBox"
- "text": "Show _Whitespace Characters"
+ "text": new FormMessage( null, "GeneralOptionsPane.showWhitespaceCheckBox.text" )
}, new FormLayoutConstraints( class net.miginfocom.layout.CC ) {
"value": "cell 0 2 3 1,growx 0,alignx left"
src/main/java/org/markdownwriterfx/options/MarkdownOptionsPane.java
import javafx.beans.property.SimpleIntegerProperty;
import javafx.scene.control.Label;
+import org.markdownwriterfx.Messages;
import org.markdownwriterfx.controls.FlagCheckBox;
import org.markdownwriterfx.controls.WebHyperlink;
//---- smartsExtCheckBox ----
- smartsExtCheckBox.setText("Beautify apostrophes, _ellipses (\"...\" and \". . .\") and dashes (\"--\" and \"---\")");
+ smartsExtCheckBox.setText(Messages.get("MarkdownOptionsPane.smartsExtCheckBox.text"));
add(smartsExtCheckBox, "cell 0 0");
//---- quotesExtCheckBox ----
- quotesExtCheckBox.setText("Beautify single _quotes, double quotes and double angle quotes (\u00ab and \u00bb)");
+ quotesExtCheckBox.setText(Messages.get("MarkdownOptionsPane.quotesExtCheckBox.text"));
add(quotesExtCheckBox, "cell 0 1");
//---- abbreviationsExtCheckBox ----
- abbreviationsExtCheckBox.setText("A_bbreviations in the way of");
+ abbreviationsExtCheckBox.setText(Messages.get("MarkdownOptionsPane.abbreviationsExtCheckBox.text"));
add(abbreviationsExtCheckBox, "cell 0 2");
//---- abbreviationsExtLink ----
- abbreviationsExtLink.setText("Markdown Extra");
+ abbreviationsExtLink.setText(Messages.get("MarkdownOptionsPane.abbreviationsExtLink.text"));
abbreviationsExtLink.setUri("http://michelf.com/projects/php-markdown/extra/#abbr");
add(abbreviationsExtLink, "cell 0 2,gapx 0");
//---- hardwrapsExtCheckBox ----
- hardwrapsExtCheckBox.setText("_Newlines in paragraph-like content as real line breaks, see");
+ hardwrapsExtCheckBox.setText(Messages.get("MarkdownOptionsPane.hardwrapsExtCheckBox.text"));
add(hardwrapsExtCheckBox, "cell 0 3");
//---- hardwrapsExtLink ----
- hardwrapsExtLink.setText("Github-flavoured-Markdown");
+ hardwrapsExtLink.setText(Messages.get("MarkdownOptionsPane.hardwrapsExtLink.text"));
hardwrapsExtLink.setUri("https://help.github.com/articles/writing-on-github/#markup");
add(hardwrapsExtLink, "cell 0 3,gapx 0");
//---- autolinksExtCheckBox ----
- autolinksExtCheckBox.setText("_Plain (undelimited) autolinks in the way of");
+ autolinksExtCheckBox.setText(Messages.get("MarkdownOptionsPane.autolinksExtCheckBox.text"));
add(autolinksExtCheckBox, "cell 0 4");
//---- autolinksExtLink ----
- autolinksExtLink.setText("Github-flavoured-Markdown");
+ autolinksExtLink.setText(Messages.get("MarkdownOptionsPane.autolinksExtLink.text"));
autolinksExtLink.setUri("https://help.github.com/articles/github-flavored-markdown/#url-autolinking");
add(autolinksExtLink, "cell 0 4,gapx 0");
//---- tablesExtCheckBox ----
- tablesExtCheckBox.setText("_Tables similar to");
+ tablesExtCheckBox.setText(Messages.get("MarkdownOptionsPane.tablesExtCheckBox.text"));
add(tablesExtCheckBox, "cell 0 5");
//---- tablesExtLink ----
- tablesExtLink.setText("MultiMarkdown");
+ tablesExtLink.setText(Messages.get("MarkdownOptionsPane.tablesExtLink.text"));
tablesExtLink.setUri("http://fletcher.github.io/MultiMarkdown-4/syntax.html#tables");
add(tablesExtLink, "cell 0 5,gapx 0");
//---- tablesExtLabel ----
- tablesExtLabel.setText("(like");
+ tablesExtLabel.setText(Messages.get("MarkdownOptionsPane.tablesExtLabel.text"));
add(tablesExtLabel, "cell 0 5,gapx 3");
//---- tablesExtLink2 ----
- tablesExtLink2.setText("Markdown Extra");
+ tablesExtLink2.setText(Messages.get("MarkdownOptionsPane.tablesExtLink2.text"));
tablesExtLink2.setUri("https://michelf.ca/projects/php-markdown/extra/#table");
add(tablesExtLink2, "cell 0 5,gapx 3 3");
//---- tablesExtLabel2 ----
- tablesExtLabel2.setText(" tables, but with colspan support)");
+ tablesExtLabel2.setText(Messages.get("MarkdownOptionsPane.tablesExtLabel2.text"));
add(tablesExtLabel2, "cell 0 5,gapx 0");
//---- definitionListsExtCheckBox ----
- definitionListsExtCheckBox.setText("_Definition lists in the way of");
+ definitionListsExtCheckBox.setText(Messages.get("MarkdownOptionsPane.definitionListsExtCheckBox.text"));
add(definitionListsExtCheckBox, "cell 0 6");
//---- definitionListsExtLink ----
- definitionListsExtLink.setText("Markdown Extra");
+ definitionListsExtLink.setText(Messages.get("MarkdownOptionsPane.definitionListsExtLink.text"));
definitionListsExtLink.setUri("https://michelf.ca/projects/php-markdown/extra/#def-list");
add(definitionListsExtLink, "cell 0 6,gapx 0");
//---- fencedCodeBlocksExtCheckBox ----
- fencedCodeBlocksExtCheckBox.setText("_Fenced Code Blocks in the way of");
+ fencedCodeBlocksExtCheckBox.setText(Messages.get("MarkdownOptionsPane.fencedCodeBlocksExtCheckBox.text"));
add(fencedCodeBlocksExtCheckBox, "cell 0 7");
//---- fencedCodeBlocksExtLink ----
- fencedCodeBlocksExtLink.setText("Markdown Extra");
+ fencedCodeBlocksExtLink.setText(Messages.get("MarkdownOptionsPane.fencedCodeBlocksExtLink.text"));
fencedCodeBlocksExtLink.setUri("http://michelf.com/projects/php-markdown/extra/#fenced-code-blocks");
add(fencedCodeBlocksExtLink, "cell 0 7,gapx 0");
//---- fencedCodeBlocksExtLabel ----
- fencedCodeBlocksExtLabel.setText("or");
+ fencedCodeBlocksExtLabel.setText(Messages.get("MarkdownOptionsPane.fencedCodeBlocksExtLabel.text"));
add(fencedCodeBlocksExtLabel, "cell 0 7,gapx 3");
//---- fencedCodeBlocksExtLink2 ----
- fencedCodeBlocksExtLink2.setText("Github-flavoured-Markdown");
+ fencedCodeBlocksExtLink2.setText(Messages.get("MarkdownOptionsPane.fencedCodeBlocksExtLink2.text"));
fencedCodeBlocksExtLink2.setUri("https://help.github.com/articles/github-flavored-markdown/#fenced-code-blocks");
add(fencedCodeBlocksExtLink2, "cell 0 7,gapx 3");
//---- wikilinksExtCheckBox ----
- wikilinksExtCheckBox.setText("_Wiki-style links (\"[[wiki link]]\")");
+ wikilinksExtCheckBox.setText(Messages.get("MarkdownOptionsPane.wikilinksExtCheckBox.text"));
add(wikilinksExtCheckBox, "cell 0 8");
//---- strikethroughExtCheckBox ----
- strikethroughExtCheckBox.setText("_Strikethrough");
+ strikethroughExtCheckBox.setText(Messages.get("MarkdownOptionsPane.strikethroughExtCheckBox.text"));
add(strikethroughExtCheckBox, "cell 0 9");
//---- anchorlinksExtCheckBox ----
- anchorlinksExtCheckBox.setText("_Anchor links in headers");
+ anchorlinksExtCheckBox.setText(Messages.get("MarkdownOptionsPane.anchorlinksExtCheckBox.text"));
add(anchorlinksExtCheckBox, "cell 0 10");
//---- suppressHtmlBlocksExtCheckBox ----
- suppressHtmlBlocksExtCheckBox.setText("Suppress the _output of HTML blocks");
+ suppressHtmlBlocksExtCheckBox.setText(Messages.get("MarkdownOptionsPane.suppressHtmlBlocksExtCheckBox.text"));
add(suppressHtmlBlocksExtCheckBox, "cell 0 11");
//---- suppressInlineHtmlExtCheckBox ----
- suppressInlineHtmlExtCheckBox.setText("Suppress the o_utput of inline HTML elements");
+ suppressInlineHtmlExtCheckBox.setText(Messages.get("MarkdownOptionsPane.suppressInlineHtmlExtCheckBox.text"));
add(suppressInlineHtmlExtCheckBox, "cell 0 12");
//---- atxHeaderSpaceExtCheckBox ----
- atxHeaderSpaceExtCheckBox.setText("Requires a space char after Atx # header prefixes, so that #dasdsdaf is not a header");
+ atxHeaderSpaceExtCheckBox.setText(Messages.get("MarkdownOptionsPane.atxHeaderSpaceExtCheckBox.text"));
add(atxHeaderSpaceExtCheckBox, "cell 0 13");
//---- forceListItemParaExtCheckBox ----
- forceListItemParaExtCheckBox.setText("Force List and Definition Paragraph wrapping if it includes more than just a single paragraph");
+ forceListItemParaExtCheckBox.setText(Messages.get("MarkdownOptionsPane.forceListItemParaExtCheckBox.text"));
add(forceListItemParaExtCheckBox, "cell 0 14");
//---- relaxedHrRulesExtCheckBox ----
- relaxedHrRulesExtCheckBox.setText("Allow horizontal rules without a blank line following them");
+ relaxedHrRulesExtCheckBox.setText(Messages.get("MarkdownOptionsPane.relaxedHrRulesExtCheckBox.text"));
add(relaxedHrRulesExtCheckBox, "cell 0 15");
//---- taskListItemsExtCheckBox ----
- taskListItemsExtCheckBox.setText("GitHub style task list items");
+ taskListItemsExtCheckBox.setText(Messages.get("MarkdownOptionsPane.taskListItemsExtCheckBox.text"));
add(taskListItemsExtCheckBox, "cell 0 16");
//---- extAnchorLinksExtCheckBox ----
- extAnchorLinksExtCheckBox.setText("Generate anchor links for headers using complete contents of the header");
+ extAnchorLinksExtCheckBox.setText(Messages.get("MarkdownOptionsPane.extAnchorLinksExtCheckBox.text"));
add(extAnchorLinksExtCheckBox, "cell 0 17");
// JFormDesigner - End of component initialization //GEN-END:initComponents
src/main/java/org/markdownwriterfx/options/MarkdownOptionsPane.jfd
-JFDML JFormDesigner: "9.9.9.9.9999" Java: "1.8.0_60" encoding: "UTF-8"
+JFDML JFormDesigner: "9.9.9.9.9999" Java: "1.8.0_66" encoding: "UTF-8"
new FormModel {
+ "i18n.bundlePackage": "org.markdownwriterfx"
+ "i18n.bundleName": "messages"
+ "i18n.autoExternalize": true
+ "i18n.keyPrefix": "MarkdownOptionsPane"
contentType: "form/javafx"
root: new FormRoot {
add( new FormContainer( "org.tbee.javafx.scene.layout.fxml.MigPane", new FormLayoutManager( class org.tbee.javafx.scene.layout.fxml.MigPane ) {
"$rowConstraints": "[][][][][][][][][][][][][][][][][][]"
"$columnConstraints": "[][fill]"
} ) {
name: "this"
add( new FormComponent( "org.markdownwriterfx.controls.FlagCheckBox" ) {
name: "smartsExtCheckBox"
- "text": "Beautify apostrophes, _ellipses (\"...\" and \". . .\") and dashes (\"--\" and \"---\")"
+ "text": new FormMessage( null, "MarkdownOptionsPane.smartsExtCheckBox.text" )
}, new FormLayoutConstraints( class net.miginfocom.layout.CC ) {
"value": "cell 0 0"
} )
add( new FormComponent( "org.markdownwriterfx.controls.FlagCheckBox" ) {
name: "quotesExtCheckBox"
- "text": "Beautify single _quotes, double quotes and double angle quotes (« and »)"
+ "text": new FormMessage( null, "MarkdownOptionsPane.quotesExtCheckBox.text" )
}, new FormLayoutConstraints( class net.miginfocom.layout.CC ) {
"value": "cell 0 1"
} )
add( new FormComponent( "org.markdownwriterfx.controls.FlagCheckBox" ) {
name: "abbreviationsExtCheckBox"
- "text": "A_bbreviations in the way of"
+ "text": new FormMessage( null, "MarkdownOptionsPane.abbreviationsExtCheckBox.text" )
}, new FormLayoutConstraints( class net.miginfocom.layout.CC ) {
"value": "cell 0 2"
} )
add( new FormComponent( "org.markdownwriterfx.controls.WebHyperlink" ) {
name: "abbreviationsExtLink"
- "text": "Markdown Extra"
+ "text": new FormMessage( null, "MarkdownOptionsPane.abbreviationsExtLink.text" )
"uri": "http://michelf.com/projects/php-markdown/extra/#abbr"
auxiliary() {
"JavaCodeGenerator.variableLocal": true
}
}, new FormLayoutConstraints( class net.miginfocom.layout.CC ) {
"value": "cell 0 2,gapx 0"
} )
add( new FormComponent( "org.markdownwriterfx.controls.FlagCheckBox" ) {
name: "hardwrapsExtCheckBox"
- "text": "_Newlines in paragraph-like content as real line breaks, see"
+ "text": new FormMessage( null, "MarkdownOptionsPane.hardwrapsExtCheckBox.text" )
}, new FormLayoutConstraints( class net.miginfocom.layout.CC ) {
"value": "cell 0 3"
} )
add( new FormComponent( "org.markdownwriterfx.controls.WebHyperlink" ) {
name: "hardwrapsExtLink"
- "text": "Github-flavoured-Markdown"
+ "text": new FormMessage( null, "MarkdownOptionsPane.hardwrapsExtLink.text" )
"uri": "https://help.github.com/articles/writing-on-github/#markup"
auxiliary() {
"JavaCodeGenerator.variableLocal": true
}
}, new FormLayoutConstraints( class net.miginfocom.layout.CC ) {
"value": "cell 0 3,gapx 0"
} )
add( new FormComponent( "org.markdownwriterfx.controls.FlagCheckBox" ) {
name: "autolinksExtCheckBox"
- "text": "_Plain (undelimited) autolinks in the way of"
+ "text": new FormMessage( null, "MarkdownOptionsPane.autolinksExtCheckBox.text" )
}, new FormLayoutConstraints( class net.miginfocom.layout.CC ) {
"value": "cell 0 4"
} )
add( new FormComponent( "org.markdownwriterfx.controls.WebHyperlink" ) {
name: "autolinksExtLink"
- "text": "Github-flavoured-Markdown"
+ "text": new FormMessage( null, "MarkdownOptionsPane.autolinksExtLink.text" )
"uri": "https://help.github.com/articles/github-flavored-markdown/#url-autolinking"
auxiliary() {
"JavaCodeGenerator.variableLocal": true
}
}, new FormLayoutConstraints( class net.miginfocom.layout.CC ) {
"value": "cell 0 4,gapx 0"
} )
add( new FormComponent( "org.markdownwriterfx.controls.FlagCheckBox" ) {
name: "tablesExtCheckBox"
- "text": "_Tables similar to"
+ "text": new FormMessage( null, "MarkdownOptionsPane.tablesExtCheckBox.text" )
}, new FormLayoutConstraints( class net.miginfocom.layout.CC ) {
"value": "cell 0 5"
} )
add( new FormComponent( "org.markdownwriterfx.controls.WebHyperlink" ) {
name: "tablesExtLink"
- "text": "MultiMarkdown"
+ "text": new FormMessage( null, "MarkdownOptionsPane.tablesExtLink.text" )
"uri": "http://fletcher.github.io/MultiMarkdown-4/syntax.html#tables"
auxiliary() {
"JavaCodeGenerator.variableLocal": true
}
}, new FormLayoutConstraints( class net.miginfocom.layout.CC ) {
"value": "cell 0 5,gapx 0"
} )
add( new FormComponent( "javafx.scene.control.Label" ) {
name: "tablesExtLabel"
- "text": "(like"
+ "text": new FormMessage( null, "MarkdownOptionsPane.tablesExtLabel.text" )
auxiliary() {
"JavaCodeGenerator.variableLocal": true
}
}, new FormLayoutConstraints( class net.miginfocom.layout.CC ) {
"value": "cell 0 5,gapx 3"
} )
add( new FormComponent( "org.markdownwriterfx.controls.WebHyperlink" ) {
name: "tablesExtLink2"
- "text": "Markdown Extra"
+ "text": new FormMessage( null, "MarkdownOptionsPane.tablesExtLink2.text" )
"uri": "https://michelf.ca/projects/php-markdown/extra/#table"
auxiliary() {
"JavaCodeGenerator.variableLocal": true
}
}, new FormLayoutConstraints( class net.miginfocom.layout.CC ) {
"value": "cell 0 5,gapx 3 3"
} )
add( new FormComponent( "javafx.scene.control.Label" ) {
name: "tablesExtLabel2"
- "text": " tables, but with colspan support)"
+ "text": new FormMessage( null, "MarkdownOptionsPane.tablesExtLabel2.text" )
auxiliary() {
"JavaCodeGenerator.variableLocal": true
}
}, new FormLayoutConstraints( class net.miginfocom.layout.CC ) {
"value": "cell 0 5,gapx 0"
} )
add( new FormComponent( "org.markdownwriterfx.controls.FlagCheckBox" ) {
name: "definitionListsExtCheckBox"
- "text": "_Definition lists in the way of"
+ "text": new FormMessage( null, "MarkdownOptionsPane.definitionListsExtCheckBox.text" )
}, new FormLayoutConstraints( class net.miginfocom.layout.CC ) {
"value": "cell 0 6"
} )
add( new FormComponent( "org.markdownwriterfx.controls.WebHyperlink" ) {
name: "definitionListsExtLink"
- "text": "Markdown Extra"
+ "text": new FormMessage( null, "MarkdownOptionsPane.definitionListsExtLink.text" )
"uri": "https://michelf.ca/projects/php-markdown/extra/#def-list"
auxiliary() {
"JavaCodeGenerator.variableLocal": true
}
}, new FormLayoutConstraints( class net.miginfocom.layout.CC ) {
"value": "cell 0 6,gapx 0"
} )
add( new FormComponent( "org.markdownwriterfx.controls.FlagCheckBox" ) {
name: "fencedCodeBlocksExtCheckBox"
- "text": "_Fenced Code Blocks in the way of"
+ "text": new FormMessage( null, "MarkdownOptionsPane.fencedCodeBlocksExtCheckBox.text" )
}, new FormLayoutConstraints( class net.miginfocom.layout.CC ) {
"value": "cell 0 7"
} )
add( new FormComponent( "org.markdownwriterfx.controls.WebHyperlink" ) {
name: "fencedCodeBlocksExtLink"
- "text": "Markdown Extra"
+ "text": new FormMessage( null, "MarkdownOptionsPane.fencedCodeBlocksExtLink.text" )
"uri": "http://michelf.com/projects/php-markdown/extra/#fenced-code-blocks"
auxiliary() {
"JavaCodeGenerator.variableLocal": true
}
}, new FormLayoutConstraints( class net.miginfocom.layout.CC ) {
"value": "cell 0 7,gapx 0"
} )
add( new FormComponent( "javafx.scene.control.Label" ) {
name: "fencedCodeBlocksExtLabel"
- "text": "or"
+ "text": new FormMessage( null, "MarkdownOptionsPane.fencedCodeBlocksExtLabel.text" )
auxiliary() {
"JavaCodeGenerator.variableLocal": true
}
}, new FormLayoutConstraints( class net.miginfocom.layout.CC ) {
"value": "cell 0 7,gapx 3"
} )
add( new FormComponent( "org.markdownwriterfx.controls.WebHyperlink" ) {
name: "fencedCodeBlocksExtLink2"
- "text": "Github-flavoured-Markdown"
+ "text": new FormMessage( null, "MarkdownOptionsPane.fencedCodeBlocksExtLink2.text" )
"uri": "https://help.github.com/articles/github-flavored-markdown/#fenced-code-blocks"
auxiliary() {
"JavaCodeGenerator.variableLocal": true
}
}, new FormLayoutConstraints( class net.miginfocom.layout.CC ) {
"value": "cell 0 7,gapx 3"
} )
add( new FormComponent( "org.markdownwriterfx.controls.FlagCheckBox" ) {
name: "wikilinksExtCheckBox"
- "text": "_Wiki-style links (\"[[wiki link]]\")"
+ "text": new FormMessage( null, "MarkdownOptionsPane.wikilinksExtCheckBox.text" )
}, new FormLayoutConstraints( class net.miginfocom.layout.CC ) {
"value": "cell 0 8"
} )
add( new FormComponent( "org.markdownwriterfx.controls.FlagCheckBox" ) {
name: "strikethroughExtCheckBox"
- "text": "_Strikethrough"
+ "text": new FormMessage( null, "MarkdownOptionsPane.strikethroughExtCheckBox.text" )
}, new FormLayoutConstraints( class net.miginfocom.layout.CC ) {
"value": "cell 0 9"
} )
add( new FormComponent( "org.markdownwriterfx.controls.FlagCheckBox" ) {
name: "anchorlinksExtCheckBox"
- "text": "_Anchor links in headers"
+ "text": new FormMessage( null, "MarkdownOptionsPane.anchorlinksExtCheckBox.text" )
}, new FormLayoutConstraints( class net.miginfocom.layout.CC ) {
"value": "cell 0 10"
} )
add( new FormComponent( "org.markdownwriterfx.controls.FlagCheckBox" ) {
name: "suppressHtmlBlocksExtCheckBox"
- "text": "Suppress the _output of HTML blocks"
+ "text": new FormMessage( null, "MarkdownOptionsPane.suppressHtmlBlocksExtCheckBox.text" )
}, new FormLayoutConstraints( class net.miginfocom.layout.CC ) {
"value": "cell 0 11"
} )
add( new FormComponent( "org.markdownwriterfx.controls.FlagCheckBox" ) {
name: "suppressInlineHtmlExtCheckBox"
- "text": "Suppress the o_utput of inline HTML elements"
+ "text": new FormMessage( null, "MarkdownOptionsPane.suppressInlineHtmlExtCheckBox.text" )
}, new FormLayoutConstraints( class net.miginfocom.layout.CC ) {
"value": "cell 0 12"
} )
add( new FormComponent( "org.markdownwriterfx.controls.FlagCheckBox" ) {
name: "atxHeaderSpaceExtCheckBox"
- "text": "Requires a space char after Atx # header prefixes, so that #dasdsdaf is not a header"
+ "text": new FormMessage( null, "MarkdownOptionsPane.atxHeaderSpaceExtCheckBox.text" )
}, new FormLayoutConstraints( class net.miginfocom.layout.CC ) {
"value": "cell 0 13"
} )
add( new FormComponent( "org.markdownwriterfx.controls.FlagCheckBox" ) {
name: "forceListItemParaExtCheckBox"
- "text": "Force List and Definition Paragraph wrapping if it includes more than just a single paragraph"
+ "text": new FormMessage( null, "MarkdownOptionsPane.forceListItemParaExtCheckBox.text" )
}, new FormLayoutConstraints( class net.miginfocom.layout.CC ) {
"value": "cell 0 14"
} )
add( new FormComponent( "org.markdownwriterfx.controls.FlagCheckBox" ) {
name: "relaxedHrRulesExtCheckBox"
- "text": "Allow horizontal rules without a blank line following them"
+ "text": new FormMessage( null, "MarkdownOptionsPane.relaxedHrRulesExtCheckBox.text" )
}, new FormLayoutConstraints( class net.miginfocom.layout.CC ) {
"value": "cell 0 15"
} )
add( new FormComponent( "org.markdownwriterfx.controls.FlagCheckBox" ) {
name: "taskListItemsExtCheckBox"
- "text": "GitHub style task list items"
+ "text": new FormMessage( null, "MarkdownOptionsPane.taskListItemsExtCheckBox.text" )
}, new FormLayoutConstraints( class net.miginfocom.layout.CC ) {
"value": "cell 0 16"
} )
add( new FormComponent( "org.markdownwriterfx.controls.FlagCheckBox" ) {
name: "extAnchorLinksExtCheckBox"
- "text": "Generate anchor links for headers using complete contents of the header"
+ "text": new FormMessage( null, "MarkdownOptionsPane.extAnchorLinksExtCheckBox.text" )
}, new FormLayoutConstraints( class net.miginfocom.layout.CC ) {
"value": "cell 0 17"
src/main/java/org/markdownwriterfx/options/OptionsDialog.java
import javafx.stage.Window;
import org.markdownwriterfx.MarkdownWriterFXApp;
+import org.markdownwriterfx.Messages;
/**
{
public OptionsDialog(Window owner) {
- setTitle("Options");
+ setTitle(Messages.get("OptionsDialog.title"));
initOwner(owner);
//======== generalTab ========
{
- generalTab.setText("General");
+ generalTab.setText(Messages.get("OptionsDialog.generalTab.text"));
generalTab.setContent(generalOptionsPane);
}
//======== markdownTab ========
{
- markdownTab.setText("Markdown");
+ markdownTab.setText(Messages.get("OptionsDialog.markdownTab.text"));
markdownTab.setContent(markdownOptionsPane);
}
src/main/java/org/markdownwriterfx/options/OptionsDialog.jfd
-JFDML JFormDesigner: "9.9.9.9.9999" Java: "1.8.0_51" encoding: "UTF-8"
+JFDML JFormDesigner: "9.9.9.9.9999" Java: "1.8.0_66" encoding: "UTF-8"
new FormModel {
+ "i18n.bundlePackage": "org.markdownwriterfx"
+ "i18n.bundleName": "messages"
+ "i18n.keyPrefix": "OptionsDialog"
+ "i18n.autoExternalize": true
contentType: "form/javafx"
root: new FormRoot {
add( new FormContainer( "javafx.scene.control.TabPane", new FormLayoutManager( class javafx.scene.control.TabPane ) ) {
name: "tabPane"
"tabClosingPolicy": enum javafx.scene.control.TabPane$TabClosingPolicy UNAVAILABLE
add( new FormContainer( "javafx.scene.control.Tab", new FormLayoutManager( class javafx.scene.control.Tab ) ) {
name: "generalTab"
- "text": "General"
+ "text": new FormMessage( null, "OptionsDialog.generalTab.text" )
add( new FormComponent( "org.markdownwriterfx.options.GeneralOptionsPane" ) {
name: "generalOptionsPane"
} )
} )
add( new FormContainer( "javafx.scene.control.Tab", new FormLayoutManager( class javafx.scene.control.Tab ) ) {
name: "markdownTab"
- "text": "Markdown"
+ "text": new FormMessage( null, "OptionsDialog.markdownTab.text" )
add( new FormComponent( "org.markdownwriterfx.options.MarkdownOptionsPane" ) {
name: "markdownOptionsPane"