<?xml version="1.0" encoding="UTF-8"?>        <rss version="2.0"
             xmlns:atom="http://www.w3.org/2005/Atom"
             xmlns:dc="http://purl.org/dc/elements/1.1/"
             xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
             xmlns:admin="http://webns.net/mvcb/"
             xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
             xmlns:content="http://purl.org/rss/1.0/modules/content/">
        <channel>
            <title>
									Kohana: how to translate validation errors - BugOverflow				            </title>
            <link>https://muszak.eu/community/bugoverflow/kohana-how-to-translate-validation-errors/</link>
            <description>muszak.eu Forum dyskusyjne</description>
            <language>pl-PL</language>
            <lastBuildDate>Sun, 08 Mar 2026 13:26:24 +0000</lastBuildDate>
            <generator>wpForo</generator>
            <ttl>60</ttl>
							                    <item>
                        <title>Odpowiedź na: Kohana: how to translate validation errors</title>
                        <link>https://muszak.eu/community/bugoverflow/kohana-how-to-translate-validation-errors/#post-1088</link>
                        <pubDate>Thu, 01 Sep 2022 11:48:27 +0000</pubDate>
                        <description><![CDATA[example method
    function action_add()
    {
        if ($this-&gt;request-&gt;post()) {
            try {
                $user = new Model_User();
                $user-&gt;values(...]]></description>
                        <content:encoded><![CDATA[<p>example method</p>
<pre contenteditable="false">    function action_add()
    {
        if ($this-&gt;request-&gt;post()) {
            try {
                $user = new Model_User();
                $user-&gt;values($this-&gt;request-&gt;post());
                $user-&gt;save();
            } catch (ORM_Validation_Exception  $exception) {
                $this-&gt;setError($exception-&gt;errors( 'models'));
            }
        }
    }</pre>
<p>put this file inside <strong>application/messages/models/user.php</strong></p>
<pre contenteditable="false">&lt;?php defined('SYSPATH') OR die('No direct access allowed.');

return array(
    'username' =&gt; array(
        'not_empty' =&gt; 'musisz podać login',
    ),
    'email' =&gt; array(
        'not_empty' =&gt; 'e-mail nie może być pusty',
        'email' =&gt; 'Podany adres e-mail nie jest poprawny. Sprawdź czy jest we własciwej formie.',
        'max_length' =&gt; 'Hasło nie może być dłuższe niż :param2 znaków',
        'not_like_login' =&gt; 'Hasło nie może być takie same jak login'
    ),
);</pre>]]></content:encoded>
						                            <category domain="https://muszak.eu/community/bugoverflow/">BugOverflow</category>                        <dc:creator>mrmucha</dc:creator>
                        <guid isPermaLink="true">https://muszak.eu/community/bugoverflow/kohana-how-to-translate-validation-errors/#post-1088</guid>
                    </item>
				                    <item>
                        <title>Kohana: how to translate validation errors</title>
                        <link>https://muszak.eu/community/bugoverflow/kohana-how-to-translate-validation-errors/#post-1087</link>
                        <pubDate>Thu, 01 Sep 2022 11:32:07 +0000</pubDate>
                        <description><![CDATA[example]]></description>
                        <content:encoded><![CDATA[<p>example</p>]]></content:encoded>
						                            <category domain="https://muszak.eu/community/bugoverflow/">BugOverflow</category>                        <dc:creator>mrmucha</dc:creator>
                        <guid isPermaLink="true">https://muszak.eu/community/bugoverflow/kohana-how-to-translate-validation-errors/#post-1087</guid>
                    </item>
							        </channel>
        </rss>
		