mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-05 02:44:27 +02:00
added the language-snippets.ent file and started using entities for notes under en/programmers/api-functions
This commit is contained in:
11
docs/en/language-snippets.ent
Normal file
11
docs/en/language-snippets.ent
Normal file
@@ -0,0 +1,11 @@
|
||||
<!-- $Revision$ -->
|
||||
|
||||
<!ENTITY note.parameter.merge '<note>
|
||||
<title>Technical Note</title>
|
||||
<para>
|
||||
The <parameter>merge</parameter> parameter respects array keys, so if
|
||||
you merge two numerically indexed arrays, they may overwrite each other
|
||||
or result in non-sequential keys. This is unlike the array_merge() function
|
||||
of PHP which wipes out numerical keys and renumbers them.
|
||||
</para>
|
||||
</note>'>
|
@@ -22,15 +22,7 @@
|
||||
explanation. If you pass the optional third parameter of true,
|
||||
the value will be merged with the current array instead of appended.
|
||||
</para>
|
||||
<note>
|
||||
<title>Technical Note</title>
|
||||
<para>
|
||||
The <parameter>merge</parameter> parameter respects array keys, so if
|
||||
you merge two numerically indexed arrays, they may overwrite each other
|
||||
or result in non-sequential keys. This is unlike the array_merge() function
|
||||
of PHP which wipes out numerical keys and renumbers them.
|
||||
</para>
|
||||
</note>
|
||||
¬e.parameter.merge;
|
||||
<example>
|
||||
<title>append_by_ref</title>
|
||||
<programlisting role="php">
|
||||
|
@@ -25,15 +25,7 @@
|
||||
parameter of true, the value will be merged with the current array
|
||||
instead of appended.
|
||||
</para>
|
||||
<note>
|
||||
<title>Technical Note</title>
|
||||
<para>
|
||||
The merge parameter respects array keys, so if you merge two
|
||||
numerically indexed arrays, they may overwrite each other or result in
|
||||
non-sequential keys. This is unlike the array_merge() function of PHP
|
||||
which wipes out numerical keys and renumbers them.
|
||||
</para>
|
||||
</note>
|
||||
¬e.parameter.merge;
|
||||
<example>
|
||||
<title>append</title>
|
||||
<programlisting role="php">
|
||||
|
@@ -6,8 +6,10 @@
|
||||
|
||||
<!-- Add translated specific definitions and snippets -->
|
||||
<!ENTITY % language-defs SYSTEM "@LANG@/language-defs.ent">
|
||||
<!ENTITY % language-snippets SYSTEM "@LANG@/language-snippets.ent">
|
||||
|
||||
%language-defs;
|
||||
%language-snippets;
|
||||
|
||||
<!-- Fallback to English definitions and snippets (in case of missing translation) -->
|
||||
<!ENTITY % language-defs.default SYSTEM "en/language-defs.ent">
|
||||
|
Reference in New Issue
Block a user