Translate images and badges

  • Posts: 104
  • Thank you received: 0
11 years 7 months ago #96404

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.

Last edit: 11 years 7 months ago by dyvymtvar.

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

  • Posts: 13201
  • Thank you received: 2322
11 years 7 months ago #96454

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.

  • Posts: 104
  • Thank you received: 0
11 years 7 months ago #96476

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.

  • Posts: 82727
  • Thank you received: 13343
  • MODERATOR
11 years 7 months ago #96584

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.

  • Posts: 104
  • Thank you received: 0
11 years 7 months ago #96679

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.

  • Posts: 82727
  • Thank you received: 13343
  • MODERATOR
11 years 7 months ago #96732

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.

  • Posts: 104
  • Thank you received: 0
11 years 7 months ago #96767

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.

  • Posts: 104
  • Thank you received: 0
11 years 7 months ago #97108

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.

  • Posts: 82727
  • Thank you received: 13343
  • MODERATOR
11 years 7 months ago #97121

I'm not sure what you mean, can you do a screenshot ?

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

  • Posts: 104
  • Thank you received: 0
11 years 7 months ago #97167

This what I see when I go to Joomfish- Translation and select langages- english and content elements- hikashop files.



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.

  • Posts: 82727
  • Thank you received: 13343
  • MODERATOR
11 years 7 months ago #97172

Install that content element in joomfish and that should help.

Attachments:

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

  • Posts: 104
  • Thank you received: 0
11 years 7 months ago #97178

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.

  • Posts: 82727
  • Thank you received: 13343
  • MODERATOR
11 years 7 months ago #97192

Replace it.

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

  • Posts: 104
  • Thank you received: 0
11 years 7 months ago #97200

It does not work so I restore the first one.

I see in joomfish content elements- hikashop badges.



I try to translate the image there and it works.


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.

  • Posts: 82727
  • Thank you received: 13343
  • MODERATOR
11 years 7 months ago #97203

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.

  • Posts: 104
  • Thank you received: 0
11 years 7 months ago #97205

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.



As you can see, File name is empty

Last edit: 11 years 7 months ago by dyvymtvar.

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

  • Posts: 104
  • Thank you received: 0
11 years 7 months ago #97312

This last night I have been doing some tests and this is what I have discovered.

In Label: File name the Original es empty.



This is the reason why the title in joomfish hikashop files listing is empty (I think).


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

This is the original 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.
<?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.


Mabe is not the best solution but is enough for me for now.

Last edit: 11 years 7 months ago by dyvymtvar.

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

  • Posts: 30
  • Thank you received: 1
10 years 10 months ago #135929

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.

  • Posts: 82727
  • Thank you received: 13343
  • MODERATOR
10 years 10 months ago #135960

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: 0.098 seconds
Powered by Kunena Forum