Author: linus
Date: 2011-05-23 12:46:55-0700
New Revision: 19495
Modified:
trunk/src/argouml-app/src/org/argouml/application/helpers/ApplicationVersion.java
trunk/src/argouml-app/src/org/argouml/i18n/tab.properties
Log:
Adaptation for pointers to user manuals of any language.
Contributed by Harald Braun.
Modified: trunk/src/argouml-app/src/org/argouml/application/helpers/ApplicationVersion.java
Url: http://argouml.tigris.org/source/browse/argouml/trunk/src/argouml-app/src/org/argouml/application/helpers/ApplicationVersion.java?view=diff&pathrev=19495&r1=19494&r2=19495
==============================================================================
--- trunk/src/argouml-app/src/org/argouml/application/helpers/ApplicationVersion.java (original)
+++ trunk/src/argouml-app/src/org/argouml/application/helpers/ApplicationVersion.java 2011-05-23 12:46:55-0700
@@ -38,6 +38,14 @@
package org.argouml.application.helpers;
+import java.io.File;
+import java.net.URI;
+import java.net.URISyntaxException;
+import java.net.URL;
+
+import org.apache.log4j.Logger;
+import org.argouml.cognitive.Translator;
+
/**
* Receives the version of the application at initialisation time.
* Also knows about website locations that depend on the version of ArgoUML.
@@ -46,6 +54,11 @@
*/
public class ApplicationVersion {
/**
+ * Logger.
+ */
+ private static final Logger LOG = Logger.getLogger(ApplicationVersion.class);
+
+ /**
* Version number.
*/
private static String version;
@@ -74,7 +87,7 @@
* @return the URL
*/
public static String getManualForCritic() {
- return "http://argouml-stats.tigris.org/documentation/"
+ return Translator.localize("tab.help.path.manualcritic")
+ "manual-"
+ stableVersion
+ "-single/argomanual.html#critics.";
@@ -86,8 +99,9 @@
* @return the URL
*/
public static String getOnlineManual() {
- return "http://argouml-stats.tigris.org/nonav/documentation/"
- + "manual-" + stableVersion + "/";
+
+ return Translator.localize("tab.help.path.manual")
+ + "manual-" + stableVersion + "/";
}
/**
@@ -96,7 +110,7 @@
* @return the URL
*/
public static String getOnlineSupport() {
- return "http://argouml.tigris.org/nonav/support.html";
+ return Translator.localize("tab.help.path.support");
}
/**
Modified: trunk/src/argouml-app/src/org/argouml/i18n/tab.properties
Url: http://argouml.tigris.org/source/browse/argouml/trunk/src/argouml-app/src/org/argouml/i18n/tab.properties?view=diff&pathrev=19495&r1=19494&r2=19495
==============================================================================
--- trunk/src/argouml-app/src/org/argouml/i18n/tab.properties (original)
+++ trunk/src/argouml-app/src/org/argouml/i18n/tab.properties 2011-05-23 12:46:55-0700
@@ -48,8 +48,11 @@
tab.diagramappearance = Diagram Appearance
tab.help.manual = Manual
tab.help.tip.manual = The ArgoUML online manual
+tab.help.path.manual = http://argouml-stats.tigris.org/nonav/documentation/
+tab.help.path.manualcritic = http://argouml-stats.tigris.org/documentation/
tab.help.support = Support
tab.help.tip.support = The ArgoUML support page
+tab.help.path.support = http://argouml.tigris.org/nonav/support.html
tab.history = History
tab.layout = Layout
tab.notation = Notations
------------------------------------------------------
http://argouml.tigris.org/ds/viewMessage.do?dsForumId=5905&dsMessageId=2746030
To unsubscribe from this discussion, e-mail: [[email protected]].
lmpx.com only provides a reader for public news (NNTP) servers. It is not
affiliated with the servers or forums shown here and is not responsible for
the content of articles, which is written by their respective authors.