Advertisement:

Author Topic: Czech language in theme osclass  (Read 92585 times)

RomanHe

  • Newbie
  • *
  • Posts: 48
Re: Czech language in theme osclass
« Reply #15 on: March 29, 2016, 09:19:00 pm »
Ok, try to do this step by step..

1. download language pack (cz)
2. edit core.po in poedit, don't touch core.mo (core.mo will be automatically updated as soon as you save your core.po after editing)
3. copy core.po and core.mo to server to your alternative language folder which should look something like cz_CZ
4. it's very important you don't rename these files, the have to stay as they are (core.po, core.mo)
5. make sure you overwrite old files when you will copy the new translated ones to server

hopefully you'll make it work ;)

Hi,
I've done everything as you write, but the text is equally unchanged  :-[
   icon   Výše ..
   icon   core.mo   Soubor MO   87182   135104   1160   rw-r-----   Mar 29 17:08   Zobrazit   Upravit
   icon   core.po   Soubor PO   150141   135104   1160   rw-r-----   Mar 29 17:08   Zobrazit   Upravit
   icon   index.php   PHP skript   1402   135104   1160   rw-r-----   Mar 27 23:51   Zobrazit   Upravit
   icon   mail.sql   Soubor SQL   8483   135104   1160   rw-r-----   Mar 27 23:51   Zobrazit   Upravit
   icon   messages.mo   Soubor MO   34795   135104   1160   rw-r-----   Mar 27 23:51   Zobrazit   Upravit
   icon   messages.po   Soubor PO   48725   135104   1160   rw-r-----   Mar 27 23:51   Zobrazit   Upravit
   icon   theme.mo   Soubor MO   12493   135104   1160   rw-r-----   Mar 29 17:14   Zobrazit   Upravit
   icon   theme.po   Soubor PO   22730   135104   1160   rw-r-----   Mar 29 17:14   Zobrazit   Upravit

« Last Edit: March 29, 2016, 09:59:27 pm by RomanHe »

RomanHe

  • Newbie
  • *
  • Posts: 48
Re: Czech language in theme osclass
« Reply #16 on: March 29, 2016, 09:23:14 pm »
According to your website, you are using osclasswizzards theme so you have to locate those phrases in theme translation and translate it there, or if you are planning to have your site only in your language, you can directly edit header.php located in osclasswizards theme folder.

Find this code:

Code: [Select]
<div class="col-md-2">
                <?php  if ( osc_count_categories() ) { ?>
                <div class="cell selector">
                  <?php osc_categories_select('sCategory'nullosc_esc_html(__('Select a category'OSCLASSWIZARDS_THEME_FOLDER))) ; ?>
                </div>
                <?php  ?>
              </div>
              <?php if($showCountry) { ?>
              <div class="col-md-2">
                <div class="cell selector">
                  <?php osclasswizards_countries_select('sCountry''sCountry'__('Select a country'OSCLASSWIZARDS_THEME_FOLDER));?>
                </div>
              </div>
              <?php ?>
              <div class="col-md-2">
                <div class="cell selector">
                  <?php osclasswizards_regions_select('sRegion''sRegion'__('Select a region'OSCLASSWIZARDS_THEME_FOLDER)) ; ?>
                </div>
              </div>
              <div class="col-md-2">
                <div class="cell selector">
                  <?php osclasswizards_cities_select('sCity''sCity'__('Select a city'OSCLASSWIZARDS_THEME_FOLDER)) ; ?>
                </div>
              </div>

and change Select a country, Select a region, Select a city to anything you like... ;)

Hi,
according to these instructions, I managed to change the text, but only in the taskbar...
for exaple: See all listings not even in core.po - theme.po :(

Advanced Search
VAŠE VYHLEDÁVÁNÍ
 
ZEMĚ
Select a country0

REGION
Select a region0

MĚSTO
Select a city0

ZOBRAZIT POUZE
 Listings With Pictures

CENA
Min :
Max :
 POUŽÍT
Refine Category
« Last Edit: March 29, 2016, 10:00:04 pm by RomanHe »

RomanHe

  • Newbie
  • *
  • Posts: 48
Re: Czech language in theme osclass
« Reply #17 on: March 29, 2016, 09:26:29 pm »
Maybe some elements are not made to be translated in php theme files (<?php _e("Select a city", 'themename'); ?>) or they are not included in .po file. I do have Czech on my website and if you were referring to Select a city in Post ad form, it is translated. But I don't remember where exactly this is done, I would have to check it.

Hi,
words are translated core.poi theme.po but after uploading the text unchanged
still I do not know what I'm doing wrong >:(

pecke

  • Full Member
  • ***
  • Posts: 169
Re: Czech language in theme osclass
« Reply #18 on: March 29, 2016, 09:58:29 pm »
now go to search-sidebar.php and do the same for item sidebar just like you do in front page search

lang file for your problem is theme.po and mo

or put this 2 files in your theme language  cs-CZ folder and translate it
« Last Edit: March 29, 2016, 10:17:14 pm by pecke »

RomanHe

  • Newbie
  • *
  • Posts: 48
Re: Czech language in theme osclass
« Reply #19 on: March 29, 2016, 11:25:18 pm »
now go to search-sidebar.php and do the same for item sidebar just like you do in front page search

lang file for your problem is theme.po and mo

or put this 2 files in your theme language  cs-CZ folder and translate it

Hi super , I managed to translate 90% of the site...))
I miss the midst web ....Premium Listings, Other searches that may interest you. I can customize it here?  /www/domains/capitalia.cz/oc-content/themes/osclasswizards/search.php

