Cant overwrite English words (View Products) to Slovak with Joomla overwrites Topic is solved

This forum is for general questions about extensions for Joomla! 3.x.

Moderators: pe7er, General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
Windows Defender SmartScreen Issues <-- please read this if using Windows 10.
Post Reply
parfumylacno
Joomla! Apprentice
Joomla! Apprentice
Posts: 23
Joined: Tue Apr 23, 2013 9:29 am

Cant overwrite English words (View Products) to Slovak with Joomla overwrites

Post by parfumylacno » Sat Aug 10, 2019 3:26 pm

Hello, please, can you help me with this translation issue?

In this developers version of my web http://vyvojova.parfumylacno.sk/parfumy-eshop I cant edit and overwrite english words View Products to Slovak version (Zobraziť Produkty) with Joomla language overwrite.
overwrite.png
I try enable in Joomla administration control panel to debug languages values and string, but it does not show me value of this words View Products => I think, that this words are hard coded in some way in Joomla Template (because in previous template it all works fine).

Please, can anyone help me to find solution - how can i overwrite this english words in any way.

Thank you very much.
You do not have the required permissions to view the files attached to this post.
Last edited by imanickam on Sun Aug 11, 2019 1:31 am, edited 1 time in total.
Reason: Moved the topic from the forum Language - Joomla! 3.x to the forum Extensions for Joomla! 3.x

 
User avatar
bruno28
Joomla! Explorer
Joomla! Explorer
Posts: 481
Joined: Wed May 16, 2012 5:41 am
Location: Chartres, France
Contact:

Re: Cant overwrite English words (View Products) to Slovak with Joomla overwrites

Post by bruno28 » Sat Aug 10, 2019 3:51 pm

Hello parfumylacno

Did you check in Virtuemart ? It seems to be displayed with Virtuemart

Your site is insecure, no https and no padlock : risk

add a ssl certificate
Cordialement, Bruno28 :)
Joomla! 3.9.20 - php 7.4
www.bp2i.fr - www.moneglisesurle.net

parfumylacno
Joomla! Apprentice
Joomla! Apprentice
Posts: 23
Joined: Tue Apr 23, 2013 9:29 am

Re: Cant overwrite English words (View Products) to Slovak with Joomla overwrites

Post by parfumylacno » Sat Aug 10, 2019 4:32 pm

sorry insercure is caused only because it is only developing web version of original web www.parfumylacno.sk and it was trying to use same SSL => for now I disabled https for it.

I m not sure if I understand what you mean - what can i check in virtuemart? There are no posibility to overwrite text strings displayed on site, or is it?

thank you

User avatar
bruno28
Joomla! Explorer
Joomla! Explorer
Posts: 481
Joined: Wed May 16, 2012 5:41 am
Location: Chartres, France
Contact:

Re: Cant overwrite English words (View Products) to Slovak with Joomla overwrites

Post by bruno28 » Sat Aug 10, 2019 4:55 pm

I supposed you already went to Languages: Edit Override and searched for view products
view-product.png
I was wondering if there was something in Virtuemart because this is the shop used for your products

Eventually try to ask here : http://forum.virtuemart.net/index.php?board=129.0
You do not have the required permissions to view the files attached to this post.
Cordialement, Bruno28 :)
Joomla! 3.9.20 - php 7.4
www.bp2i.fr - www.moneglisesurle.net

parfumylacno
Joomla! Apprentice
Joomla! Apprentice
Posts: 23
Joined: Tue Apr 23, 2013 9:29 am

Re: Cant overwrite English words (View Products) to Slovak with Joomla overwrites

Post by parfumylacno » Sat Aug 10, 2019 5:19 pm

thank you - no Overrides does not help, it doesnt find anything. So it does not help.

User avatar
Per Yngve Berg
Joomla! Master
Joomla! Master
Posts: 27131
Joined: Mon Oct 27, 2008 9:27 pm
Location: Romerike, Norway

