cvs: peardoc /hu/chapters standards.xml

From: Date: Sat, 28 Feb 2004 05:19:26 +0000
Subject: cvs: peardoc /hu/chapters standards.xml
Groups: php.pear.doc 
Request: Send a blank email to pear-doc+get-2787@lists.php.net to get a copy of this message
norbert_m Sat Feb 28 00:19:26 2004 EDT Modified files: /peardoc/hu/chapters standards.xml Log: full translation (except CVS part)

http://cvs.php.net/diff.php/peardoc/hu/chapters/standards.xml?r1=1.1&r2=1.2&ty=u Index: peardoc/hu/chapters/standards.xml diff -u peardoc/hu/chapters/standards.xml:1.1 peardoc/hu/chapters/standards.xml:1.2 --- peardoc/hu/chapters/standards.xml:1.1 Sat Feb 21 16:57:59 2004 +++ peardoc/hu/chapters/standards.xml Sat Feb 28 00:19:25 2004 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1" ?> <!-- Sync: 1.9 --> -<!-- $Revision: 1.1 $ --> +<!-- $Revision: 1.2 $ --> <chapter id="standards"> <title>Kódolási szabványok</title> <note> @@ -161,55 +161,55 @@ található. </para> <para> - 11:56 - Non-documentation comments are strongly encouraged. A general rule of - thumb is that if you look at a section of code and think "Wow, I don't - want to try and describe that", you need to comment it before you - forget how it works. + Dokumentálásnál általános szabály, hogy amit nem kívánunk leírni + készíteni ("Nem akarom kipróbálni és leírni..."), arról mégis érdemes + kommentet készíteni, mielõtt elfelejtjük hogyan mûködik. </para> <para> - C style comments (/* */) and standard C++ comments (//) are both - fine. Use of Perl/shell style comments (#) is discouraged. + Mind a C-stílusú kommentek (/* */), mind a C++ stílusúak (//) használata + elfogadott. A Perl/shell-stílusú kommentek használata nem szigorúan + ellenjavallt. </para> </sect1> <sect1 id="standards.including"> - <title>Including Code</title> + <title>Kód include-olása</title> <para> - Anywhere you are unconditionally including a class file, use - <function>require_once</function>. Anywhere you are conditionally - including a class file (for example, factory methods), use - <function>include_once</function>. Either of these will ensure - that class files are included only once. They share the same file - list, so you don't need to worry about mixing them - a file - included with <function>require_once</function> will not be - included again by <function>include_once</function>. + Mindenhol, ahol feltétel nélkül include-olunk egy osztályfájlt, + használjunk <function>require_once</function>-ot. Mindenhol, ahol + feltételesen include-olunk egy osztályfájlt, használjuk az + <function>include_once</function>-ot. Ezek az utasítások megosztják + egymás között a fájllistát, így nem kell aggódnunk felváltva történõ + használatuk miatt - egy fájl, amit <function>require_once</function>-al + include-oltunk, nem kerül ismételten include-olásra az + <function>include_once</function> meghívása esetén sem. <note> <simpara> - <function>include_once</function> and - <function>require_once</function> are statements, not - functions. You don't <emphasis>need</emphasis> parentheses - around the filename to be included. + Az <function>include_once</function> és a + <function>require_once</function> utasítások, nem függvények. + Nem <emphasis>szükséges</emphasis> zárójeleket alkalmazni az + include-olandó fájl neve körül. </simpara> </note> </para> </sect1> <sect1 id="standards.tags"> - <title>PHP Code Tags</title> + <title>PHP tag-ek</title> <para> - <emphasis>Always</emphasis> use <literal>&lt;?php ?></literal> to - delimit PHP code, not the <literal>&lt;? ?></literal> shorthand. - This is required for PEAR compliance and is also the most portable - way to include PHP code on differing operating systems and setups. + <emphasis>Mindig</emphasis> használjunk <literal>&lt;?php ?></literal> + karaktersorozatot a PHP kód elválasztására, ne használjuk a + <literal>&lt;? ?></literal> rövidítést. Ez a PEAR miatt szükséges, + és teszi leghordozhatóbbá a PHP kódot a különbözõ operációs rendszerek + és beállítások között. </para> </sect1> <sect1 id="standards.header"> - <title>Header Comment Blocks</title> + <title>Fejléc komment blokkok</title> <para> - All source code files in the core PEAR distribution should contain - the following comment block as the header: + Minden forrásnyelvi fájlnak a PEAR core disztribúcióban a következõ + fejléc komment blokkot kell tartalmaznia: <programlisting role="php"> /* vim: set expandtab tabstop=4 shiftwidth=4: */ // +----------------------------------------------------------------------+ @@ -233,33 +233,36 @@ </programlisting> </para> <para> - There's no hard rule to determine when a new code contributor - should be added to the list of authors for a given source file. - In general, their changes should fall into the "substantial" - category (meaning somewhere around 10% to 20% of code changes). - Exceptions could be made for rewriting functions or contributing - new logic. - </para> - <para> - Simple code reorganization or bug fixes would not justify the - addition of a new individual to the list of authors. - </para> - <para> - Files not in the core PEAR repository should have a similar block - stating the copyright, the license, and the authors. All files - should include the modeline comments to encourage consistency. + Nincs határozott szabály annak eldöntésére, hogy mikor kerüljön sor + egy új közremûködõ nevének felvételére a készítõk listájába egy adott + forrásfájlban. Általánosságban azt mondhatjuk, hogy ehhez a + változtatásaiknak a "jelentõs" kategóriába kell esniük (kb. 10-20% + változás a kódban). Kivételek tehetõk függvények újraírásánál, vagy + közremûködésnél új logika kialakításában. + </para> + <para> + Egyszerû kód átszervezés vagy foltkészítések nem teszik szükségessé + új közremûködõ felvételét a készítõk listájába. + </para> + <para> + A PEAR core raktárán kívül esõ fájlok is hasonló fejléccel kezdõdjenek, + megjelölve a szerzõi jogra és a licenszre vonatkozó szabályokat, valamint + a készítõket. Minden fájl tartalmazza a kommenteket a következetesség + érdekében. </para> </sect1> <sect1 id="standards.cvs"> - <title>Using CVS</title> + <title>A CVS használata</title> <simpara> - This section applies only to packages using CVS at cvs.php.net. + Ez a szakasz csak a cvs.php.net címen elérhetõ CVS szervert + használó csomagokra vonatkozik. </simpara> <para> - Include the &dollar;Id&dollar; CVS keyword in each file. As each file - is edited, add this tag if it's not yet present (or replace - existing forms such as "Last Modified:", etc.). + Helyezzük el a &dollar;Id&dollar; CVS kulcsszót minden fájlban. Ahogy + az egyes fájlok szerkesztésre kerülnek, adjuk hozzájuk ezt a tag-et, ha + még nem szerepelnek a fájlban (vagy cseréljük a létezõ formákat, mint + például a "Last Modified:" stb.) <!-- <note> <simpara> @@ -272,8 +275,8 @@ --> </para> <para> - The rest of this section assumes that you have basic knowledge - about CVS tags and branches. + Ezen szakasz további része alapvetõ ismereteket feltételez a + CVS tag-ekrõl és branch-ekrõl. </para> <para> CVS tags are used to label which revisions of the files in your @@ -285,7 +288,7 @@ <term>RELEASE_<replaceable>n_n</replaceable></term> <listitem> <simpara> - (required) Used for tagging a release. If you don't use it, + (kötelezõ) Used for tagging a release. If you don't use it, there's no way to go back and retrieve your package from the CVS server in the state it was in at the time of the release. </simpara> @@ -295,7 +298,7 @@ <term>QA_<replaceable>n_n</replaceable></term> <listitem> <simpara> - (branch, optional) If you feel you need to roll out a + (branch, opcionális) If you feel you need to roll out a release candidate before releasing, it's a good idea to make a branch for it so you can isolate the release and apply only those critical fixes before the actual release. Meanwhile, @@ -307,7 +310,7 @@ <term>MAINT_<replaceable>n_n</replaceable></term> <listitem> <simpara> - (branch, optional) If you need to make "micro-releases" (for + (branch, opcionális) If you need to make "micro-releases" (for example 1.2.1 and so on after 1.2), you can use a branch for that too, if your main trunk is very active and you want only minor changes between your micro-releases. @@ -353,23 +356,25 @@ </sect1> <sect1 id="standards.exampleurls"> - <title>Example URLs</title> + <title>Példa URL-ek</title> <para> - Use "example.com", "example.org" and "example.net" for all example URLs - and email addresses, per <ulink url="&url.rfc;2606">RFC 2606</ulink>. + + Használjuk az "example.com", "example.org" és "example.net" formákat + minden példa URL-hez és e-mail címhez, az + <ulink url="&url.rfc;2606">RFC 2606</ulink> alapján. </para> </sect1> <sect1 id="standards.naming"> - <title>Naming Conventions</title> + <title>Elnevezési szabályok</title> <sect2> - <title>Classes</title> + <title>Osztályok</title> <para> - Classes should be given descriptive names. Avoid using abbreviations - where possible. Class names should always begin with an uppercase - letter. The PEAR class hierarchy is also reflected in the class name, - each level of the hierarchy separated with a single underscore. - Examples of good class names are: + Adjunk beszédes nevet az osztályoknak. Kerüljük rövidítések használatát, + ahol lehetséges. Az osztálynevek mindig nagybetûvel kezdõdjenek. A PEAR + osztályhierarchia is tükrözõdik az osztályok nevében, a hierarchia minden + szintje egy önálló hangosközzel (underscore, "_") van elválasztva. + Példa helyes osztálynevekre: <informaltable> <tgroup cols="3"> <tbody> @@ -384,14 +389,14 @@ </para> </sect2> <sect2> - <title>Functions and Methods</title> + <title>Függvények és metódusok</title> <para> - Functions and methods should be named using the "studly caps" - style (also referred to as "bumpy case" or "camel caps"). - Functions should in addition have the package name as a prefix, - to avoid name collisions between packages. The initial letter of - the name (after the prefix) is lowercase, and each letter that - starts a new "word" is capitalized. Some examples: + A függvényeket és az eljárásokat a "studly caps"-stílus szerint + nevezzük el (nevezik még "bumpy case" és "camel caps" stílusnak is). + Az elnevezés továbbá tartalmazza a csomag nevét prefixként, a + csomagok közötti elnevezés-ütközések elkerülése érdekében. Az + elnevezés kezdõbetûje (a prefix után) kisbetû, ezt követõen minden + új "szó" kezdõbetûje nagybetûvel írandó. Néhány példa: <informaltable> <tgroup cols="4"> <tbody> @@ -406,10 +411,10 @@ </informaltable> </para> <para> - Private class members (meaning class members that are intented - to be used only from within the same class in which they are - declared; PHP does not yet support truly-enforceable private - namespaces) are preceded by a single underscore. For example: + A privát osztály tagokat (osztály tagok, amelyeket csak abból az + osztályból szándékozunk használni, amelyben deklarálva vannak; + a PHP még nem támogatja a valódi privát névterületeket) + vezessük be egy szimpla hangosközzel. Például: <informaltable> <tgroup cols="3"> <tbody> @@ -424,22 +429,23 @@ </para> </sect2> <sect2> - <title>Constants</title> + <title>Konstansok</title> <para> - Constants should always be all-uppercase, with underscores to - separate words. Prefix constant names with the uppercased name - of the class/package they are used in. For example, the constants - used by the <literal>DB::</literal> package all begin with - "<literal>DB_</literal>". + A konstansokat mindig írjuk végig nagybetûvel, hangosközt használva + a szavak határolására. Neveikben használjuk elõképzõként annak az + osztálynak/csomagnak a nevét végig nagybetûkkel írva, amelyben használva + vannak. Például, a <literal>DB::</literal> csomag által használt + konstansok nevei a "<literal>DB_</literal>" karaktersorozattal kerülnek + bevezetésre. </para> </sect2> <sect2> - <title>Global Variables</title> + <title>Globális változók</title> <para> - If your package needs to define global variables, their name - should start with a single underscore followed by the package - name and another underscore. For example, the PEAR package uses - a global variable called $_PEAR_destructor_object_list. + Ha a csomagunknak szüksége van globális változók definiálására, azok + neveit kezdjük egy szimpla hangosközzel ("_"), folytatva a csomag + nevével, majd egy további hangosközzel. Például, a PEAR csomag által + használt egyik globális változó a $_PEAR_destructor_object_list. </para> </sect2> </sect1>
« previous php.pear.doc (#2787) next »