Advertisement:

Author Topic: [Solved]How to change the phrase "Click or Drop for upload images"  (Read 5265 times)

topar

  • Newbie
  • *
  • Posts: 24
Hi, my site its topartigos.pt and i am portuguese so i have changed my site to portuguese but the only thing that i dont know, its how or where to change the phrase "Click or Drop for upload images".
This phrase its here: http://topartigos.pt/index.php?page=item&action=item_add
I am using the theme Royal version 1.3.5.
If you know what file i need to go or something say it :)
Thanks.
« Last Edit: April 09, 2016, 09:37:20 pm by topar »

teseo

  • Hero Member
  • *****
  • Posts: 6169
Re: How to change the phrase "Click or Drop for upload images"
« Reply #1 on: April 09, 2016, 02:59:52 pm »
Hi,

You need to edit oc-content/languages/pt_PT/core.po using Poedit, look for that string, set your translation, Save and upload new core.po and core.mo to your server.

Take into account that this file will be ovewritten on Osclass upgrade, you'll need to repeat the process.

Reghards

topar

  • Newbie
  • *
  • Posts: 24
Re: How to change the phrase "Click or Drop for upload images"
« Reply #2 on: April 09, 2016, 05:59:08 pm »
I did that and i changed something and everything have changed but the Click or Drop for upload images didnt.
I tried several times and it didnt change.
The name of that its qq-upload-button i need to find the file with that inside and change manual xD.
You know where it can be?

teseo

  • Hero Member
  • *****
  • Posts: 6169
Re: How to change the phrase "Click or Drop for upload images"
« Reply #3 on: April 09, 2016, 06:21:20 pm »
???

The string is inside oc-includes/osclass/frm/Item.form.class.php:

Code: [Select]
text: {
                            uploadButton: '<?php echo osc_esc_js(__('Click or Drop for upload images')); ?>',

But it should appear translated if you did it correctly. ??? Anyway, take into account that this is a core file, so you'll need to redo this modification every time you upgrade Osclass.

Regards

topar

  • Newbie
  • *
  • Posts: 24
Re: How to change the phrase "Click or Drop for upload images"
« Reply #4 on: April 09, 2016, 06:34:47 pm »
YEAH!
Finaly it changed you can see if you want http://topartigos.pt/index.php?page=item&action=item_add
Thanks alot! and thanks for your time to explain me.


Can i just ask a final thing and i will not need more nothing.
On this page http://topartigos.pt/index.php?page=search&sCategory=1
I dont like to see the part that says "Subscrever esta pesquisa" and "Assine agora" it looks bad on the site.
How i can withdraw that part without screw up everything.
What i need to remove in what file?
Thanks alot teseo.

teseo

  • Hero Member
  • *****
  • Posts: 6169
Re: How to change the phrase "Click or Drop for upload images"
« Reply #5 on: April 09, 2016, 06:54:25 pm »
You're welcome :)

I dont like to see the part that says "Subscrever esta pesquisa" and "Assine agora" it looks bad on the site.

royal/search-sidebar.php:

Replace:

Code: [Select]
<?php osc_alert_form(); ?>
with:

Code: [Select]
<?php // osc_alert_form(); ?>
Regards

topar

  • Newbie
  • *
  • Posts: 24
Re: How to change the phrase "Click or Drop for upload images"
« Reply #6 on: April 09, 2016, 07:04:31 pm »
Nice!
Im so happy, now everything its right and i will launch the site on my country.
Thank you for helping me and I will never forget who helped me.
Stay cool.