From 425e5bfb71527e932858ad41f9e234fc05d65c6b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ga=C3=ABtan=20Muller?= Date: Tue, 24 Jan 2012 22:17:32 +0100 Subject: [PATCH] Final translation tags in Base CSS --- docs/templates/pages/base-css.mustache | 325 +++++++++++++------------ 1 file changed, 163 insertions(+), 162 deletions(-) diff --git a/docs/templates/pages/base-css.mustache b/docs/templates/pages/base-css.mustache index 5a58b96638..b8c413888a 100644 --- a/docs/templates/pages/base-css.mustache +++ b/docs/templates/pages/base-css.mustache @@ -809,125 +809,125 @@ ================================================== -->
-

Flexible HTML and CSS

-

The best part about forms in Bootstrap is that all your inputs and controls look great no matter how you build them in your markup. No superfluous HTML is required, but we provide the patterns for those who require it.

-

More complicated layouts come with succinct and scalable classes for easy styling and event binding, so you're covered at every step.

+

{{_i}}Flexible HTML and CSS{{/i}}

+

{{_i}}The best part about forms in Bootstrap is that all your inputs and controls look great no matter how you build them in your markup. No superfluous HTML is required, but we provide the patterns for those who require it.{{/i}}

+

{{_i}}More complicated layouts come with succinct and scalable classes for easy styling and event binding, so you're covered at every step.{{/i}}

-

Four layouts included

-

Bootstrap comes with support for four types of form layouts:

+

{{_i}}Four layouts included{{/i}}

+

{{_i}}Bootstrap comes with support for four types of form layouts:{{/i}}

    -
  • Vertical (default)
  • -
  • Search
  • -
  • Inline
  • -
  • Horizontal
  • +
  • {{_i}}Vertical (default){{/i}}
  • +
  • {{_i}}Search{{/i}}
  • +
  • {{_i}}Inline{{/i}}
  • +
  • {{_i}}Horizontal{{/i}}
-

Different types of form layouts require some changes to markup, but the controls themselves remain and behave the same.

+

{{_i}}Different types of form layouts require some changes to markup, but the controls themselves remain and behave the same.{{/i}}

-

Control states and more

-

Bootstrap's forms include styles for all the base form controls like input, textarea, and select you'd expect. But it also comes with a number of custom components like appended and prepended inputs and support for lists of checkboxes.

-

States like error, warning, and success are included for each type of form control. Also included are styles for disabled controls.

+

{{_i}}Control states and more{{/i}}

+

{{_i}}Bootstrap's forms include styles for all the base form controls like input, textarea, and select you'd expect. But it also comes with a number of custom components like appended and prepended inputs and support for lists of checkboxes.{{/i}}

+

{{_i}}States like error, warning, and success are included for each type of form control. Also included are styles for disabled controls.{{/i}}

-

Four types of forms

-

Bootstrap provides simple markup and styles for four styles of common web forms.

+

{{_i}}Four types of forms{{/i}}

+

{{_i}}Bootstrap provides simple markup and styles for four styles of common web forms.{{/i}}

- - - + + + - - - + + + - + - + - + - + - + - +
NameClassDescription{{_i}}Name{{/i}}{{_i}}Class{{/i}}{{_i}}Description{{/i}}
Vertical (default).vertical-form (not required)Stacked, left-aligned labels over controls{{_i}}Vertical (default){{/i}}.vertical-form ({{_i}}not required{{/i}}){{_i}}Stacked, left-aligned labels over controls{{/i}}
Horizontal{{_i}}Horizontal{{/i}} .form-horizontalFloat left, right-aligned labels on same line as controls{{_i}}Float left, right-aligned labels on same line as controls{{/i}}
Inline{{_i}}Inline{{/i}} .form-inlineLeft-aligned label and inline-block controls for compact style{{_i}}Left-aligned label and inline-block controls for compact style{{/i}}
Search{{_i}}Search{{/i}} .form-searchExtra-rounded text input for a typical search aesthetic{{_i}}Extra-rounded text input for a typical search aesthetic{{/i}}
-

Example forms using just form controls, no extra markup

+

{{_i}}Example forms using just form controls, no extra markup{{/i}}

-

Basic form

-

With v2.0, we have lighter and smarter defaults for form styles. No extra markup, just form controls.

+

{{_i}}Basic form{{/i}}

+

{{_i}}With v2.0, we have lighter and smarter defaults for form styles. No extra markup, just form controls.{{/i}}

- - + + - +
-

Search form

-

Reflecting default WebKit styles, just add .form-search for extra rounded search fields.

+

{{_i}}Search form{{/i}}

+

{{_i}}Reflecting default WebKit styles, just add .form-search for extra rounded search fields.{{/i}}

-

Inline form

-

Inputs are block level to start. For .form-inline and .form-horizontal, we use inline-block.

+

{{_i}}Inline form{{/i}}

+

{{_i}}Inputs are block level to start. For .form-inline and .form-horizontal, we use inline-block.{{/i}}


-

Horizontal forms

+

{{_i}}Horizontal forms{{/i}}

- Controls Bootstrap supports + {{_i}}Controls Bootstrap supports{{/i}}
- +
-

In addition to freeform text, any HTML5 text-based input appears like so.

+

{{_i}}In addition to freeform text, any HTML5 text-based input appears like so.{{/i}}

- +
- +
@@ -951,39 +951,39 @@
- +
- +
- - + +
-

What's included

-

Shown on the left are all the default form controls we support. Here's the bulleted list:

+

{{_i}}What's included{{/i}}

+

{{_i}}Shown on the left are all the default form controls we support. Here's the bulleted list:{{/i}}

    -
  • text inputs (text, password, email, etc)
  • -
  • checkbox
  • -
  • radio
  • -
  • select
  • -
  • multiple select
  • -
  • file input
  • -
  • textarea
  • +
  • {{_i}}text inputs (text, password, email, etc){{/i}}
  • +
  • {{_i}}checkbox{{/i}}
  • +
  • {{_i}}radio{{/i}}
  • +
  • {{_i}}select{{/i}}
  • +
  • {{_i}}multiple select{{/i}}
  • +
  • {{_i}}file input{{/i}}
  • +
  • {{_i}}textarea{{/i}}

-

New defaults with v2.0

-

Up to v1.4, Bootstrap's default form styles used the horizontal layout. With Bootstrap 2, we removed that constraint to have smarter, more scalable defaults for any form.

+

{{_i}}New defaults with v2.0{{/i}}

+

{{_i}}Up to v1.4, Bootstrap's default form styles used the horizontal layout. With Bootstrap 2, we removed that constraint to have smarter, more scalable defaults for any form.{{/i}}

@@ -993,66 +993,66 @@
- Form control states + {{_i}}Form control states{{/i}}
- +
- +
- +
- +
- +
- +
- Something may have gone wrong + {{_i}}Something may have gone wrong{{/i}}
- +
- Please correct the error + {{_i}}Please correct the error{{/i}}
- +
- Woohoo! + {{_i}}Woohoo!{{/i}}
- - + +
-

Redesigned browser states

-

Bootstrap features styles for browser-supported focused and disabled states. We remove the default Webkit outline and apply a box-shadow in it's place for :focus.

+

{{_i}}Redesigned browser states{{/i}}

+

{{_i}}Bootstrap features styles for browser-supported focused and disabled states. We remove the default Webkit outline and apply a box-shadow in it's place for :focus.{{/i}}


-

Form validation

-

It also includes validation styles for errors, warnings, and success. To use, add the a class to the surrounding .control-group.

+

{{_i}}Form validation{{/i}}

+

{{_i}}It also includes validation styles for errors, warnings, and success. To use, add the a class to the surrounding .control-group.{{/i}}

 <fieldset
   class="control-group error">
-  ...
+  …
 </fieldset>
 
