Bugzilla:L10n:Guide: Difference between revisions

Jump to navigation Jump to search
m
→‎Caveats: Quotes : first part. this should be reviewed, not sure about this
m (→‎Caveats: Writing the [% %] section)
m (→‎Caveats: Quotes : first part. this should be reviewed, not sure about this)
Line 303: Line 303:
</pre>
</pre>


<strong>Apostrophes and quotes</strong><br>
<strong>Double quotes and single quotes</strong><br>
You should take care of the usage of the quotes in certain cases.<br>
You shouldn't put quotes inside a pair of quotes. The following example will broke the user interface:
<pre>
  [% ELSIF message_tag == "buglist_adding_field" %]
    [% title = "Adding field to search page..." %]
    [% link  = "Click here if the page "does not" redisplay automatically." %]
</pre>
Instead, you can escape them with a backslash ("\"):
<pre>
  [% ELSIF message_tag == "buglist_adding_field" %]
    [% title = "Adding field to search page..." %]
    [% link  = "Click here if the page \"does not\" redisplay automatically." %]
</pre>
Or you can substitute the surrounding double quotes with single quotes:
<pre>
  [% ELSIF message_tag == "buglist_adding_field" %]
    [% title = "Adding field to search page..." %]
    [% link  = 'Click here if the page "does not" redisplay automatically.' %]
</pre>


${terms.bugs} , <nowiki>[% terms.bugs %]</nowiki> and $terms.bugs<br>
 
<strong>${terms.bugs} , <nowiki>[% terms.bugs %]</nowiki> and $terms.bugs</strong>


<strong>Declensions</strong><br>
<strong>Declensions</strong><br>
62

edits

Navigation menu