Contributions
countries_names
display country names in selected language
_ Prerequisites ?!
This has been written for osCommerce 2.2 MS2. It will
though probably NOT WORK with previous versions.
DO NOT INSTALL THIS ON ANY MINOR VERSION WITHOUT
YOURSELF HAVING AT LEAST VERY GOOD KNOWLEDGE OF PHP!
Do also not use this contribution if you don't want the
admin area to be modified as this will make regular
updates not easier or just impossible.
I What does it do?
The modifications with this contribution enable you
as the admin of your shop as well as the visitors to
your website to display the country_name in the
language the admin area or the shop are viewed in
So 'Germany' becomes 'Deutschland' if viewed in german.
II Does one really need this?
If you run your shop in only one language you probably
don't. Actually I don't know, I just did it because some
guy in germany asked for a german country list.
So he could get one now.
The advantage might be that users can more easy read
countries names if displayed in their language.
One might see it as overload and another one might see
it as a step further in localisation of frontends.
III Is there anything else interesting in the archive?
No, nothing else, no gimmicks. :-)
IV Known bugs
I would call it a bug but I don't know if it really is.
If you have for example hebrew installed as a language
you will have no chance to change the countries name for
hebrew as there is no entry for hebrew in the table yet.
But a "short" description is enclosed in the archive how
to make it work.
V unknown bugs
well the name says it :-)
If you find one please email me. I will reply to email
requests regarding this 'contribution' unless I will
otherwise state it here.
VI Thanks
If you want to say "thank you" you might do that by
donating to one of the core developers. I will be happy
if one emails me to say something about the 'contribution'
but it's easier for all of us if you just send a buck to
the core developers. :-)
enjoy! happy selling!
Ralf
Expand All / Collapse All
forget this contribution, its old and doesnt even work with the new 2 oscommerce. instead I would suggest:
http://addons.oscommerce.com/info/2485
by the way, the file to download is just a regular zip so I could write a message here. IT DOESNT CONTAIN ANY UPDATES WHATSOEVER so dont download it!
1. A translation of countries names into French which has been added into osc_countries_names.sql.
2. Fix a small bug in geo_zones.php when showing a list of countries and zones for a tax zone: countries names are still in mono-language.
v 1.03 08/23/2004
- corrected some errors in the sql file (somehow US, UK
and Mali where not translated or mixed up)
has been fixed, however
- added a small modification to admin/zones.php to also
show the countries names in the display language if one edits
the locations within other countr
v 1.02 08/23/2004
- included spanish translation for the countries_name(s)
(thanks to Pablo Ferrer,who kindly provided the spanish
countries names)
v 1.01 10/06/2003
- fixed a bug causing a PHP warning about missing arguments due to a standard function call to the hereby modified function tep_get_country_name in admin/includes/general.php
(thanks to Cord Focke to pointing this out)
- added a file for version history
display country names in selected language
_ Prerequisites ?!
This has been written for osCommerce 2.2 MS2. It will
though probably NOT WORK with previous versions.
DO NOT INSTALL THIS ON ANY MINOR VERSION WITHOUT
YOURSELF HAVING AT LEAST VERY GOOD KNOWLEDGE OF PHP!
Do also not use this contribution if you don't want the
admin area to be modified as this will make regular
updates not easier or just impossible.
I What does it do?
The modifications with this contribution enable you
as the admin of your shop as well as the visitors to
your website to display the country_name in the
language the admin area or the shop are viewed in
So 'Germany' becomes 'Deutschland' if viewed in german.
II Does one really need this?
If you run your shop in only one language you probably
don't. Actually I don't know, I just did it because some
guy in germany asked for a german country list.
So he could get one now.
The advantage might be that users can more easy read
countries names if displayed in their language.
One might see it as overload and another one might see
it as a step further in localisation of frontends.
III Is there anything else interesting in the archive?
No, nothing else, no gimmicks. :-)
IV Known bugs
I would call it a bug but I don't know if it really is.
If you have for example hebrew installed as a language
you will have no chance to change the countries name for
hebrew as there is no entry for hebrew in the table yet.
But a "short" description is enclosed in the archive how
to make it work.
V unknown bugs
well the name says it :-)
If you find one please email me. I will reply to email
requests regarding this 'contribution' unless I will
otherwise state it here.
VI Thanks
If you want to say "thank you" you might do that by
donating to one of the core developers. I will be happy
if one emails me to say something about the 'contribution'
but it's easier for all of us if you just send a buck to
the core developers. :-)
enjoy! happy selling!
Ralf
Note: Contributions are used at own risk.