Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tool bar Icons & Buttons are Not Lording perfectly most of the time. #2739

Closed
pushpikasj opened this issue Mar 5, 2015 · 8 comments
Closed

Comments

@pushpikasj
Copy link

Tool bar Icons & Buttons are Not Lording perfectly most of the time.

icons

@mathsolutions
Copy link

I've encountered the same problem, but noticed that the difference is if I write the url of the site with or without www. I explain better, if in config, I've put www.mysite.com and connect to mysite.com, icons doesn't load properly and viceversa. A permanent redirect to the right url solves the problem for me.

@pushpikasj
Copy link
Author

Thank you very much @mathsolutions
can you please tell me which one is better "www" vs "non www" for opencart

@munirasim
Copy link

@pushpikasj
Use "mysite.com" without "www"
"www.mysite.com" is sub-domain of "mysite.com"
To improve your SEO, redirect "www.mysite.com" permanently to "mysite.com"
Keep in mind, People love to type short.
Further read: https://www.mattcutts.com/blog/seo-advice-url-canonicalization/

@pushpikasj
Copy link
Author

Thank you very much @munirasim

@pushpikasj
Copy link
Author

@mathsolutions and @munirasim
redirect "www.mysite.com" permanently to "mysite.com" solves the problem. But please check on Google Translate. https://translate.google.com
again same problem.

error

@munirasim
Copy link

It is due to AJAX which is JavaScript that does not allow loading resources from cross domains.

Let me simplify it for you. When you access your website example.com through https://translate.google.com, your domain example.com becomes the other domain and the javascript called Ajax (used in Opencart) won't allow you to load certain files from example.com and your site crashes.

The question is why you or your site visitors will use Google translator?

The right solution is to add "English" or any other desired language to Opencart and fill contents for it so that a user can select the right language from there.

@pushpikasj
Copy link
Author

bcz there is no our language pack.

@munirasim
Copy link

You can build language pack yourself with a little effort. Just follow these steps:

  1. Go to 'catalog->language->english' folder.
  2. Copy 'english' folder and rename it to your language name e.g. 'finnish' or 'swedish'
    3.) Now in 'finnish' or 'swedish' folder and subfolders edit each and every file and translate and edit value of each variable to the corresponding text in Finnish or Swedish
  3. Do the same process to the 'admin->language->english' folder in admin folder
  4. Enable the langauge in Opencart and you're done

Note: Be careful not to put illegal values for date, time variables etc.
Give it a try and you will start gripping it.
Best of luck!

A sample edit for you:
File: catalog/language/finnish/default.php

// Text
$['text_yes'] = 'Kyllä';
$
['text_no'] = 'Ei';

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants