Localization of Countries

Open to all! Ask other shopowners for help.
User avatar
burt
Core Team
Posts: 4550
Joined: Tue Oct 29, 2019 9:37 am
Phoenix Version: v1.1.0.8
Has thanked: 252 times
Been thanked: 412 times

Localization of Countries

Post by burt »

Someone PM'd me to ask
why the country list is in english only
It's a fair question.

He runs a german shop in german only and wants the german names of the countries, not english.

If there is interest from other shopowners who can help to cover time/cost, I can look at maybe doing something.
I am not here to build for you.
I am here to build with you. Let's help each other.


Join The Code Co-op to get access to your library in the Code Co-op Forum
raiwa
Certified Developer
Posts: 1640
Joined: Sat Dec 21, 2019 8:08 am
Phoenix Version: 1.1.0.6
Has thanked: 70 times
Been thanked: 152 times

Re: Localization of Countries

Post by raiwa »

Wouldn’t it be more logic to use the original names like used in each countries language:
United Kingdom
Deutschland
España
France
Hrvatska
Sverige
Polska

https://www.worldatlas.com/geography/n ... uages.html
Public Phoenix Change Log Cheat Set on Google Sheets
https://docs.google.com/spreadsheets/d/ ... sp=sharing

Need Help?viewtopic.php?f=10&t=27
User avatar
burt
Core Team
Posts: 4550
Joined: Tue Oct 29, 2019 9:37 am
Phoenix Version: v1.1.0.8
Has thanked: 252 times
Been thanked: 412 times

Re: Localization of Countries

Post by burt »

That makes sense, and is loads less work.

Feedback needed from multi-lang shopowners.
And anyone else as well.
I am not here to build for you.
I am here to build with you. Let's help each other.
heatherbell
Senior Contributor
Posts: 2540
Joined: Mon Oct 07, 2019 4:39 am
Phoenix Version:
Has thanked: 35 times
Been thanked: 243 times

Re: Localization of Countries

Post by heatherbell »

raiwa wrote: Fri Apr 11, 2025 2:43 pm Wouldn’t it be more logic to use the original names like used in each countries language:
United Kingdom
Without doubt.
Eg, a monoglottal English person on a German site will look for United Kingdom not Vereinigtes Königreich.
User avatar
bonbec
Contributor
Posts: 190
Joined: Mon Oct 26, 2020 12:23 pm
Phoenix Version: V1.1.0.7
Has thanked: 54 times
Been thanked: 40 times

Re: Localization of Countries

Post by bonbec »

I think Raiwa's idea is excellent because it's universal and avoids touching PhoenixCart's native code (except for the countries table).
I vote for it!
Old MS2.2 PHP7.4 site being converted to CE Phoenix v1.1.0.6 PHP 8.3
rupruprup
Member
Posts: 44
Joined: Thu Nov 05, 2020 7:39 pm
Phoenix Version: v1.0.9.10
Has thanked: 6 times
Been thanked: 3 times

Re: Localization of Countries

Post by rupruprup »

raiwa wrote: Fri Apr 11, 2025 2:43 pm Wouldn’t it be more logic to use the original names like used in each countries language:
indeed, thats a brilliant idea
User avatar
burt
Core Team
Posts: 4550
Joined: Tue Oct 29, 2019 9:37 am
Phoenix Version: v1.1.0.8
Has thanked: 252 times
Been thanked: 412 times

Re: Localization of Countries

Post by burt »

I am not here to build for you.
I am here to build with you. Let's help each other.
User avatar
bonbec
Contributor
Posts: 190
Joined: Mon Oct 26, 2020 12:23 pm
Phoenix Version: V1.1.0.7
Has thanked: 54 times
Been thanked: 40 times

Re: Localization of Countries

Post by bonbec »

Thanks Gary :+1:

Here is my contribution for some French peculiarities:

Code: Select all

- INSERT INTO countries VALUES (75,'French Guiana','GF','GUF','1','1');
- INSERT INTO countries VALUES (76,'French Polynesia','PF','PYF','1','1');
- INSERT INTO countries VALUES (77,'French Southern Territories','TF','ATF','1','1');
+ INSERT INTO countries VALUES (75,'Guyanne française','GF','GUF','1','1');
+ INSERT INTO countries VALUES (76,'Polynésie française','PF','PYF','1','1');
+ INSERT INTO countries VALUES (77,'Terres australes et antarctiques françaises','TF','ATF','1','1');

- INSERT INTO countries VALUES (152,'New Caledonia','NC','NCL','1','1');
+ INSERT INTO countries VALUES (152,'Nouvelle-Calédonie','NC','NCL','1','1');

- INSERT INTO countries VALUES (174,'Reunion','RE','REU','1','1');
+ INSERT INTO countries VALUES (174,'La Réunion','RE','REU','1','1');

- INSERT INTO countries VALUES (198,'St. Pierre and Miquelon','PM','SPM','1','1');
+ INSERT INTO countries VALUES (198,'St. Pierre et Miquelon','PM','SPM','1','1');

- INSERT INTO countries VALUES (233,'Wallis and Futuna Islands','WF','WLF','1','1');
+ INSERT INTO countries VALUES (233,'Wallis et Futuna','WF','WLF','1','1');

- INSERT INTO countries VALUES (246, 'Saint Martin (French part)', 'MF', 'MAF', '1','1');
+ INSERT INTO countries VALUES (246, 'Saint Martin (partie française)', 'MF', 'MAF', '1','1');
Old MS2.2 PHP7.4 site being converted to CE Phoenix v1.1.0.6 PHP 8.3
raiwa
Certified Developer
Posts: 1640
Joined: Sat Dec 21, 2019 8:08 am
Phoenix Version: 1.1.0.6
Has thanked: 70 times
Been thanked: 152 times

Re: Localization of Countries

Post by raiwa »

Maybe some countries with more than one official languages could be listed with all versions separated by comma:
België, Belgique, Belgien
Luxembourg, Luxemburg, Lëtezebuerg
Suisse, Schweiz, Svizzera, Svizra->It’s still in English in the list

Or at least the represented in mayority:
België, Belgique
Luxembourg, Luxemburg
Suisse, Schweiz
Public Phoenix Change Log Cheat Set on Google Sheets
https://docs.google.com/spreadsheets/d/ ... sp=sharing

Need Help?viewtopic.php?f=10&t=27
User avatar
burt
Core Team
Posts: 4550
Joined: Tue Oct 29, 2019 9:37 am
Phoenix Version: v1.1.0.8
Has thanked: 252 times
Been thanked: 412 times

Re: Localization of Countries

Post by burt »

I did think about this.
My instinct is to just let the shopowner change it to what they think is best.

EG if they are french, they can change to belgique or whatever.
I am not here to build for you.
I am here to build with you. Let's help each other.


Join The Code Co-op to get access to your library in the Code Co-op Forum
Post Reply