rob
Administrator
Translation of your fabrik forms and tables is performed with the Joomfish component, which can be found here:
http://www.joomfish.net/
Once installed you will then need to install a secondary language of you choice, these can be downloaded from here:
http://extensions.joomla.org/component/option,com_mtree/task,listcats/cat_id,1837/Itemid,35/
The language packs are installed via your sites administration, from the "install->languages" menu.
To check that the language is activated for Joomfish, go to "components->joomfish->languages" and check that each language you wish to translate for has the "active" checkbox ticked. If not check this box and save the settings.
There are three levels of translation that are available with Fabrik 1.0.5.
=====================================================================
Translation of the administration interface
These translation do not require Joomfish to be installed. Each translation is found in /administrator/components/com_fabrik/langauge/ and for each language consists of two files.
e.g.
1) french.xml - the xml file describes what files are used in the translation.
2) french.php - the php file contains the translation itself, each line is in the format:
In this example any occurrence of "_ADD" in Fabrik's administration interface is replaced with "Ajouter".
To create a new administration translation, copy the english.php and english.xml file, rename them to yourlanguage.php and yourlanguage.xml and translate each line of the file. If you do manage to do this, please post the files on the language forum for others to enjoy.
=====================================================================
Translation of the various element labels, button text
If you installed Joomfish before installing Fabrik, then Fabrik will detect this and attempt to automatically copy the required contentelement files to the Joomfish contentelements folder.
If this does not happen automatically or if you install Fabrik after Joomfish then you will need to copy all the files found in
/administrator/components/com_fabrik/contentelements-joomfish/
to
/administrator/components/com_joomfish/contentelements/
To perform the translation:
To view the translation in action you should publish the "JoomFish language selection" module to your site's front end.
Then view your site, select the language you translated the content elements into, and view the Fabrik table/form for which you translated the elements. You should see the labels etc translated into your selected language.
=====================================================================
Translation of the content found in your Fabrik tables
As of Fabrik 1.0.5, you can also translate each of your Fabrik table's data.
To activate this option:
Doing this will create a new contentelement xml file in /administrator/components/com_joomfish/contentelements/ with the name "fabrik-{yourtabledbname}.xml", (replace "{yourtabledbname}" with the database table name your Fabrik table links to).
Going to "components->joomfish->translation" you should now see an additional option in the content elements drop down labeled "Fabrik - {your table's label}", (replace "{your table's label}" with your Fabrik table's label)
Selecting this opton will show you a list of records, that have been recorded into your table. Clicking on one of these records will allow you to translate that record. Perform the translation, select the "published" checkbox and save the record.
Then view your Fabrik table in the front end and you should see the table's record translated.
Currently editing this translated record via the Fabrik form is NOT possible. Translations of the form's data must be performed within the Joomfish interface.
http://www.joomfish.net/
Once installed you will then need to install a secondary language of you choice, these can be downloaded from here:
http://extensions.joomla.org/component/option,com_mtree/task,listcats/cat_id,1837/Itemid,35/
The language packs are installed via your sites administration, from the "install->languages" menu.
To check that the language is activated for Joomfish, go to "components->joomfish->languages" and check that each language you wish to translate for has the "active" checkbox ticked. If not check this box and save the settings.
There are three levels of translation that are available with Fabrik 1.0.5.
- Translation of the administration interface
- Translation of the various element labels, button text (e.g. the save button label)
- Translation of the content found in your Fabrik tables, i.e. the translation of the content added via a Fabrik form
=====================================================================
Translation of the administration interface
These translation do not require Joomfish to be installed. Each translation is found in /administrator/components/com_fabrik/langauge/ and for each language consists of two files.
e.g.
1) french.xml - the xml file describes what files are used in the translation.
2) french.php - the php file contains the translation itself, each line is in the format:
Code:
define("_ADD", "Ajouter");
In this example any occurrence of "_ADD" in Fabrik's administration interface is replaced with "Ajouter".
To create a new administration translation, copy the english.php and english.xml file, rename them to yourlanguage.php and yourlanguage.xml and translate each line of the file. If you do manage to do this, please post the files on the language forum for others to enjoy.
=====================================================================
Translation of the various element labels, button text
If you installed Joomfish before installing Fabrik, then Fabrik will detect this and attempt to automatically copy the required contentelement files to the Joomfish contentelements folder.
If this does not happen automatically or if you install Fabrik after Joomfish then you will need to copy all the files found in
/administrator/components/com_fabrik/contentelements-joomfish/
to
/administrator/components/com_joomfish/contentelements/
To perform the translation:
- select "components->joomfish->translation" from the admin menu.
- From the dropdowns on the right hand side select the language you wish to create the translation for.
- Again fro these dropdowns select the the content element you wish to translate, e.g. "Fabrik - Elements"
- Now, presuming that you have already created some elements in Fabrik, you should see a list of these elements and their translation state for the selected translation language.
- So, for example if you have installed Fabrik's sample data, you should see a row labeled "Email", click on this
- Add a translation for the "label:label" field, check "published" and save the element
- Repeat this procedure for each fabrik contentelement you wish to translate
To view the translation in action you should publish the "JoomFish language selection" module to your site's front end.
Then view your site, select the language you translated the content elements into, and view the Fabrik table/form for which you translated the elements. You should see the labels etc translated into your selected language.
=====================================================================
Translation of the content found in your Fabrik tables
As of Fabrik 1.0.5, you can also translate each of your Fabrik table's data.
To activate this option:
- Edit the Fabrik table you wish to translate
- Select "yes" for the "Allow translation of data" option, found on the left hand column.
- Then save your form
Doing this will create a new contentelement xml file in /administrator/components/com_joomfish/contentelements/ with the name "fabrik-{yourtabledbname}.xml", (replace "{yourtabledbname}" with the database table name your Fabrik table links to).
Going to "components->joomfish->translation" you should now see an additional option in the content elements drop down labeled "Fabrik - {your table's label}", (replace "{your table's label}" with your Fabrik table's label)
Selecting this opton will show you a list of records, that have been recorded into your table. Clicking on one of these records will allow you to translate that record. Perform the translation, select the "published" checkbox and save the record.
Then view your Fabrik table in the front end and you should see the table's record translated.
Currently editing this translated record via the Fabrik form is NOT possible. Translations of the form's data must be performed within the Joomfish interface.