Home Community Mys-Script Creative Off-Topic |
|
|
Thread Tools | Display Modes |
#1
|
||||
|
||||
Is language switch on Mysidia script possible?
Because i want to make my sites switchable to portuguese/english but it still has the same server.
Also...because portuguese is my native language and what if a friend of mine wants to access the site and they doesn't understand english after all? Or some random brazilian that also doesn't understand english wants to go on my site? And because why not?
__________________
https://www.viagrasansordonnancefr.c...-en-pharmacie/ |
#2
|
||||
|
||||
I haven't tried it, but here's my guess:
1. Create a new column in users_options where the preferred language is stored. You could also set the default value to 'english' or 'portuguese'. (Preferably use acronyms like 'en' or 'pr' to avoid any spelling errors that may come up later on while coding) 2. Go into the lang files and copy-paste all the lines, then change them to portuguese. (So keep all the english lines and underneath it have the portuguese lines!) Like this: PHP Code:
PHP Code:
EDIT: Removed the first option since the second was much cleaner.
__________________
Last edited by Dinocanid; 07-29-2017 at 07:54 PM. |
#3
|
||||
|
||||
I'll try it soon! Thank you.
__________________
https://www.viagrasansordonnancefr.c...-en-pharmacie/ |
|
|
What's New? |
What's Hot? |
What's Popular? |