[jitsi-dev] Quotes


#1

Just re-read this before I ask a friend if he can work some script magic:

you cannot use single quotes when a parameter is used in the sentence. For example, <You can't move contact {0}>, <Contact {0} doesn't >, or <Accept '{0}'> does not display correctly. In such cases, you need to use type quotes twice (''): <You can''t move contact {0}>, <Contact {0} doesn''t exist>, or <Accept ''{0}''>

I was initially under the impression that I have to use two '' if there is more than one instance of an apostrophe in the string. Are both correct or only the above?

Or, making it even simple, if I use two '' *everywhere*, will that work or will that break things?

Our locale uses ' a lot, this is a real pain in translation, especially without warning in Pootle.

Michael


#2

Just re-read this before I ask a friend if he can work some script magic:

you cannot use single quotes when a parameter is used in the sentence.
For example, <You can't move contact {0}>, <Contact {0} doesn't
>, or <Accept '{0}'> does not display correctly. In such cases,
you need to use type quotes twice (''): <You can''t move contact {0}>,
<Contact {0} doesn''t exist>, or <Accept ''{0}''>

I was initially under the impression that I have to use two '' if there
is more than one instance of an apostrophe in the string. Are both
correct or only the above?

Or, making it even simple, if I use two '' *everywhere*, will that work
or will that break things?

It will work.

Good:
- J'ai deux nouveaux courriels.
- J''ai deux nouveaux courriels.
- J''ai {0} nouveaux courriels.

Bad:
- J'ai {0} nouveaux courriels.

The double quote effect only comes up when there's a placeholder in the
string.

Our locale uses ' a lot, this is a real pain in translation, especially
without warning in Pootle.

This is a Java limitation, which we could most probably overcome if we could
use Pootle's .properties format for the translation project. Unfortunately
.properties only came in a "later" version and you cannot change the format
of project.

I already spent weeks (!) upgrading from Pootle 1.something to 2.5RC, and
right now dealing with the ' stuff is unfortunately just the way to go.

Michael

Ingo