lenya-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gre...@apache.org
Subject cvs commit: cocoon-lenya/src/java/org/apache/lenya/cms/publication PageEnvelope.java
Date Fri, 08 Aug 2003 16:38:42 GMT
gregor      2003/08/08 09:38:42

  Modified:    src/java/org/apache/lenya/cms/cocoon/components/modules/input
                        PageEnvelopeModule.java
               src/java/org/apache/lenya/cms/publication PageEnvelope.java
  Log:
  expose default language through page envelope
  
  Revision  Changes    Path
  1.18      +3 -1      cocoon-lenya/src/java/org/apache/lenya/cms/cocoon/components/modules/input/PageEnvelopeModule.java
  
  Index: PageEnvelopeModule.java
  ===================================================================
  RCS file: /home/cvs/cocoon-lenya/src/java/org/apache/lenya/cms/cocoon/components/modules/input/PageEnvelopeModule.java,v
  retrieving revision 1.17
  retrieving revision 1.18
  diff -u -r1.17 -r1.18
  --- PageEnvelopeModule.java	30 Jul 2003 15:03:25 -0000	1.17
  +++ PageEnvelopeModule.java	8 Aug 2003 16:38:42 -0000	1.18
  @@ -128,6 +128,8 @@
                   value = envelope.getDocumentPath();
               } else if (name.equals(PageEnvelope.DOCUMENT_FILE)) {
                   value = envelope.getDocument().getFile();
  +			} else if (name.equals(PageEnvelope.DEFAULT_LANGUAGE)) {
  +				value = envelope.getPublication().getDefaultLanguage();
               } else if (name.equals(PageEnvelope.DOCUMENT_LANGUAGE)) {
                   value = envelope.getDocument().getLanguage();
   			} else if (name.equals(PageEnvelope.DOCUMENT_LANGUAGES)) {
  
  
  
  1.37      +3 -1      cocoon-lenya/src/java/org/apache/lenya/cms/publication/PageEnvelope.java
  
  Index: PageEnvelope.java
  ===================================================================
  RCS file: /home/cvs/cocoon-lenya/src/java/org/apache/lenya/cms/publication/PageEnvelope.java,v
  retrieving revision 1.36
  retrieving revision 1.37
  diff -u -r1.36 -r1.37
  --- PageEnvelope.java	31 Jul 2003 11:56:42 -0000	1.36
  +++ PageEnvelope.java	8 Aug 2003 16:38:42 -0000	1.37
  @@ -76,6 +76,7 @@
       public static final String PUBLICATION = "publication";
       public static final String CONTEXT = "context-prefix";
       public static final String AREA = "area";
  +	public static final String DEFAULT_LANGUAGE = "default-language";
       public static final String DOCUMENT_ID = "document-id";
       public static final String DOCUMENT_URL = "document-url";
       public static final String DOCUMENT_FILE = "document-file";
  @@ -260,6 +261,7 @@
               PageEnvelope.DOCUMENT_ID,
               PageEnvelope.DOCUMENT_URL,
               PageEnvelope.DOCUMENT_PATH,
  +			PageEnvelope.DEFAULT_LANGUAGE,
               PageEnvelope.DOCUMENT_LANGUAGE,
   			PageEnvelope.DOCUMENT_LANGUAGES,
               PageEnvelope.DOCUMENT_DC_TITLE,
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: lenya-cvs-unsubscribe@cocoon.apache.org
For additional commands, e-mail: lenya-cvs-help@cocoon.apache.org


Mime
View raw message