Re: Cant overwrite English words (View Products) to Slovak with Joomla overwrites

Post by Per Yngve Berg » Sat Aug 10, 2019 6:06 pm

Have you installed the Slovak Language Pack for VM?

parfumylacno
Joomla! Apprentice
Joomla! Apprentice
Posts: 23
Joined: Tue Apr 23, 2013 9:29 am

Re: Cant overwrite English words (View Products) to Slovak with Joomla overwrites

Post by parfumylacno » Sat Aug 10, 2019 6:45 pm

yes of course :)

another strings works fine, to example add to cart button: https://vyvojova.parfumylacno.sk/parfum ... son-detail

I m suspecting, that there is any hard code in template and i have to find out how to rewrite this hard code (if there is such thing)

User avatar
Per Yngve Berg
Joomla! Master
Joomla! Master
Posts: 27131
Joined: Mon Oct 27, 2008 9:27 pm
Location: Romerike, Norway

Re: Cant overwrite English words (View Products) to Slovak with Joomla overwrites

Post by Per Yngve Berg » Sat Aug 10, 2019 7:02 pm

Enable Debug and Language Debug in Global Configuration

Check the Debug Info at the bottom of the page. Loaded language files.

**String** Translated string
??String?? Translated string missing in language file
String without quotes are hard-coded non-translatable strings.

parfumylacno
Joomla! Apprentice
Joomla! Apprentice
Posts: 23
Joined: Tue Apr 23, 2013 9:29 am

Re: Cant overwrite English words (View Products) to Slovak with Joomla overwrites

Post by parfumylacno » Sat Aug 10, 2019 7:22 pm

yes, thank you - I tried it all (but dont know what does mean ** and ??, thank you for explanation)

so, if it is hard coded how can I translate it and change it? Is there any way to find in which php file is this hard coded string?

thank you very much :)

User avatar
Per Yngve Berg
Joomla! Master
Joomla! Master
Posts: 27131
Joined: Mon Oct 27, 2008 9:27 pm
Location: Romerike, Norway

Re: Cant overwrite English words (View Products) to Slovak with Joomla overwrites

Post by Per Yngve Berg » Sat Aug 10, 2019 9:27 pm

There is probably overrides in your template.

https://docs.joomla.org/How_to_override ... omla!_core

parfumylacno
Joomla! Apprentice
Joomla! Apprentice
Posts: 23
Joined: Tue Apr 23, 2013 9:29 am

Re: Cant overwrite English words (View Products) to Slovak with Joomla overwrites

Post by parfumylacno » Sun Aug 11, 2019 8:54 am

Thank you.

Yes, they are probably some overrides..

I check all php document for template/html/com virtuemart/category/default.php but i cant find anything like "View Products".

Please, do you know any way to find solution how to solve this?

Is there any way to find right php document which need to make changes?
Or any other way?

Thank you very much for your time and knowledge

User avatar
Per Yngve Berg
Joomla! Master
Joomla! Master
Posts: 27131
Joined: Mon Oct 27, 2008 9:27 pm
Location: Romerike, Norway

Re: Cant overwrite English words (View Products) to Slovak with Joomla overwrites

Post by Per Yngve Berg » Sun Aug 11, 2019 9:52 am

It should be in the VM Category View, following behind the </h4>

parfumylacno
Joomla! Apprentice
Joomla! Apprentice
Posts: 23
Joined: Tue Apr 23, 2013 9:29 am

Re: Cant overwrite English words (View Products) to Slovak with Joomla overwrites

Post by parfumylacno » Sun Aug 11, 2019 11:05 am

interesting, but i could not find such folder.
In folder to override template input i have only this three files:

template/html/com virtuemart/category/default.php
template/html/com virtuemart/category/default_products_tabs.php
template/html/com virtuemart/category/default_quicklook.php

there are no VM Category view folder, even file.

then there are also this folders:

template/html/com virtuemart/cart
template/html/com virtuemart/category
template/html/com virtuemart/productdetails
template/html/com virtuemart/sublayouts

