Translation in K2

Feel free to talk about everything related to our Joomla Products
Rate this topic: Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.
GK User
Wed Jun 12, 2013 12:07 am
Hi
Unfortunatelly the K2 translation package is causing some bugs in my Restaurant template.
And in the Language Manager there is a tab called Content, but it doesn't seem to translate K2 terms in the website (terms like: "read more", "rate this", "back to top", "votes", "font size", "print", etc.

How can I program K2 or Joomla to translate the terms above?
Look at the image attached.

Thanks! ;)
User avatar
Fresh Boarder

GK User
Wed Jun 12, 2013 5:11 am
I can't see any attachments : ) Please check your language file as some stuff might be not translated or alternatively post a link to the page where these strings are visible and I can pinpoint them for you.

See you around...
User avatar
Platinum Boarder

GK User
Wed Jun 12, 2013 4:59 pm
Hi

1)Problems with the file, it was too big. Now I think you are going to see it.
2) Let me explain better: I uninstalled the K2 translation package because it was causing some bugs. So in the backend I am using K2 in english and for me there is no problem about that. But I need to know how to translate those terms ("read more", "print", "written by", etc.) in the website.

Thanks!
User avatar
Fresh Boarder

GK User
Thu Jun 13, 2013 2:50 am
You should really use your translation package as to prevent future updates overwriting your English language files.

Following is where each word you want to change are located.

Line 23: K2_BACK_TO_TOP="back to top"
Line 106: K2_PRINT="Print"
Line 111: K2_READ_MORE="Read more..."
Line 156: K2_VOTES="votes"
Line 160: K2_WRITTEN_BY="Written by"
Line 161: K2_WRITTEN_BY_FEMALE="Written by"
Line 162: K2_WRITTEN_BY_MALE="Written by"
Code: Select all
/language/en-GB/en-GB.com_k2.ini


If you are using different language then they should be located in that language folder. Example for Spanish Version.
Code: Select all
/language/es-ES/es-ES.com_k2.ini


Another Way you can translate them is using overrides feature in Joomla > Language Manager.

1. Click on Overrides tab
2. On Right side you will see language selection box if you have more then one language. Choose your language for Site not administrator.
3. On top right click on "New"
4. Now on left you have empty boxes which you can add manually.
5. On Right you have a search box.
6. For this example we enter "Written By" without quotes and choose value as search type.
7. You will see search result displayed.
8. You might get few results but if you look at the string you will see "K2_WRITTEN_BY".
9. If you simply hover mouse over the string you will see its file location in case you want to change it in file directly.
10. Otherwise simply click on "K2_WRITTEN_BY" and you will see it is on the left side ready to be changed.
11. Simply change value to your required value and click on save and close.
12. This way any file overrides from updating K2 will not effect your website.

See you around...
User avatar
Platinum Boarder


cron