Changeset 8978
- Timestamp:
- 2005-02-08T14:29:02+13:00 (19 years ago)
- Location:
- trunk/gli
- Files:
-
- 12 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gli/classes/feedback.properties
r7316 r8978 221 221 Separator=Separator 222 222 NoComponent=No Component (it's a null object) 223 TitlePane=Metal Title Pane (Platform depend ant)223 TitlePane=Metal Title Pane (Platform dependent) 224 224 ToolTipText=ToolTipText 225 225 Feedback=Feedback -
trunk/gli/makegli.bat
r8884 r8978 141 141 if "%1" == "" goto makeAll 142 142 :: If a file has been specified as a command-line argument, just compile that file 143 if "%GLILANG%" == "en" echo Compiling %1 and depend ant classes...143 if "%GLILANG%" == "en" echo Compiling %1 and dependent classes... 144 144 if "%GLILANG%" == "es" echo Compilando %1 y clases dependientes... 145 145 if "%GLILANG%" == "fr" echo Compilation de %1 et des classes dpendantes,,, -
trunk/gli/makegli.sh
r8884 r8978 126 126 echo "ëÏÍÐÉÌÉÒÏ×ÁÎÉÅ $* É ÚÁ×ÉÓÉÍÙÅ ËÌÁÓÓÙ..." 127 127 else 128 echo "Compiling $* and depend ant classes..."128 echo "Compiling $* and dependent classes..." 129 129 fi 130 130 -
trunk/gli/metadata/dublin.mds
r7237 r8978 19 19 name CDATA #REQUIRED 20 20 namespace CDATA #REQUIRED 21 language_depend ant CDATA "">21 language_dependent CDATA ""> 22 22 23 23 <!-- The name of a metadata set. Is language specific. --> -
trunk/gli/metadata/nzgls.mds
r8932 r8978 19 19 name CDATA #REQUIRED 20 20 namespace CDATA #REQUIRED 21 language_depend ant CDATA "">21 language_dependent CDATA ""> 22 22 23 23 <!-- The name of a metadata set. Is language specific. --> -
trunk/gli/metadata/qdublin.mds
r8972 r8978 19 19 name CDATA #REQUIRED 20 20 namespace CDATA #REQUIRED 21 language_depend ant CDATA "">21 language_dependent CDATA ""> 22 22 23 23 <!-- The name of a metadata set. Is language specific. --> … … 59 59 restricted (true|false) "false"> 60 60 ]> 61 <MetadataSet contact="[email protected]" creator="Dublin Core Metadata Initiative" family="Dublin Core" language_depend ant="identifier, definition, comment" lastchanged="Tue Jun 04 10:35:30 2002 - jmt12 on blackbird" namespace="dc">61 <MetadataSet contact="[email protected]" creator="Dublin Core Metadata Initiative" family="Dublin Core" language_dependent="identifier, definition, comment" lastchanged="Tue Jun 04 10:35:30 2002 - jmt12 on blackbird" namespace="dc"> 62 62 <!-- English Version sourced from http://www.dublincore.org/documents/dces/ --> 63 63 <SetLanguage code="en"> -
trunk/gli/metadata/rfc1807.mds
r8865 r8978 19 19 name CDATA #REQUIRED 20 20 namespace CDATA #REQUIRED 21 language_depend ant CDATA "">21 language_dependent CDATA ""> 22 22 23 23 <!-- The name of a metadata set. Is language specific. --> -
trunk/gli/src/org/greenstone/gatherer/gems/ComboArea.java
r8593 r8978 188 188 temp = (JLabel) super.getListCellRendererComponent(list, "", index, isSelected, cellHasFocus); 189 189 } 190 // Colouring should be the same as the depend ant we are based on.190 // Colouring should be the same as the dependent we are based on. 191 191 if(isSelected) { 192 192 temp.setBackground(text_area.getSelectionColor()); -
trunk/gli/src/org/greenstone/gatherer/gems/ElementWrapper.java
r8971 r8978 205 205 return element; 206 206 } 207 /** Retrieve the identity of this element (not necessary the same as this elements name). Identity is language and locale depend ant.207 /** Retrieve the identity of this element (not necessary the same as this elements name). Identity is language and locale dependent. 208 208 * @return The identity as a <strong>String</strong>. 209 209 * @see org.greenstone.gatherer.msm.MSMUtils -
trunk/gli/src/org/greenstone/gatherer/gems/MSMUtils.java
r8971 r8978 75 75 } 76 76 77 /** Method to add an attribute element to the given element. This method makes use of the language_depend ant attribute of the document to not only determine if the attribute is language dependant, but also to see whether a Language element should be created if doesn't already exist.77 /** Method to add an attribute element to the given element. This method makes use of the language_dependent attribute of the document to not only determine if the attribute is language dependent, but also to see whether a Language element should be created if doesn't already exist. 78 78 * @param element_element the Element to add the attribute element to 79 79 * @param attribute_name_str the name of the new attribute to add as a String 80 80 * @param language_code_str the two letter code String of the language this attribute is to be added as 81 81 * @param value_str the String to be assigned as the attribute elements value 82 * @see org.greenstone.gatherer.msm.MSMUtils#isAttributeLanguageDepend ant82 * @see org.greenstone.gatherer.msm.MSMUtils#isAttributeLanguageDependent 83 83 * @see org.greenstone.gatherer.msm.MSMUtils#setValue(Element, String) 84 84 * @see org.greenstone.gatherer.util.StaticStrings#ATTRIBUTE_ELEMENT … … 96 96 97 97 // Start off by determining if we have to add this node in the new multilingual optimized way 98 if(isAttributeLanguageDepend ant(document, attribute_name_str)) {98 if(isAttributeLanguageDependent(document, attribute_name_str)) { 99 99 boolean found = false; 100 100 // Try to retrieve a language element for the given language code … … 428 428 * @param language_code_str the two letter code String indicating the desired language 429 429 * @see org.greenstone.gatherer.msm.MSMUtils#getValue 430 * @see org.greenstone.gatherer.msm.MSMUtils#isAttributeLanguageDepend ant430 * @see org.greenstone.gatherer.msm.MSMUtils#isAttributeLanguageDependent 431 431 * @see org.greenstone.gatherer.util.StaticStrings#ATTRIBUTE_ELEMENT 432 432 * @see org.greenstone.gatherer.util.StaticStrings#CODE_ATTRIBUTE … … 441 441 Document document = element_element.getOwnerDocument(); 442 442 // Determine if the attribute is language specific 443 if(isAttributeLanguageDepend ant(document, attribute_name_str)) {443 if(isAttributeLanguageDependent(document, attribute_name_str)) { 444 444 NodeList language_elements = element_element.getElementsByTagName(StaticStrings.LANGUAGE_ELEMENT); 445 445 for(int i = 0; !found && i < language_elements.getLength(); i++) { … … 738 738 * @param document the Document for which we wish to check the language requirements 739 739 * @param attribute_name_str the name of the attribute we a testing as a String 740 * @see org.greenstone.gatherer.util.StaticStrings#LANGUAGEDEPEND ANT_ATTRIBUTE740 * @see org.greenstone.gatherer.util.StaticStrings#LANGUAGEDEPENDENT_ATTRIBUTE 741 741 * Modified by Matthew Whyte 4/02/05 742 742 */ 743 static private boolean isAttributeLanguageDepend ant(Document document, String attribute_name_str)743 static private boolean isAttributeLanguageDependent(Document document, String attribute_name_str) 744 744 { 745 745 //gives a list of comma seperated language specific attributes. 746 String language_specific_attributes = document.getDocumentElement().getAttribute(StaticStrings.LANGUAGEDEPEND ANT_ATTRIBUTE).toLowerCase();746 String language_specific_attributes = document.getDocumentElement().getAttribute(StaticStrings.LANGUAGEDEPENDENT_ATTRIBUTE).toLowerCase(); 747 747 //System.err.println("lang_specific: " + language_specific_attributes); //debug 748 748 … … 759 759 } 760 760 761 /** Determine if the given document is a legacy MDS or a new multilingual one. The easiest way to tell is whether there is a language_depend ant attribute in the document element.761 /** Determine if the given document is a legacy MDS or a new multilingual one. The easiest way to tell is whether there is a language_dependent attribute in the document element. 762 762 * @param document the Document to test 763 763 * @return true if this is an old mds, false otherwise 764 * @see org.greenstone.gatherer.util.StaticStrings#LANGUAGEDEPEND ANT_ATTRIBUTE764 * @see org.greenstone.gatherer.util.StaticStrings#LANGUAGEDEPENDENT_ATTRIBUTE 765 765 * @see org.greenstone.gatherer.util.StaticStrings#EMPTY_STR 766 766 */ 767 767 static private boolean isLegacyMDS(Document document) { 768 ///ystem.err.println("isLegacyMDS(): l_d = " + document.getDocumentElement().getAttribute(StaticStrings.LANGUAGEDEPEND ANT_ATTRIBUTE));769 return (document.getDocumentElement().getAttribute(StaticStrings.LANGUAGEDEPEND ANT_ATTRIBUTE)).equals(StaticStrings.EMPTY_STR);768 ///ystem.err.println("isLegacyMDS(): l_d = " + document.getDocumentElement().getAttribute(StaticStrings.LANGUAGEDEPENDENT_ATTRIBUTE)); 769 return (document.getDocumentElement().getAttribute(StaticStrings.LANGUAGEDEPENDENT_ATTRIBUTE)).equals(StaticStrings.EMPTY_STR); 770 770 } 771 771 … … 809 809 * @param value_str the value String which also must match before we remove anything 810 810 * @return true if the desired attribute was successfully found and removed, false otherwise 811 * @see org.greenstone.gatherer.msm.MSMUtils#isAttributeLanguageDepend ant811 * @see org.greenstone.gatherer.msm.MSMUtils#isAttributeLanguageDependent 812 812 * @see org.greenstone.gatherer.msm.MSMUtils#getValue(Node) 813 813 * @see org.greenstone.gatherer.util.StaticStrings#ATTRIBUTE_ELEMENT … … 820 820 //Determine the if this is one of the language specific attributes. 821 821 //This can sometimes give a false result, if an attribute is made language specific half way through creation of a metadata set (or vice versa). 822 if(isAttributeLanguageDepend ant(element_element.getOwnerDocument(), attribute_name_str))822 if(isAttributeLanguageDependent(element_element.getOwnerDocument(), attribute_name_str)) 823 823 { 824 824 /* -
trunk/gli/src/org/greenstone/gatherer/gems/MetadataSet.java
r8971 r8978 617 617 } 618 618 619 /** This method retrieves the required attribute from the Metadata Set, typically it's name or it's description. Note that this method is language depend ant, and moreover supports both legacy metadata sets and the new sets optimized for multiple languages.619 /** This method retrieves the required attribute from the Metadata Set, typically it's name or it's description. Note that this method is language dependent, and moreover supports both legacy metadata sets and the new sets optimized for multiple languages. 620 620 * @param element_name the name of the type of element the required information is in as a String 621 621 * @param default_string the value to return if no such element is found also as a String -
trunk/gli/src/org/greenstone/gatherer/util/StaticStrings.java
r8766 r8978 142 142 static final public String LANGUAGE_DEFAULT_STR = "defaultlanguage"; 143 143 static final public String LANGUAGE_STR = "language"; 144 static final public String LANGUAGEDEPEND ANT_ATTRIBUTE = "language_dependent";144 static final public String LANGUAGEDEPENDENT_ATTRIBUTE = "language_dependent"; 145 145 static final public String LANGUAGES_ELEMENT = "Languages"; 146 146 static final public String LANGUAGES_STR = "languages";
Note:
See TracChangeset
for help on using the changeset viewer.