Changeset 387

Show
Ignore:
Timestamp:
09/19/11 13:35:46 (8 months ago)
Author:
Carsten
Message:

Properly spell the name of the programming language "Lua" in strings and comments.
(See section "What's in a name?" at  http://www.lua.org/about.html for details.)

Location:
cafu/trunk/CaWE
Files:
4 modified

Legend:

Unmodified
Added
Removed
  • cafu/trunk/CaWE/GuiEditor/Windows/EditorWindow.cpp

    r368 r387  
    5656 
    5757    // Note: Since the name of a window comes from an already functional script or is checked when set 
    58     // by the method below, we assert that the name is already LUA compatible here. 
     58    // by the method below, we assert that the name is already Lua compatible here. 
    5959    wxASSERT(CheckLuaVarCompat(m_Win->Name)); 
    6060} 
     
    6565    if (!CheckLuaVarCompat(NewName)) 
    6666    { 
    67         wxMessageBox("Window names must be LUA compatible:\n-Must only consist of letters, digits and underscores\n-Must not begin with digits\n-Must not be a LUA keyword or LUA global variable", "Error: Entity name is not LUA compatible.", wxOK | wxICON_ERROR); 
     67        wxMessageBox("A window name must be a string of letters, digits, and underscores that is\n" 
     68            "not beginning with a digit and is not a reserved Lua keyword or global variable.", 
     69            "Window name is not a valid Lua identifier.", wxOK | wxICON_ERROR); 
    6870        return false; 
    6971    } 
  • cafu/trunk/CaWE/GuiEditor/Windows/EditorWindow.hpp

    r374 r387  
    6060 
    6161        /// Sets the name for this window. 
    62         /// This method checks if the name is valid in the sense of LUA compatibility 
    63         /// (window name is used as a LUA variable name for this window) and uniqueness. 
     62        /// This method checks if the name is valid in the sense of Lua compatibility 
     63        /// (window name is used as a Lua variable name for this window) and uniqueness. 
    6464        /// This function should always be called instead of setting the name member 
    6565        /// of the window directly. 
  • cafu/trunk/CaWE/LuaAux.cpp

    r285 r387  
    4141    if (LuaVarName.Matches(Varname)) 
    4242    { 
    43         // Check if variable name is a reserved LUA keyword. 
     43        // Check if variable name is a reserved Lua keyword. 
    4444        for (int KeywordNr=0; KeywordNr<NrOfKeywords; KeywordNr++) 
    4545            if (Varname.c_str()==Keywords_Lua[KeywordNr]) return false; 
    4646 
    47         // Check if variable name matches a LUA global variable. 
     47        // Check if variable name matches a Lua global variable. 
    4848        wxRegEx LuaGlobals("^[_][A-Z]+$", wxRE_ADVANCED); 
    4949        wxASSERT(LuaGlobals.IsValid()); 
  • cafu/trunk/CaWE/LuaAux.hpp

    r285 r387  
    3939 
    4040 
    41 /// Checks if a string is a valid LUA variable name. 
     41/// Checks if a string is a valid Lua variable name. 
    4242/// @param Varname The variable name to be checked. 
    4343/// @return Whether the string is valid or not. 
    4444bool CheckLuaVarCompat(const wxString& Varname); 
    4545 
    46 /// Converts a string into a valid LUA variable name by replacing 
     46/// Converts a string into a valid Lua variable name by replacing 
    4747/// all special invalid characters with underscores and/or adding 
    4848/// underscores to the begining of the name to make it valid. 
    4949/// @param Varname The variable name to convert. 
    50 /// @return The converted valid LUA variable name. 
     50/// @return The converted valid Lua variable name. 
    5151wxString MakeLuaVarName(const wxString& Varname); 
    5252