Keyword
Please note that official support for commercial extensions & templates is provided in the Subscriber Help Desk.
Support requests should ONLY be directed there and require an active subscription plan.
This forum board is to be used for archive purposes and knowledge exchange ONLY.

I am trying to translate the labels.txt to spanish but it is not taking áéíóú

  • carlos_sig
  • carlos_sig's Avatar Topic Author
  • Offline
  • New Member
More
13 years 5 months ago #41712 by carlos_sig
I have set Joomla 1.5.22  to Spanish language in the Front and Back

So far after reading about the topic, I have copy, translate it and paste the ini file into the es_ES folder:
administrator/language/es-ES/es-ES.plg_content_jw_sigpro.ini

I beleive after doing this the plugin is generating the labels with the prefix es_ES:

www.miciudadweb.eu/pepemacias/images/stories/images/dormitorio_completo/galeria/es-ES.labels.txt

This file has been saved as UTF8 format using notepad.

I need to introduce this characters áéíóíú

I have an example for the picture inside the es-ES.labels.txt but when you go to the gallery is not getting the value and it leaves it empty.

www.miciudadweb.eu/pepemacias/component/content/article/19-dormitorio-completo

Could you please take a look and tell me what I am doing wrong?

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

  • Yiota
  • Yiota's Avatar
  • Visitor
13 years 5 months ago #41713 by Yiota
Try to declare the characters, in the labels.txt file, as
á
, etc.

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

  • carlos_sig
  • carlos_sig's Avatar Topic Author
  • Offline
  • New Member
More
13 years 5 months ago #41714 by carlos_sig
Thank you, your solution is working.

To make it easier I am using Dreamweaver.
I have introduced this meta tag in the header:
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />

I write what I need in Design Mode and this gets translated into the Code Mode
I copy and paste the code that I need into the Description of the es-ES.labels.txt file


Do I have any direct alternative to this?

For example I write this characters áéíóú ñ inside the es-ES.labels.txt file and they are recognized. Should it be working when the file is saved as UTF-8 Format?

Maybe using a xml file? 

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

  • Yiota
  • Yiota's Avatar
  • Visitor
13 years 5 months ago #41715 by Yiota
It should be working when saving in utf-8, yes.

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

  • carlos_sig
  • carlos_sig's Avatar Topic Author
  • Offline
  • New Member
More
13 years 5 months ago #41716 by carlos_sig
Well I have been dedicating some more time to this issue.

So the idea so far it is working with the genius advice given but this is harder to proceed for the average user, in case that they wish to do it themself.

After reading your answers I though this is not working because of the hosting or because I am not saving in UTF-8 format correctly.

so I tried a better program, I tried using Edit Pro 7. This one allow you to save documents in many formats.

After saving it and uploading --> it works!!!

Only that the first picture does not show any label as you can see from the link:
www.miciudadweb.eu/pepemacias/component/content/article/19-dormitorio-completo

I am having the same problem than this person is mentioning:
forum.joomlaworks.net/simple-image-gallery-pro-%28plugin%29/use-caption-on-chinese-utf-8-labels-txt-but-first-image-caption-can%27t-show/


Then I though well the first picture it does not work for the gallery. I am going to try Notepad with a different file, meaning different gallery. I have not used Edit Pro 7 on this file, so I opened modified the second picture of the gallery and saved it as UTF-8.

I checked and it works!!!.     
I am using NotedPad under Windows 7
This is the link:
www.miciudadweb.eu/pepemacias/component/content/article/21-canapes


Conclusion: The file is being saved as UTF-8 correctly (I can use Notepad which everybody has), the hosting is not a problem.
              The gallery is not reading the label of the first picture.

Could you take a look and let us know if this is a bug from the software or it is something we can do on our side?

Thank you

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

  • carlos_sig
  • carlos_sig's Avatar Topic Author
  • Offline
  • New Member
More
13 years 5 months ago #41717 by carlos_sig
So far I have found a quick solution for the first picture of the gallery.
Go the label.txt file you are using for your gallery
Go to the beginning of the file, and add an empty line by hitting enter which will create an invisible end of line, the code thinks its reading the second picture and starts to work.

so it will look like this, this is quick example:
Begining of label.txt

File_name01.jpg|Title|<b>Descripción</b>
You can use áéíóúñ
File_name02.jpg|Title|<b>Descripción</b>
You can use áéíóúñ
File_name03.jpg|Title|<b>Descripción</b>
You can use áéíóúñ
File_name04.jpg|Title|<b>Descripción</b>
You can use áéíóúñ
File_name05.jpg|Title|<b>Descripción</b>
You can use áéíóúñ


End of label.txt

Goto Notepad.exe (under Windows) and remember -> Save as UTF-8 Format

I guess this will fix it in future upgrades.

I will be happy to see that this tip fix somebody´s problem so write a quick comment ;)

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

More
13 years 5 months ago #41718 by badstue

So far I have found a quick solution for the first picture of the gallery.
Go the label.txt file you are using for your gallery
Go to the beginning of the file, and add an empty line by hitting enter which will create an invisible end of line, the code thinks its reading the second picture and starts to work.

so it will look like this, this is quick example:


Begining of label.txt

File_name01.jpg|Title|<b>Descripción</b>
You can use áéíóúñ
File_name02.jpg|Title|<b>Descripción</b>
You can use áéíóúñ
File_name03.jpg|Title|<b>Descripción</b>
You can use áéíóúñ
File_name04.jpg|Title|<b>Descripción</b>
You can use áéíóúñ
File_name05.jpg|Title|<b>Descripción</b>
You can use áéíóúñ


End of label.txt

Goto Notepad.exe (under Windows) and remember -> Save as UTF-8 Format

I guess this will fix it in future upgrades.

I will be happy to see that this tip fix somebody´s problem so write a quick comment ;)


THANK YOU ALOT! :-)

Great research and work.

Works perfectly for my lang too.

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

More
13 years 4 months ago #41719 by meowi

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


Powered by Kunena Forum