And here comes best part - last options bring us a solution :D

In template/html/com virtuemart/sublayouts/categories.php there was this code right after h4 tag as you writed:

<a href="<?php echo $caturl ?>" title="<?php echo vmText::_($category->category_name) ?>" class="btn" role="button">View products</a>

So I rewrite it to Zobraziť produkty and its finaly works!

Thank you very much for your help with this little hard coded detective story :D :)

User avatar
Per Yngve Berg
Joomla! Master
Joomla! Master
Posts: 27131
Joined: Mon Oct 27, 2008 9:27 pm
Location: Romerike, Norway

Re: Cant overwrite English words (View Products) to Slovak with Joomla overwrites

Post by Per Yngve Berg » Sun Aug 11, 2019 1:48 pm

You should make it translatable. Give feedback to the template developer.

Code: Select all

<a href="<?php echo $caturl ?>" title="<?php echo vmText::_($category->category_name) ?>" class="btn" role="button"><?php JText::_('COM_VIRTUEMART_VIEW_PRODUCTS') ?></a>
Enter in Language files:
COM_VIRTUEMART_VIEW_PRODUCTS="View Products"
COM_VIRTUEMART_VIEW_PRODUCTS="Zobraziť"

parfumylacno
Joomla! Apprentice
Joomla! Apprentice
Posts: 23
Joined: Tue Apr 23, 2013 9:29 am

Re: Cant overwrite English words (View Products) to Slovak with Joomla overwrites

Post by parfumylacno » Sun Aug 11, 2019 3:08 pm

Thank you very much :)

parfumylacno
Joomla! Apprentice
Joomla! Apprentice
Posts: 23
Joined: Tue Apr 23, 2013 9:29 am

Re: Cant overwrite English words (View Products) to Slovak with Joomla overwrites

Post by parfumylacno » Thu Oct 17, 2019 1:44 pm

Per Yngve Berg wrote:
Sat Aug 10, 2019 7:02 pm
Enable Debug and Language Debug in Global Configuration

Check the Debug Info at the bottom of the page. Loaded language files.

**String** Translated string
??String?? Translated string missing in language file
String without quotes are hard-coded non-translatable strings.
Hello, please, could you help me again?

I still cant translate many of strings in my template = and I cant find solution in template creator support...

There are strings with marks ** as Translated string and also ?? as Translated string missing in language file = but i cant find out, how to translate them. you can see it in picture
translated string.png
Please, how can i translate them? I cant find them in php files either. Should I make some changes in language files, or what?

thank you very much.
You do not have the required permissions to view the files attached to this post.

User avatar
Per Yngve Berg
Joomla! Master
Joomla! Master
Posts: 27131
Joined: Mon Oct 27, 2008 9:27 pm
Location: Romerike, Norway

Re: Cant overwrite English words (View Products) to Slovak with Joomla overwrites

Post by Per Yngve Berg » Sat Oct 19, 2019 9:34 am

There can be only two causes of the issue.

1) The language pack is an older version than the component. Strings may be added later.

2) There is an error in the language file, everything after the error is not read.

parfumylacno
Joomla! Apprentice
Joomla! Apprentice
Posts: 23
Joined: Tue Apr 23, 2013 9:29 am

Re: Cant overwrite English words (View Products) to Slovak with Joomla overwrites

Post by parfumylacno » Mon Oct 21, 2019 9:08 am

thank you very much, for your help, You are perfect! :)

1- it should be right. Because, I had a website with old Joomla version 3.6.5 and virtuemart 3.0.18 = and then I make update for template, so maybe I should try to update what i can. But I have a many problems with automatical updates, because they failed.

So I download lates language package https://virtuemart.net/community/transl ... mart/sk-SK
and it solved most of problems.

There remain only problem with ??String?? Translated string missing in language file = is there any way how can I solved this too?

 

Post Reply

Return to “Extensions for Joomla! 3.x”