*

ZP2021

  • **
  • 13 posts
Need to switch Language to add listing
« on: February 10, 2021, 10:46:56 AM »
Hi,

I have problem with languages. Could please someone help me?
For example if I am using OS in English I can`t add listing ONLY in Italian. I need to switch language before.

*

MB Themes

Re: Need to switch Language to add listing
« Reply #1 on: February 10, 2021, 11:50:13 AM »
@ZP2021
In item-post.php you may find restriction that language, you have active right now, must be filled.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

Marked as best answer by frosticek on February 10, 2021, 02:02:36 PM
*

MB Themes

Re: Need to switch Language to add listing
« Reply #2 on: February 10, 2021, 12:51:27 PM »
@ZP2021
No idea how this is related and why you picked this piece of code.
These can be sample rules:
Code: [Select]
        "title[<?php echo osc_current_user_locale(); ?>]": {
          required: true,
          minlength: 5
        },

        "description[<?php echo osc_current_user_locale(); ?>]": {
          required: true,
          minlength: 10
        },

And related messages:
Code: [Select]
        "title[<?php echo osc_current_user_locale(); ?>]": {
          required: '<?php echo osc_esc_js(__('Title: this field is required.''alpha')); ?>',
          minlength: '<?php echo osc_esc_js(__('Title: enter at least 5 characters.''alpha')); ?>'
        },

        "description[<?php echo osc_current_user_locale(); ?>]": {
          required: '<?php echo osc_esc_js(__('Description: this field is required.''alpha')); ?>',
          minlength: '<?php echo osc_esc_js(__('Description: enter at least 10 characters.''alpha')); ?>'
        },
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

ZP2021

  • **
  • 13 posts
Re: Need to switch Language to add listing
« Reply #3 on: February 10, 2021, 01:11:56 PM »
I need delete this part of code? 8)

[<?php echo osc_current_user_locale(); ?>]

*

MB Themes

Re: Need to switch Language to add listing
« Reply #4 on: February 10, 2021, 01:26:17 PM »
@ZP2021
I am pretty sure all codes are already posted.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

ZP2021

  • **
  • 13 posts
Re: Need to switch Language to add listing
« Reply #5 on: February 10, 2021, 01:34:44 PM »

I see, you're a tough guy.

So hard just say wat I need to add or delete.
Thank you for your time and support.

*

MB Themes

Re: Need to switch Language to add listing
« Reply #6 on: February 10, 2021, 02:02:32 PM »
Already posted what code is related for these messages.

These can be sample rules:
Code: [Select]
        "title[<?php echo osc_current_user_locale(); ?>]": {
          required: true,
          minlength: 5
        },

        "description[<?php echo osc_current_user_locale(); ?>]": {
          required: true,
          minlength: 10
        },

And related messages:
Code: [Select]
        "title[<?php echo osc_current_user_locale(); ?>]": {
          required: '<?php echo osc_esc_js(__('Title: this field is required.''alpha')); ?>',
          minlength: '<?php echo osc_esc_js(__('Title: enter at least 5 characters.''alpha')); ?>'
        },

        "description[<?php echo osc_current_user_locale(); ?>]": {
          required: '<?php echo osc_esc_js(__('Description: this field is required.''alpha')); ?>',
          minlength: '<?php echo osc_esc_js(__('Description: enter at least 10 characters.''alpha')); ?>'
        },
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

ZP2021

  • **
  • 13 posts
Re: Need to switch Language to add listing
« Reply #7 on: February 10, 2021, 02:26:39 PM »
Could you please check this video: https://drive.google.com/file/d/1d6QdFahJ6EQs2kczCEHxTmt8l4yM0QJ9/view
If I add your code - situation is the same.

But If I delete <?php echo osc_current_user_locale(); ?> it allows me post listing in different languages.

*

MB Themes

Re: Need to switch Language to add listing
« Reply #8 on: February 10, 2021, 02:35:07 PM »
There was no word about adding any code, rather removing.
Code posted above is sample code that place requirements to enter title & description in user currently selected locale.
Remove it, modify it, add it, it's on you and what you want to do.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

ZP2021

  • **
  • 13 posts
Re: Need to switch Language to add listing
« Reply #9 on: February 10, 2021, 02:41:46 PM »
Ok. I am also using Flynax. And they offer concrete decision. That`s why I am waiting it also from from you.
Now I know about workflow with Oscalss. You just send the code that need to modify. No problem. Thank you.

*

MB Themes

Re: Need to switch Language to add listing
« Reply #10 on: February 10, 2021, 03:08:00 PM »
@ZP2021
I am sorry but for different requirements, your dedication is required and you will usually not get exact file, line, code etc. It's open forums and anyone can ask as well as reply.
I've send you code that is responsible for putting validation on title & description, so your job is to find very similar code in item-post.php & item-edit.php.
Flynax is paid script and you pay for using it, osclass is open-source and you do not pay anything for downloading or using it.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

ZP2021

  • **
  • 13 posts
Re: Need to switch Language to add listing
« Reply #11 on: February 10, 2021, 03:14:58 PM »
Thank you for your reply. I understand you.
Have a good day!