- Posts: 2
- Thank you received: 0
display num
Would you please point out the place where may I substitute "display num" ???
Best Regards image missing http://www.hikashop.com/media/kunena/attachments/legacy/images/display_num.jpg
Please Log in or Create an account to join the conversation.
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.
Man! Go to sleep
Please Log in or Create an account to join the conversation.
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.
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.
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
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 :
Please Log in or Create an account to join the conversation.
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.
Please Log in or Create an account to join the conversation.
- Posts: 12953
- Thank you received: 1778
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.
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.
Please Log in or Create an account to join the conversation.
- Posts: 12953
- Thank you received: 1778
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 :
Please Log in or Create an account to join the conversation.
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
So can you change the code :
Please Log in or Create an account to join the conversation.
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.
Please Log in or Create an account to join the conversation.
I have the same problem, where and how did you find the solution?
Please Log in or Create an account to join the conversation.
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.
Thank you
Please Log in or Create an account to join the conversation.