Osclass forums

Support forums => General help => Topic started by: RomanHe on March 18, 2016, 06:14:41 pm

Title: Czech language in theme osclass
Post by: RomanHe on March 18, 2016, 06:14:41 pm
Hello,
Please advice how to fix Czech Osclass template. I downloaded Czech, and 99% are translated, but some labels eg. (Select a city) remained in English.
I tried poedit, reset and re-upload the template into Czech, but nothing. I tried to rewrite HTML = from, but it still goes back to Eng.
I'm not sure when to rewrite the source code, if it helps ... So I rewrite it whenever we know how to do it. I am self-taught, a lot of things you do, but this one really do not know ..
If you have some idea, here with him .... thank you
Title: Re: Czech language in theme osclass
Post by: p206ab on March 19, 2016, 12:47:34 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.

Title: Re: Czech language in theme osclass
Post by: fr4nk on March 19, 2016, 09:28:12 pm
Neco se da zmenit primo v sablone jen to chce hledat. To select city mas asi na item-post.php ne ?
Title: Re: Czech language in theme osclass
Post by: RomanHe on March 21, 2016, 02:19:31 pm
I'm trying to find and change, but is not responding...
 :-\

Can anyone help with that
Title: Re: Czech language in theme osclass
Post by: RomanHe on March 21, 2016, 02:23:00 pm
Hello, can anyone advise me why translated into Czech some categories headlines when, after downloading core.po to poedit appear properly translated?
What can I do to make it take effect on the site.
Thank you for any answers and advice.
Title: Re: Czech language in theme osclass
Post by: RomanHe on March 24, 2016, 11:06:01 am
Hello, can anyone advise me why translated into Czech some categories headlines when, after downloading core.po to poedit appear properly translated?
What can I do to make it take effect on the site.
Thank you for any answers and advice.
Roman
Title: Re: Czech language in theme osclass
Post by: Magnettoo on March 27, 2016, 01:43:25 pm
Hi,
have you copied .po and also .mo file? .mo file is automatically created accordingly to .po file so as soon as you edit/create translation in .po your .mo file is created instantly.
Than you have to copy both of them to the server.

regards,
Title: Re: Czech language in theme osclass
Post by: RomanHe on March 27, 2016, 10:23:04 pm
Hi,
have you copied .po and also .mo file? .mo file is automatically created accordingly to .po file so as soon as you edit/create translation in .po your .mo file is created instantly.
Than you have to copy both of them to the server.

regards,