and right ....Mark as  :-[
www.capitalia.cz
thank you
« Last Edit: March 29, 2016, 11:41:26 pm by RomanHe »

pecke

  • Full Member
  • ***
  • Posts: 169
Re: Czech language in theme osclass
« Reply #20 on: March 30, 2016, 12:30:56 am »
Yes you can...

Magnettoo

  • Full Member
  • ***
  • Posts: 216
Re: Czech language in theme osclass
« Reply #21 on: March 30, 2016, 12:34:25 pm »
The trouble is, that you didn't translate language files located in theme
oc-content > themes > osclasswizards > languages > your language

translating theme.po located in
oc-content > Languages > your language
is not enough

If your language in "oc-content > themes > osclasswizards > languages" doesn't exist, make a copy of en_EN, rename it to cz_CZ, translate files inside with poedit, copy cz_CZ folder to server "oc-content > themes > osclasswizards > languages "and all your troubles with untranslated phrases will be sorted ;)
« Last Edit: March 30, 2016, 12:37:07 pm by Magnettoo »

RomanHe

  • Newbie
  • *
  • Posts: 48
Re: Czech language in theme osclass
« Reply #22 on: March 31, 2016, 12:07:58 am »
The trouble is, that you didn't translate language files located in theme
oc-content > themes > osclasswizards > languages > your language

translating theme.po located in
oc-content > Languages > your language
is not enough

If your language in "oc-content > themes > osclasswizards > languages" doesn't exist, make a copy of en_EN, rename it to cz_CZ, translate files inside with poedit, copy cz_CZ folder to server "oc-content > themes > osclasswizards > languages "and all your troubles with untranslated phrases will be sorted ;)


Hi,thank you for your further advice))
Perhaps I did it correctly, and translated to about 95% Site.

   icon   Výše ..
   icon   de_DE   Adresář   36   135104   501   rwxr-s---   Mar 29 18:35   
   icon   en_US   Adresář   36   135104   501   rwxr-s---   Mar 29 18:35   
   icon   es_ES   Adresář   36   135104   501   rwxr-s---   Mar 29 18:35   
   icon   id_ID   Adresář   36   135104   501   rwxr-s---   Mar 29 18:35   
   icon   lt_LT   Adresář   36   135104   501   rwxr-s---   Mar 29 18:35   
   icon   nl_NL   Adresář   36   135104   501   rwxr-s---   Mar 29 18:35   
   icon   pt_PT   Adresář   36   135104   501   rwxr-s---   Mar 29 18:35   
   icon   ru_RU   Adresář   36   135104   501   rwxr-s---   Mar 29 18:35   
   icon   sv_SE   Adresář   36   135104   501   rwxr-s---   Mar 29 18:35   
   icon   tr_TR   Adresář   36   135104   501   rwxr-s---   Mar 29 18:35   
   icon   .DS_Store   Soubor DS_STORE   10280   135104   501   rw-r-----   Mar 29 18:35   Zobrazit   Upravit
   icon   cs_CZ.mo   Soubor MO   23179   135104   501   rw-r-----   Mar 30 19:53   Zobrazit   Upravit
   icon   cs_CZ.po            Soubor PO   35418   135104   501   rw-r-----   Mar 30 19:53   Zobrazit   Upravit

