Actions

Talk

Difference between revisions of "Creating a profile plugin"

From Joomla! Documentation

m
m
Line 5: Line 5:
 
Looking at ''profile5.xml'' it indicates that the language files are to be found in:
 
Looking at ''profile5.xml'' it indicates that the language files are to be found in:
  
<pre>
 
 
         <languages>
 
         <languages>
 
                 <language tag="en-GB">en-GB.plg_user_profile.ini</language>
 
                 <language tag="en-GB">en-GB.plg_user_profile.ini</language>
 
                 <language tag="en-GB">en-GB.plg_user_profile.sys.ini</language>
 
                 <language tag="en-GB">en-GB.plg_user_profile.sys.ini</language>
 
         </languages>
 
         </languages>
</pre>
 
  
 
But these are the language files for the ''User:Profile'' plugin. So basically, the language translations would need to be done on another plugin's language files?
 
But these are the language files for the ''User:Profile'' plugin. So basically, the language translations would need to be done on another plugin's language files?
Line 16: Line 14:
 
Should this tutorial show the plugin containing its own language files? For example:
 
Should this tutorial show the plugin containing its own language files? For example:
  
<pre>
 
 
         <languages>
 
         <languages>
 
                 <language tag="en-GB">en-GB.plg_user_profile5.ini</language>
 
                 <language tag="en-GB">en-GB.plg_user_profile5.ini</language>
 
                 <language tag="en-GB">en-GB.plg_user_profile5.sys.ini</language>
 
                 <language tag="en-GB">en-GB.plg_user_profile5.sys.ini</language>
 
         </languages>
 
         </languages>
</pre>
 
  
 
and examples of how these files would look like...
 
and examples of how these files would look like...

Revision as of 09:33, 28 December 2010

Jcasal 13:17, 28 December 2010 (UTC)

The examples uses the language model for I18N of the plugin, but does not show how this elements are added to the plugin the language directories.

Looking at profile5.xml it indicates that the language files are to be found in:


But these are the language files for the User:Profile plugin. So basically, the language translations would need to be done on another plugin's language files?

Should this tutorial show the plugin containing its own language files? For example:


and examples of how these files would look like...