Hi,
yes I copied po. and mo. to server, but not nothing happened.  I do not know what I'm doing wrong. >:(

   icon   Výše ..
   icon   core (11.mo   Soubor MO   123594   135104   1160   rw-r-----   Mar 25 16:33   Zobrazit   Upravit
   icon   core.po   Soubor PO   234306   135104   501   rwxr-xr-x   Mar 24 21:40   Zobrazit   Upravit
   icon   index.php   PHP skript   1368   135104   501   rwxr-xr-x   Mar 24 21:40   Zobrazit   Upravit
   icon   mail.sql   Soubor SQL   9426   135104   501   rwxr-xr-x   Mar 24 21:40   Zobrazit   Upravit
   icon   messages.mo   Soubor MO   38740   135104   501   rwxr-xr-x   Mar 24 21:40   Zobrazit   Upravit
   icon   messages.po   Soubor PO   60878   135104   501   rwxr-xr-x   Mar 24 21:40   Zobrazit   Upravit
   icon   theme.mo   Soubor MO   14363   135104   1160   rw-r-----   Mar 25 17:16   Zobrazit   Upravit
   icon   theme.po   Soubor PO   19944   135104   1160   rw-r-----   Mar 25 17:16   Zobrazit   Upravit
Title: Re: Czech language in theme osclass
Post by: Magnettoo on March 28, 2016, 12:06:54 am
why does core file looks like this "core (11.mo" ?
should be core.mo
Title: Re: Czech language in theme osclass
Post by: RomanHe on March 28, 2016, 01:27:34 am
why does core file looks like this "core (11.mo" ?
should be core.mo

I edited the file in poedit and saved as core.11.mo and so it did on FTP
/www/domains/capitalia.cz/oc-content/languages/cs_CZ
Title: Re: Czech language in theme osclass
Post by: Magnettoo on March 28, 2016, 01:35:33 am
Well, how did you edited .mo? That one should be created and edited automatically after editing or creating .po file. However, both of them has to stay like core.po and core.mo, not like core.11.mo or anything different.
Title: Re: Czech language in theme osclass
Post by: RomanHe on March 28, 2016, 01:48:27 am
Well, how did you edited .mo? That one should be created and edited automatically after editing or creating .po file. However, both of them has to stay like core.po and core.mo, not like core.11.mo or anything different.

I pulled core.po
edited in poeditu- store
I then gave to compile .mo
.po recorded - .mo to FTP
and deleted the original

sorry I am a beginner
www.capitalia.cz

Premium Listings,Select a country, Select a region, Select a city..ok in core.po - is translated, but after uploading to ftp, still English
Populare listing In C A P I T A L I A

core.po and them.po is all translated!!!

all English- no Czech
Thank you ,your time.
Title: Re: Czech language in theme osclass
Post by: Magnettoo on March 28, 2016, 01:19:23 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 ;)
Title: Re: Czech language in theme osclass
Post by: pecke on March 28, 2016, 11:31:33 pm
can i see php file where your translate dont work ?
Title: Re: Czech language in theme osclass
Post by: Magnettoo on March 29, 2016, 12:01:10 am
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... ;)
Title: Re: Czech language in theme osclass
Post by: RomanHe 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

Title: Re: Czech language in theme osclass
Post by: RomanHe 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
Title: Re: Czech language in theme osclass
Post by: RomanHe 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 >:(
Title: Re: Czech language in theme osclass
Post by: pecke 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
Title: Re: Czech language in theme osclass
Post by: RomanHe 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
Title: Re: Czech language in theme osclass
Post by: pecke on March 30, 2016, 12:30:56 am
Yes you can...
Title: Re: Czech language in theme osclass
Post by: Magnettoo 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 ;)
Title: Re: Czech language in theme osclass
Post by: RomanHe 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...
Title: Re: Czech language in theme osclass
Post by: pecke on March 31, 2016, 02:40:18 am
oc-includes/osclass/helpers/hUtils.php
Title: Re: Czech language in theme osclass
Post by: RomanHe 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
Title: Re: Czech language in theme osclass
Post by: pecke 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');
    }