not translated a few words, especially in the section Account
Public Profile
Položky
Alerts
Account
Change email
Change username
Změnit heslo
Delete account

I looked for it in php, but nothing...

pecke

  • Full Member
  • ***
  • Posts: 169
Re: Czech language in theme osclass
« Reply #23 on: March 31, 2016, 02:40:18 am »
oc-includes/osclass/helpers/hUtils.php

RomanHe

  • Newbie
  • *
  • Posts: 48
Re: Czech language in theme osclass
« Reply #24 on: March 31, 2016, 12:02:26 pm »
oc-includes/osclass/helpers/hUtils.php

hi,
I rewrote the lines....
  if($options == null) {
        $options = array();
        $options[] = array('name' => __('Veřejný profil'), 'url' => osc_user_public_profile_url(), 'class' => 'opt_publicprofile');
        $options[] = array('name' => __('Hlavní panel'), 'url' => osc_user_dashboard_url(), 'class' => 'opt_dashboard');
        $options[] = array('name' => __('Správa inzerátů'), 'url' => osc_user_list_items_url(), 'class' => 'opt_items');
        $options[] = array('name' => __('Správa upozornění'), 'url' => osc_user_alerts_url(), 'class' => 'opt_alerts');
        $options[] = array('name' => __('Můj profil'), 'url' => osc_user_profile_url(), 'class' => 'opt_account');
        $options[] = array('name' => __('Odhlásit se'), 'url' => osc_user_logout_url(), 'class' => 'opt_logout');
    }

and appeared this :-[

Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /data/web/virtuals/125104/virtual/www/domains/capitalia.cz/oc-includes/osclass/helpers/hUtils.php:605) in /data/web/virtuals/125104/virtual/www/domains/capitalia.cz/oc-includes/osclass/core/Session.php on line 47

Warning: Cannot modify header information - headers already sent by (output started at /data/web/virtuals/125104/virtual/www/domains/capitalia.cz/oc-includes/osclass/helpers/hUtils.php:605) in /data/web/virtuals/125104/virtual/www/domains/capitalia.cz/oc-includes/osclass/utils.php on line 1745

pecke

  • Full Member
  • ***
  • Posts: 169
Re: Czech language in theme osclass
« Reply #25 on: March 31, 2016, 02:55:20 pm »
oc-includes/osclass/helpers/hUtils.php

hi,
I rewrote the lines....
  if($options == null) {
        $options = array();
        $options[] = array('name' => __('Veřejný profil'), 'url' => osc_user_public_profile_url(), 'class' => 'opt_publicprofile');
        $options[] = array('name' => __('Hlavní panel'), 'url' => osc_user_dashboard_url(), 'class' => 'opt_dashboard');
        $options[] = array('name' => __('Správa inzerátů'), 'url' => osc_user_list_items_url(), 'class' => 'opt_items');
        $options[] = array('name' => __('Správa upozornění'), 'url' => osc_user_alerts_url(), 'class' => 'opt_alerts');
        $options[] = array('name' => __('Můj profil'), 'url' => osc_user_profile_url(), 'class' => 'opt_account');
        $options[] = array('name' => __('Odhlásit se'), 'url' => osc_user_logout_url(), 'class' => 'opt_logout');
    }

and appeared this :-[

Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /data/web/virtuals/125104/virtual/www/domains/capitalia.cz/oc-includes/osclass/helpers/hUtils.php:605) in /data/web/virtuals/125104/virtual/www/domains/capitalia.cz/oc-includes/osclass/core/Session.php on line 47

Warning: Cannot modify header information - headers already sent by (output started at /data/web/virtuals/125104/virtual/www/domains/capitalia.cz/oc-includes/osclass/helpers/hUtils.php:605) in /data/web/virtuals/125104/virtual/www/domains/capitalia.cz/oc-includes/osclass/utils.php on line 1745


try to put this text  test1 test2 test3 in changed frazes to see whaats happen
Code: [Select]
       
  if($options == null) {
        $options = array();
        $options[] = array('name' => __('test1'), 'url' => osc_user_public_profile_url(), 'class' => 'opt_publicprofile');
        $options[] = array('name' => __('test2'), 'url' => osc_user_dashboard_url(), 'class' => 'opt_dashboard');
        $options[] = array('name' => __('test3'), 'url' => osc_user_list_items_url(), 'class' => 'opt_items');
        $options[] = array('name' => __('test4'), 'url' => osc_user_alerts_url(), 'class' => 'opt_alerts');
        $options[] = array('name' => __('test5'), 'url' => osc_user_profile_url(), 'class' => 'opt_account');
        $options[] = array('name' => __('test6'), 'url' => osc_user_logout_url(), 'class' => 'opt_logout');
    }


