Skip to content

Commit 40b022b

Browse files
author
Renatho De Carli Rosa
committed
Add some translators
1 parent de1c963 commit 40b022b

File tree

1 file changed

+194
-14
lines changed

1 file changed

+194
-14
lines changed

syntaxhighlighter.php

Lines changed: 194 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1552,20 +1552,200 @@ function settings_page() { ?>
15521552
<p><?php printf( __( 'These are the parameters you can pass to the shortcode and what they do. For the booleans (i.e. on/off), pass %1$s/%2$s or %3$s/%4$s.', 'syntaxhighlighter' ), '<code>true</code>', '<code>1</code>', '<code>false</code>', '<code>0</code>' ); ?></p>
15531553

15541554
<ul class="ul-disc">
1555-
<li><?php printf( esc_html_x( '%1$s or %2$s &#8212; The language syntax to highlight with. You can alternately just use that as the tag, such as <code>[php]code[/php]</code>. <a href="%3$s">Click here</a> for a list of valid tags (under &quot;aliases&quot;).', 'language parameter', 'syntaxhighlighter' ), '<code>lang</code>', '<code>language</code>', 'http://alexgorbatchev.com/SyntaxHighlighter/manual/brushes/' ); ?></li>
1556-
<li><?php printf( esc_html_x( '%s &#8212; Toggle automatic URL linking.', 'autolinks parameter', 'syntaxhighlighter' ), '<code>autolinks</code>' ); ?></li>
1557-
<li><?php printf( esc_html_x( '%s &#8212; Add an additional CSS class to the code box.', 'classname parameter', 'syntaxhighlighter' ), '<code>classname</code>' ); ?></li>
1558-
<li><?php printf( esc_html_x( '%s &#8212; Toggle collapsing the code box by default, requiring a click to expand it. Good for large code posts.', 'collapse parameter', 'syntaxhighlighter' ), '<code>collapse</code>' ); ?></li>
1559-
<li><?php printf( esc_html_x( '%s &#8212; An interger specifying what number the first line should be (for the line numbering).', 'firstline parameter', 'syntaxhighlighter' ), '<code>firstline</code>' ); ?></li>
1560-
<li><?php printf( esc_html_x( '%s &#8212; Toggle the left-side line numbering.', 'gutter parameter', 'syntaxhighlighter' ), '<code>gutter</code>' ); ?></li>
1561-
<li><?php printf( esc_html_x( '%1$s &#8212; A comma-separated list of line numbers to highlight. You can also specify a range. Example: %2$s', 'highlight parameter', 'syntaxhighlighter' ), '<code>highlight</code>', '<code>2,5-10,12</code>' ); ?></li>
1562-
<li><?php printf( esc_html_x( "%s &#8212; Toggle highlighting any extra HTML/XML. Good for when you're mixing HTML/XML with another language, such as having PHP inside an HTML web page. The above preview has it enabled for example. This only works with certain languages.", 'htmlscript parameter', 'syntaxhighlighter' ), '<code>htmlscript</code>' ); ?></li>
1563-
<li><?php printf( esc_html_x( '%s &#8212; Toggle light mode which disables the gutter and toolbar all at once.', 'light parameter', 'syntaxhighlighter' ), '<code>light</code>' ); ?></li>
1564-
<li><?php printf( esc_html_x( '%s &#8212; Controls line number padding. Valid values are <code>false</code> (no padding), <code>true</code> (automatic padding), or an integer (forced padding).', 'padlinenumbers parameter', 'syntaxhighlighter' ), '<code>padlinenumbers</code>' ); ?></li>
1565-
<li><?php printf( esc_html_x( '%1$s (v3 only) &#8212; Sets some text to show up before the code. Very useful when combined with the %2$s parameter.', 'title parameter', 'syntaxhighlighter' ), '<code>title</code>', '<code>collapse</code>' ); ?></li>
1566-
<li><?php printf( esc_html_x( '%s &#8212; Toggle the toolbar (buttons in v2, the about question mark in v3)', 'toolbar parameter', 'syntaxhighlighter' ), '<code>toolbar</code>' ); ?></li>
1567-
<li><?php printf( esc_html_x( '%s (v2 only) &#8212; Toggle line wrapping.', 'wraplines parameter', 'syntaxhighlighter'), '<code>wraplines</code>' ); ?></li>
1568-
<li><?php printf( esc_html_x( '%s &#8212; Enable edit mode on double click.', 'quickcode parameter', 'syntaxhighlighter' ), '<code>quickcode</code>' ); ?></li>
1555+
<li>
1556+
<?php
1557+
echo wp_kses(
1558+
// translators: %1$s Lang parameter; %2$s Language parameter; %3$s Valid tags link.
1559+
sprintf(
1560+
_x(
1561+
'%1$s or %2$s &#8212; The language syntax to highlight with. You can alternately just use that as the tag, such as <code>[php]code[/php]</code>. <a href="%3$s">Click here</a> for a list of valid tags (under &quot;aliases&quot;).',
1562+
'language parameter',
1563+
'syntaxhighlighter'
1564+
),
1565+
'<code>lang</code>',
1566+
'<code>language</code>',
1567+
'http://alexgorbatchev.com/SyntaxHighlighter/manual/brushes/'
1568+
),
1569+
array(
1570+
'a' => array(
1571+
'href' => array()
1572+
),
1573+
'code' => array()
1574+
)
1575+
);
1576+
?>
1577+
</li>
1578+
<li>
1579+
<?php
1580+
// translators: %s Autolinks parameter.
1581+
printf(
1582+
esc_html_x(
1583+
'%s &#8212; Toggle automatic URL linking.',
1584+
'autolinks parameter',
1585+
'syntaxhighlighter'
1586+
),
1587+
'<code>autolinks</code>'
1588+
);
1589+
?>
1590+
</li>
1591+
<li>
1592+
<?php
1593+
// translators: %s Classname parameter.
1594+
printf(
1595+
esc_html_x(
1596+
'%s &#8212; Add an additional CSS class to the code box.',
1597+
'classname parameter',
1598+
'syntaxhighlighter'
1599+
),
1600+
'<code>classname</code>'
1601+
);
1602+
?>
1603+
</li>
1604+
<li>
1605+
<?php
1606+
// translators: %s Collapse parameter.
1607+
printf(
1608+
esc_html_x(
1609+
'%s &#8212; Toggle collapsing the code box by default, requiring a click to expand it. Good for large code posts.',
1610+
'collapse parameter',
1611+
'syntaxhighlighter'
1612+
),
1613+
'<code>collapse</code>'
1614+
);
1615+
?>
1616+
</li>
1617+
<li>
1618+
<?php
1619+
// translators: %s Firstline parameter.
1620+
printf(
1621+
esc_html_x(
1622+
'%s &#8212; An interger specifying what number the first line should be (for the line numbering).',
1623+
'firstline parameter',
1624+
'syntaxhighlighter'
1625+
),
1626+
'<code>firstline</code>'
1627+
);
1628+
?>
1629+
</li>
1630+
<li>
1631+
<?php
1632+
// translators: %s Gutter parameter.
1633+
printf(
1634+
esc_html_x(
1635+
'%s &#8212; Toggle the left-side line numbering.',
1636+
'gutter parameter',
1637+
'syntaxhighlighter'
1638+
),
1639+
'<code>gutter</code>'
1640+
);
1641+
?>
1642+
</li>
1643+
<li>
1644+
<?php
1645+
// translators: %1$s Highlight parameter; %2$s Example.
1646+
printf(
1647+
esc_html_x(
1648+
'%1$s &#8212; A comma-separated list of line numbers to highlight. You can also specify a range. Example: %2$s',
1649+
'highlight parameter',
1650+
'syntaxhighlighter'
1651+
),
1652+
'<code>highlight</code>',
1653+
'<code>2,5-10,12</code>'
1654+
);
1655+
?>
1656+
</li>
1657+
<li>
1658+
<?php
1659+
// translators: %s Htmlscript parameter.
1660+
printf(
1661+
esc_html_x(
1662+
"%s &#8212; Toggle highlighting any extra HTML/XML. Good for when you're mixing HTML/XML with another language, such as having PHP inside an HTML web page. The above preview has it enabled for example. This only works with certain languages.",
1663+
'htmlscript parameter',
1664+
'syntaxhighlighter'
1665+
),
1666+
'<code>htmlscript</code>'
1667+
);
1668+
?>
1669+
</li>
1670+
<li>
1671+
<?php
1672+
// translators: %s Light parameter.
1673+
printf(
1674+
esc_html_x(
1675+
'%s &#8212; Toggle light mode which disables the gutter and toolbar all at once.',
1676+
'light parameter',
1677+
'syntaxhighlighter'
1678+
),
1679+
'<code>light</code>'
1680+
);
1681+
?>
1682+
</li>
1683+
<li>
1684+
<?php
1685+
// translators: %s Padlinenumbers parameter.
1686+
printf(
1687+
esc_html_x(
1688+
'%s &#8212; Controls line number padding. Valid values are <code>false</code> (no padding), <code>true</code> (automatic padding), or an integer (forced padding).',
1689+
'padlinenumbers parameter',
1690+
'syntaxhighlighter'
1691+
),
1692+
'<code>padlinenumbers</code>'
1693+
);
1694+
?>
1695+
</li>
1696+
<li>
1697+
<?php
1698+
// translators: %1$s Title parameter; %2$s Collapse parameter.
1699+
printf(
1700+
esc_html_x(
1701+
'%1$s (v3 only) &#8212; Sets some text to show up before the code. Very useful when combined with the %2$s parameter.',
1702+
'title parameter',
1703+
'syntaxhighlighter'
1704+
),
1705+
'<code>title</code>',
1706+
'<code>collapse</code>'
1707+
);
1708+
?>
1709+
</li>
1710+
<li>
1711+
<?php
1712+
// translators: %s Toolbar parameter.
1713+
printf(
1714+
esc_html_x(
1715+
'%s &#8212; Toggle the toolbar (buttons in v2, the about question mark in v3)',
1716+
'toolbar parameter',
1717+
'syntaxhighlighter'
1718+
),
1719+
'<code>toolbar</code>'
1720+
);
1721+
?>
1722+
</li>
1723+
<li>
1724+
<?php
1725+
// translators: %s Wraplines parameter.
1726+
printf(
1727+
esc_html_x(
1728+
'%s (v2 only) &#8212; Toggle line wrapping.',
1729+
'wraplines parameter',
1730+
'syntaxhighlighter'
1731+
),
1732+
'<code>wraplines</code>'
1733+
);
1734+
?>
1735+
</li>
1736+
<li>
1737+
<?php
1738+
// translators: %s Quickcode parameter.
1739+
printf(
1740+
esc_html_x(
1741+
'%s &#8212; Enable edit mode on double click.',
1742+
'quickcode parameter',
1743+
'syntaxhighlighter'
1744+
),
1745+
'<code>quickcode</code>'
1746+
);
1747+
?>
1748+
</li>
15691749
</ul>
15701750

15711751
<p><?php esc_html_e( 'Some example shortcodes:', 'syntaxhighlighter' ); ?></p>

0 commit comments

Comments
 (0)