Joombah jobsboard joomfish translation

Hi

I have a dual language site using Joomfish. I wanted to translate the fields that are kept in the back end. I presume it will work for any of these fields that are stored in the backend / database.

In my case for example I wanted to translate “Position Type”

In order to do this I created an XML file (jgbobs_pos_type.xml) in: \administrator\components\com_joomfish\contentelements

The code inside the xml file is as follows:

Save it as: jbjobs_pos_type.xml

<?xml version="1.0" ?>
<joomfish type="contentelement">
<name>JoomBah Jobs Position Type</name>
<author>JoomBah Team</author>
<version>1.0</version>
<description>Definition for JoomBah Jobs description</description>
<copyright>JoomBah.com(C) 2010 - 2011, All rights reserved.</copyright>
<reference type="content">
<table name="jbjobs_pos_type">
<field type="referenceid" name="id" translate="0">ID</field>
<field type="titletext" name="pos_type"  length="50" maxlength="100" translate="1">Position Type</field>
</table>
</reference>
</joomfish>

All you have to be concerned with from the above example is:

1. The table name you are trying to translate:
<table name=”[b]jbjobs_pos_type[/b]“>

2. The field name in the table you want to translate <field type=”titletext” [b]name=”pos_type”[/b]  length=”50″ maxlength=”100″ translate=”1″>Position Type</field>

Save / upload the file as I mentioned above.

Now. If you go to Joomfish > Translate > And choose the drop down on the right “Content Elements” you will see “JoomBah Jobs Position Type”.

Select it and make the translation and you are done.

Don’t make the mistake which I made and go to front end and think the text would have changed…You have to go to the job and edit it in your language. You will see that the field options have changed.

You can do this for all the variations

The Joombah team might have a better solution, but this worked for me.

Hope this helps.

Share

Joomla Joomfish flag has no image size assigned

To comply to W3C standards images must have height and width sizes allocated.

If you want to add that to the images you can add it in: modules\mod_jflanguageselection\tmpl\namesplusimages.php

around line 121 add width and height as below.

$outString .='<img src="' .JURI::base(true). $langImg. '" alt="' .$language->name. '" title="' .$language->name. '" border="0" width="20" height="14" />'

Share

JPAGE_CURRENT_OF_TOTAL at bottom of the page

If you get the following text with a dual language site at the bottom of the page, it means that your language file for your second language is not complete.

This code does not exist in the English language file, so even if you have the whole file translated you will stll see this at the bottom of the page for multi page articles.

Go to > language > cy-GB > cy-GB.ini > add the follwing code anywhere on the page (bottom is good):

# Translation of Page 1 of 2
JPAGE_CURRENT_OF_TOTAL=Page %s of %s

Remember to translate “Page” and “of”.

Hope this helps.

Share

Jomres: Joomfish translation not working

Issue with the front end property details not saving for each language and how to edit the touch templates in another language

1. Log out of front end

2. To edit “Touch Templates” in another language you have to > Go to jomres backend > Choose Languages (Icon) > Select languages you want to be able to edit the “Label Translations” for.

3. Now go to > Label Translations > Select a language from the drop down (Top left) and translate.

If you don’t see your language, then edit the following file and add your language:
jomres_language.class.php

copy the the following file en-GB.php (rename it to your language file format) and place in \languages\propertyrentals\ or just the \languages folder if not using the propertyrentals\ language files.

You will see your added language in “Languages (Icon)” page > Select the languages you want to use for the “Touch Templates” (top left)

You can edit the touch templates from the backend OR translate the language file.

5. Log out of back end. Go to front end and edit the property in the language of your choice.

http://www.jomres.net/index.php?option=com_kunena&func=view&catid=8&id=4777&Itemid=290#5029

Share

Joomfish – 500 – No valid database connection:

When editing article in the front end I sometimes get a “500 – No valid database connection:” error.

1. Backup site using akeeba backup

2. Joomla backend > Global Configuration > Server > Database settings (right colomn) > Change the database setting from mysql to mysqli > Save

3. Test

Share