@@ -1064,38 +1064,38 @@
- Extending form controls + {{_i}}Extending form controls{{/i}}
- +
-

Use the same .span* classes from the grid system for input sizes.

+

{{_i}}Use the same .span* classes from the grid system for input sizes.{{/i}}

- +
@
-

Here's some help text

+

{{_i}}Here's some help text{{/i}}

- +
.00
-

Here's more help text

+

{{_i}}Here's more help text{{/i}}

- +
- +
-

Note: Labels surround all the options for much larger click areas and a more usable form.

+

{{_i}}Note: Labels surround all the options for much larger click areas and a more usable form.{{/i}}

- +
- - + +
-

Prepend & append inputs

-

Input groups—with appended or prepended text—provide an easy way to give more context for your inputs. Great examples include the @ sign for Twitter usernames or $ for finances.

+

{{_i}}Prepend & append inputs{{/i}}

+

{{_i}}Input groups—with appended or prepended text—provide an easy way to give more context for your inputs. Great examples include the @ sign for Twitter usernames or $ for finances.{{/i}}


-

Checkboxes and radios

-

Up to v1.4, Bootstrap required extra markup around checkboxes and radios to stack them. Now, it's a simple matter of repeating the <label class="checkbox"> that wraps the <input type="checkbox">.

-

Inline checkboxes and radios are also supported. Just add .inline to any .checkbox or .radio and you're done.

+

{{_i}}Checkboxes and radios{{/i}}

+

{{_i}}Up to v1.4, Bootstrap required extra markup around checkboxes and radios to stack them. Now, it's a simple matter of repeating the <label class="checkbox"> that wraps the <input type="checkbox">.{{/i}}

+

{{_i}}Inline checkboxes and radios are also supported. Just add .inline to any .checkbox or .radio and you're done.{{/i}}

@@ -1162,81 +1162,82 @@
- - - + + + - + - + - + - + - + - + - + - + - + - +
ButtonClassDescription{{_i}}Button{{/i}}{{_i}}Class{{/i}}{{_i}}Description{{/i}}
Default{{_i}}Default{{/i}} .btnStandard gray button with gradient{{_i}}Standard gray button with gradient{{/i}}
Primary{{_i}}Primary{{/i}} .primaryProvides extra visual weight and identifies the primary action in a set of buttons{{_i}}Provides extra visual weight and identifies the primary action in a set of buttons{{/i}}
Info{{_i}}Info{{/i}} .infoUsed as an alternate to the default styles{{_i}}Used as an alternate to the default styles{{/i}}
Success{{_i}}Success{{/i}} .successIndicates a successful or positive action{{_i}}Indicates a successful or positive action{{/i}}
Danger{{_i}}Danger{{/i}} .dangerIndicates a dangerous or potentially negative action{{_i}}Indicates a dangerous or potentially negative action{{/i}}
-

Buttons for actions

-

As a convention, buttons should only be used for actions while hyperlinks are to be used for objects. For instance, "Download" should be a button while "recent activity" should be a link.

+

{{_i}}Buttons for actions{{/i}}

+

{{_i}}As a convention, buttons should only be used for actions while hyperlinks are to be used for objects. For instance, "Download" should be a button while "recent activity" should be a link.{{/i}}

-

For anchors and forms

-

Button styles can be applied to anything with the .btn applied. However, typically you’ll want to apply these to only <a> and <button> elements.

+

{{_i}}For anchors and forms{{/i}}

+

{{_i}}Button styles can be applied to anything with the .btn applied. However, typically you’ll want to apply these to only <a> and <button> elements.{{/i}}

-

Note: All buttons must include the .btn class. Button styles should be applied to <button> and <a> elements for consistency.

+

{{_i}}Note: All buttons must include the .btn class. Button styles should be applied to <button> and <a> elements for consistency.{{/i}}

-

Multiple sizes

-

Fancy larger or smaller buttons? Have at it!

+

{{_i}}Multiple sizes{{/i}}

+

