Osclass forums

Development => Themes => Topic started by: Juan Ramón on September 06, 2011, 08:19:53 pm

Title: How to translate OSClass themes
Post by: Juan Ramón 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] (http://osclass.org/2011/09/06/translating-osclass-plugins-themes/)
Title: Re: How to translate OSClass themes
Post by: masmaz 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
Title: Re: How to translate OSClass themes
Post by: dror 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
Title: Re: How to translate OSClass themes
Post by: masmaz 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
Title: Re: How to translate OSClass themes
Post by: kirki 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
Title: Re: How to translate OSClass themes
Post by: Juan Ramón on January 14, 2013, 12:20:59 pm
@masmaz perhaps you can try this one? http://www.macupdate.com/app/mac/22905/poedit
Title: Re: How to translate OSClass themes
Post by: shamal on March 19, 2013, 04:44:06 pm
How to translate these words
Title: Re: How to translate OSClass themes
Post by: tigarrr 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

Title: Re: How to translate OSClass themes
Post by: Nazar on July 02, 2013, 09:52:47 am

They are in
/oc-content/languages/YOUR_LANGUAGE/core.po
Title: Re: How to translate OSClass themes
Post by: SmaRTeY 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
Title: Re: How to translate OSClass themes
Post by: fre2mansur 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
Title: Re: How to translate OSClass themes
Post by: harry 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?
Title: Re: How to translate OSClass themes
Post by: voice on July 17, 2015, 02:14:53 pm
did you solve the problem? i have the same!
Title: Re: How to translate OSClass themes
Post by: teseo 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 (https://github.com/osclass/Osclass/pull/1794), 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
Title: Re: How to translate OSClass themes
Post by: voice 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! :) :) :) :)
Title: Re: How to translate OSClass themes
Post by: teseo on July 17, 2015, 04:18:50 pm
You're welcome. :)

Regards
Title: Re: How to translate OSClass themes
Post by: umarizal on July 20, 2015, 03:13:43 pm
Friends, I always do translations of themes and plugins for OSClass, but never share. How do I share?
There is an account on Github, for example, to translations of themes and plugins?
Thanks.
Title: Re: How to translate OSClass themes
Post by: carios23 on July 25, 2017, 06:39:00 pm
Recently I installed 3.7.3 and I  had to apply this Category.php fix. I upgraded to 3.7.4 and I had to redo it like you said. It has been a while. Now I am worried that Osclass is being abandoned, and I am reluctant to invest in plugins themes and what not.

Why cant they just merge your fix into the code? I will probably just translate English Catergories to Spanish to not have to worry about this anymore.

My site is chiricados.com
Title: Re: How to translate OSClass themes
Post by: Aficionado on July 25, 2017, 08:17:37 pm
Recently I installed 3.7.3 and I  had to apply this Category.php fix. I upgraded to 3.7.4 and I had to redo it like you said. It has been a while. Now I am worried that Osclass is being abandoned, and I am reluctant to invest in plugins themes and what not.

Why cant they just merge your fix into the code? I will probably just translate English Catergories to Spanish to not have to worry about this anymore.

My site is chiricados.com

3.7.4 was a SECURITY RELEASE and nothing else. A quick and very important release because of a major security problem discovered 4 days ago.

You should worry a lot more about your site that is empty (runing adsense !!!). And some posted ads  ... well half of them are scam/fraud ads.

 
Title: Re: How to translate OSClass themes
Post by: al on October 30, 2017, 01:22:57 pm
Hi,

There is a known issue with child theme translation : https://github.com/osclass/Osclass/issues/1879 (https://github.com/osclass/Osclass/issues/1879).

Someone know how to patch this ?

Thanks