JLanguage/1.5

From Joomla! Documentation
< JLanguage(Difference between revisions)
Jump to: navigation, search
(Bulk upload by Doxiki2)
 
m (See also: fixing link to API)
 
(One intermediate revision by one user not shown)
Line 1: Line 1:
 
__NOTOC__
 
__NOTOC__
 +
=={{JVer|1.5}} JLanguage==
 +
===Description===
 +
{{Description:JLanguage}}
 
<span class="editsection" style="font-size:76%;">
 
<span class="editsection" style="font-size:76%;">
 
<nowiki>[</nowiki>[[Description:JLanguage|Edit Descripton]]<nowiki>]</nowiki>
 
<nowiki>[</nowiki>[[Description:JLanguage|Edit Descripton]]<nowiki>]</nowiki>
 
</span>
 
</span>
{{Description:JLanguage}}
 
===Defined in===
 
libraries/joomla/language/language.php
 
===Subpackage===
 
[[Subpackage Language/1.5|Language]]
 
===Extends===
 
[[JObject/1.5|JObject]]
 
===Extended by===
 
 
===Methods===
 
===Methods===
 
{| class="wikitable sortable"
 
{| class="wikitable sortable"
 
|-
 
|-
 +
!Visibility
 
!Method name
 
!Method name
 
!Description
 
!Description
 
|-
 
|-
 +
|public
 
|[[JLanguage::_/1.5|_]]
 
|[[JLanguage::_/1.5|_]]
 
|Translate function, mimics the php gettext (alias _) function.  
 
|Translate function, mimics the php gettext (alias _) function.  
 
|-
 
|-
 +
|public
 
|[[JLanguage::__construct/1.5|__construct]]
 
|[[JLanguage::__construct/1.5|__construct]]
 
|Constructor activating the default information of the language.  
 
|Constructor activating the default information of the language.  
 
|-
 
|-
 +
|public
 
|[[JLanguage::_getCallerInfo/1.5|_getCallerInfo]]
 
|[[JLanguage::_getCallerInfo/1.5|_getCallerInfo]]
 
|Determine who called  or .  
 
|Determine who called  or .  
 
|-
 
|-
 +
|public
 
|[[JLanguage::_load/1.5|_load]]
 
|[[JLanguage::_load/1.5|_load]]
 
|Loads a language file.  
 
|Loads a language file.  
 
|-
 
|-
 +
|public
 
|[[JLanguage::_parseLanguageFiles/1.5|_parseLanguageFiles]]
 
|[[JLanguage::_parseLanguageFiles/1.5|_parseLanguageFiles]]
 
|Searches for language directories within a certain base dir.  
 
|Searches for language directories within a certain base dir.  
 
|-
 
|-
 +
|public
 
|[[JLanguage::_parseXMLLanguageFile/1.5|_parseXMLLanguageFile]]
 
|[[JLanguage::_parseXMLLanguageFile/1.5|_parseXMLLanguageFile]]
 
|Parse XML file for language information.  
 
|Parse XML file for language information.  
 
|-
 
|-
 +
|public
 
|[[JLanguage::_parseXMLLanguageFiles/1.5|_parseXMLLanguageFiles]]
 
|[[JLanguage::_parseXMLLanguageFiles/1.5|_parseXMLLanguageFiles]]
 
|Parses XML files for language information.  
 
|Parses XML files for language information.  
 
|-
 
|-
 +
|public
 
|[[JLanguage::exists/1.5|exists]]
 
|[[JLanguage::exists/1.5|exists]]
 
|Check if a language exists.  
 
|Check if a language exists.  
 
|-
 
|-
 +
|public
 
|[[JLanguage::get/1.5|get]]
 
|[[JLanguage::get/1.5|get]]
 
|Get a matadata language property.  
 
|Get a matadata language property.  
 
|-
 
|-
 +
|public
 
|[[JLanguage::getBackwardLang/1.5|getBackwardLang]]
 
|[[JLanguage::getBackwardLang/1.5|getBackwardLang]]
 
|Getter for backward compatible language name.  
 
|Getter for backward compatible language name.  
 
|-
 
|-
 +
|public
 
|[[JLanguage::getDebug/1.5|getDebug]]
 
|[[JLanguage::getDebug/1.5|getDebug]]
 
|Get the Debug property.  
 
|Get the Debug property.  
 
|-
 
|-
 +
|public
 
|[[JLanguage::getDefault/1.5|getDefault]]
 
|[[JLanguage::getDefault/1.5|getDefault]]
 
|Get the default language code.  
 
|Get the default language code.  
 
|-
 
|-
 +
|public 
 
|[[JLanguage::getInstance/1.5|getInstance]]
 
|[[JLanguage::getInstance/1.5|getInstance]]
 
|Returns a reference to a language object.  
 
|Returns a reference to a language object.  
 
|-
 
|-
 +
|public
 
|[[JLanguage::getKnownLanguages/1.5|getKnownLanguages]]
 
|[[JLanguage::getKnownLanguages/1.5|getKnownLanguages]]
 
|Returns a list of known languages for an area.  
 
|Returns a list of known languages for an area.  
 
|-
 
|-
 +
|public
 
|[[JLanguage::getLanguagePath/1.5|getLanguagePath]]
 
|[[JLanguage::getLanguagePath/1.5|getLanguagePath]]
 
|Get the path to a language.  
 
|Get the path to a language.  
 
|-
 
|-
 +
|public
 
|[[JLanguage::getLocale/1.5|getLocale]]
 
|[[JLanguage::getLocale/1.5|getLocale]]
 
|Get locale property.  
 
|Get locale property.  
 
|-
 
|-
 +
|public
 
|[[JLanguage::getMetadata/1.5|getMetadata]]
 
|[[JLanguage::getMetadata/1.5|getMetadata]]
 
|Returns a associative array holding the metadata.  
 
|Returns a associative array holding the metadata.  
 
|-
 
|-
 +
|public
 
|[[JLanguage::getName/1.5|getName]]
 
|[[JLanguage::getName/1.5|getName]]
 
|Getter for Name.  
 
|Getter for Name.  
 
|-
 
|-
 +
|public
 
|[[JLanguage::getOrphans/1.5|getOrphans]]
 
|[[JLanguage::getOrphans/1.5|getOrphans]]
 
|Get the list of orphaned strings if being tracked.  
 
|Get the list of orphaned strings if being tracked.  
 
|-
 
|-
 +
|public
 
|[[JLanguage::getPaths/1.5|getPaths]]
 
|[[JLanguage::getPaths/1.5|getPaths]]
 
|Get a list of language files that have been loaded.  
 
|Get a list of language files that have been loaded.  
 
|-
 
|-
 +
|public
 
|[[JLanguage::getPdfFontName/1.5|getPdfFontName]]
 
|[[JLanguage::getPdfFontName/1.5|getPdfFontName]]
 
|Getter for PDF Font Name.  
 
|Getter for PDF Font Name.  
 
|-
 
|-
 +
|public
 
|[[JLanguage::getTag/1.5|getTag]]
 
|[[JLanguage::getTag/1.5|getTag]]
 
|Get for the language tag (as defined in RFC 3066).  
 
|Get for the language tag (as defined in RFC 3066).  
 
|-
 
|-
 +
|public
 
|[[JLanguage::getUsed/1.5|getUsed]]
 
|[[JLanguage::getUsed/1.5|getUsed]]
 
|Get the list of used strings.  
 
|Get the list of used strings.  
 
|-
 
|-
 +
|public
 
|[[JLanguage::getWinCP/1.5|getWinCP]]
 
|[[JLanguage::getWinCP/1.5|getWinCP]]
 
|Getter for Windows locale code page.  
 
|Getter for Windows locale code page.  
 
|-
 
|-
 +
|public
 
|[[JLanguage::hasKey/1.5|hasKey]]
 
|[[JLanguage::hasKey/1.5|hasKey]]
 
|Determines is a key exists.  
 
|Determines is a key exists.  
 
|-
 
|-
 +
|public
 
|[[JLanguage::isRTL/1.5|isRTL]]
 
|[[JLanguage::isRTL/1.5|isRTL]]
 
|Get the RTL property.  
 
|Get the RTL property.  
 
|-
 
|-
 +
|public
 
|[[JLanguage::load/1.5|load]]
 
|[[JLanguage::load/1.5|load]]
 
|Loads a single language file and appends the results to the existing strings.  
 
|Loads a single language file and appends the results to the existing strings.  
 
|-
 
|-
 +
|public
 
|[[JLanguage::setDebug/1.5|setDebug]]
 
|[[JLanguage::setDebug/1.5|setDebug]]
 
|Set the Debug property.  
 
|Set the Debug property.  
 
|-
 
|-
 +
|public
 
|[[JLanguage::setDefault/1.5|setDefault]]
 
|[[JLanguage::setDefault/1.5|setDefault]]
 
|Set the default language code.  
 
|Set the default language code.  
 
|-
 
|-
 +
|public
 
|[[JLanguage::setLanguage/1.5|setLanguage]]
 
|[[JLanguage::setLanguage/1.5|setLanguage]]
 
|Set the language attributes to the given language.  
 
|Set the language attributes to the given language.  
 
|-
 
|-
 +
|public
 
|[[JLanguage::transliterate/1.5|transliterate]]
 
|[[JLanguage::transliterate/1.5|transliterate]]
 
|Transliterate function.  
 
|Transliterate function.  
 
|-
 
|-
 
|}
 
|}
 +
