← Back to team overview

openstreetmap team mailing list archive

[Bug 495207] Re: Can't put brackets in a translation (Launchpad refuses the translation)

 

Launchpad translations and Poedit are using „msgfmt -c” for testing
translations for errors.

The message is marked as java-format , and I don't know if using two
quotes instead of double quotes is a valid java expression and msgfmt
gets confused.

I think this bug can be solve in JOSM by using proper quotes and also in
msgfmt by improving java-format parsing.

I have submitted the translations with "le objet" , feel free to delete
it.

Cheers,

** Summary changed:

- Can't put brackets in a translation (Launchpad refuses the translation)
+ Using two quotes instead of double quotes prevent translation of messages

** Also affects: josm
   Importance: Undecided
       Status: New

** Bug watch added: JOSM bug tracker #4160
   http://josm.openstreetmap.de/ticket/4160

** Changed in: josm
   Importance: Undecided => Unknown

** Changed in: josm
       Status: New => Unknown

** Changed in: josm
 Remote watch: None => JOSM bug tracker #4160

-- 
Using two quotes instead of double quotes prevent translation of messages
https://bugs.launchpad.net/bugs/495207
You received this bug notification because you are a member of
OpenStreetMap, which is the registrant for JOSM.

Status in Java OpenStreetMap editor: Unknown
Status in Launchpad Translations: New

Bug description:
Hello,

Launchpad refuses to accept translations containing brackets - { and }. This is somewhat problematic as it prevents some translations to be done - in JOSM, for instance: https://translations.launchpad.net/josm/trunk/+pots/josm/fr/+translate?batch=10&show=all&search=Warning%3A+object+%27%27{0}%27%27+is+already+deleted+on+the+server.+Skipping+this+object+and+retrying+to+upload.

Launchpad will refuse any translation containing brackets with the following error message:
Unexpected form data

Launchpad doesn't understand the form data submitted in this request.

This bug was reported by François Blondet in the lp-l10n-fr mailing list. Feel free to ask if any additional input is necessary.