Title: Re: Czech language in theme osclass
Post by: RomanHe 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...
Title: Re: Czech language in theme osclass
Post by: RomanHe 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..((
Title: Re: Czech language in theme osclass
Post by: pecke on March 31, 2016, 03:24:36 pm
okay put this file and delete your hUtils.php
Title: Re: Czech language in theme osclass
Post by: RomanHe 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
Title: Re: Czech language in theme osclass
Post by: pecke on March 31, 2016, 08:36:31 pm
i am on work when i get home i will edit this for you....
Title: Re: Czech language in theme osclass
Post by: RomanHe on March 31, 2016, 09:46:25 pm
i am on work when i get home i will edit this for you....

Thank you for your help..
Title: Re: Czech language in theme osclass
Post by: pecke on March 31, 2016, 09:48:10 pm
put  this hUtils.php
Title: Re: Czech language in theme osclass
Post by: RomanHe on March 31, 2016, 11:55:18 pm
put  this hUtils.php

I recorded it and again ..

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');
Title: Re: Czech language in theme osclass
Post by: pecke on April 01, 2016, 12:12:44 am
well you cant use characters fior your language because they have " ; '
Title: Re: Czech language in theme osclass
Post by: pecke on April 01, 2016, 12:16:42 am
your big problem is characters wait i will se what i can do just a minute
Title: Re: Czech language in theme osclass
Post by: RomanHe on April 01, 2016, 12:33:17 am
your big problem is characters wait i will se what i can do just a minute

You're right, I deal with it all week, and I do not know what to do  :(
Czech language is problém...
Title: Re: Czech language in theme osclass
Post by: pecke on April 01, 2016, 01:01:41 am
we will solve it   no worry..... just need some time...
Title: Re: Czech language in theme osclass
Post by: pecke on April 01, 2016, 01:16:28 am
can you zip your theme.po and theme.mo file and send me here?
Title: Re: Czech language in theme osclass
Post by: RomanHe on April 01, 2016, 10:18:28 am
can you zip your theme.po and theme.mo file and send me here?

yes, ok
/www/domains/capitalia.cz/oc-content/languages
Title: Re: Czech language in theme osclass
Post by: pecke on April 01, 2016, 09:35:09 pm
put this  theme.po and theme.mo files to oc-content/languages/cz_CZ and send me screenshot to see now left sidebar

Title: Re: Czech language in theme osclass
Post by: RomanHe on April 01, 2016, 11:55:35 pm
put this  theme.po and theme.mo files to oc-content/languages/cz_CZ and send me screenshot to see now left sidebar

ok
Some words came into English..
Title: Re: Czech language in theme osclass
Post by: pecke on April 02, 2016, 01:52:29 am
please put this files  language in your oc-content/language/ and translate theme po its only way


Title: Re: Czech language in theme osclass
Post by: RomanHe on April 02, 2016, 11:30:31 am
please put this files  language in your oc-content/language/ and translate theme po its only way

Am I correct
I pulled cs_cz
and I just translate theme.po?
Title: Re: Czech language in theme osclass
Post by: pecke on April 02, 2016, 04:32:39 pm
download from server your theme.po and theme.mo to your computer and open theme.po with poedit  translate some words  and save,  then upload both theme.po and theme.mo back to server
Title: Re: Czech language in theme osclass
Post by: RomanHe on April 02, 2016, 10:57:37 pm
download from server your theme.po and theme.mo to your computer and open theme.po with poedit  translate some words  and save,  then upload both theme.po and theme.mo back to server


theme.po I translated and these remain untranslated ...))
Title: Re: Czech language in theme osclass
Post by: pecke on April 02, 2016, 11:26:36 pm
when you login did words in sidebar changed to your language?


i see sidebar is translated

send me main.php and user-register.php    and word to translate create new account and see more listings on chech language
Title: Re: Czech language in theme osclass
Post by: malikin on April 02, 2016, 11:58:46 pm
Just change the text in

main.php
user-login/user-register.php

use any freeware text replacer applcation to make it automatically
(https://www.nodesoft.com/content/images/searchandreplace/screenshot1.png)
Title: Re: Czech language in theme osclass
Post by: RomanHe on April 03, 2016, 12:06:24 am
when you login did words in sidebar changed to your language?


i see sidebar is translated

send me main.php and user-register.php    and word to translate create new account and see more listings on chech language

 sidebar is super.....you are genius  :)
Title: Re: Czech language in theme osclass
Post by: pecke on April 03, 2016, 12:14:29 am
here is register.php for homepage  you must edit functions.php in theme folder
now go to your theme functions.php and find this line
Code: [Select]
<li class="last"><a href="<?php echo $_url?>"><strong><?php _e('See more listings...'OSCLASSWIZARDS_THEME_FOLDER);?></strong></a></li>and replace with
Code: [Select]
<li class="last"><a href="<?php echo $_url?>"><strong><?php _e('Viz více zápisů...'); ?></strong></a></li>
Title: Re: Czech language in theme osclass
Post by: RomanHe on April 03, 2016, 01:00:34 am
here is register.php for homepage  you must edit functions.php in theme folder
now go to your theme functions.php and find this line
Code: [Select]
<li class="last"><a href="<?php echo $_url?>"><strong><?php _e('See more listings...'OSCLASSWIZARDS_THEME_FOLDER);?></strong></a></li>and replace with
Code: [Select]
<li class="last"><a href="<?php echo $_url?>"><strong><?php _e('Viz více zápisů...'); ?></strong></a></li>

