[Geoserver-devel] IsoLanguage mapper problems

Hi,

In geocat I am allowing both the mappings deu → de and ger → de. So that the migration of the system can be gradual. This is a problem for the IsoLanguagesMapper because it requires that there are only 1-1 relationships between 2 lang code and 1 lang code.

Does it make sense for me to hack the iso639_2_to_iso639_1 class (in geocat.ch) so that deu is converted to ger or should I change the class so that there are 2 maps, one from short to long and one from long to short. In the case of short to long the first mapping in the database will be the mapping. So if the database has:

ger → de
deu → de

then the shortcode mapping will be de → ger

Thoughts?

Jesse

On Tue, Apr 24, 2012 at 12:14 PM, Jesse Eichar
<jesse.eichar@anonymised.com>wrote:

Hi,

In geocat I am allowing both the mappings deu -> de and ger -> de. So
that the migration of the system can be gradual. This is a problem for the
IsoLanguagesMapper because it requires that there are only 1-1
relationships between 2 lang code and 1 lang code.

Does it make sense for me to hack the iso639_2_to_iso639_1 class (in
geocat.ch) so that deu is converted to ger or should I change the class
so that there are 2 maps, one from short to long and one from long to
short. In the case of short to long the first mapping in the database will
be the mapping. So if the database has:

ger -> de
deu -> de

then the shortcode mapping will be de -> ger

Thoughts?

Maybe this mail was intended for geonetwork-devel?

Cheers
Andrea

--
-------------------------------------------------------
Ing. Andrea Aime
GeoSolutions S.A.S.
Tech lead

Via Poggio alle Viti 1187
55054 Massarosa (LU)
Italy

phone: +39 0584 962313
fax: +39 0584 962313
mob: +39 339 8844549

http://www.geo-solutions.it
http://geo-solutions.blogspot.com/
http://www.youtube.com/user/GeoSolutionsIT
http://www.linkedin.com/in/andreaaime
http://twitter.com/geowolf

-------------------------------------------------------

oops sorry geoserver guys

On Tue, Apr 24, 2012 at 12:23 PM, Andrea Aime
<andrea.aime@anonymised.com>wrote:

On Tue, Apr 24, 2012 at 12:14 PM, Jesse Eichar <
jesse.eichar@anonymised.com> wrote:

Hi,

In geocat I am allowing both the mappings deu -> de and ger -> de. So
that the migration of the system can be gradual. This is a problem for the
IsoLanguagesMapper because it requires that there are only 1-1
relationships between 2 lang code and 1 lang code.

Does it make sense for me to hack the iso639_2_to_iso639_1 class (in
geocat.ch) so that deu is converted to ger or should I change the class
so that there are 2 maps, one from short to long and one from long to
short. In the case of short to long the first mapping in the database will
be the mapping. So if the database has:

ger -> de
deu -> de

then the shortcode mapping will be de -> ger

Thoughts?

Maybe this mail was intended for geonetwork-devel?

Cheers
Andrea

--
-------------------------------------------------------
Ing. Andrea Aime
GeoSolutions S.A.S.
Tech lead

Via Poggio alle Viti 1187
55054 Massarosa (LU)
Italy

phone: +39 0584 962313
fax: +39 0584 962313
mob: +39 339 8844549

http://www.geo-solutions.it
http://geo-solutions.blogspot.com/
http://www.youtube.com/user/GeoSolutionsIT
http://www.linkedin.com/in/andreaaime
http://twitter.com/geowolf

-------------------------------------------------------