{{_i}}Fancy larger or smaller buttons? Have at it!{{/i}}

- Primary action - Action + {{_i}}Primary action{{/i}} + {{_i}}Action{{/i}}

- Primary action - Action + {{_i}}Primary action{{/i}} + {{_i}}Action{{/i}}

-

Disabled state

-

For buttons that are not active or are disabled by the app for one reason or another, use the disabled state. That’s .disabled for links and :disabled for <button> elements.

+

{{_i}}Disabled state{{/i}}

+

{{_i}}For buttons that are not active or are disabled by the app for one reason or another, use the disabled state. That’s .disabled for links and :disabled for <button> elements.{{/i}}

- Primary action - Action + {{_i}}Primary action{{/i}} + {{_i}}Action{{/i}}

-   + +

@@ -1251,7 +1252,7 @@ ================================================== -->
@@ -1365,7 +1366,7 @@
-

Light red background color is only used to show the dimensions of the icons in the docs.

+

{{_i}}Light red background color is only used to show the dimensions of the icons in the docs.{{/i}}

@@ -1373,38 +1374,38 @@
-

Built as a sprite

-

Instead of making every icon an extra request, we've compiled them into a sprite—a bunch of images in one file that uses CSS to position the images with background-position. This is the same method we use on Twitter.com and it has worked well for us.

-

Glyphicons has granted us use of the Halflings set in our open-source toolkit so long as we provide a link and credit. Please consider doing the same in your projects.

+

{{_i}}Built as a sprite{{/i}}

+

{{_i}}Instead of making every icon an extra request, we've compiled them into a sprite—a bunch of images in one file that uses CSS to position the images with background-position. This is the same method we use on Twitter.com and it has worked well for us.{{/i}}

+

{{_i}}Glyphicons has granted us use of the Halflings set in our open-source toolkit so long as we provide a link and credit. Please consider doing the same in your projects.{{/i}}

-

How to use

-

With v2.0.0, the <i> tag is essentially dedicated to iconography. To use the icons, you can place the follow code wherever you like one to appear:

+

{{_i}}How to use{{/i}}

+

{{_i}}With v2.0.0, the <i> tag is essentially dedicated to iconography. To use the icons, you can place the follow code wherever you like one to appear:{{/i}}

 <i class="chevron-left"></i>
 
-

There are over 100 classes to choose from for your icons. Just add an <i> tag with the right class and you're set. You can find the full list in sprites.less or right here in this document.

+

{{_i}}There are over 100 classes to choose from for your icons. Just add an <i> tag with the right class and you're set. You can find the full list in sprites.less or right here in this document.{{/i}}

-

Use cases

-

Icons are great, but where would one use them? Here are a few ideas:

+

{{_i}}Use cases{{/i}}

+

{{_i}}Icons are great, but where would one use them? Here are a few ideas:{{/i}}

    -
  • As visuals for your sidebar navigation
  • -
  • For a purely icon-driven nav
  • -
  • For buttons to help convey the meaning of an action
  • -
  • With links to share context on a user's destination
  • +
  • {{_i}}As visuals for your sidebar navigation{{/i}}
  • +
  • {{_i}}For a purely icon-driven nav{{/i}}
  • +
  • {{_i}}For buttons to help convey the meaning of an action{{/i}}
  • +
  • {{_i}}With links to share context on a user's destination{{/i}}
-

Essentially, anywhere you can put an <i> tag, you can put an icon.

+

{{_i}}Essentially, anywhere you can put an <i> tag, you can put an icon.{{/i}}

-

Examples

+

{{_i}}Examples{{/i}}

-

Use them in buttons, or in button groups for a toolbar style presentation.

+

{{_i}}Use them in buttons, or in button groups for a toolbar style presentation.{{/i}}

- Refresh - Settings + {{_i}}Refresh{{/i}} + {{_i}}Settings{{/i}}

@@ -1421,12 +1422,12 @@
-

Or, use them in navigation.

+

{{_i}}Or, use them in navigation.{{/i}}