Advertisement:

Author Topic: How to translate OSClass themes  (Read 25151 times)

Juan Ramón

  • Osclass Developer
  • Hero Member
  • *****
  • Posts: 2382
How to translate OSClass themes
« on: September 06, 2011, 08:19:53 pm »
i18n is an abbreviation for __internationalization__. You can get more information in the wikipedia. OSClass uses the GNU gettext lib... [more]

masmaz

  • Jr. Member
  • **
  • Posts: 67
Re: How to translate OSClass themes
« Reply #1 on: September 01, 2012, 03:01:09 pm »
hi all

I read the guide ...

I translated the language file in my file does not work but the site is not translated

someone help me?

regards
max

dror

  • Jr. Member
  • **
  • Posts: 90
Re: How to translate OSClass themes
« Reply #2 on: September 03, 2012, 10:28:25 pm »
Hi Max.
did you install and use poedit to translate the .po file,  and then to create a new .mo file ?

Regards
Dror
Israel

masmaz

  • Jr. Member
  • **
  • Posts: 67
Re: How to translate OSClass themes
« Reply #3 on: September 03, 2012, 10:34:17 pm »
yes  i read but i have a MAC and this last version for mac not work in my pcmac :-((

regads
max

kirki

  • Newbie
  • *
  • Posts: 11
Re: How to translate OSClass themes
« Reply #4 on: January 13, 2013, 02:52:50 am »
You can open the po file with a text editor to translate it and send it to me or someone forum user for po -> mo file
 
regards
VS

Juan Ramón

  • Osclass Developer
  • Hero Member
  • *****
  • Posts: 2382
Re: How to translate OSClass themes
« Reply #5 on: January 14, 2013, 12:20:59 pm »
@masmaz perhaps you can try this one? http://www.macupdate.com/app/mac/22905/poedit

shamal

  • Newbie
  • *
  • Posts: 40
Re: How to translate OSClass themes
« Reply #6 on: March 19, 2013, 04:44:06 pm »
How to translate these words

tigarrr

  • Newbie
  • *
  • Posts: 1
Re: How to translate OSClass themes
« Reply #7 on: March 22, 2013, 11:51:01 am »
Very good question.. i have the same problem.. i am using the realestate theme.. i have translated a lot but there are a few things a can't translate

price in the left search sidebar
for sale
for rent

etc


Nazar

  • Jr. Member
  • **
  • Posts: 75
Re: How to translate OSClass themes
« Reply #8 on: July 02, 2013, 09:52:47 am »

They are in
/oc-content/languages/YOUR_LANGUAGE/core.po

SmaRTeY

  • Osclass Hero
  • Hero Member
  • *
  • Posts: 2519
Re: How to translate OSClass themes
« Reply #9 on: November 05, 2013, 01:35:15 pm »
Hi there,

I am using the minimalist theme which also has a lot of issues at first when using a different language than english. Go through all PHP files of the theme folder and change all pointers to the wrong theme name. Ie. in Minimalist I had to change a LOT of pointers to 'modern' into 'minimalist' or 'modern-theme' into 'minimalist'.

For osClass and it's popularity it is very important that themes are 100% working before they are offered to the public as a 'working' theme. Same for Minimalist goes for Repurpose, also having a lot of issues which I think are just related to fast/sloppy work though the themes themselves are pretty amazing! Having working themes makes ALL the difference for osClass guys.....

I even had to edit one of the PO files because it was missing a translation string..... same here, very important to make sure all work is focussed on one well working english version of which people can make their translations so at all ties there is ONE main up-to-date PO per osClass version for every PO type. (ie. messages/theme/core)
Keep it tidy ;)

NB. Compliments to main coders of osClass, despite theme issues everything so far seems to work flawless but I haven't tested everything yet! :)


Best regards,
Eric

fre2mansur

  • Hero Member
  • *****
  • Posts: 711
Re: How to translate OSClass themes
« Reply #10 on: February 26, 2014, 08:03:37 am »
How to translate these words

Very good question.. i have the same problem.. i am using the realestate theme.. i have translated a lot but there are a few things a can't translate

price in the left search sidebar
for sale
for rent

etc

Create String like this in po

msgid "Newly listed"
msgstr "موبيل" ----your translated text

msgid "Lower price first"
msgstr "وبيل" ----your translated text

msgid "Higher price first"
msgstr "وبيل" ----your translated text


and open your item.php mention lik this
<?php _e('Newly listed', 'bender'); ?>
<?php _e('Lower price first', 'bender'); ?>
<?php _e('Higher price first', 'bender'); ?>

Its will working I translated lik this in this website www.adsofkuwait.com
« Last Edit: February 26, 2014, 08:06:18 am by fre2mansur »

harry

  • Newbie
  • *
  • Posts: 20
Re: How to translate OSClass themes
« Reply #11 on: May 08, 2015, 07:11:21 pm »
Hello guys

I got some issue with translation
I have 2 language installed and when i change language everything change but not the categories and its filled in both languages
So i wondering if someone else had or has same issue?

voice

  • Newbie
  • *
  • Posts: 3
Re: How to translate OSClass themes
« Reply #12 on: July 17, 2015, 02:14:53 pm »
did you solve the problem? i have the same!

teseo

  • Hero Member
  • *****
  • Posts: 6169
Re: How to translate OSClass themes
« Reply #13 on: July 17, 2015, 02:27:16 pm »
Hi,

everything change but not the categories and its filled in both languages

This is a pretty serious Osclass bug that I studied and solved a while ago (but the solution involves changing a core file, so I pulled an official request, no answer so far... :()

You need to backup your oc-includes/osclass/model/Category.php file (just in case) and replace its contents with this:

https://raw.githubusercontent.com/teseo-2014/Osclass-develop/develop/oc-includes/osclass/model/Category.php

Now, being a core file, remember that you need to redo this modification every time you upgrade Osclass (unless they solve this once and for all).

Regards

voice

  • Newbie
  • *
  • Posts: 3
Re: How to translate OSClass themes
« Reply #14 on: July 17, 2015, 04:03:27 pm »
THANK TO U TESEO ALL IS GOING WELL NO NEED TO EDIT IN MO AND PO LANGUAGES. JUST TO TRANSLATE IN OSCLASS CONTROL PANEL CATEGORIES AND CHANGE THE PHP THAT YOU GIME US!!! YOU ARE A GENIUS! :) :) :) :)