All managed ...
probably the last word categories
Title: Re: Czech language in theme osclass
Post by: pecke on April 03, 2016, 01:02:05 am
waiyt 5 minutes and send me item.php  you have 2 more words to translate

in fuctions.php theme folder find this
Code: [Select]
<h1 class="title"><?php _e('Categories'OSCLASSWIZARDS_THEME_FOLDER);?></h1>
and replace with this
Code: [Select]
<h1 class="title"><?php _e('Kategorie');?></h1>
Title: Re: Czech language in theme osclass
Post by: pecke on April 03, 2016, 01:11:09 am
in item.php in your theme folder find this line

Code: [Select]
          <?php if ( osc_item_mod_date() !== '' ) { printf__('<span class="update"><i class="fa fa-calendar"></i> Modified date:</span> %1$s'OSCLASSWIZARDS_THEME_FOLDER), osc_format_dateosc_item_mod_date() ) ); } ?>
aand replace with

Code: [Select]
          <?php if ( osc_item_mod_date() !== '' ) { printf__('<span class="update"><i class="fa fa-calendar"></i> Datum změny:</span> %1$s'), osc_format_dateosc_item_mod_date() ) ); } ?>


and find this line
Code: [Select]
<?php if ( osc_item_pub_date() !== '' ) { printf__('<i class="fa fa-calendar-o"></i> Published date: %1$s'OSCLASSWIZARDS_THEME_FOLDER), osc_format_dateosc_item_pub_date() ) ); } ?>
and replace with
Code: [Select]
<?php if ( osc_item_pub_date() !== '' ) { printf__('<i class="fa fa-calendar-o"></i> Datum publikování: %1$s'), osc_format_dateosc_item_pub_date() ) ); } ?>
Title: Re: Czech language in theme osclass
Post by: RomanHe on April 03, 2016, 01:24:38 am
waiyt 5 minutes and send me item.php  you have 2 more words to translate

in fuctions.php theme folder find this
Code: [Select]
<h1 class="title"><?php _e('Categories'OSCLASSWIZARDS_THEME_FOLDER);?></h1>
and replace with this
Code: [Select]
<h1 class="title"><?php _e('Kategorie');?></h1>
Title: Re: Czech language in theme osclass
Post by: pecke on April 03, 2016, 01:29:09 am
here it is
Title: Re: Czech language in theme osclass
Post by: RomanHe on April 03, 2016, 02:10:25 am
here it is

super finally, it's all ...
without your help I would not finish
thank you for your time and help
I will need one more web page,so I hope that it will go better )))
Title: Re: Czech language in theme osclass
Post by: pecke on April 03, 2016, 02:14:53 am
i am here..just ask ..no problem
Title: Re: Czech language in theme osclass
Post by: RomanHe on April 03, 2016, 02:16:03 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 ;)

super finally, it's all ...
thank you for your time and help
Title: Re: Czech language in theme osclass
Post by: RomanHe on April 03, 2016, 02:17:09 am
Just change the text in

main.php
user-login/user-register.php

use any freeware text replacer applcation to make it automatically
(https://www.nodesoft.com/content/images/searchandreplace/screenshot1.png)


thank you for your help
Title: Re: Czech language in theme osclass
Post by: RomanHe on April 03, 2016, 02:25:59 am
i am here..just ask ..no problem


ok thanks
good night :)
Title: Re: Czech language in theme osclass
Post by: malikin on April 03, 2016, 12:01:04 pm
RomanHE, you have a lot of problem with website

so i cant register
Warning: Cannot modify header information - headers already sent by (output started at /data/web/virtuals/125104/virtual/www/domains/capitalia.cz/oc-includes/osclass/utils.php:1740) in /data/web/virtuals/125104/virtual/www/domains/capitalia.cz/oc-includes/osclass/utils.php on line 1745
Title: Re: Czech language in theme osclass
Post by: pecke on April 03, 2016, 04:32:29 pm
roman you  must put back hUtils.php original back to server and dont modify this file.....
Title: Re: Czech language in theme osclass
Post by: RomanHe on April 03, 2016, 10:54:22 pm
roman you  must put back hUtils.php original back to server and dont modify this file.....


