Skip to main content

Translate images and badges

More
13 years 7 months ago - 13 years 7 months ago #96404 by dyvymtvar
Hi all,

I am using joomla 2.5.9, hikashop 2.1.1 and joomfish 2.5.1.

I have some categories images and badges with text and want to know if it is possible to "translate" it.

I have the same image with the translated text but I do not know where I have to upload the image to display it "translated".

For example I have this two images for the same category. One for the english version and the other for the spanish version.

image missing http://img829.imageshack.us/img829/8731/customzone.png image missing http://img21.imageshack.us/img21/49/zonacustom.png
Last edit: 13 years 7 months ago by dyvymtvar.

Please Log in or Create an account to join the conversation.

More
13 years 7 months ago #96454 by Xavier
Replied by Xavier on topic Translate images and badges
Hi,

Is the field "image" present when editing the language in JoomFish ? If not present, so it's not possible by this way.
A method could be to edit the view "category / listing_img_title", detect the current language, and change the "$this->row->file_name" propery to add "_en" at the beginnning.

If you have the default image, for example "custom.png", so create the other image "en_custom.png". If the language is english, change the file name to "en_..." to load the english named image.
Hope this will help you. It require PHP knowledge.

Please Log in or Create an account to join the conversation.

More
13 years 7 months ago #96476 by dyvymtvar
Is not possible using Joomfish. In joomfish I have a lot of no named articles in the articles view but I supposed they are the variants.

I found the file listing_img_tittle and found the "$this->row->file_name" but I do not have php knowledge so if you can help me I will apreciate it.

Please Log in or Create an account to join the conversation.

More
13 years 7 months ago #96584 by nicolas
Replied by nicolas on topic Translate images and badges
You can translate the images of categories by editing the corresponding "files" in JoomFish.
Likewise, you can translate the badges by editing them in JoomFish.
I can assure you that it is possible. I just checked on our end and it's working fine.

Please Log in or Create an account to join the conversation.

More
13 years 7 months ago #96679 by dyvymtvar
I found in joomfish files in my backend the corresponding file for the image "zona-custom.png" and translated it to "custom-zone.png". Then I uploaded the image to my server in the same folder where it is the first one.

If I do this the image that is showed in front end is the "no image" image.

I tried this yesterday. Is the same thaf you are explaining? Am I doing something wrong?

I can not upload an image to show you.

Please Log in or Create an account to join the conversation.

More
13 years 7 months ago #96732 by nicolas
Replied by nicolas on topic Translate images and badges
Yes, that's what I was saying.

If you get the "no image" image, it means that the custom-zone.png file is missing in your upload folder.

Please Log in or Create an account to join the conversation.

More
13 years 7 months ago #96767 by dyvymtvar
Until next monday I can not try it again so I will try on monday and if it does not work I will attach images for you to see what I am doing.

Thanks nicolas.

Please Log in or Create an account to join the conversation.

More
13 years 7 months ago #97108 by dyvymtvar
Ok now it works. Maybe I did something wrong the first time I tried it.

In joomfish- translate- hikashop files there is no title for the images so is quite complex to find the image that I want to translate. Maybe can you tell me a little trick to find it quickly?

Thanks again for all your help.

Please Log in or Create an account to join the conversation.

More
13 years 7 months ago #97121 by nicolas
Replied by nicolas on topic Translate images and badges
I'm not sure what you mean, can you do a screenshot ?

Please Log in or Create an account to join the conversation.

More
13 years 7 months ago #97167 by dyvymtvar
This what I see when I go to Joomfish- Translation and select langages- english and content elements- hikashop files.
image missing http://img824.imageshack.us/img824/3781/joomhikafiles.png

As you can see, there is no tittle for the files so I have to check (select and edit) one by one.

Fortunately the first one is the zona-custom.png so I have translated it without any problem but now I want to translate a badge and I do not know what is it. I have 25 pages with 20 files each.

I do not need to translate all the files only some of them. Do yo know any way to find it easily?

Please Log in or Create an account to join the conversation.

More
13 years 7 months ago #97172 by nicolas
Replied by nicolas on topic Translate images and badges
Install that content element in joomfish and that should help.

Please Log in or Create an account to join the conversation.

More
13 years 7 months ago #97178 by dyvymtvar
I have another hikashop_badge.

