You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-commits@xmlgraphics.apache.org by ch...@apache.org on 2002/03/27 20:15:39 UTC
cvs commit: xml-fop/src/org/apache/fop/viewer/resources messages.ru resources.ru
chrisg 02/03/27 11:15:39
Modified: src/org/apache/fop/apps Tag: fop-0_20_2-maintain
AWTStarter.java
src/org/apache/fop/viewer/resources Tag: fop-0_20_2-maintain
resources.ru
Added: src/org/apache/fop/viewer/resources Tag: fop-0_20_2-maintain
messages.ru
Log:
added russian messages for AWTViewer
fallback to english messages if resources are not found
Submitted by: Alex V. Alishevskikh <al...@openmechanics.net>
Revision Changes Path
No revision
No revision
1.9.2.2 +10 -1 xml-fop/src/org/apache/fop/apps/AWTStarter.java
Index: AWTStarter.java
===================================================================
RCS file: /home/cvs/xml-fop/src/org/apache/fop/apps/AWTStarter.java,v
retrieving revision 1.9.2.1
retrieving revision 1.9.2.2
diff -u -r1.9.2.1 -r1.9.2.2
--- AWTStarter.java 25 Mar 2002 18:08:27 -0000 1.9.2.1
+++ AWTStarter.java 27 Mar 2002 19:15:39 -0000 1.9.2.2
@@ -1,5 +1,5 @@
/*
- * $Id: AWTStarter.java,v 1.9.2.1 2002/03/25 18:08:27 chrisg Exp $
+ * $Id: AWTStarter.java,v 1.9.2.2 2002/03/27 19:15:39 chrisg Exp $
* Copyright (C) 2001 The Apache Software Foundation. All rights reserved.
* For details on use and redistribution please refer to the
* LICENSE file included with these sources.
@@ -150,6 +150,15 @@
try {
URL url = getClass().getResource(path);
+
+ /* The following code was added by Alex Alishevskikh [alex@openmechanics.net]
+ to fix for crashes on machines with unsupported user languages */
+ if (url == null) {
+ // if the given resource file not found, the english resource uses as default
+ path = path.substring(0, path.lastIndexOf(".")) + ".en";
+ url = getClass().getResource(path);
+ }
+
in = url.openStream();
} catch (Exception ex) {
log.error("Can't find URL to: <" + path + "> "
No revision
No revision
1.3.8.2 +19 -19 xml-fop/src/org/apache/fop/viewer/resources/resources.ru
<<Binary file>>
No revision
No revision
1.1.2.1 +80 -0 xml-fop/src/org/apache/fop/viewer/resources/Attic/messages.ru
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: fop-cvs-help@xml.apache.org