* '''Defined in''' libraries/joomla/language/language.php
 +
* '''Extends''' [[JObject/1.5|JObject]]
 
===Importing===
 
===Importing===
 
<source lang="php">jimport( 'joomla.language.language' );</source>
 
<source lang="php">jimport( 'joomla.language.language' );</source>
 
===See also===
 
===See also===
 +
* {{JVer|1.5}} '''JLanguage''' on [http://api.joomla.org/1.5/Joomla-Framework/Language/JLanguage.html api.joomla.org]
 +
* {{JVer|1.5}} '''JLanguage source code''' on [[jframework15:language/language.php|JoomlaCode]]
 +
* {{JVer|1.5}} Subpackage [[Subpackage Language/1.5|Language]]
 +
* [[JLanguage|Other versions of JLanguage]]
 +
{{SeeAlso:JLanguage}}
 
<span class="editsection" style="font-size:76%;">
 
<span class="editsection" style="font-size:76%;">
 
<nowiki>[</nowiki>[[SeeAlso:JLanguage|Edit See Also]]<nowiki>]</nowiki>
 
<nowiki>[</nowiki>[[SeeAlso:JLanguage|Edit See Also]]<nowiki>]</nowiki>
 
</span>
 
</span>
{{SeeAlso:JLanguage}}
+
===User contributed notes===
* [[JLanguage|Other versions of this class]]
+
* [http://api.joomla.org/Joomla-Framework/Language/JLanguage.html JLanguage on api.joomla.org]
+
===Examples===
+
 
<CodeExamplesForm />
 
<CodeExamplesForm />
 
<dpl>
 
<dpl>
Line 128: Line 159:
 
category=ClassExample
 
category=ClassExample
 
include=*
 
include=*
 +
namespace=CodeExample
 
format= ,,,
 
format= ,,,
 
</dpl>
 
</dpl>
 
<noinclude>[[Category:Framework]][[Category:Framework 1.5]][[Category:JLanguage]]</noinclude>
 
<noinclude>[[Category:Framework]][[Category:Framework 1.5]][[Category:JLanguage]]</noinclude>

Latest revision as of 16:03, 13 February 2013

[edit] Joomla 1.5 JLanguage

[edit] Description

Description:JLanguage [Edit Descripton]

[edit] Methods

Visibility Method name Description
public _ Translate function, mimics the php gettext (alias _) function.
public __construct Constructor activating the default information of the language.
public _getCallerInfo Determine who called or .
public _load Loads a language file.
public _parseLanguageFiles Searches for language directories within a certain base dir.
public _parseXMLLanguageFile Parse XML file for language information.
public _parseXMLLanguageFiles Parses XML files for language information.
public exists Check if a language exists.
public get Get a matadata language property.
public getBackwardLang Getter for backward compatible language name.
public getDebug Get the Debug property.
public getDefault Get the default language code.
public getInstance Returns a reference to a language object.
public getKnownLanguages Returns a list of known languages for an area.
public getLanguagePath Get the path to a language.
public getLocale Get locale property.
public getMetadata Returns a associative array holding the metadata.
public getName Getter for Name.
public getOrphans Get the list of orphaned strings if being tracked.
public getPaths Get a list of language files that have been loaded.
public getPdfFontName Getter for PDF Font Name.
public getTag Get for the language tag (as defined in RFC 3066).
public getUsed Get the list of used strings.
public getWinCP Getter for Windows locale code page.
public hasKey Determines is a key exists.
public isRTL Get the RTL property.
public load Loads a single language file and appends the results to the existing strings.
public setDebug Set the Debug property.
public setDefault Set the default language code.
public setLanguage Set the language attributes to the given language.
public transliterate Transliterate function.
  • Defined in libraries/joomla/language/language.php
  • Extends JObject

[edit] Importing

jimport( 'joomla.language.language' );

[edit] See also

SeeAlso:JLanguage [Edit See Also]

[edit] User contributed notes

<CodeExamplesForm />


Personal tools
Namespaces

Variants
Actions
Navigation
Joomla! Sites
Toolbox