Should I delete it? Replace the code inside? or Create a new one with the name hikashop_badge_2013-04-01.xml?

Please Log in or Create an account to join the conversation.

More
13 years 7 months ago #97192 by nicolas
Replied by nicolas on topic Translate images and badges
Replace it.

Please Log in or Create an account to join the conversation.

More
13 years 7 months ago #97200 by dyvymtvar
It does not work so I restore the first one.

I see in joomfish content elements- hikashop badges.
image missing http://img853.imageshack.us/img853/3882/liquidacion1.png

I try to translate the image there and it works.
image missing http://img607.imageshack.us/img607/1269/liquidacion.png

Badges are not a problem but I continue having the same problem with files, I have to search one by one.

Do you have another idea?

Please Log in or Create an account to join the conversation.

More
13 years 7 months ago #97203 by nicolas
Replied by nicolas on topic Translate images and badges
It's working fine on my end with that new xml. Make sure that you install it via the content elements installer of joomfish.

Please Log in or Create an account to join the conversation.

More
13 years 7 months ago - 13 years 7 months ago #97205 by dyvymtvar
Ok I now I see.

We are modifying the wrong file.

Hikashop badges are right, I can see the title.

Hikashop file is the wrong content element.
image missing http://img853.imageshack.us/img853/4223/filesf.png

As you can see, File name is empty
Last edit: 13 years 7 months ago by dyvymtvar.

Please Log in or Create an account to join the conversation.

More
13 years 7 months ago - 13 years 7 months ago #97312 by dyvymtvar
This last night I have been doing some tests and this is what I have discovered.

In Label: File name the Original es empty.
image missing http://img32.imageshack.us/img32/1418/filenamea.png

This is the reason why the title in joomfish hikashop files listing is empty (I think).
image missing http://imageshack.us/a/img824/3781/joomhikafiles.png

Then I did some tests with the contentelement hikashop_file.xml.

This is the original code
Code:
<?xml version="1.0" ?> <joomfish type="contentelement"> <name>Hikashop Files</name> <author>Hikari Software</author> <version>1.0.0</version> <description>Definition of files/images for the hikashop component</description> <copyright>Copyright (C) 2010 Hikari Software SARL - All rights reserved.</copyright> <reference type="content"> <table name="hikashop_file"> <field type="referenceid" name="file_id" translate="0">ID</field> <field type="titletext" name="file_name" length="255" maxlength="255" translate="1">File name</field> <field type="text" name="file_path" length="255" maxlength="255" translate="1">File path</field> <field type="textarea" name="file_description" rows="10" columns="80" translate="1">File description</field> </table> </reference> <translationfilters> </translationfilters> </joomfish>

And this is the code I did.
Code:
<?xml version="1.0" ?> <joomfish type="contentelement"> <name>Hikashop Files</name> <author>Hikari Software</author> <version>1.0.0</version> <description>Definition of files/images for the hikashop component</description> <copyright>Copyright (C) 2010 Hikari Software SARL - All rights reserved.</copyright> <reference type="content"> <table name="hikashop_file"> <field type="referenceid" name="file_id" translate="0">ID</field> <field type="text" name="file_name" length="255" maxlength="255" translate="1">File name</field> <field type="titletext" name="file_path" length="255" maxlength="255" translate="1">File path</field> <field type="textarea" name="file_description" rows="10" columns="80" translate="1">File description</field> </table> </reference> <translationfilters> </translationfilters> </joomfish>

The result.
image missing http://img62.imageshack.us/img62/387/resultq.png

Mabe is not the best solution but is enough for me for now.
Last edit: 13 years 7 months ago by dyvymtvar.

Please Log in or Create an account to join the conversation.

More
12 years 10 months ago #135929 by adambako
hi,

im trying to set this on joomla 3.2 and falang but the badges dont want to work.

where i have to put the translated image? i put it in media/com_hikashop/upload/ and set the name in backend in fabola but it just dont work..

thanks

Please Log in or Create an account to join the conversation.

More
12 years 10 months ago #135960 by nicolas
Replied by nicolas on topic Translate images and badges
That's the correct way of doing it.
Are you able to translate other things with falang ?
Did you publish these translations ?

Please Log in or Create an account to join the conversation.

Time to create page: 3.779 seconds
Powered by Kunena Forum