hi I recorded back Utils.php, but still

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

Title: Re: Czech language in theme osclass
Post by: RomanHe on April 03, 2016, 11:00:26 pm
RomanHE, you have a lot of problem with website

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

yes it is a problem I have to solve.....
Title: Re: Czech language in theme osclass
Post by: pecke on April 03, 2016, 11:32:10 pm
try this hUtils.php file    i was able to register on your site before 2 days now i cant...if you modify some php files thats the problem
Title: Re: Czech language in theme osclass
Post by: RomanHe on April 04, 2016, 12:08:36 am
try this hUtils.php file    i was able to register on your site before 2 days now i cant...if you modify some php files thats the problem

downloaded file also does not work....
I have a pack of 3/31, but he also has not..
Registration will come to my mail, but is displayed sentence

...Warning: Cannot modify header information - headers already sent by (output started at /data/web/virtuals/125104/virtual/www/domains/capitalia.cz/oc-includes/osclass/utils.php:1740) in /data/web/virtuals/125104/virtual/www/domains/capitalia.cz/oc-includes/osclass/utils.php on line 1745
Title: Re: Czech language in theme osclass
Post by: pecke on April 04, 2016, 04:05:12 am
okay i tell you i can register before 2 days did you change files from then?
Title: Re: Czech language in theme osclass
Post by: malikin on April 04, 2016, 07:12:54 am
RomanHE,

1)backup you database
2)copy theme folder
2)delete OS-CLASS
3)install new osclass instance
4)restore database
-)check if it works at other theme
5)restore your theme
Title: Re: Czech language in theme osclass
Post by: RomanHe on April 04, 2016, 12:22:39 pm
okay i tell you i can register before 2 days did you change files from then?

Hello,
I have a deposit of 16.3. 2016
I downloaded and uploaded Utils.php
it keeps saying the sentence .....

I have replaced the file to delete and replace the backup?
Do it all over again?

i have  ..
restored_2016-03-22_124012...
Title: Re: Czech language in theme osclass
Post by: pecke on April 04, 2016, 08:52:15 pm
save your site and database to your computer and  delete all files  in root your site then upload all yours backup files and database from 16.03    to see if site work then upload only language files you saved from site ...this error  tell you some php code have white space or dont have closing  ?>  tag
Title: Re: Czech language in theme osclass
Post by: RomanHe on April 05, 2016, 11:57:56 am
save your site and database to your computer and  delete all files  in root your site then upload all yours backup files and database from 16.03    to see if site work then upload only language files you saved from site ...this error  tell you some php code have white space or dont have closing  ?>  tag

hi,
I recorded everything from backup...
I recorded last theme.po, after adjustment
After completing a new account all ok
left again a few translated words
I translate?
------------------------------------------------------------

I did a modification according to previous information, and I think it is ok
Title: Re: Czech language in theme osclass
Post by: pecke on April 06, 2016, 12:59:11 am
just say if you need my help for translate...
Title: Re: Czech language in theme osclass
Post by: RomanHe on April 06, 2016, 02:01:02 pm
just say if you need my help for translate...