here is original code if you forgget it
Code: [Select]
function osc_private_user_menu($options = null)
{
    if($options == null) {
        $options = array();
        $options[] = array('name' => __('Public Profile'), 'url' => osc_user_public_profile_url(), 'class' => 'opt_publicprofile');
        $options[] = array('name' => __('Dashboard'), 'url' => osc_user_dashboard_url(), 'class' => 'opt_dashboard');
        $options[] = array('name' => __('Manage your listings'), 'url' => osc_user_list_items_url(), 'class' => 'opt_items');
        $options[] = array('name' => __('Manage your alerts'), 'url' => osc_user_alerts_url(), 'class' => 'opt_alerts');
        $options[] = array('name' => __('My profile'), 'url' => osc_user_profile_url(), 'class' => 'opt_account');
        $options[] = array('name' => __('Logout'), 'url' => osc_user_logout_url(), 'class' => 'opt_logout');
    }
« Last Edit: March 31, 2016, 03:08:04 pm by pecke »

RomanHe

  • Newbie
  • *
  • Posts: 48
Re: Czech language in theme osclass
« Reply #26 on: March 31, 2016, 03:07:35 pm »
oc-includes/osclass/helpers/hUtils.php

hi,
I rewrote the lines....
  if($options == null) {
        $options = array();
        $options[] = array('name' => __('Veřejný profil'), 'url' => osc_user_public_profile_url(), 'class' => 'opt_publicprofile');
        $options[] = array('name' => __('Hlavní panel'), 'url' => osc_user_dashboard_url(), 'class' => 'opt_dashboard');
        $options[] = array('name' => __('Správa inzerátů'), 'url' => osc_user_list_items_url(), 'class' => 'opt_items');
        $options[] = array('name' => __('Správa upozornění'), 'url' => osc_user_alerts_url(), 'class' => 'opt_alerts');
        $options[] = array('name' => __('Můj profil'), 'url' => osc_user_profile_url(), 'class' => 'opt_account');
        $options[] = array('name' => __('Odhlásit se'), 'url' => osc_user_logout_url(), 'class' => 'opt_logout');
    }

and appeared this :-[

Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /data/web/virtuals/125104/virtual/www/domains/capitalia.cz/oc-includes/osclass/helpers/hUtils.php:605) in /data/web/virtuals/125104/virtual/www/domains/capitalia.cz/oc-includes/osclass/core/Session.php on line 47

Warning: Cannot modify header information - headers already sent by (output started at /data/web/virtuals/125104/virtual/www/domains/capitalia.cz/oc-includes/osclass/helpers/hUtils.php:605) in /data/web/virtuals/125104/virtual/www/domains/capitalia.cz/oc-includes/osclass/utils.php on line 1745


try to put this text  test1 test2 test3 in changed frazes to see whaats happen
Code: [Select]
       
  if($options == null) {
        $options = array();
        $options[] = array('name' => __('test1'), 'url' => osc_user_public_profile_url(), 'class' => 'opt_publicprofile');
        $options[] = array('name' => __('test2'), 'url' => osc_user_dashboard_url(), 'class' => 'opt_dashboard');
        $options[] = array('name' => __('test3'), 'url' => osc_user_list_items_url(), 'class' => 'opt_items');
        $options[] = array('name' => __('test4'), 'url' => osc_user_alerts_url(), 'class' => 'opt_alerts');
        $options[] = array('name' => __('test5'), 'url' => osc_user_profile_url(), 'class' => 'opt_account');
        $options[] = array('name' => __('test6'), 'url' => osc_user_logout_url(), 'class' => 'opt_logout');
    }

-----------------------------
 if($options == null) {
        $options = array();
        $options[] = array('name' => __('test1'), 'url' => osc_user_public_profile_url(), 'class' => 'opt_publicprofile');
        $options[] = array('name' => __('test2'), 'url' => osc_user_dashboard_url(), 'class' => 'opt_dashboard');
        $options[] = array('name' => __('test3'), 'url' => osc_user_list_items_url(), 'class' => 'opt_items');
        $options[] = array('name' => __('test4'), 'url' => osc_user_alerts_url(), 'class' => 'opt_alerts');
        $options[] = array('name' => __('test5'), 'url' => osc_user_profile_url(), 'class' => 'opt_account');
        $options[] = array('name' => __('test6'), 'url' => osc_user_logout_url(), 'class' => 'opt_logout');
    }
I rewrote the lyrics, and I will refresh the page
I will see this......

I'm going to sign.....
and this...
« Last Edit: March 31, 2016, 03:13:35 pm by RomanHe »

RomanHe

  • Newbie
  • *
  • Posts: 48
Re: Czech language in theme osclass
« Reply #27 on: March 31, 2016, 03:14:11 pm »
oc-includes/osclass/helpers/hUtils.php

hi,
I rewrote the lines....
  if($options == null) {
        $options = array();
        $options[] = array('name' => __('Veřejný profil'), 'url' => osc_user_public_profile_url(), 'class' => 'opt_publicprofile');
        $options[] = array('name' => __('Hlavní panel'), 'url' => osc_user_dashboard_url(), 'class' => 'opt_dashboard');
        $options[] = array('name' => __('Správa inzerátů'), 'url' => osc_user_list_items_url(), 'class' => 'opt_items');
        $options[] = array('name' => __('Správa upozornění'), 'url' => osc_user_alerts_url(), 'class' => 'opt_alerts');
        $options[] = array('name' => __('Můj profil'), 'url' => osc_user_profile_url(), 'class' => 'opt_account');
        $options[] = array('name' => __('Odhlásit se'), 'url' => osc_user_logout_url(), 'class' => 'opt_logout');
    }

and appeared this :-[

Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /data/web/virtuals/125104/virtual/www/domains/capitalia.cz/oc-includes/osclass/helpers/hUtils.php:605) in /data/web/virtuals/125104/virtual/www/domains/capitalia.cz/oc-includes/osclass/core/Session.php on line 47

Warning: Cannot modify header information - headers already sent by (output started at /data/web/virtuals/125104/virtual/www/domains/capitalia.cz/oc-includes/osclass/helpers/hUtils.php:605) in /data/web/virtuals/125104/virtual/www/domains/capitalia.cz/oc-includes/osclass/utils.php on line 1745


try to put this text  test1 test2 test3 in changed frazes to see whaats happen
Code: [Select]
       
  if($options == null) {
        $options = array();
        $options[] = array('name' => __('test1'), 'url' => osc_user_public_profile_url(), 'class' => 'opt_publicprofile');
        $options[] = array('name' => __('test2'), 'url' => osc_user_dashboard_url(), 'class' => 'opt_dashboard');
        $options[] = array('name' => __('test3'), 'url' => osc_user_list_items_url(), 'class' => 'opt_items');
        $options[] = array('name' => __('test4'), 'url' => osc_user_alerts_url(), 'class' => 'opt_alerts');
        $options[] = array('name' => __('test5'), 'url' => osc_user_profile_url(), 'class' => 'opt_account');
        $options[] = array('name' => __('test6'), 'url' => osc_user_logout_url(), 'class' => 'opt_logout');
    }

-----------------------------
 if($options == null) {
        $options = array();
        $options[] = array('name' => __('test1'), 'url' => osc_user_public_profile_url(), 'class' => 'opt_publicprofile');
        $options[] = array('name' => __('test2'), 'url' => osc_user_dashboard_url(), 'class' => 'opt_dashboard');
        $options[] = array('name' => __('test3'), 'url' => osc_user_list_items_url(), 'class' => 'opt_items');
        $options[] = array('name' => __('test4'), 'url' => osc_user_alerts_url(), 'class' => 'opt_alerts');
        $options[] = array('name' => __('test5'), 'url' => osc_user_profile_url(), 'class' => 'opt_account');
        $options[] = array('name' => __('test6'), 'url' => osc_user_logout_url(), 'class' => 'opt_logout');
    }
I rewrote the lyrics, and I will refresh the page
I will see this......

I'm going to sign.....
and this...
I did not change anything..((
« Last Edit: March 31, 2016, 03:21:58 pm by RomanHe »

pecke

  • Full Member
  • ***
  • Posts: 169
Re: Czech language in theme osclass
« Reply #28 on: March 31, 2016, 03:24:36 pm »
okay put this file and delete your hUtils.php
« Last Edit: March 31, 2016, 03:26:50 pm by pecke »

RomanHe

  • Newbie
  • *
  • Posts: 48
Re: Czech language in theme osclass
« Reply #29 on: March 31, 2016, 04:06:58 pm »
okay put this file and delete your hUtils.php

super it's back...I have to look in another file?
Thanks