0 Members and 1 Guest are viewing this topic.

Changing the language for the Countries and States dropdowns
« on: February 08, 2018, 10:11:24 PM »
Hello - When a language is changed from English to another (e.g.French), I noticed that the Country dropdown values and member's country in the profile are still in English. Is there a way that this can also be changed? Thanks.
PHPStorm, MAMP Pro, Sequel Pro
Currently converting my 2.1.6 site to osDateEvo 1.2

*

Pharg

  • *****
  • 3,069
    • OsDateFourm
  • osDate Version: osDateEvo v1.3
Re: Changing the language for the Countries and States dropdowns
« Reply #1 on: February 08, 2018, 10:57:36 PM »
Hi arievaul,

Can you do a screenshot, so I know which dropdown you mean please?
Regards,
Pharg ( Phill )

REMEMBER: ALWAYS BACKUP BEFORE YOU MAKE ANY CHANGES!!

osDateEvo v1.3 | PHP: 5.3.42 & PHP: 7.1.15 | MySQL: 5.5.35

*

Benoitc64

  • **
  • 72
  • osDate Version: osDate Evo v1.2
Re: Changing the language for the Countries and States dropdowns
« Reply #2 on: February 08, 2018, 11:36:38 PM »
I think he want to have the countries in the list , in the language the user choose.

For example,
If the language is set to English.
   the country will be  United States
in French  ,  Etats-unis
osDateEvo v1.2 | PHP 5.6.30-0+deb8u1 | MySQL: 5.5.51 |

Re: Changing the language for the Countries and States dropdowns
« Reply #3 on: February 08, 2018, 11:38:17 PM »
Hi Phill,

I have attached 2 screen shots (using the OSDMix theme). Here it is in French but the country names are in English. I was wondering if there was a feature / a method to change them to French as well when the language is changed.

Thanks.
PHPStorm, MAMP Pro, Sequel Pro
Currently converting my 2.1.6 site to osDateEvo 1.2

Re: Changing the language for the Countries and States dropdowns
« Reply #4 on: February 08, 2018, 11:40:29 PM »
Yes, Benoitc64 re-stated it much better! Thank you.

I think he want to have the countries in the list , in the language the user choose.

For example,
If the language is set to English.
   the country will be  United States
in French  ,  Etats-unis
PHPStorm, MAMP Pro, Sequel Pro
Currently converting my 2.1.6 site to osDateEvo 1.2

*

Pharg

  • *****
  • 3,069
    • OsDateFourm
  • osDate Version: osDateEvo v1.3
Re: Changing the language for the Countries and States dropdowns
« Reply #5 on: February 08, 2018, 11:59:23 PM »
Hi arievaul,

It is because all the CSV files are written in English only and they aren't in the language files at all.

To change this, you would need to add French written CSV files.

Yes, Benoitc64 re-stated it much better! Thank you.

I think he want to have the countries in the list , in the language the user choose.

For example,
If the language is set to English.
   the country will be  United States
in French  ,  Etats-unis
« Last Edit: February 09, 2018, 12:10:50 AM by Pharg »
Regards,
Pharg ( Phill )

REMEMBER: ALWAYS BACKUP BEFORE YOU MAKE ANY CHANGES!!

osDateEvo v1.3 | PHP: 5.3.42 & PHP: 7.1.15 | MySQL: 5.5.35

Re: Changing the language for the Countries and States dropdowns
« Reply #6 on: February 09, 2018, 12:34:17 AM »
Hi Phill,

I can find the CSV files for State, Counties, City and Zip but it doesn't seem like CSV files exist for Countries even in English unless I missed it.  Thanks.
PHPStorm, MAMP Pro, Sequel Pro
Currently converting my 2.1.6 site to osDateEvo 1.2

*

Pharg

  • *****
  • 3,069
    • OsDateFourm
  • osDate Version: osDateEvo v1.3
Re: Changing the language for the Countries and States dropdowns
« Reply #7 on: February 09, 2018, 12:46:51 AM »
Hi arievaul,

Countries only seem to be in the database and in the installer sql.

You can add more in different languages manually in the admin, I would say, I have never tried adding another language to them sorry.

Can only try maybe one country to test at first, then maybe add them all later.
Regards,
Pharg ( Phill )

