Page 1 of 2

Localization of Countries

Posted: Fri Apr 11, 2025 12:01 pm
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.

Re: Localization of Countries

Posted: Fri Apr 11, 2025 2:43 pm
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

Re: Localization of Countries

Posted: Fri Apr 11, 2025 2:58 pm
by burt
That makes sense, and is loads less work.

Feedback needed from multi-lang shopowners.
And anyone else as well.

Re: Localization of Countries

Posted: Fri Apr 11, 2025 3:39 pm
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.

Re: Localization of Countries

Posted: Fri Apr 11, 2025 4:17 pm
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!

Re: Localization of Countries

Posted: Fri Apr 11, 2025 4:33 pm
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

Re: Localization of Countries

Posted: Fri Apr 11, 2025 5:28 pm
by burt

Re: Localization of Countries

Posted: Fri Apr 11, 2025 6:18 pm
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');

Re: Localization of Countries

Posted: Sun Apr 13, 2025 3:05 pm
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

Re: Localization of Countries

Posted: Sun Apr 13, 2025 3:47 pm
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.