display num

  • Posts: 2
  • Thank you received: 0
13 years 10 months ago #3413

I am doing my best to translate hikashop into polish, however I noticed that there is no possibility to change a "display num" sentence which lays next to expanded list with the number of products list.

Would you please point out the place where may I substitute "display num" ???

Best Regards

Attachments:

Please Log in or Create an account to join the conversation.

  • Posts: 82725
  • Thank you received: 13338
  • MODERATOR
13 years 10 months ago #3414

The "display num" text used there is taken from joomla's translation file. Maybe the joomla's polish translation file is missing the DISPLAY NUM translation ?
You can find the joomla language files in the "language" folder.
In the file language/en-GB/en-GB.ini file the display num translation is on line 174.

Please Log in or Create an account to join the conversation.

  • Posts: 2
  • Thank you received: 0
13 years 10 months ago #3415

Possible. Will check it right away. Thank you and regards.

Man! Go to sleep :)

Please Log in or Create an account to join the conversation.

  • Posts: 228
  • Thank you received: 8
10 years 3 months ago #164738

Hi,

I'm using Joomla! 3.3.1 with Hikashop essential and I', looking to translate both "View as:" and "Display Num" in products pagination. Looked all over for the translation file could not locate it. I've checked en-GB.com_hikashop.ini, en-GB.ini and more with no luck. Can you please tell me where can I locate this two?

Thank you in advance,

Guy.

Please Log in or Create an account to join the conversation.

  • Posts: 82725
  • Thank you received: 13338
  • MODERATOR
10 years 3 months ago #164750

Hi,

It's normal that you didn't find it in the HikaShop translation file. As I said three years ago, that text comes from the Joomla translation file.
You can find the joomla language files in the "language" folder.
In the file language/en-GB/en-GB.ini file the display num translation is on line 174.

Note that since then, Joomla has a translation override tool in order to easily find and override translations, so I would recommend to use it:
www.inmotionhosting.com/support/edu/joom...ew-language-override

Please Log in or Create an account to join the conversation.

  • Posts: 228
  • Thank you received: 8
10 years 3 months ago #164791

Hello Nicolas and thank you for your replay.
I've made an attempt to use the override tool but all search results for "View as:" and "Display Num" came up empty. As I've mentioned, I looked at the en-GB.ini file and couldn't find this titles as well. Could it be that they are hard coded?

Guy.

Please Log in or Create an account to join the conversation.

  • Posts: 12953
  • Thank you received: 1778
10 years 3 months ago #164797

Hello,
And can you directly check through the en-GB file that you don't have any translation line for your "Display num" ? If not a solution can be to directly add this line :

JGLOBAL_DISPLAY_NUM="Display #"
Don't forget to replace the "Display #" by your translation.

Please Log in or Create an account to join the conversation.

  • Posts: 228
  • Thank you received: 8
10 years 2 months ago #167820

Hi Mohamed,

Thank you for your help but the field you've sent me is already translated in my language files and that's not the one :S
I'm talking about two fields:
Display Num
View as

I've searched all over, in the en-GB.ini file, in en-GB.com_hikashop,ini and even tried Joomla's core language system but could not find this fields ANYWHERE!!!

Could it be that they are hard coded the wrong way? If so, where should I look for the PHP files?

See attached image for the missing translations.

Thank you in advance,

Guy.

Attachments:

Please Log in or Create an account to join the conversation.

  • Posts: 12953
  • Thank you received: 1778
10 years 2 months ago #167824

Hello,
Are you sure that your website is using the english language file ?
Did you searched the "Display Num" and "View as" on the translation file ? if not, you should do it and directly edit these lines.

Please Log in or Create an account to join the conversation.

  • Posts: 228
  • Thank you received: 8
10 years 2 months ago #168768

Hi Mohamed,

I've checked both the translation files and the original language files but no luck. This is not the first time I've been translating extensions and I really think that this two fields are coded with the titles instead of jtext variables.

Can you please tell me where to locate the php file for this two?
I think this is the class I'm looking for:
hikashop_products_pagination hikashop_products_pagination_top toan

Thanks,

Guy.

Last edit: 10 years 2 months ago by theguy.

Please Log in or Create an account to join the conversation.

  • Posts: 12953
  • Thank you received: 1778
10 years 2 months ago #168836

Hello,
I've done some tests and I think that you're issue is coming from the "administrator\components\com_hikashop\helpers\pagination.php" file, so you'll just have to edit these lines :

if(version_compare(JVERSION,'1.6','>=')){
			$display = JText::_('JGLOBAL_DISPLAY_NUM');
		}else{
			$display = JText::_('Display Num');
		}
By :
if(version_compare(JVERSION,'1.6','>=')){
			$display = JText::_('JGLOBAL_DISPLAY_NUM');
		}else{
			$display = JText::_('DISPLAY NUM');
		}
So you'll have the use the "DISPLAY NUM" keyword and not "JGLOBAL_DISPLAY_NUM".

Please Log in or Create an account to join the conversation.

  • Posts: 228
  • Thank you received: 8
10 years 2 months ago #168914

Hi Mohamed,

Thank you again for your help. Tried your solution and:
1. My version is higher then 1.6 so it suppose to use "JGLOBAL_DISPLAY_NUM"
2. Even in the original English language files, the "JGLOBAL_DISPLAY_NUM" is NOT beeing used as "JGLOBAL_DISPLAY_NUM"="Display #" and the pagination shows "Display Num".

So unfortunately your solution is not working. And I'm still facing the problem with "View as" in pagination as well.

Guy.

Please Log in or Create an account to join the conversation.

  • Posts: 12953
  • Thank you received: 1778
10 years 2 months ago #168938

Hello,
So can you change the code :

if(version_compare(JVERSION,'1.6','>=')){
			$display = JText::_('JGLOBAL_DISPLAY_NUM');
		}else{
			$display = JText::_('DISPLAY NUM');
		}
To :
	$display = JText::_('JGLOBAL_DISPLAY_NUM');
And use the "JGLOBAL_DISPLAY_NUM" translation word ?

Please Log in or Create an account to join the conversation.

  • Posts: 228
  • Thank you received: 8
10 years 2 months ago #169051

Sorry, it didn't work either.
I've tried to enable the language debugging in global configurations:
I get **words** when I've got a value with translation and ??word?? when there's no translation.

Display num got ?? -> ??Display Num??
View as got nothing around it so that supports my first thought that it might be hard coded without JText.

UPDATE!!!!

Found it, it was a template override!!! Found it after a long search.
Thank you for your help.

Last edit: 10 years 2 months ago by theguy.

Please Log in or Create an account to join the conversation.

  • Posts: 47
  • Thank you received: 0
9 years 7 months ago #196777

Hi
I have the same problem, where and how did you find the solution?

Please Log in or Create an account to join the conversation.

  • Posts: 228
  • Thank you received: 8
9 years 7 months ago #196778

Use FTP access and check under templates/yourtemplate/html/com_hikashop/ from here I'm not sure what file was it :(
If you use Notepad++ you have an option to search the code itself.
Under Search -> Find in Files -> just enter the text you'r looking to replace just as it's presented in the site and it will find the files for you.
If you can't find it just post the site URL here and I'll try to help you with the search.

Please Log in or Create an account to join the conversation.

  • Posts: 47
  • Thank you received: 0
9 years 7 months ago #197064

I found it :)
Thank you

Please Log in or Create an account to join the conversation.

Time to create page: 0.126 seconds
Powered by Kunena Forum