Advertisement:

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

RomanHe

  • Newbie
  • *
  • Posts: 48
Czech language in theme osclass
« 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

p206ab

  • Sr. Member
  • ****
  • Posts: 343
Re: Czech language in theme osclass
« Reply #1 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.


fr4nk

  • Full Member
  • ***
  • Posts: 102
Re: Czech language in theme osclass
« Reply #2 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 ?

RomanHe

  • Newbie
  • *
  • Posts: 48
Re: Czech language in theme osclass
« Reply #3 on: March 21, 2016, 02:19:31 pm »
I'm trying to find and change, but is not responding...
 :-\

Can anyone help with that
« Last Edit: March 24, 2016, 11:10:30 am by RomanHe »

RomanHe

  • Newbie
  • *
  • Posts: 48
Re: Czech language in theme osclass
« Reply #4 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.
« Last Edit: March 24, 2016, 11:48:28 pm by RomanHe »

RomanHe

  • Newbie
  • *
  • Posts: 48
Re: Czech language in theme osclass
« Reply #5 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
« Last Edit: March 24, 2016, 11:48:08 pm by RomanHe »

Magnettoo

  • Full Member
  • ***
  • Posts: 216
Re: Czech language in theme osclass
« Reply #6 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,

RomanHe

  • Newbie
  • *
  • Posts: 48
Re: Czech language in theme osclass
« Reply #7 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

Magnettoo

  • Full Member
  • ***
  • Posts: 216
Re: Czech language in theme osclass
« Reply #8 on: March 28, 2016, 12:06:54 am »
why does core file looks like this "core (11.mo" ?
should be core.mo

RomanHe

  • Newbie
  • *
  • Posts: 48
Re: Czech language in theme osclass
« Reply #9 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

Magnettoo

  • Full Member
  • ***
  • Posts: 216
Re: Czech language in theme osclass
« Reply #10 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.

RomanHe

  • Newbie
  • *
  • Posts: 48
Re: Czech language in theme osclass
« Reply #11 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.
« Last Edit: March 28, 2016, 02:38:17 am by RomanHe »

Magnettoo

  • Full Member
  • ***
  • Posts: 216
Re: Czech language in theme osclass
« Reply #12 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 ;)

pecke

  • Full Member
  • ***
  • Posts: 169
Re: Czech language in theme osclass
« Reply #13 on: March 28, 2016, 11:31:33 pm »
can i see php file where your translate dont work ?
« Last Edit: March 28, 2016, 11:36:04 pm by pecke »

Magnettoo

  • Full Member
  • ***
  • Posts: 216
Re: Czech language in theme osclass
« Reply #14 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... ;)