Language changes when I change page in magento - magento

I have one problem in my site. I have two languages installed, Portuguese and English(default). On my front end when i change from English to Portuguese it makes it all right but when I switch page (for example, try to see one category) it switches back again to English language.
I've tried to change cookie lifetime and some other things but didn't work.
What can I do in order to "save" the language selected and keep it on every pages that I try to access?

You need to have two different store views in your magento install one for english and one for Portuguese.

Related

Laravel: How can I have the same page in two different languages?

Each page I create must have an english and french version. I want to have two flags in my header and when I click on the US/UK flag I get the english version and my clicking the french flag, I get the french version (pretty much the same as the polylang plugin in WordPress).
I know about locales in Laravel. But what I need is, that each view has it's counterpart. For example I have views/welcome_en.blade.php and view/welcome_fr.blade.php - what I want is that when someone opens the corresponding route example.com/welcome, the corresponding counterpart url example.com/fr/welcome is passed with that view.
My question is: How can I build the same multilingual Laravel as Polylang offers in WordPress by just simple clicking a flag and changing the whole view with it's corresponding counterpart (getting the counterpart link back)?

How to change Back to top label in Joomla 3 template Protostar

Protostar is Joomla 3 default template. In the footer part, there is a link Back to Top which returns the user to the upper part of the html page.
The only document in which I have found this text so far is on location:
templates/protostar/language/en-GB
But, the change of the text didn't actually change it on website. So, I suppose there is another location for this.
Where can I go and change it?
When the template is installed, that file would get moved to language/en-GB/en-GB.tpl_protostar.ini, so that would be the file that actually needs to get updated.
That being said, a better method is to use the language override feature on the admin side. You'll see in that file that the language key is TPL_PROTOSTAR_BACKTOTOP (what is to the left of the equal sign).
On the admin side, go to Extensions -> Language Manager. Then on the left side of the page, click "Overrides". Hit the new button and add TPL_PROTOSTAR_BACKTOTOP as the constant and whatever new text you would like there in the "Text" box.
By using the override feature you protect your site from updates if the template's language file is updated in a later version.
If you want to use your site with other languages than English, create the respective template language pack in folder templates/protostar/language/
As an example: If you use German on your site, create a folder named de-DE, copy the english files en-GB.tpl_protostar.ini and en-GB.tpl_protostar.sys.ini into it and change their names to de-DE.tpl_protostar.ini and de-DE.tpl_protostar.sys.ini. Now you can change the respective line in de-DE.tpl_protostar.ini to TPL_PROTOSTAR_BACKTOTOP="nach oben"

Issue with magento udropship & languages / storeviews

So my problem regarding MAGENTO languages and view stores.
I have a website with one language Spanish. I got an extention installed for Vendors which can come and add products and so. My issue is, that I want my vendors portal to be in English and the vendor portal is take the language from the default store in my system which is Spanish.
I added another store ENGLISH one, but when I change my default store to the english on I get my main website in English.
Im strugeling with it, I dont know how do fix that issue. I was thinking maybe I can somehow change the language in the vendors portal specificly from code? Or maybe you got other solution.
my extention is Udropship for refrences.
You can try to set English as default language and Spanish as language for your default website/storeview. Go to System/Configuration. Look into the top left corner, thre is select where you can switch config scope. If you set this so then admin panel will be displayed in English whilst frontend will be still displayed in Spanish.

Troubleshooting a multilingual joomla 3.2 site after changing the language title

I made a complete bilingual joomla (3.2) site which was working perfectly fine until I tried changing the title of the English language from "English (UK)" to just "English". The reason I did this is because I only want to see "English" on the front end to switch to English.
Even after changing the language title back to "English (UK)", it did not work anymore.
Basically I have tow questions:
How do I get the English switch working again and
how do I get rid of the country tag i.e. DE and GB?
Problem solved: It looks like it was a bug in Joomla, the error has been reported.
There is two solutions I encountered, I only tried out the first one, so I don't know whether the second one works.
Go to the Content Language tab in the Language Manager
Open the language en-GB for Edit
Change the Access from Guest to Public
Save the changes
Invoke phpMyAdmin
On the left panel double click on the database that is being used for your site
On the left panel click on the table named xyz_languages (where xyz_ is the table prefix for your site) and on the right side you would notice rows from the table
On the right panel, click on the link Edit that is against the row with lang_id 1
In the resultant window on the right panel for the column Access change the value from 5 to 1
Save the row
Note: Make a back-up of your database content before making this change.
Apparently, this should be resolved in the next release of Joomla!. Suggest reviewing the tracker http://joomlacode.org/gf/project/joomla/tracker/?action=TrackerItemEdit&tracker_item_id=33034 and the Github pull request https://github.com/joomla/joomla-cms/pull/2714.
Removing the (DE) and (UK) parts of the language switcher module was easy, just change the title native in the content tab of the language manager. Just make sure that the access is set to public.

Language switcher in joomla 3 not showing flags

I'm trying to make the language switcher to work, I have already made all menus for each language I was gonna use, but when I enable this module, It just shows me the name of the module(when I put it to show), not the flags. What should i do?
I lost a full day of my life with this topic.
The issue was that language tag was badly setup in System -> Language Manager -> Content
For example for French I had fr when it should have been fr-FR
After that I had to rebuild/redo all the Language assignments for French on Pages, categories, menus, template.
The flag finally showed up...
It's an old question but, telling from the comments, a recurring problem. Seems like there can be multiple root causes. One thing to check is also that you have marked the default menu item for each language. If not, the corresponding language does not show in the language switcher.
Found that You need to set a default homepage that can be in hidden menu (and redirect from later) to Language "All"
But then also go to each menu and make the page 1 language and also Homepage.
So for me I have now 3 language homepages menu items. All, En, De
How did I discover this:
I needed to turn on a module in the Admin:
Language Status Administrator Module
This makes a small button bottom left in the Admin, and modal points out 3 different topic per language installed, told me I had not any homepages, and so would get no flags. (Thanks to Per on Joomla forum answer from 2016)
Happy fixing.
you need to set up the languages in the Language Manager? under extensions..
and make sure you published the "System - Language Filter" plugin.
Plugins -> System - Language Filter -> Automatic Language Change -> No
This will prevent automatic language changin which is often reason for this

Resources