REMEMBER: ALWAYS BACKUP BEFORE YOU MAKE ANY CHANGES!!

osDateEvo v1.3 | PHP: 5.3.42 & PHP: 7.1.15 | MySQL: 5.5.35

*

Pharg

  • *****
  • 3,069
    • OsDateFourm
  • osDate Version: osDateEvo v1.3
Re: Changing the language for the Countries and States dropdowns
« Reply #8 on: February 09, 2018, 12:54:08 AM »
Hi arievaul,

Here are the countries, you will need to change the numbering or they will confilict.

Change the English names for French.
Regards,
Pharg ( Phill )

REMEMBER: ALWAYS BACKUP BEFORE YOU MAKE ANY CHANGES!!

osDateEvo v1.3 | PHP: 5.3.42 & PHP: 7.1.15 | MySQL: 5.5.35

*

Pharg

  • *****
  • 3,069
    • OsDateFourm
  • osDate Version: osDateEvo v1.3
Re: Changing the language for the Countries and States dropdowns
« Reply #9 on: February 09, 2018, 01:12:59 AM »
Hi arievaul,

I tried adding US United States in French as √Čtats Unis however the US conflicts and says already it use.

There might be another way, but have to look it up, more than likely have to add them all to
the languages as a array.

This also tells me that maybe the cities, states and counties will have to be done the same way maybe.
« Last Edit: February 09, 2018, 01:15:40 AM by Pharg »
Regards,
Pharg ( Phill )

REMEMBER: ALWAYS BACKUP BEFORE YOU MAKE ANY CHANGES!!

osDateEvo v1.3 | PHP: 5.3.42 & PHP: 7.1.15 | MySQL: 5.5.35

Re: Changing the language for the Countries and States dropdowns
« Reply #10 on: February 09, 2018, 04:45:04 PM »
Hi Phill, Thank you for having looked into this. It seems quite complex. It doesn't seem like it is currently setup to do the language switch when a user selects 'Change Language' on these fields (country, state, city)
PHPStorm, MAMP Pro, Sequel Pro
Currently converting my 2.1.6 site to osDateEvo 1.2

*

Pharg

  • *****
  • 3,069
    • OsDateFourm
  • osDate Version: osDateEvo v1.3
Re: Changing the language for the Countries and States dropdowns
« Reply #11 on: February 09, 2018, 07:59:11 PM »
Hi arievaul,

Yes that's what I thought might happen after testing, they seem to conflict with the other codes.

I will ask CBG if he knows a way to do this.
Regards,
Pharg ( Phill )

REMEMBER: ALWAYS BACKUP BEFORE YOU MAKE ANY CHANGES!!

osDateEvo v1.3 | PHP: 5.3.42 & PHP: 7.1.15 | MySQL: 5.5.35

*

costarnal

  • *
  • 28
  • osDate Version: osDateEvo v1.2
Re: Changing the language for the Countries and States dropdowns
« Reply #12 on: February 22, 2018, 01:37:43 AM »
Hi. How i could to have the portuguese language optin on the Site?

Thanks.

*

Pharg

  • *****
  • 3,069
    • OsDateFourm
  • osDate Version: osDateEvo v1.3
Re: Changing the language for the Countries and States dropdowns
« Reply #13 on: February 22, 2018, 02:04:33 AM »
Hi costarnal,

The Country, County, City, States dropdowns cannot be changed to any other language sorry, we already tested doing this.
Regards,
Pharg ( Phill )

REMEMBER: ALWAYS BACKUP BEFORE YOU MAKE ANY CHANGES!!

osDateEvo v1.3 | PHP: 5.3.42 & PHP: 7.1.15 | MySQL: 5.5.35

*

Benoitc64

  • **
  • 72
  • osDate Version: osDate Evo v1.2
Re: Changing the language for the Countries and States dropdowns
« Reply #14 on: February 22, 2018, 02:24:25 AM »
Hi  the  Portuguese language is already in the program.

To set it  just go to the admin

In the menu you will see Manage Language

Choose language you want in the list and "Load Language"

If you load more than 1 language you will the language option.

Hi. How i could to have the portuguese language optin on the Site?

Thanks.
osDateEvo v1.2 | PHP 5.6.30-0+deb8u1 | MySQL: 5.5.51 |