1. Osclass Forum
  2. Themes
  3. The translation of new fields

The translation of new fields

Started by kris koyk, February 27, 2020, 9:58 pm

kris koyk

Re: The translation of new fields

on :March 1, 2020, 11:12 am #214

Ok, thanks for the answers, I'll let you know if I find a solution.

calinbehtuk

Re: The translation of new fields

on :March 1, 2020, 11:32 am #215

Use this tutorial to add the new words for the fields in the translation, the tutorial is only an example you have to make the changes in the correct file, not in the filed presented in the tutorial, your file is languages/el_GR/core.po and use poedit to save the file after you add the words.


https://osclass.calinbehtuk.ro/blog/post/themes/translate-osclass-plugins-and-themes_p7

kris koyk

Re: The translation of new fields

on :March 1, 2020, 11:46 am #216

The word "phone" was in / el_GR / core.po from the beginning I don't think I need to add it again.

calinbehtuk

Re: The translation of new fields

on :March 1, 2020, 11:54 am #217

This is a change that take 10 seconds, somewhere you are doing something wrong.


This is working just fine, just with changes in the file field.form.class.php if the world is already in the translation

kris koyk

Re: The translation of new fields

on :March 10, 2020, 2:07 pm #220

Thanks for the answers. In the second step the picture is very black and it does not show what it is.

The steps I follow are in the photos:

calinbehtuk

Re: The translation of new fields

on :March 10, 2020, 5:14 pm #221

You have to change in item.php, the name of the field is displayed as default, not translation is applied ther. Make the same changes in item.php.

  • << Last edit: March 10, 2020, 5:14 pm by calinbehtuk >>
  • Quote

kris koyk

Re: The translation of new fields

on :March 10, 2020, 7:10 pm #222

In what folder?

calinbehtuk

Re: The translation of new fields

on :March 11, 2020, 7:06 am #227

In your theme.


oc-content/themes/your_theme/item.php

kris koyk

Re: The translation of new fields

on :March 11, 2020, 11:25 am #230

Ήταν αυτό:


<div id = "custom_fields">
            <? php if (osc_count_item_meta ()> = 1) {?>
                <br />
                <div class = "meta_list">
                    <? php ενώ (osc_has_item_meta ()) {?>
                        <? php if (osc_item_meta_value ()! = '') {?>
                            <div class = "meta">
                                <strong> <? php echo  osc_item_meta_name (); ?>: </ strong> <? php echo  osc_item_meta_value (); ?>
                            </ div>


Αυτό συνέβη:


<strong> <? php echo __ (osc_item_meta_name ()) ; ?>: </ strong> <? php echo __ (osc_item_meta_value ()) ; ?>


Και τώρα όλα είναι καλά !!!


Ευχαριστώ και πάλι για τη βοήθεια!

  • << Last edit: March 11, 2020, 7:16 pm by kris koyk >>
  • Quote
Subscribe
X

Subscribe!

Subscribe to get the latest listings, updates and special offers delivered directly in your inbox.