From 38bf290ca7e8ce6e38be33242b24aaf35bad0101 Mon Sep 17 00:00:00 2001 From: Dejan Geci Date: Sun, 7 Oct 2012 15:21:26 +0200 Subject: [PATCH 1/2] Added Serbian translation Signed-off-by: Dejan Geci --- application/language/sr/pagination.php | 19 +++++ application/language/sr/validation.php | 104 +++++++++++++++++++++++++ 2 files changed, 123 insertions(+) create mode 100644 application/language/sr/pagination.php create mode 100644 application/language/sr/validation.php diff --git a/application/language/sr/pagination.php b/application/language/sr/pagination.php new file mode 100644 index 00000000..7b326b1a --- /dev/null +++ b/application/language/sr/pagination.php @@ -0,0 +1,19 @@ + '« Nazad', + 'next' => 'Dalje »', + +); \ No newline at end of file diff --git a/application/language/sr/validation.php b/application/language/sr/validation.php new file mode 100644 index 00000000..508f286e --- /dev/null +++ b/application/language/sr/validation.php @@ -0,0 +1,104 @@ + "Polje :attribute mora biti prihvaćeno.", + "active_url" => "Polje :attribute nije validan URL.", + "after" => "Polje :attribute mora biti datum posle :date.", + "alpha" => "Polje :attribute može sadržati samo slova.", + "alpha_dash" => "Polje :attribute može sadržati samo slova, brojeve i povlake.", + "alpha_num" => "Polje :attribute može sadržati samo slova i brojeve.", + "array" => "Polje :attribute mora imati odabrane elemente.", + "before" => "Polje :attribute mora biti datum pre :date.", + "between" => array( + "numeric" => "Polje :attribute mora biti izmedju :min - :max.", + "file" => "Fajl :attribute mora biti izmedju :min - :max kilobajta.", + "string" => "Polje :attribute mora biti izmedju :min - :max karaktera.", + ), + "confirmed" => "Potvrda polja :attribute se ne poklapa.", + "count" => "Polje :attribute mora imati tačno :count odabranih elemenata.", + "countbetween" => "Polje :attribute mora imati izmedju :min i :max odabranih elemenata.", + "countmax" => "Polje :attribute mora imati manje od :max odabranih elemenata.", + "countmin" => "Polje :attribute mora imati najmanje :min odabranih elemenata.", + "different" => "Polja :attribute i :other moraju biti različiti.", + "email" => "Format polja :attribute nije validan.", + "exists" => "Odabrano polje :attribute nije validno.", + "image" => "Polje :attribute mora biti slika.", + "in" => "Odabrano polje :attribute nije validno.", + "integer" => "Polje :attribute mora biti broj.", + "ip" => "Polje :attribute mora biti validna IP adresa.", + "match" => "Format polja :attribute nije validan.", + "max" => array( + "numeric" => "Polje :attribute mora biti manje od :max.", + "file" => "Polje :attribute mora biti manje od :max kilobajta.", + "string" => "Polje :attribute mora sadržati manje od :max karaktera.", + ), + "mimes" => "Polje :attribute mora biti fajl tipa: :values.", + "min" => array( + "numeric" => "Polje :attribute mora biti najmanje :min.", + "file" => "Fajl :attribute mora biti najmanje :min kilobajta.", + "string" => "Polje :attribute mora sadržati najmanje :min karaktera.", + ), + "not_in" => "Odabrani element polja :attribute nije validan.", + "numeric" => "Polje :attribute mora biti broj.", + "required" => "Polje :attribute je obavezno.", + "same" => "Polja :attribute i :other se moraju poklapati.", + "size" => array( + "numeric" => "Polje :attribute mora biti :size.", + "file" => "Fajl :attribute mora biti :size kilobajta.", + "string" => "Polje :attribute mora biti :size karaktera.", + ), + "unique" => "Polje :attribute već postoji.", + "url" => "Format polja :attribute nije validan.", + + /* + |-------------------------------------------------------------------------- + | Custom Validation Language Lines + |-------------------------------------------------------------------------- + | + | Here you may specify custom validation messages for attributes using the + | convention "attribute_rule" to name the lines. This helps keep your + | custom validation clean and tidy. + | + | So, say you want to use a custom validation message when validating that + | the "email" attribute is unique. Just add "email_unique" to this array + | with your custom message. The Validator will handle the rest! + | + */ + + 'custom' => array(), + + /* + |-------------------------------------------------------------------------- + | Validation Attributes + |-------------------------------------------------------------------------- + | + | The following language lines are used to swap attribute place-holders + | with something more reader friendly such as "E-Mail Address" instead + | of "email". Your users will thank you. + | + | The Validator class will automatically search this array of lines it + | is attempting to replace the :attribute place-holder in messages. + | It's pretty slick. We think you'll like it. + | + */ + + 'attributes' => array(), + +); \ No newline at end of file From 9fc53588e32a374e56f5b349ebeacbbb3240ae9c Mon Sep 17 00:00:00 2001 From: Dejan Geci Date: Mon, 8 Oct 2012 17:49:29 +0200 Subject: [PATCH 2/2] Small tweaks to semantics Signed-off-by: Dejan Geci --- application/language/sr/pagination.php | 2 +- application/language/sr/validation.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/application/language/sr/pagination.php b/application/language/sr/pagination.php index 7b326b1a..7a787ac6 100644 --- a/application/language/sr/pagination.php +++ b/application/language/sr/pagination.php @@ -14,6 +14,6 @@ */ 'previous' => '« Nazad', - 'next' => 'Dalje »', + 'next' => 'Napred »', ); \ No newline at end of file diff --git a/application/language/sr/validation.php b/application/language/sr/validation.php index 508f286e..8bf945df 100644 --- a/application/language/sr/validation.php +++ b/application/language/sr/validation.php @@ -36,7 +36,7 @@ "countbetween" => "Polje :attribute mora imati izmedju :min i :max odabranih elemenata.", "countmax" => "Polje :attribute mora imati manje od :max odabranih elemenata.", "countmin" => "Polje :attribute mora imati najmanje :min odabranih elemenata.", - "different" => "Polja :attribute i :other moraju biti različiti.", + "different" => "Polja :attribute i :other moraju biti različita.", "email" => "Format polja :attribute nije validan.", "exists" => "Odabrano polje :attribute nije validno.", "image" => "Polje :attribute mora biti slika.",