bugMapOSMatic - Bugs: bug #36647, Add Portuguese (pt-PT) translation...


bug #36647: Add Portuguese (pt-PT) translation and localization for portuguese speaking countries

Submitted by:  RPome <rpome>
Submitted on:  Wed 13 Jun 2012 02:23:00 PM UTC  
Category:  i18n Severity:  3 - Normal
Priority:  5 - Normal Status:  None
Privacy:  Public Assigned to:  Maxime Petazzoni <mpetazzoni>
Open/Closed:  Open Release:  None

Add a New Comment(Rich Markup)

You are not logged in

Please log in, so followups can be emailed to you.


Tue 09 Jun 2015 07:37:17 PM UTC, comment #4:

Something gone wrong. Here it is the second file:


Rui <zenter>
Tue 09 Jun 2015 07:33:53 PM UTC, comment #3:

All strings in Transifex are now translated. Now it's only missing changes in language specific code in ocitysmap and maposmatic. Can someone change the following 2 files in Git? Thanks.



Rui <zenter>
Thu 10 Jan 2013 08:11:33 PM UTC, comment #2:

Translation now happens on Transifex https://www.transifex.com/projects/p/maposmatic

I've cloned the pt-BR translation and updated it with your translation files, but you'd want to go through it since I think there might have been some changes since you translated.

Guttorm Flatabø <dittaeva>
Wed 13 Jun 2012 10:25:24 PM UTC, comment #1:

I forgot to tell about sorting order (I think it has something to do with those python files). At this moment if I render a map in MapOSMatic with Brazilian portuguese language selected I get the following index sort:

  • D. Francisco Manuel de Melo (Rua)
  • Diario de Noticias (Rua do)
  • D. João de Castro (Rua)

but it should be:

  • D. Francisco Manuel de Melo (Rua)
  • D. João de Castro (Rua)
  • Diario de Noticias (Rua do)

although the following sort order is correct (extracted from an actual MapOSMatic map index):
Dr. Alfredo Bensaúde (Avenida)
Dr Alfredo da Costa (Rua)
Dr. António Granjo (R.)

this one in the middle (Dr Alfredo da Costa) has a typing error since period (.) is missing and should be fixed in OpenStreetMap, but this happens a lot so would be better to keep this sorting order in this last example.

If this is a lot of work, just ignore. All those abbreviations should be cleaned in OpenStreetMap (Dr. > Doutor; D. > Dom; etc.)

RPome <rpome>
Wed 13 Jun 2012 02:23:00 PM UTC, original submission:

Here it is the portuguese translation and localization for portuguese speaking countries.

I don't know if Macao should be included in MAP_LANGUAGES since Portuguese and Chinese are both official languages unless we use "Macau (PT)" and "澳門 (广州话 / 廣州話)" or something like that (I don't know cantonese, those symbols were extracted from en.wikipedia). Since Macao is not a country, but a special administrative region of China, and only a few people understand portuguese in Macao, maybe shouldn't be included. Although we can see in OpenStreetMap Macao has portuguese names in some streets. Equatorial Guinea is another story, I don't know if they have portuguese street names and if portuguese is now really a official language.

Note that all countries listed here should use portuguese interface (pt / pt-PT / standard portuguese / international portuguese) except Brazil (pt-BR)

I don't have experience in Python and this is only the second time I translate .po files. I only have experience translating some software (wikipedia and openstreetmap related software/interfaces) via web based translation tools/resources. So please check if the code is correct.

In http://git.savannah.gnu.org/cgit/maposmatic.git/tree/www/settings.py#n111 add the following code:


I didn't changed words in APPELLATIONS (Brazilian portuguese) although I don't agree on some words like the first one "Aeroporto" (Airport), it shouldn't be included. I could suggest another class for portuguese, but brazilian portuguese is portuguese with only a few differences (ISO code is the same: "pt") so I followed the example "class i18n_ca_generic(i18n)" in http://git.savannah.gnu.org/cgit/maposmatic/ocitysmap.git/tree/ocitysmap/i18n.py and annexed portuguese to brazilian portuguese

In http://git.savannah.gnu.org/cgit/maposmatic/ocitysmap.git/tree/ocitysmap/i18n.py add the following code ("Brazilian portuguese" is already in that page)

See also the attached files with translations. Note that I used brazilian portuguese translation (since only a few things should be modified) although I checked the English version. I found a few errors (and a few sentences not translated) in Brazilian portuguese translation so I made modifications to that file too.

P.S. it would be great to use launchpad.net or translatewiki.net (even better) to create / update translations. Anyway thanks for this great tool.

RPome <rpome>


(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:

Attached Files
file #26014:  ocitysmap(portuguese_pt).po added by rpome (4KiB - application/octet-stream)
file #26015:  django(portuguese_pt).po added by rpome (44KiB - application/octet-stream)
file #26016:  django(brasilian_portuguese_pt-BR).po added by rpome (44KiB - application/octet-stream)


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -email is unavailable- added by zenter (Posted a comment)
  • -email is unavailable- added by dittaeva (Posted a comment)
  • -email is unavailable- added by dmentre (Updated the item)
  • -email is unavailable- added by rpome (Submitted the item)

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.




    Follow 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2012-09-05 dmentre Assigned toNone => mpetazzoni
    2012-06-13 rpome Attached File- => Added ocitysmap(portuguese_pt).po, #26014
        Attached File- => Added django(portuguese_pt).po, #26015
        Attached File- => Added django(brasilian_portuguese_pt-BR).po, #26016

    Back to the top

    Powered by Savane 3.4