Thank you managed...
I have yet another problem... :(
Title: Re: Czech language in theme osclass
Post by: pecke on April 06, 2016, 02:53:21 pm
posted it here..
Title: Re: Czech language in theme osclass
Post by: RomanHe on April 06, 2016, 03:04:53 pm
posted it here..

 ;D
I do not know how to install it oscclass on FTP
I tried according https://doc.osclass.org/Install
This is a new web page...https://webftp.wedos.net/
i have downloaded oscclass 3.6.1, but i dont now where unpack and download :(
Title: Re: Czech language in theme osclass
Post by: pecke on April 06, 2016, 03:47:22 pm
well my friend this site its new for me i cant help you with that site....
Title: Re: Czech language in theme osclass
Post by: RomanHe on April 07, 2016, 10:22:46 am
well my friend this site its new for me i cant help you with that site....

 :D
okay, I'll hunt ))))
Title: Re: Czech language in theme osclass
Post by: RomanHe on April 09, 2016, 11:20:13 pm
well my friend this site its new for me i cant help you with that site....

Ola -  my friend on Oscclas...
I found one problem ...
I do not know where to change
Please help more
Title: Re: Czech language in theme osclass
Post by: pecke on April 10, 2016, 12:06:35 am
item.php in theme folder
Title: Re: Czech language in theme osclass
Post by: RomanHe on April 10, 2016, 01:59:32 pm
item.php in theme folder

Thanks, but pleas I didnt find  "Check with seller "
Title: Re: Czech language in theme osclass
Post by: pecke on April 10, 2016, 03:05:30 pm
oc-includes/osclass/helpers/hItems.php
Title: Re: Czech language in theme osclass
Post by: RomanHe on April 10, 2016, 03:28:27 pm
oc-includes/osclass/helpers/hItems.php


function osc_format_price($price, $symbol = null) {
        if ($price === null) return osc_apply_filter ('item_price_null', __('Informujte se u prodejce') );
        if ($price == 0) return osc_apply_filter ('item_price_zero', __('Free') );


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/hItems.php:2865) in /data/web/virtuals/125104/virtual/www/domains/capitalia.cz/oc-includes/osclass/core/Session.php on line 47

 :-[ :-[
Title: Re: Czech language in theme osclass
Post by: pecke on April 10, 2016, 05:32:51 pm
please back your original file  and send me this file i will do it for you...
Title: Re: Czech language in theme osclass
Post by: RomanHe on April 10, 2016, 10:15:28 pm
please back your original file  and send me this file i will do it for you...

thanks
Title: Re: Czech language in theme osclass
Post by: pecke on April 10, 2016, 10:50:31 pm
try this file but dont touch it just upload

Title: Re: Czech language in theme osclass
Post by: RomanHe on April 10, 2016, 11:01:35 pm
try this file but dont touch it just upload

 :-[ :-[

Title: Re: Czech language in theme osclass
Post by: pecke on April 10, 2016, 11:22:07 pm
what theme you use?
this happen last time in your first site ,you did not edit language files,  when you mess with core files you can make big problem

if you can put back again backup files and databse from 16.03 and dont touch it hehehheh

Title: Re: Czech language in theme osclass
Post by: RomanHe on April 10, 2016, 11:33:16 pm
what theme you use?
this happen last time in your first site ,you did not edit language files,  when you mess with core files you can make big problem

if you can put back again backup files and databse from 16.03 and dont touch it hehehheh

I just overwrite the text Check......I use osclasswizards
an advance of 3.16 I have...
Title: Re: Czech language in theme osclass
Post by: pecke on April 10, 2016, 11:36:01 pm
put this  original file to oc-includes/osclass/helpers/

Title: Re: Czech language in theme osclass
Post by: pecke on April 10, 2016, 11:39:28 pm
if you cant fix it put this in your config.php   


Code: [Select]
session_save_path ( ABS_PATH . 'oc-content/uploads/' );
Title: Re: Czech language in theme osclass
Post by: RomanHe on April 11, 2016, 12:17:30 am
Hello,¨
Please help with the change of words, where to find...

Thanks
Title: Re: Czech language in theme osclass
Post by: RomanHe on April 17, 2016, 11:55:00 pm
Hello,¨
Please help with the change of words, where to find...

Thanks

Hello, is i am sorry ,but I have not found in any...wizestate theme
R.
Title: Re: Czech language in theme osclass
Post by: pecke on April 18, 2016, 08:45:58 pm
search-gallery.php or searc-grid.php dont knaow what theme u using
Title: Re: Czech language in theme osclass
Post by: RomanHe on April 19, 2016, 06:02:31 pm
search-gallery.php or searc-grid.php dont knaow what theme u using

Hello, is i am sorry ,but I have not found in any...wizestate theme
R
Title: Re: Czech language in theme osclass
Post by: pecke on April 19, 2016, 07:02:02 pm
try main.php i will see for you when i come home