This issue is part of meta issue #1931088: [META] Fixing tests

Improved location.pt.inc.

Tested and working fine in drupal 6.9.

  1.  "Map links" support added to Portugal (did not exist before);
  2.  Whenever longitude and latitude are present use them directly ( "if (location_has_coordinates($location)) {" - taken from location.us.inc);
  3. Updated the orthography for the "provinces" name (basically adding special "characters" such as "é", "ç" etc... not sure if this part is a good idea; you should know better).
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

hvalentim’s picture

FileSize
808 bytes

Concerning point 3, actually special characters work but you have to encode the file in UTF8 (something I was only able to test after manually cleaning the database provinces cache in Table: cache_location).

hvalentim’s picture

FileSize
823 bytes

Seems you can not remove/update an attached file from a comment :)
Here it is "again" properly saved as UTF8 this time.

rbl’s picture

Hi HValentim!
Can't we ditch these 2 letter abbreviations for our districts? We don't use them so no one knows what they stand for. Google maps doesn't even recognize them if you include them in a search.
It would be much better to use the full district name, in the worst case scenario, transliterated to safe characters ex.: Évora > Evora; Brangança > Braganca, etc...

Ricardo

PS. thanks for the PT fix =)

YesCT’s picture

Status: Postponed (maintainer needs more info) » Needs work

adding location.xx.inc string ... so people who are googling for related issues can find this one too.

I think if you want to get this committed, decide on a direction with the full district name, and re-roll it against the most recent version of dev.

hvalentim’s picture

FileSize
817 bytes

I agree there is no point in using the abridged two letters code for the districts since no one uses/knows about them. In the attached version the names appear in full (so called Portuguese "special characters" included, since they work fine and, after all, are part of the "proper spelling").

I have tested it with Drupal 6.10 and Location 6.x-3.x-dev 2009-Apr-18 and found no problems. Hope this can be committed.

YesCT’s picture

Status: Needs work » Needs review
ankur’s picture

Version: 6.x-3.x-dev » 7.x-3.x-dev
Status: Needs review » Reviewed & tested by the community

Bump. Placing under 7.x-3.x, but can commit to 6.x-3.x if it's pretty straight-forward.

podarok’s picture

Status: Reviewed & tested by the community » Postponed

postponed before tests fix
#1931088: [META] Fixing tests

podarok’s picture

Status: Postponed » Needs review

#1931088-3: [META] Fixing tests mostly fixed for 7.x-3.x branch
this one needs review

podarok’s picture

Status: Needs review » Needs work

please, do provide a patch against latest dev for makind this commited

Jerenus’s picture

Status: Needs work » Needs review
FileSize
3.15 KB

Reroll.

podarok’s picture

Status: Needs review » Fixed

#11 commited pushed to 7.x-3.x
thanks!!!

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

Anonymous’s picture

Issue summary: View changes

Updated issue summary.