gettext-activerecord-2.1.0/0000755000175000017500000000000011623722575014676 5ustar gwolfgwolfgettext-activerecord-2.1.0/po/0000755000175000017500000000000011623722575015314 5ustar gwolfgwolfgettext-activerecord-2.1.0/po/bg/0000755000175000017500000000000011623722575015704 5ustar gwolfgwolfgettext-activerecord-2.1.0/po/bg/gettext_activerecord.po0000644000175000017500000001103511623722575022462 0ustar gwolfgwolf# # a po-file for Ruby-GetText-Package and Ruby on Rails. # # Copyright (C) 2005,2006 Masao Mutoh # This file is distributed under the same license as the Ruby-GetText-Package. # # Georgi Stoimenov , 2008 # msgid "" msgstr "" "Project-Id-Version: gettext_activerecord 0.1.0\n" "POT-Creation-Date: 2009-02-09 01:48+0900\n" "PO-Revision-Date: 2008-07-11 11:35+0300\n" "Last-Translator: Sava Chankov \n" "Language-Team: Bulgarian \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" #: lib/gettext_activerecord/parser.rb:60 msgid "'%{file}' is not found." msgstr "" #: lib/gettext_activerecord/parser.rb:104 msgid "Ignored '%{file}'. Solve dependencies first." msgstr "" #: lib/gettext_activerecord/parser.rb:131 msgid "No database is available." msgstr "" #: lib/gettext_activerecord/parser.rb:167 msgid "rubygems are not found." msgstr "" #: lib/gettext_activerecord/active_record.rb:27 msgid "Validation failed: %{error_messages}" msgstr "Неуспешна валидация: %{error_messages}" #: lib/gettext_activerecord/active_record.rb:218 msgid "%{attribute} is not included in the list" msgstr "Полето „%{attribute}“ не е в списъка" #: lib/gettext_activerecord/active_record.rb:219 msgid "%{attribute} is reserved" msgstr "Полето „%{attribute}“ е резервирано" #: lib/gettext_activerecord/active_record.rb:220 msgid "%{attribute} is invalid" msgstr "Полето „%{attribute}“ е невалидно" #: lib/gettext_activerecord/active_record.rb:221 msgid "%{attribute} doesn't match confirmation" msgstr "%{attribute} не съвпада" #: lib/gettext_activerecord/active_record.rb:222 msgid "%{attribute} must be accepted" msgstr "Полето „%{attribute}“ трябва бъде прието" #: lib/gettext_activerecord/active_record.rb:223 msgid "%{attribute} can't be empty" msgstr "Полето „%{attribute}“ не може да е празно" #: lib/gettext_activerecord/active_record.rb:224 msgid "%{attribute} can't be blank" msgstr "Полето „%{attribute}“ не може да е празно" #: lib/gettext_activerecord/active_record.rb:225 msgid "%{attribute} is too long (maximum is %{count} characters)" msgstr "Полето „%{attribute}“ е много дълго (максимумът е %{count} символа)" #: lib/gettext_activerecord/active_record.rb:226 msgid "%{attribute} is too short (minimum is %{count} characters)" msgstr "Полето „%{attribute}“ е много късо (минимумът е %{count} символа)" #: lib/gettext_activerecord/active_record.rb:227 msgid "%{attribute} is the wrong length (should be %{count} characters)" msgstr "Полето „%{attribute}“ е с неправилна дължина (трябва да е %{count} символа)" #: lib/gettext_activerecord/active_record.rb:228 msgid "%{attribute} has already been taken" msgstr "Полето „%{attribute}“ е вече заето" #: lib/gettext_activerecord/active_record.rb:229 msgid "%{attribute} is not a number" msgstr "Полето „%{attribute}“ не е число" #: lib/gettext_activerecord/active_record.rb:230 msgid "%{attribute} must be greater than %{count}" msgstr "Полето „%{attribute}“ трябва бъде по-голямо от %{count}" #: lib/gettext_activerecord/active_record.rb:231 msgid "%{attribute} must be greater than or equal to %{count}" msgstr "Полето „%{attribute}“ трябва бъде по-голямо или равно на %{count}" #: lib/gettext_activerecord/active_record.rb:232 msgid "%{attribute} must be equal to %{count}" msgstr "Полето „%{attribute}“ трябва бъде равно на %{count}" #: lib/gettext_activerecord/active_record.rb:233 msgid "%{attribute} must be less than %{count}" msgstr "Полето „%{attribute}“ трябва бъде по-малко от %{count}" #: lib/gettext_activerecord/active_record.rb:234 msgid "%{attribute} must be less than or equal to %{count}" msgstr "Полето „%{attribute}“ трябва бъде по-малко или равно на %{count}" #: lib/gettext_activerecord/active_record.rb:235 msgid "%{attribute} must be odd" msgstr "Полето „%{attribute}“ трябва бъде нечетно" #: lib/gettext_activerecord/active_record.rb:236 msgid "%{attribute} must be even" msgstr "Полето „%{attribute}“ трябва бъде четно" gettext-activerecord-2.1.0/po/ca/0000755000175000017500000000000011623722575015677 5ustar gwolfgwolfgettext-activerecord-2.1.0/po/ca/gettext_activerecord.po0000644000175000017500000000760111623722575022461 0ustar gwolfgwolf# # a po-file for Ruby-GetText-Package and Ruby on Rails. # # Copyright (C) 2005-2008 Masao Mutoh # # This file is distributed under the same license as the Ruby-GetText-Package. # # Ramon Salvadó , 2006-2008. # msgid "" msgstr "" "Project-Id-Version: gettext_activerecord 0.1.0\n" "POT-Creation-Date: 2009-02-09 01:48+0900\n" "PO-Revision-Date: 2005-12-17 14:33+0900\n" "Last-Translator: Ramon Salvadó \n" "Language-Team: Catalan\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" #: lib/gettext_activerecord/parser.rb:60 msgid "'%{file}' is not found." msgstr "" #: lib/gettext_activerecord/parser.rb:104 msgid "Ignored '%{file}'. Solve dependencies first." msgstr "" #: lib/gettext_activerecord/parser.rb:131 msgid "No database is available." msgstr "" #: lib/gettext_activerecord/parser.rb:167 msgid "rubygems are not found." msgstr "" #: lib/gettext_activerecord/active_record.rb:27 msgid "Validation failed: %{error_messages}" msgstr "La validació ha fallat: %{error_messages}" #: lib/gettext_activerecord/active_record.rb:218 msgid "%{attribute} is not included in the list" msgstr "%{attribute} no pertany a la llista de possibles valors" #: lib/gettext_activerecord/active_record.rb:219 msgid "%{attribute} is reserved" msgstr "%{attribute} no està permès" #: lib/gettext_activerecord/active_record.rb:220 msgid "%{attribute} is invalid" msgstr "%{attribute} no és vàlid" #: lib/gettext_activerecord/active_record.rb:221 msgid "%{attribute} doesn't match confirmation" msgstr "%{attribute} no té el mateix valor que la confirmació" #: lib/gettext_activerecord/active_record.rb:222 msgid "%{attribute} must be accepted" msgstr "%{attribute} ha de ser acceptat" #: lib/gettext_activerecord/active_record.rb:223 msgid "%{attribute} can't be empty" msgstr "%{attribute} no pot ser buit" #: lib/gettext_activerecord/active_record.rb:224 msgid "%{attribute} can't be blank" msgstr "%{attribute} no pot estar en blanc" #: lib/gettext_activerecord/active_record.rb:225 msgid "%{attribute} is too long (maximum is %{count} characters)" msgstr "%{attribute} és massa llarg (màxim de %{count} caràcters)" #: lib/gettext_activerecord/active_record.rb:226 msgid "%{attribute} is too short (minimum is %{count} characters)" msgstr "%{attribute} és massa curt (mínim de %{count} caràcters)" #: lib/gettext_activerecord/active_record.rb:227 msgid "%{attribute} is the wrong length (should be %{count} characters)" msgstr "%{attribute} té una llargària incorrecta (hauria de tenir %{count} caràcters)" #: lib/gettext_activerecord/active_record.rb:228 msgid "%{attribute} has already been taken" msgstr "%{attribute} ja existent" #: lib/gettext_activerecord/active_record.rb:229 msgid "%{attribute} is not a number" msgstr "%{attribute} no és un número" #: lib/gettext_activerecord/active_record.rb:230 msgid "%{attribute} must be greater than %{count}" msgstr "%{attribute} ha de ser més gran que %{count}" #: lib/gettext_activerecord/active_record.rb:231 msgid "%{attribute} must be greater than or equal to %{count}" msgstr "%{attribute} ha de ser més gran o igual a %{count}" #: lib/gettext_activerecord/active_record.rb:232 msgid "%{attribute} must be equal to %{count}" msgstr "%{attribute} ha de ser igual a %{count}" #: lib/gettext_activerecord/active_record.rb:233 msgid "%{attribute} must be less than %{count}" msgstr "%{attribute} ha de ser menor que %{count}" #: lib/gettext_activerecord/active_record.rb:234 msgid "%{attribute} must be less than or equal to %{count}" msgstr "%{attribute} ha de ser menor o igual que %{count}" #: lib/gettext_activerecord/active_record.rb:235 msgid "%{attribute} must be odd" msgstr "%{attribute} ha de ser senar" #: lib/gettext_activerecord/active_record.rb:236 msgid "%{attribute} must be even" msgstr "%{attribute} ha de ser parell" gettext-activerecord-2.1.0/po/bs/0000755000175000017500000000000011623722575015720 5ustar gwolfgwolfgettext-activerecord-2.1.0/po/bs/gettext_activerecord.po0000644000175000017500000000771211623722575022505 0ustar gwolfgwolf# translation of rails.po to Bosnian # # a po-file for Ruby-GetText-Package and Ruby on Rails. # # Copyright (C) 2005-2007 Masao Mutoh # # This file is distributed under the same license as the Ruby-GetText-Package. # # Sanjin Sehic , 2007. msgid "" msgstr "" "Project-Id-Version: gettext_activerecord 0.1.0\n" "POT-Creation-Date: 2009-02-09 01:48+0900\n" "PO-Revision-Date: 2007-06-26 19:02+0200\n" "Last-Translator: Sanjin Sehic \n" "Language-Team: Bosnian \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n" "%100>=20) ? 1 : 2;\n" "X-Generator: KBabel 1.11.4\n" #: lib/gettext_activerecord/parser.rb:60 msgid "'%{file}' is not found." msgstr "" #: lib/gettext_activerecord/parser.rb:104 msgid "Ignored '%{file}'. Solve dependencies first." msgstr "" #: lib/gettext_activerecord/parser.rb:131 msgid "No database is available." msgstr "" #: lib/gettext_activerecord/parser.rb:167 msgid "rubygems are not found." msgstr "" #: lib/gettext_activerecord/active_record.rb:27 msgid "Validation failed: %{error_messages}" msgstr "Provjera nije uspjela: %{error_messages}" #: lib/gettext_activerecord/active_record.rb:218 msgid "%{attribute} is not included in the list" msgstr "%{attribute} nije u listi" #: lib/gettext_activerecord/active_record.rb:219 msgid "%{attribute} is reserved" msgstr "%{attribute} je rezervisano" #: lib/gettext_activerecord/active_record.rb:220 msgid "%{attribute} is invalid" msgstr "%{attribute} je pogrešan" #: lib/gettext_activerecord/active_record.rb:221 msgid "%{attribute} doesn't match confirmation" msgstr "%{attribute} se ne podudara sa potvrdom" #: lib/gettext_activerecord/active_record.rb:222 msgid "%{attribute} must be accepted" msgstr "%{attribute} se mora prihvatiti" #: lib/gettext_activerecord/active_record.rb:223 msgid "%{attribute} can't be empty" msgstr "%{attribute} ne može biti prazan" #: lib/gettext_activerecord/active_record.rb:224 msgid "%{attribute} can't be blank" msgstr "%{attribute} ne može biti prazan" #: lib/gettext_activerecord/active_record.rb:225 msgid "%{attribute} is too long (maximum is %{count} characters)" msgstr "%{attribute} je previše dugo (maksimum je %{count} karaktera)" #: lib/gettext_activerecord/active_record.rb:226 msgid "%{attribute} is too short (minimum is %{count} characters)" msgstr "%{attribute} nije dovoljno dugo (maksimum je %{count} karaktera)" #: lib/gettext_activerecord/active_record.rb:227 msgid "%{attribute} is the wrong length (should be %{count} characters)" msgstr "%{attribute} je pogrešne dužine (trebalo bi biti %{count} karaktera)" #: lib/gettext_activerecord/active_record.rb:228 msgid "%{attribute} has already been taken" msgstr "%{attribute} se već koristi" #: lib/gettext_activerecord/active_record.rb:229 msgid "%{attribute} is not a number" msgstr "%{attribute} nije broj" #: lib/gettext_activerecord/active_record.rb:230 #, fuzzy msgid "%{attribute} must be greater than %{count}" msgstr "%{attribute} se mora prihvatiti" #: lib/gettext_activerecord/active_record.rb:231 #, fuzzy msgid "%{attribute} must be greater than or equal to %{count}" msgstr "%{attribute} se mora prihvatiti" #: lib/gettext_activerecord/active_record.rb:232 #, fuzzy msgid "%{attribute} must be equal to %{count}" msgstr "%{attribute} se mora prihvatiti" #: lib/gettext_activerecord/active_record.rb:233 #, fuzzy msgid "%{attribute} must be less than %{count}" msgstr "%{attribute} se mora prihvatiti" #: lib/gettext_activerecord/active_record.rb:234 #, fuzzy msgid "%{attribute} must be less than or equal to %{count}" msgstr "%{attribute} se mora prihvatiti" #: lib/gettext_activerecord/active_record.rb:235 #, fuzzy msgid "%{attribute} must be odd" msgstr "%{attribute} se mora prihvatiti" #: lib/gettext_activerecord/active_record.rb:236 #, fuzzy msgid "%{attribute} must be even" msgstr "%{attribute} se mora prihvatiti" gettext-activerecord-2.1.0/po/de/0000755000175000017500000000000011623722575015704 5ustar gwolfgwolfgettext-activerecord-2.1.0/po/de/gettext_activerecord.po0000644000175000017500000000757111623722575022474 0ustar gwolfgwolf# # a po-file for Ruby-GetText-Package and Ruby on Rails. # # Copyright (C) 2005-2008 Masao Mutoh # # This file is distributed under the same license as the Ruby-GetText-Package. # # Patrick Lenz, 2006,2007,2008 # Sasa Ebach, 2005 # msgid "" msgstr "" "Project-Id-Version: gettext_activerecord 0.1.0\n" "POT-Creation-Date: 2009-02-09 01:48+0900\n" "PO-Revision-Date: 2008-07-13 10:00W. Europe Standard Time\n" "Last-Translator: Patrick Lenz \n" "Language-Team: German\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" #: lib/gettext_activerecord/parser.rb:60 msgid "'%{file}' is not found." msgstr "" #: lib/gettext_activerecord/parser.rb:104 msgid "Ignored '%{file}'. Solve dependencies first." msgstr "" #: lib/gettext_activerecord/parser.rb:131 msgid "No database is available." msgstr "" #: lib/gettext_activerecord/parser.rb:167 msgid "rubygems are not found." msgstr "" #: lib/gettext_activerecord/active_record.rb:27 msgid "Validation failed: %{error_messages}" msgstr "Validierung fehlgeschlagen: %{error_messages}" #: lib/gettext_activerecord/active_record.rb:218 msgid "%{attribute} is not included in the list" msgstr "%{attribute} kommt nicht in der Liste vor" #: lib/gettext_activerecord/active_record.rb:219 msgid "%{attribute} is reserved" msgstr "%{attribute} ist reserviert" #: lib/gettext_activerecord/active_record.rb:220 msgid "%{attribute} is invalid" msgstr "%{attribute} ist ungültig" #: lib/gettext_activerecord/active_record.rb:221 msgid "%{attribute} doesn't match confirmation" msgstr "%{attribute} stimmt nicht mit der Bestätigung überein" #: lib/gettext_activerecord/active_record.rb:222 msgid "%{attribute} must be accepted" msgstr "%{attribute} muss akzeptiert werden" #: lib/gettext_activerecord/active_record.rb:223 msgid "%{attribute} can't be empty" msgstr "%{attribute} darf nicht leer sein" #: lib/gettext_activerecord/active_record.rb:224 msgid "%{attribute} can't be blank" msgstr "%{attribute} darf nicht leer sein" #: lib/gettext_activerecord/active_record.rb:225 msgid "%{attribute} is too long (maximum is %{count} characters)" msgstr "%{attribute} ist zu lang (max. %{count} Zeichen)" #: lib/gettext_activerecord/active_record.rb:226 msgid "%{attribute} is too short (minimum is %{count} characters)" msgstr "%{attribute} ist zu kurz (min. %{count} Zeichen)" #: lib/gettext_activerecord/active_record.rb:227 msgid "%{attribute} is the wrong length (should be %{count} characters)" msgstr "%{attribute} hat eine falsche Länge (sollte %{count} Zeichen lang sein)" #: lib/gettext_activerecord/active_record.rb:228 msgid "%{attribute} has already been taken" msgstr "%{attribute} existiert bereits" #: lib/gettext_activerecord/active_record.rb:229 msgid "%{attribute} is not a number" msgstr "%{attribute} ist keine Zahl" #: lib/gettext_activerecord/active_record.rb:230 msgid "%{attribute} must be greater than %{count}" msgstr "%{attribute} muss größer sein als %{count}" #: lib/gettext_activerecord/active_record.rb:231 msgid "%{attribute} must be greater than or equal to %{count}" msgstr "%{attribute} muss größer oder gleich %{count} sein" #: lib/gettext_activerecord/active_record.rb:232 msgid "%{attribute} must be equal to %{count}" msgstr "%{attribute} muss gleich %{count} sein" #: lib/gettext_activerecord/active_record.rb:233 msgid "%{attribute} must be less than %{count}" msgstr "%{attribute} muss kleiner sein als %{count}" #: lib/gettext_activerecord/active_record.rb:234 msgid "%{attribute} must be less than or equal to %{count}" msgstr "%{attribute} muss kleiner oder gleich %{count} sein" #: lib/gettext_activerecord/active_record.rb:235 msgid "%{attribute} must be odd" msgstr "%{attribute} muss ungerade sein" #: lib/gettext_activerecord/active_record.rb:236 msgid "%{attribute} must be even" msgstr "%{attribute} muss gerade sein" gettext-activerecord-2.1.0/po/cs/0000755000175000017500000000000011623722575015721 5ustar gwolfgwolfgettext-activerecord-2.1.0/po/cs/gettext_activerecord.po0000644000175000017500000000776711623722575022520 0ustar gwolfgwolf# # a po-file for Ruby-GetText-Package and Ruby on Rails. # # Copyright (C) 2005,2006 Masao Mutoh # This file is distributed under the same license as the Ruby-GetText-Package. # # Karel Miarka , 2005,2006. # msgid "" msgstr "" "Project-Id-Version: gettext_activerecord 0.1.0\n" "POT-Creation-Date: 2009-02-09 01:48+0900\n" "PO-Revision-Date: 2006-12-16 13:08+0100\n" "Last-Translator: Karel Miarka \n" "Language-Team: Czech\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%" "10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n" "X-Poedit-Language: Czech\n" #: lib/gettext_activerecord/parser.rb:60 msgid "'%{file}' is not found." msgstr "" #: lib/gettext_activerecord/parser.rb:104 msgid "Ignored '%{file}'. Solve dependencies first." msgstr "" #: lib/gettext_activerecord/parser.rb:131 msgid "No database is available." msgstr "" #: lib/gettext_activerecord/parser.rb:167 msgid "rubygems are not found." msgstr "" #: lib/gettext_activerecord/active_record.rb:27 msgid "Validation failed: %{error_messages}" msgstr "Výsledek validace: %{error_messages}" #: lib/gettext_activerecord/active_record.rb:218 msgid "%{attribute} is not included in the list" msgstr "%{attribute} není obsaženo v seznamu možností" #: lib/gettext_activerecord/active_record.rb:219 msgid "%{attribute} is reserved" msgstr "%{attribute} je rezervováno a nemůže být zvoleno" #: lib/gettext_activerecord/active_record.rb:220 msgid "%{attribute} is invalid" msgstr "%{attribute} je chybné" #: lib/gettext_activerecord/active_record.rb:221 msgid "%{attribute} doesn't match confirmation" msgstr "%{attribute} není shodné s potvrzením" #: lib/gettext_activerecord/active_record.rb:222 msgid "%{attribute} must be accepted" msgstr "%{attribute} musí být zaškrtnuto" #: lib/gettext_activerecord/active_record.rb:223 msgid "%{attribute} can't be empty" msgstr "%{attribute} musí být vyplněno" #: lib/gettext_activerecord/active_record.rb:224 msgid "%{attribute} can't be blank" msgstr "%{attribute} musí být vyplněno" #: lib/gettext_activerecord/active_record.rb:225 msgid "%{attribute} is too long (maximum is %{count} characters)" msgstr "%{attribute} je příliš dlouhé (maximum je %{count} znaků)" #: lib/gettext_activerecord/active_record.rb:226 msgid "%{attribute} is too short (minimum is %{count} characters)" msgstr "%{attribute} je příliš krátké (minimum je %{count} znaků)" #: lib/gettext_activerecord/active_record.rb:227 msgid "%{attribute} is the wrong length (should be %{count} characters)" msgstr "%{attribute} má nesprávnou délku (musí mít %{count} znaků)" #: lib/gettext_activerecord/active_record.rb:228 msgid "%{attribute} has already been taken" msgstr "%{attribute} je již použito" #: lib/gettext_activerecord/active_record.rb:229 msgid "%{attribute} is not a number" msgstr "%{attribute} není správné číslo" #: lib/gettext_activerecord/active_record.rb:230 #, fuzzy msgid "%{attribute} must be greater than %{count}" msgstr "%{attribute} musí být zaškrtnuto" #: lib/gettext_activerecord/active_record.rb:231 #, fuzzy msgid "%{attribute} must be greater than or equal to %{count}" msgstr "%{attribute} musí být zaškrtnuto" #: lib/gettext_activerecord/active_record.rb:232 #, fuzzy msgid "%{attribute} must be equal to %{count}" msgstr "%{attribute} musí být zaškrtnuto" #: lib/gettext_activerecord/active_record.rb:233 #, fuzzy msgid "%{attribute} must be less than %{count}" msgstr "%{attribute} musí být zaškrtnuto" #: lib/gettext_activerecord/active_record.rb:234 #, fuzzy msgid "%{attribute} must be less than or equal to %{count}" msgstr "%{attribute} musí být zaškrtnuto" #: lib/gettext_activerecord/active_record.rb:235 #, fuzzy msgid "%{attribute} must be odd" msgstr "%{attribute} musí být zaškrtnuto" #: lib/gettext_activerecord/active_record.rb:236 #, fuzzy msgid "%{attribute} must be even" msgstr "%{attribute} musí být zaškrtnuto" gettext-activerecord-2.1.0/po/el/0000755000175000017500000000000011623722575015714 5ustar gwolfgwolfgettext-activerecord-2.1.0/po/el/gettext_activerecord.po0000644000175000017500000001067011623722575022476 0ustar gwolfgwolf# a po-file for Ruby-GetText-Package and Ruby on Rails. # # Copyright (C) 2005-2007 Masao Mutoh # # This file is distributed under the same license as the Ruby-GetText-Package. # # damphyr , 2006-2008. # msgid "" msgstr "" "Project-Id-Version: gettext_activerecord 0.1.0\n" "POT-Creation-Date: 2009-02-09 01:48+0900\n" "PO-Revision-Date: 2006-01-06 19:50+0100\n" "Last-Translator: damphyr \n" "Language-Team: Greek\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" #: lib/gettext_activerecord/parser.rb:60 msgid "'%{file}' is not found." msgstr "" #: lib/gettext_activerecord/parser.rb:104 msgid "Ignored '%{file}'. Solve dependencies first." msgstr "" #: lib/gettext_activerecord/parser.rb:131 msgid "No database is available." msgstr "" #: lib/gettext_activerecord/parser.rb:167 msgid "rubygems are not found." msgstr "" #: lib/gettext_activerecord/active_record.rb:27 msgid "Validation failed: %{error_messages}" msgstr "Αποτυχία ελέγχου: %{error_messages}" #: lib/gettext_activerecord/active_record.rb:218 msgid "%{attribute} is not included in the list" msgstr "το %{attribute} δεν περιλαμβάνεται στη λίστα" #: lib/gettext_activerecord/active_record.rb:219 msgid "%{attribute} is reserved" msgstr "το %{attribute} είναι κατειλημένο" #: lib/gettext_activerecord/active_record.rb:220 msgid "%{attribute} is invalid" msgstr "το %{attribute} είναι άκυρο" #: lib/gettext_activerecord/active_record.rb:221 msgid "%{attribute} doesn't match confirmation" msgstr "το %{attribute} δεν ταιριάζει με την επιβεβαίωση του" #: lib/gettext_activerecord/active_record.rb:222 msgid "%{attribute} must be accepted" msgstr "το %{attribute} πρέπει να γίνει δεκτό" #: lib/gettext_activerecord/active_record.rb:223 msgid "%{attribute} can't be empty" msgstr "το %{attribute} δεν γίνεται να είναι κενό" #: lib/gettext_activerecord/active_record.rb:224 msgid "%{attribute} can't be blank" msgstr "το %{attribute} δεν γίνεται να είναι κενό" #: lib/gettext_activerecord/active_record.rb:225 msgid "%{attribute} is too long (maximum is %{count} characters)" msgstr "το %{attribute} είναι πολύ μακρύ (το μέγιστο είναι %{count} χαρακτήρες)" #: lib/gettext_activerecord/active_record.rb:226 msgid "%{attribute} is too short (minimum is %{count} characters)" msgstr "το %{attribute} είναι πολύ μικρό (το ελάχιστο είναι %{count} χαρακτήρες)" #: lib/gettext_activerecord/active_record.rb:227 msgid "%{attribute} is the wrong length (should be %{count} characters)" msgstr "το %{attribute} έχει το λάθος μήκος (πρέπει να είναι %{count} χαρακτήρες)" #: lib/gettext_activerecord/active_record.rb:228 msgid "%{attribute} has already been taken" msgstr "το %{attribute} είναι ήδη κατειλημένο" #: lib/gettext_activerecord/active_record.rb:229 msgid "%{attribute} is not a number" msgstr "το %{attribute} δεν είναι αριθμός" #: lib/gettext_activerecord/active_record.rb:230 msgid "%{attribute} must be greater than %{count}" msgstr "το %{attribute} πρέπει να μεγαλύτερο ή ίσο απο %{count}" #: lib/gettext_activerecord/active_record.rb:231 msgid "%{attribute} must be greater than or equal to %{count}" msgstr "το %{attribute} πρέπει να μεγαλύτερο ή ίσο απο %{count}" #: lib/gettext_activerecord/active_record.rb:232 msgid "%{attribute} must be equal to %{count}" msgstr "το %{attribute} πρέπει να μικρότερο ή ίσο με %{count}" #: lib/gettext_activerecord/active_record.rb:233 msgid "%{attribute} must be less than %{count}" msgstr "το %{attribute} πρέπει να μικρότερο ή ίσο απο %{count}" #: lib/gettext_activerecord/active_record.rb:234 msgid "%{attribute} must be less than or equal to %{count}" msgstr "το %{attribute} πρέπει να μικρότερο ή ίσο απο %{count}" #: lib/gettext_activerecord/active_record.rb:235 msgid "%{attribute} must be odd" msgstr "το %{attribute} πρέπει να περιτό" #: lib/gettext_activerecord/active_record.rb:236 msgid "%{attribute} must be even" msgstr "το %{attribute} πρέπει να είναι άρτιο" gettext-activerecord-2.1.0/po/eo/0000755000175000017500000000000011623722575015717 5ustar gwolfgwolfgettext-activerecord-2.1.0/po/eo/gettext_activerecord.po0000644000175000017500000000736511623722575022510 0ustar gwolfgwolf# # a po-file for Ruby-GetText-Package and Ruby on Rails. # # Copyright (C) 2005-2008 Masao Mutoh # # This file is distributed under the same license as the Ruby-GetText-Package. # # Malte Milatz , 2006-2008. # msgid "" msgstr "" "Project-Id-Version: gettext_activerecord 0.1.0\n" "POT-Creation-Date: 2009-02-09 01:48+0900\n" "PO-Revision-Date: 2007-06-26 11:42+0200\n" "Last-Translator: Malte Milatz \n" "Language-Team: Esperanto\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" #: lib/gettext_activerecord/parser.rb:60 msgid "'%{file}' is not found." msgstr "" #: lib/gettext_activerecord/parser.rb:104 msgid "Ignored '%{file}'. Solve dependencies first." msgstr "" #: lib/gettext_activerecord/parser.rb:131 msgid "No database is available." msgstr "" #: lib/gettext_activerecord/parser.rb:167 msgid "rubygems are not found." msgstr "" #: lib/gettext_activerecord/active_record.rb:27 msgid "Validation failed: %{error_messages}" msgstr "Erarkontrolo montris: %{error_messages}" #: lib/gettext_activerecord/active_record.rb:218 msgid "%{attribute} is not included in the list" msgstr "La listo ne enhavas \"%{attribute}\"" #: lib/gettext_activerecord/active_record.rb:219 msgid "%{attribute} is reserved" msgstr "%{attribute}: rezervita" #: lib/gettext_activerecord/active_record.rb:220 msgid "%{attribute} is invalid" msgstr "%{attribute}: nevalida" #: lib/gettext_activerecord/active_record.rb:221 msgid "%{attribute} doesn't match confirmation" msgstr "%{attribute} devias de la konfirmo" #: lib/gettext_activerecord/active_record.rb:222 msgid "%{attribute} must be accepted" msgstr "%{attribute} estu akceptata" #: lib/gettext_activerecord/active_record.rb:223 msgid "%{attribute} can't be empty" msgstr "%{attribute} ne estu malplena" #: lib/gettext_activerecord/active_record.rb:224 msgid "%{attribute} can't be blank" msgstr "%{attribute} ne estu malplena" #: lib/gettext_activerecord/active_record.rb:225 msgid "%{attribute} is too long (maximum is %{count} characters)" msgstr "%{attribute}: tro longa (maksimume %{count} signoj)" #: lib/gettext_activerecord/active_record.rb:226 msgid "%{attribute} is too short (minimum is %{count} characters)" msgstr "%{attribute}: tro mallonga (minimume %{count} signoj)" #: lib/gettext_activerecord/active_record.rb:227 msgid "%{attribute} is the wrong length (should be %{count} characters)" msgstr "%{attribute} estu %{count} signojn longa" #: lib/gettext_activerecord/active_record.rb:228 msgid "%{attribute} has already been taken" msgstr "%{attribute} jam preniĝis" #: lib/gettext_activerecord/active_record.rb:229 msgid "%{attribute} is not a number" msgstr "%{attribute} ne estas nombro" #: lib/gettext_activerecord/active_record.rb:230 msgid "%{attribute} must be greater than %{count}" msgstr "%{attribute} estu pli ol %{count}" #: lib/gettext_activerecord/active_record.rb:231 msgid "%{attribute} must be greater than or equal to %{count}" msgstr "%{attribute} estu pli ol, aŭ egala al, %{count}" #: lib/gettext_activerecord/active_record.rb:232 msgid "%{attribute} must be equal to %{count}" msgstr "%{attribute} estu egala al %{count}" #: lib/gettext_activerecord/active_record.rb:233 msgid "%{attribute} must be less than %{count}" msgstr "%{attribute} estu malpli ol %{count}" #: lib/gettext_activerecord/active_record.rb:234 msgid "%{attribute} must be less than or equal to %{count}" msgstr "%{attribute} estu malpli ol, aŭ egala al, %{count}" #: lib/gettext_activerecord/active_record.rb:235 msgid "%{attribute} must be odd" msgstr "%{attribute} estu malpara nombro" #: lib/gettext_activerecord/active_record.rb:236 msgid "%{attribute} must be even" msgstr "%{attribute} estu para nombro" gettext-activerecord-2.1.0/po/es/0000755000175000017500000000000011623722575015723 5ustar gwolfgwolfgettext-activerecord-2.1.0/po/es/gettext_activerecord.po0000644000175000017500000000756111623722575022512 0ustar gwolfgwolf# # a po-file for Ruby-GetText-Package and Ruby on Rails. # # Copyright (C) 2005-2008 Masao Mutoh # # This file is distributed under the same license as the Ruby-GetText-Package. # # David Espada , 2005-2008. # msgid "" msgstr "" "Project-Id-Version: gettext_activerecord 0.1.0\n" "POT-Creation-Date: 2009-02-09 01:48+0900\n" "PO-Revision-Date: 2005-12-17 14:33+0900\n" "Last-Translator: David Espada \n" "Language-Team: Spanish\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" #: lib/gettext_activerecord/parser.rb:60 msgid "'%{file}' is not found." msgstr "" #: lib/gettext_activerecord/parser.rb:104 msgid "Ignored '%{file}'. Solve dependencies first." msgstr "" #: lib/gettext_activerecord/parser.rb:131 msgid "No database is available." msgstr "" #: lib/gettext_activerecord/parser.rb:167 msgid "rubygems are not found." msgstr "" #: lib/gettext_activerecord/active_record.rb:27 msgid "Validation failed: %{error_messages}" msgstr "Ha fallado la validación: %{error_messages}" #: lib/gettext_activerecord/active_record.rb:218 msgid "%{attribute} is not included in the list" msgstr "%{attribute} no está incluido en la lista" #: lib/gettext_activerecord/active_record.rb:219 msgid "%{attribute} is reserved" msgstr "%{attribute} está reservado" #: lib/gettext_activerecord/active_record.rb:220 msgid "%{attribute} is invalid" msgstr "%{attribute} no es válido" #: lib/gettext_activerecord/active_record.rb:221 msgid "%{attribute} doesn't match confirmation" msgstr "%{attribute} no se ajusta a la confirmación" #: lib/gettext_activerecord/active_record.rb:222 msgid "%{attribute} must be accepted" msgstr "%{attribute} debe ser aceptado" #: lib/gettext_activerecord/active_record.rb:223 msgid "%{attribute} can't be empty" msgstr "%{attribute} no puede estar vacío" #: lib/gettext_activerecord/active_record.rb:224 msgid "%{attribute} can't be blank" msgstr "%{attribute} no puede estar en blanco" #: lib/gettext_activerecord/active_record.rb:225 msgid "%{attribute} is too long (maximum is %{count} characters)" msgstr "%{attribute} es demasiado largo (máximo de %{count} caracteres)" #: lib/gettext_activerecord/active_record.rb:226 msgid "%{attribute} is too short (minimum is %{count} characters)" msgstr "%{attribute} es demasiado corto (mínimo de %{count} caracteres)" #: lib/gettext_activerecord/active_record.rb:227 msgid "%{attribute} is the wrong length (should be %{count} characters)" msgstr "%{attribute} tiene longitud incorrecta (debería tener %{count} caracteres)" #: lib/gettext_activerecord/active_record.rb:228 msgid "%{attribute} has already been taken" msgstr "%{attribute} ya se ha tomado" #: lib/gettext_activerecord/active_record.rb:229 msgid "%{attribute} is not a number" msgstr "%{attribute} no es un número" #: lib/gettext_activerecord/active_record.rb:230 msgid "%{attribute} must be greater than %{count}" msgstr "%{attribute} debe ser mayor que %{count}" #: lib/gettext_activerecord/active_record.rb:231 msgid "%{attribute} must be greater than or equal to %{count}" msgstr "%{attribute} debe ser mayor o igual que %{count}" #: lib/gettext_activerecord/active_record.rb:232 msgid "%{attribute} must be equal to %{count}" msgstr "%{attribute} debe ser igual a %{count}" #: lib/gettext_activerecord/active_record.rb:233 msgid "%{attribute} must be less than %{count}" msgstr "%{attribute} debe ser menor que %{count}" #: lib/gettext_activerecord/active_record.rb:234 msgid "%{attribute} must be less than or equal to %{count}" msgstr "%{attribute} debe ser menor o igual que %{count}" #: lib/gettext_activerecord/active_record.rb:235 msgid "%{attribute} must be odd" msgstr "%{attribute} debe ser impar" #: lib/gettext_activerecord/active_record.rb:236 msgid "%{attribute} must be even" msgstr "%{attribute} debe ser par" gettext-activerecord-2.1.0/po/et/0000755000175000017500000000000011623722575015724 5ustar gwolfgwolfgettext-activerecord-2.1.0/po/et/gettext_activerecord.po0000644000175000017500000000761011623722575022506 0ustar gwolfgwolf# # a po-file for Ruby-GetText-Package and Ruby on Rails. # # Copyright (C) 2006,2007 Masao Mutoh # This file is distributed under the same license as the Ruby-GetText-Package. # # Erkki Eilonen , 2006,2007. # Tõlked on väga toored ning vajavad kindlasti ülevaatamist. # msgid "" msgstr "" "Project-Id-Version: gettext_activerecord 0.1.0\n" "POT-Creation-Date: 2009-02-09 01:48+0900\n" "PO-Revision-Date: 2008-08-07 14:00+0300\n" "Last-Translator: Erkki Eilonen \n" "Language-Team: Estonian\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=n != 1;\n" #: lib/gettext_activerecord/parser.rb:60 msgid "'%{file}' is not found." msgstr "" #: lib/gettext_activerecord/parser.rb:104 msgid "Ignored '%{file}'. Solve dependencies first." msgstr "" #: lib/gettext_activerecord/parser.rb:131 msgid "No database is available." msgstr "" #: lib/gettext_activerecord/parser.rb:167 msgid "rubygems are not found." msgstr "" #: lib/gettext_activerecord/active_record.rb:27 msgid "Validation failed: %{error_messages}" msgstr "Õigsuse kontroll ebaõnnestus: %{error_messages}" #: lib/gettext_activerecord/active_record.rb:218 msgid "%{attribute} is not included in the list" msgstr "%{attribute} pole lubatud" #: lib/gettext_activerecord/active_record.rb:219 msgid "%{attribute} is reserved" msgstr "%{attribute} pole lubatud" #: lib/gettext_activerecord/active_record.rb:220 msgid "%{attribute} is invalid" msgstr "%{attribute} on vigane" #: lib/gettext_activerecord/active_record.rb:221 msgid "%{attribute} doesn't match confirmation" msgstr "%{attribute} ei vasta kinnitusele" #: lib/gettext_activerecord/active_record.rb:222 msgid "%{attribute} must be accepted" msgstr "%{attribute} peab olema märgitud" #: lib/gettext_activerecord/active_record.rb:223 msgid "%{attribute} can't be empty" msgstr "%{attribute} ei tohi olla tühi" #: lib/gettext_activerecord/active_record.rb:224 msgid "%{attribute} can't be blank" msgstr "%{attribute} ei tohi olla tühi" #: lib/gettext_activerecord/active_record.rb:225 msgid "%{attribute} is too long (maximum is %{count} characters)" msgstr "%{attribute} on liiga pikk (lubatud kuni %{count} tähemärki)" #: lib/gettext_activerecord/active_record.rb:226 msgid "%{attribute} is too short (minimum is %{count} characters)" msgstr "%{attribute} on liiga lühike (peab olema vähemalt %{count} tähemärki)" #: lib/gettext_activerecord/active_record.rb:227 msgid "%{attribute} is the wrong length (should be %{count} characters)" msgstr "%{attribute} on vale pikkusega (peab olema %{count} tähemärki)" #: lib/gettext_activerecord/active_record.rb:228 msgid "%{attribute} has already been taken" msgstr "%{attribute} on juba olemas" #: lib/gettext_activerecord/active_record.rb:229 msgid "%{attribute} is not a number" msgstr "%{attribute} ei ole number" #: lib/gettext_activerecord/active_record.rb:230 msgid "%{attribute} must be greater than %{count}" msgstr "%{attribute} peab olema suurem kui %{count}" #: lib/gettext_activerecord/active_record.rb:231 msgid "%{attribute} must be greater than or equal to %{count}" msgstr "%{attribute} peab olema suurem või võrdne %{count}-ga" #: lib/gettext_activerecord/active_record.rb:232 msgid "%{attribute} must be equal to %{count}" msgstr "%{attribute} peab olema võrdne %{count}-ga" #: lib/gettext_activerecord/active_record.rb:233 msgid "%{attribute} must be less than %{count}" msgstr "%{attribute} peab väiksem kui %{count}" #: lib/gettext_activerecord/active_record.rb:234 msgid "%{attribute} must be less than or equal to %{count}" msgstr "%{attribute} peab olema väiksem või võrdne %{count}-ga" #: lib/gettext_activerecord/active_record.rb:235 msgid "%{attribute} must be odd" msgstr "%{attribute} peab paaritu" #: lib/gettext_activerecord/active_record.rb:236 msgid "%{attribute} must be even" msgstr "%{attribute} peab olema paaris" gettext-activerecord-2.1.0/po/fr/0000755000175000017500000000000011623722575015723 5ustar gwolfgwolfgettext-activerecord-2.1.0/po/fr/gettext_activerecord.po0000644000175000017500000000771111623722575022507 0ustar gwolfgwolf# # a po-file for Ruby-GetText-Package and Ruby on Rails. # # Copyright (C) 2005-2008 Masao Mutoh # # This file is distributed under the same license as the Ruby-GetText-Package. # # Vincent Isambart , 2008 # David Sulc , 2006,2007 # Laurent Sansonetti , 2005,2006 # msgid "" msgstr "" "Project-Id-Version: gettext_activerecord 0.1.0\n" "POT-Creation-Date: 2009-02-09 01:48+0900\n" "PO-Revision-Date: 2005-12-17 14:33+0900\n" "Last-Translator: Vincent Isambart\n" "Language-Team: French\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=n == 1 ? 0 : 1;\n" #: lib/gettext_activerecord/parser.rb:60 msgid "'%{file}' is not found." msgstr "" #: lib/gettext_activerecord/parser.rb:104 msgid "Ignored '%{file}'. Solve dependencies first." msgstr "" #: lib/gettext_activerecord/parser.rb:131 msgid "No database is available." msgstr "" #: lib/gettext_activerecord/parser.rb:167 msgid "rubygems are not found." msgstr "" #: lib/gettext_activerecord/active_record.rb:27 msgid "Validation failed: %{error_messages}" msgstr "Validation échouée: %{error_messages}" #: lib/gettext_activerecord/active_record.rb:218 msgid "%{attribute} is not included in the list" msgstr "%{attribute} n'est pas dans la liste" #: lib/gettext_activerecord/active_record.rb:219 msgid "%{attribute} is reserved" msgstr "%{attribute} est réservé" #: lib/gettext_activerecord/active_record.rb:220 msgid "%{attribute} is invalid" msgstr "%{attribute} est invalide" #: lib/gettext_activerecord/active_record.rb:221 msgid "%{attribute} doesn't match confirmation" msgstr "%{attribute} ne correspond pas à la confirmation" #: lib/gettext_activerecord/active_record.rb:222 msgid "%{attribute} must be accepted" msgstr "%{attribute} doit être accepté" #: lib/gettext_activerecord/active_record.rb:223 msgid "%{attribute} can't be empty" msgstr "%{attribute} ne peut être vide" #: lib/gettext_activerecord/active_record.rb:224 msgid "%{attribute} can't be blank" msgstr "%{attribute} ne peut être vierge" #: lib/gettext_activerecord/active_record.rb:225 msgid "%{attribute} is too long (maximum is %{count} characters)" msgstr "%{attribute} est trop long (max. %{count} caractères)" #: lib/gettext_activerecord/active_record.rb:226 msgid "%{attribute} is too short (minimum is %{count} characters)" msgstr "%{attribute} est trop court (min. %{count} caractères)" #: lib/gettext_activerecord/active_record.rb:227 msgid "%{attribute} is the wrong length (should be %{count} characters)" msgstr "%{attribute} a une longueur incompatible (devrait être de %{count} caractères)" #: lib/gettext_activerecord/active_record.rb:228 msgid "%{attribute} has already been taken" msgstr "%{attribute} est déjà pris" #: lib/gettext_activerecord/active_record.rb:229 msgid "%{attribute} is not a number" msgstr "%{attribute} n'est pas un nombre" #: lib/gettext_activerecord/active_record.rb:230 msgid "%{attribute} must be greater than %{count}" msgstr "%{attribute} doit être supérieur à %{count}" #: lib/gettext_activerecord/active_record.rb:231 msgid "%{attribute} must be greater than or equal to %{count}" msgstr "%{attribute} doit être supérieur ou égal à %{count}" #: lib/gettext_activerecord/active_record.rb:232 msgid "%{attribute} must be equal to %{count}" msgstr "%{attribute} doit être égal à %{count}" #: lib/gettext_activerecord/active_record.rb:233 msgid "%{attribute} must be less than %{count}" msgstr "%{attribute} doit être inférieur à %{count}" #: lib/gettext_activerecord/active_record.rb:234 msgid "%{attribute} must be less than or equal to %{count}" msgstr "%{attribute} doit être inférieur ou égal à %{count}" #: lib/gettext_activerecord/active_record.rb:235 msgid "%{attribute} must be odd" msgstr "%{attribute} doit être impair" #: lib/gettext_activerecord/active_record.rb:236 msgid "%{attribute} must be even" msgstr "%{attribute} doit être pair" gettext-activerecord-2.1.0/po/hr/0000755000175000017500000000000011623722575015725 5ustar gwolfgwolfgettext-activerecord-2.1.0/po/hr/gettext_activerecord.po0000644000175000017500000000771311623722575022513 0ustar gwolfgwolf# translation of rails.po to Bosnian # # a po-file for Ruby-GetText-Package and Ruby on Rails. # # Copyright (C) 2005-2007 Masao Mutoh # # This file is distributed under the same license as the Ruby-GetText-Package. # # Sanjin Sehic , 2007. msgid "" msgstr "" "Project-Id-Version: gettext_activerecord 0.1.0\n" "POT-Creation-Date: 2009-02-09 01:48+0900\n" "PO-Revision-Date: 2007-06-26 19:02+0200\n" "Last-Translator: Sanjin Sehic \n" "Language-Team: Croatian \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n" "%100>=20) ? 1 : 2;\n" "X-Generator: KBabel 1.11.4\n" #: lib/gettext_activerecord/parser.rb:60 msgid "'%{file}' is not found." msgstr "" #: lib/gettext_activerecord/parser.rb:104 msgid "Ignored '%{file}'. Solve dependencies first." msgstr "" #: lib/gettext_activerecord/parser.rb:131 msgid "No database is available." msgstr "" #: lib/gettext_activerecord/parser.rb:167 msgid "rubygems are not found." msgstr "" #: lib/gettext_activerecord/active_record.rb:27 msgid "Validation failed: %{error_messages}" msgstr "Provjera nije uspjela: %{error_messages}" #: lib/gettext_activerecord/active_record.rb:218 msgid "%{attribute} is not included in the list" msgstr "%{attribute} nije u listi" #: lib/gettext_activerecord/active_record.rb:219 msgid "%{attribute} is reserved" msgstr "%{attribute} je rezervisano" #: lib/gettext_activerecord/active_record.rb:220 msgid "%{attribute} is invalid" msgstr "%{attribute} je pogrešan" #: lib/gettext_activerecord/active_record.rb:221 msgid "%{attribute} doesn't match confirmation" msgstr "%{attribute} se ne podudara sa potvrdom" #: lib/gettext_activerecord/active_record.rb:222 msgid "%{attribute} must be accepted" msgstr "%{attribute} se mora prihvatiti" #: lib/gettext_activerecord/active_record.rb:223 msgid "%{attribute} can't be empty" msgstr "%{attribute} ne može biti prazan" #: lib/gettext_activerecord/active_record.rb:224 msgid "%{attribute} can't be blank" msgstr "%{attribute} ne može biti prazan" #: lib/gettext_activerecord/active_record.rb:225 msgid "%{attribute} is too long (maximum is %{count} characters)" msgstr "%{attribute} je previše dugo (maksimum je %{count} karaktera)" #: lib/gettext_activerecord/active_record.rb:226 msgid "%{attribute} is too short (minimum is %{count} characters)" msgstr "%{attribute} nije dovoljno dugo (maksimum je %{count} karaktera)" #: lib/gettext_activerecord/active_record.rb:227 msgid "%{attribute} is the wrong length (should be %{count} characters)" msgstr "%{attribute} je pogrešne dužine (trebalo bi biti %{count} karaktera)" #: lib/gettext_activerecord/active_record.rb:228 msgid "%{attribute} has already been taken" msgstr "%{attribute} se već koristi" #: lib/gettext_activerecord/active_record.rb:229 msgid "%{attribute} is not a number" msgstr "%{attribute} nije broj" #: lib/gettext_activerecord/active_record.rb:230 #, fuzzy msgid "%{attribute} must be greater than %{count}" msgstr "%{attribute} se mora prihvatiti" #: lib/gettext_activerecord/active_record.rb:231 #, fuzzy msgid "%{attribute} must be greater than or equal to %{count}" msgstr "%{attribute} se mora prihvatiti" #: lib/gettext_activerecord/active_record.rb:232 #, fuzzy msgid "%{attribute} must be equal to %{count}" msgstr "%{attribute} se mora prihvatiti" #: lib/gettext_activerecord/active_record.rb:233 #, fuzzy msgid "%{attribute} must be less than %{count}" msgstr "%{attribute} se mora prihvatiti" #: lib/gettext_activerecord/active_record.rb:234 #, fuzzy msgid "%{attribute} must be less than or equal to %{count}" msgstr "%{attribute} se mora prihvatiti" #: lib/gettext_activerecord/active_record.rb:235 #, fuzzy msgid "%{attribute} must be odd" msgstr "%{attribute} se mora prihvatiti" #: lib/gettext_activerecord/active_record.rb:236 #, fuzzy msgid "%{attribute} must be even" msgstr "%{attribute} se mora prihvatiti" gettext-activerecord-2.1.0/po/hu/0000755000175000017500000000000011623722575015730 5ustar gwolfgwolfgettext-activerecord-2.1.0/po/hu/gettext_activerecord.po0000644000175000017500000000760011623722575022511 0ustar gwolfgwolf# # a po-file for Ruby-GetText-Package and Ruby on Rails. # # Copyright (C) 2005-2008 Masao Mutoh # # This file is distributed under the same license as the Ruby-GetText-Package. # # Tamás Tompa , 2008. # msgid "" msgstr "" "Project-Id-Version: gettext_activerecord 0.1.0\n" "POT-Creation-Date: 2009-02-09 01:48+0900\n" "PO-Revision-Date: 2008-07-15 09:00+0900\n" "Last-Translator: Tamás Tompa \n" "Language-Team: Hungarian\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" #: lib/gettext_activerecord/parser.rb:60 msgid "'%{file}' is not found." msgstr "" #: lib/gettext_activerecord/parser.rb:104 msgid "Ignored '%{file}'. Solve dependencies first." msgstr "" #: lib/gettext_activerecord/parser.rb:131 msgid "No database is available." msgstr "" #: lib/gettext_activerecord/parser.rb:167 msgid "rubygems are not found." msgstr "" #: lib/gettext_activerecord/active_record.rb:27 msgid "Validation failed: %{error_messages}" msgstr "Hiba oka: %{error_messages}" #: lib/gettext_activerecord/active_record.rb:218 msgid "%{attribute} is not included in the list" msgstr "%{attribute} nem megfelelő" #: lib/gettext_activerecord/active_record.rb:219 msgid "%{attribute} is reserved" msgstr "%{attribute} fenntartott érték" #: lib/gettext_activerecord/active_record.rb:220 msgid "%{attribute} is invalid" msgstr "%{attribute} érvénytelen" #: lib/gettext_activerecord/active_record.rb:221 msgid "%{attribute} doesn't match confirmation" msgstr "%{attribute} megerősítés nem egyezik meg az eredetivel" #: lib/gettext_activerecord/active_record.rb:222 msgid "%{attribute} must be accepted" msgstr "%{attribute} értékét el kell fogadni" #: lib/gettext_activerecord/active_record.rb:223 msgid "%{attribute} can't be empty" msgstr "%{attribute} nem lehet üres" #: lib/gettext_activerecord/active_record.rb:224 msgid "%{attribute} can't be blank" msgstr "%{attribute} nem lehet üres" #: lib/gettext_activerecord/active_record.rb:225 msgid "%{attribute} is too long (maximum is %{count} characters)" msgstr "%{attribute} túl hosszú (maximum %{count} karakter lehet)" #: lib/gettext_activerecord/active_record.rb:226 msgid "%{attribute} is too short (minimum is %{count} characters)" msgstr "%{attribute} túl rövid (minimum %{count} karakter lehet)" #: lib/gettext_activerecord/active_record.rb:227 msgid "%{attribute} is the wrong length (should be %{count} characters)" msgstr "%{attribute} nem megfelelő hosszúságú (%{count} karakter lehet)" #: lib/gettext_activerecord/active_record.rb:228 msgid "%{attribute} has already been taken" msgstr "%{attribute} már egyszer szerepel" #: lib/gettext_activerecord/active_record.rb:229 msgid "%{attribute} is not a number" msgstr "%{attribute} nem szám" #: lib/gettext_activerecord/active_record.rb:230 msgid "%{attribute} must be greater than %{count}" msgstr "%{attribute} nagyobb kell legyen mint %{count}" #: lib/gettext_activerecord/active_record.rb:231 msgid "%{attribute} must be greater than or equal to %{count}" msgstr "%{attribute} legalább akkora kell legyen mint %{count}" #: lib/gettext_activerecord/active_record.rb:232 msgid "%{attribute} must be equal to %{count}" msgstr "%{attribute} értéke %{count} kell legyen" #: lib/gettext_activerecord/active_record.rb:233 msgid "%{attribute} must be less than %{count}" msgstr "%{attribute} kisebb kell legyen mint %{count}" #: lib/gettext_activerecord/active_record.rb:234 msgid "%{attribute} must be less than or equal to %{count}" msgstr "%{attribute} legfeljebb akkora kell legyen mint %{count}" #: lib/gettext_activerecord/active_record.rb:235 msgid "%{attribute} must be odd" msgstr "%{attribute} értékének páratlannak kell lennie" #: lib/gettext_activerecord/active_record.rb:236 msgid "%{attribute} must be even" msgstr "%{attribute} értékének párosnak kell lennie" gettext-activerecord-2.1.0/po/ja/0000755000175000017500000000000011623722575015706 5ustar gwolfgwolfgettext-activerecord-2.1.0/po/ja/gettext_activerecord.po0000644000175000017500000000776611623722575022504 0ustar gwolfgwolf# # a po-file for Ruby-GetText-Package and Ruby on Rails. # # Copyright (C) 2005-2008 Masao Mutoh # # This file is distributed under the same license as the Ruby-GetText-Package. # # Masao Mutoh, 2005-2008. # msgid "" msgstr "" "Project-Id-Version: gettext_activerecord 0.1.0\n" "POT-Creation-Date: 2009-02-09 01:48+0900\n" "PO-Revision-Date: 2008-07-13 15:10+0900\n" "Last-Translator: Masao Mutoh\n" "Language-Team: Japanese\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" #: lib/gettext_activerecord/parser.rb:60 msgid "'%{file}' is not found." msgstr "" #: lib/gettext_activerecord/parser.rb:104 msgid "Ignored '%{file}'. Solve dependencies first." msgstr "" #: lib/gettext_activerecord/parser.rb:131 msgid "No database is available." msgstr "" #: lib/gettext_activerecord/parser.rb:167 msgid "rubygems are not found." msgstr "" #: lib/gettext_activerecord/active_record.rb:27 msgid "Validation failed: %{error_messages}" msgstr "入力値が正しくありません。: %{error_messages}" #: lib/gettext_activerecord/active_record.rb:218 msgid "%{attribute} is not included in the list" msgstr "%{attribute}は一覧にありません。" #: lib/gettext_activerecord/active_record.rb:219 msgid "%{attribute} is reserved" msgstr "%{attribute}は予約されています。" #: lib/gettext_activerecord/active_record.rb:220 msgid "%{attribute} is invalid" msgstr "%{attribute}は不正な値です。" #: lib/gettext_activerecord/active_record.rb:221 msgid "%{attribute} doesn't match confirmation" msgstr "%{attribute}が一致しません。" #: lib/gettext_activerecord/active_record.rb:222 msgid "%{attribute} must be accepted" msgstr "%{attribute}を受諾してください。" #: lib/gettext_activerecord/active_record.rb:223 msgid "%{attribute} can't be empty" msgstr "%{attribute}を入力してください。" #: lib/gettext_activerecord/active_record.rb:224 msgid "%{attribute} can't be blank" msgstr "%{attribute}を入力してください。" #: lib/gettext_activerecord/active_record.rb:225 msgid "%{attribute} is too long (maximum is %{count} characters)" msgstr "%{attribute}は%{count}文字以内で入力してください。" #: lib/gettext_activerecord/active_record.rb:226 msgid "%{attribute} is too short (minimum is %{count} characters)" msgstr "%{attribute}は%{count}文字以上で入力してください。" #: lib/gettext_activerecord/active_record.rb:227 msgid "%{attribute} is the wrong length (should be %{count} characters)" msgstr "%{attribute}は%{count}文字で入力してください。" #: lib/gettext_activerecord/active_record.rb:228 msgid "%{attribute} has already been taken" msgstr "%{attribute}はすでに存在します。" #: lib/gettext_activerecord/active_record.rb:229 msgid "%{attribute} is not a number" msgstr "%{attribute}は数値で入力してください。" #: lib/gettext_activerecord/active_record.rb:230 msgid "%{attribute} must be greater than %{count}" msgstr "%{attribute}は%{count}より大きい値にしてください。" #: lib/gettext_activerecord/active_record.rb:231 msgid "%{attribute} must be greater than or equal to %{count}" msgstr "%{attribute}は%{count}以上の値にしてください。" #: lib/gettext_activerecord/active_record.rb:232 msgid "%{attribute} must be equal to %{count}" msgstr "%{attribute}は%{count}にしてください。" #: lib/gettext_activerecord/active_record.rb:233 msgid "%{attribute} must be less than %{count}" msgstr "%{attribute}は%{count}より小さい値にしてください。" #: lib/gettext_activerecord/active_record.rb:234 msgid "%{attribute} must be less than or equal to %{count}" msgstr "%{attribute}は%{count}以下の値にしてください。" #: lib/gettext_activerecord/active_record.rb:235 msgid "%{attribute} must be odd" msgstr "%{attribute}は奇数にしてください。" #: lib/gettext_activerecord/active_record.rb:236 msgid "%{attribute} must be even" msgstr "%{attribute}は偶数にしてください。" gettext-activerecord-2.1.0/po/it/0000755000175000017500000000000011623722575015730 5ustar gwolfgwolfgettext-activerecord-2.1.0/po/it/gettext_activerecord.po0000644000175000017500000000743711623722575022521 0ustar gwolfgwolf# # a po-file for Ruby-GetText-Package and Ruby on Rails. # # Copyright (C) 2006 Masao Mutoh # This file is distributed under the same license as the Ruby-GetText-Package. # # Marco Lazzeri , 2006. # msgid "" msgstr "" "Project-Id-Version: gettext_activerecord 0.1.0\n" "POT-Creation-Date: 2009-02-09 01:48+0900\n" "PO-Revision-Date: 2005-12-17 14:33+0900\n" "Last-Translator: Marco Lazzeri \n" "Language-Team: Italian\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" #: lib/gettext_activerecord/parser.rb:60 msgid "'%{file}' is not found." msgstr "" #: lib/gettext_activerecord/parser.rb:104 msgid "Ignored '%{file}'. Solve dependencies first." msgstr "" #: lib/gettext_activerecord/parser.rb:131 msgid "No database is available." msgstr "" #: lib/gettext_activerecord/parser.rb:167 msgid "rubygems are not found." msgstr "" #: lib/gettext_activerecord/active_record.rb:27 msgid "Validation failed: %{error_messages}" msgstr "" #: lib/gettext_activerecord/active_record.rb:218 msgid "%{attribute} is not included in the list" msgstr "%{attribute} non è incluso nella lista" #: lib/gettext_activerecord/active_record.rb:219 msgid "%{attribute} is reserved" msgstr "%{attribute} è una parola riservata" #: lib/gettext_activerecord/active_record.rb:220 msgid "%{attribute} is invalid" msgstr "%{attribute} non è valido" #: lib/gettext_activerecord/active_record.rb:221 msgid "%{attribute} doesn't match confirmation" msgstr "%{attribute} non corrisponde alla conferma" #: lib/gettext_activerecord/active_record.rb:222 msgid "%{attribute} must be accepted" msgstr "%{} dev'essere accettato" #: lib/gettext_activerecord/active_record.rb:223 msgid "%{attribute} can't be empty" msgstr "%{attribute} non può essere vuoto" #: lib/gettext_activerecord/active_record.rb:224 msgid "%{attribute} can't be blank" msgstr "%{attribute} non può essere vuoto" #: lib/gettext_activerecord/active_record.rb:225 msgid "%{attribute} is too long (maximum is %{count} characters)" msgstr "%{attribute} è troppo lungo (la lunghezza massima è di %{count} caratteri)" #: lib/gettext_activerecord/active_record.rb:226 msgid "%{attribute} is too short (minimum is %{count} characters)" msgstr "%{attribute} è troppo corto (la lunghezza minima è di %{count} caratetteri)" #: lib/gettext_activerecord/active_record.rb:227 msgid "%{attribute} is the wrong length (should be %{count} characters)" msgstr "%{attribute} lunghezza errata (deve essere lungo %{count} caratteri)" #: lib/gettext_activerecord/active_record.rb:228 msgid "%{attribute} has already been taken" msgstr "%{attribute} è già in uso" #: lib/gettext_activerecord/active_record.rb:229 msgid "%{attribute} is not a number" msgstr "%{attribute} non è un numero" #: lib/gettext_activerecord/active_record.rb:230 #, fuzzy msgid "%{attribute} must be greater than %{count}" msgstr "%{} dev'essere accettato" #: lib/gettext_activerecord/active_record.rb:231 #, fuzzy msgid "%{attribute} must be greater than or equal to %{count}" msgstr "%{} dev'essere accettato" #: lib/gettext_activerecord/active_record.rb:232 #, fuzzy msgid "%{attribute} must be equal to %{count}" msgstr "%{} dev'essere accettato" #: lib/gettext_activerecord/active_record.rb:233 #, fuzzy msgid "%{attribute} must be less than %{count}" msgstr "%{} dev'essere accettato" #: lib/gettext_activerecord/active_record.rb:234 #, fuzzy msgid "%{attribute} must be less than or equal to %{count}" msgstr "%{} dev'essere accettato" #: lib/gettext_activerecord/active_record.rb:235 #, fuzzy msgid "%{attribute} must be odd" msgstr "%{} dev'essere accettato" #: lib/gettext_activerecord/active_record.rb:236 #, fuzzy msgid "%{attribute} must be even" msgstr "%{} dev'essere accettato" gettext-activerecord-2.1.0/po/ko/0000755000175000017500000000000011623722575015725 5ustar gwolfgwolfgettext-activerecord-2.1.0/po/ko/gettext_activerecord.po0000644000175000017500000001057611623722575022514 0ustar gwolfgwolf# # a po-file for Ruby-GetText-Package and Ruby on Rails. # # Copyright (C) 2005,2006 Masao Mutoh # # This file is distributed under the same license as the Ruby-GetText-Package. # # Gyoung-Yoon Noh , 2006. # msgid "" msgstr "" "Project-Id-Version: gettext_activerecord 0.1.0\n" "POT-Creation-Date: 2009-02-09 01:48+0900\n" "PO-Revision-Date: 2006-07-10 02:00+0900\n" "Last-Translator: Gyoung-Yoon Noh \n" "Language-Team: Korean\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=1; plural=0;\n" #: lib/gettext_activerecord/parser.rb:60 msgid "'%{file}' is not found." msgstr "" #: lib/gettext_activerecord/parser.rb:104 msgid "Ignored '%{file}'. Solve dependencies first." msgstr "" #: lib/gettext_activerecord/parser.rb:131 msgid "No database is available." msgstr "" #: lib/gettext_activerecord/parser.rb:167 msgid "rubygems are not found." msgstr "" #: lib/gettext_activerecord/active_record.rb:27 msgid "Validation failed: %{error_messages}" msgstr "유효하지 않은 입력입니다: %{error_messages}" #: lib/gettext_activerecord/active_record.rb:218 msgid "%{attribute} is not included in the list" msgstr "%{attribute}은(는) 허용 가능한 목록에 포함되어 있지 않습니다" #: lib/gettext_activerecord/active_record.rb:219 msgid "%{attribute} is reserved" msgstr "%{attribute}은(는) 예약되어 있기 때문에 사용할 수 없습니다" #: lib/gettext_activerecord/active_record.rb:220 msgid "%{attribute} is invalid" msgstr "%{attribute}은(는) 유효하지 않은 형식입니다" #: lib/gettext_activerecord/active_record.rb:221 msgid "%{attribute} doesn't match confirmation" msgstr "입력 확인을 위한 %{attribute}이(가) 서로 일치하지 않습니다" #: lib/gettext_activerecord/active_record.rb:222 msgid "%{attribute} must be accepted" msgstr "%{attribute}은(는) 반드시 확인해야 합니다" #: lib/gettext_activerecord/active_record.rb:223 msgid "%{attribute} can't be empty" msgstr "%{attribute}이(가) 비어 있습니다. 값을 입력해야 합니다" #: lib/gettext_activerecord/active_record.rb:224 msgid "%{attribute} can't be blank" msgstr "%{attribute}이(가) 비어 있습니다. 값을 입력해야 합니다" #: lib/gettext_activerecord/active_record.rb:225 msgid "%{attribute} is too long (maximum is %{count} characters)" msgstr "%{attribute}의 문자 수가 최대 허용 문자 수 %{count}자 보다 많습니다" #: lib/gettext_activerecord/active_record.rb:226 msgid "%{attribute} is too short (minimum is %{count} characters)" msgstr "%{attribute}의 문자 수가 최소 허용 문자 수 %{count}자 보다 작습니다" #: lib/gettext_activerecord/active_record.rb:227 msgid "%{attribute} is the wrong length (should be %{count} characters)" msgstr "%{attribute}의 문자 수가 잘못되었습니다. %{count} 문자여야 합니다" #: lib/gettext_activerecord/active_record.rb:228 msgid "%{attribute} has already been taken" msgstr "중복되는 값을 사용했습니다. 다른 %{attribute}을(를) 사용해주십시요" #: lib/gettext_activerecord/active_record.rb:229 msgid "%{attribute} is not a number" msgstr "%{attribute}은(는) 숫자가 아닙니다" #: lib/gettext_activerecord/active_record.rb:230 #, fuzzy msgid "%{attribute} must be greater than %{count}" msgstr "%{attribute}은(는) 반드시 확인해야 합니다" #: lib/gettext_activerecord/active_record.rb:231 #, fuzzy msgid "%{attribute} must be greater than or equal to %{count}" msgstr "%{attribute}은(는) 반드시 확인해야 합니다" #: lib/gettext_activerecord/active_record.rb:232 #, fuzzy msgid "%{attribute} must be equal to %{count}" msgstr "%{attribute}은(는) 반드시 확인해야 합니다" #: lib/gettext_activerecord/active_record.rb:233 #, fuzzy msgid "%{attribute} must be less than %{count}" msgstr "%{attribute}은(는) 반드시 확인해야 합니다" #: lib/gettext_activerecord/active_record.rb:234 #, fuzzy msgid "%{attribute} must be less than or equal to %{count}" msgstr "%{attribute}은(는) 반드시 확인해야 합니다" #: lib/gettext_activerecord/active_record.rb:235 #, fuzzy msgid "%{attribute} must be odd" msgstr "%{attribute}은(는) 반드시 확인해야 합니다" #: lib/gettext_activerecord/active_record.rb:236 #, fuzzy msgid "%{attribute} must be even" msgstr "%{attribute}은(는) 반드시 확인해야 합니다" gettext-activerecord-2.1.0/po/lv/0000755000175000017500000000000011623722575015735 5ustar gwolfgwolfgettext-activerecord-2.1.0/po/lv/gettext_activerecord.po0000644000175000017500000000756011623722575022523 0ustar gwolfgwolf# # a po-file for Ruby-GetText-Package and Ruby on Rails. # # Copyright (C) 2005,2006 Masao Mutoh # This file is distributed under the same license as the Ruby-GetText-Package. # # Aivars Akots, 2008. # msgid "" msgstr "" "Project-Id-Version: gettext_activerecord 0.1.0\n" "POT-Creation-Date: 2009-02-09 01:48+0900\n" "PO-Revision-Date: 2008-07-25 09:37+0200\n" "Last-Translator: Aivars Akots \n" "Language-Team: Latvian\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n != 0 ? 1 : " "2);\n" #: lib/gettext_activerecord/parser.rb:60 msgid "'%{file}' is not found." msgstr "" #: lib/gettext_activerecord/parser.rb:104 msgid "Ignored '%{file}'. Solve dependencies first." msgstr "" #: lib/gettext_activerecord/parser.rb:131 msgid "No database is available." msgstr "" #: lib/gettext_activerecord/parser.rb:167 msgid "rubygems are not found." msgstr "" #: lib/gettext_activerecord/active_record.rb:27 msgid "Validation failed: %{error_messages}" msgstr "Validācija neveiksmīga: %{error_messages}" #: lib/gettext_activerecord/active_record.rb:218 msgid "%{attribute} is not included in the list" msgstr "%{attribute} nav iekļauts sarakstā" #: lib/gettext_activerecord/active_record.rb:219 msgid "%{attribute} is reserved" msgstr "%{attribute} ir rezervēts" #: lib/gettext_activerecord/active_record.rb:220 msgid "%{attribute} is invalid" msgstr "%{attribute} ir nepareizi noformēts" #: lib/gettext_activerecord/active_record.rb:221 msgid "%{attribute} doesn't match confirmation" msgstr "%{attribute} nesakrīt ar apstiprinājumu" #: lib/gettext_activerecord/active_record.rb:222 msgid "%{attribute} must be accepted" msgstr "%{attribute} ir jāakceptē" #: lib/gettext_activerecord/active_record.rb:223 msgid "%{attribute} can't be empty" msgstr "%{attribute} nevar būt tukšs" #: lib/gettext_activerecord/active_record.rb:224 msgid "%{attribute} can't be blank" msgstr "%{attribute} ir obligāti jāaizpilda" #: lib/gettext_activerecord/active_record.rb:225 msgid "%{attribute} is too long (maximum is %{count} characters)" msgstr "%{attribute} ir pārāk garšs (maksimums %{count} simboli)" #: lib/gettext_activerecord/active_record.rb:226 msgid "%{attribute} is too short (minimum is %{count} characters)" msgstr "%{attribute} ir pārāk īss (minimums %{count} simboli)" #: lib/gettext_activerecord/active_record.rb:227 msgid "%{attribute} is the wrong length (should be %{count} characters)" msgstr "%{attribute} ir nepareiza garuma (jābūt %{count} simboliem)" #: lib/gettext_activerecord/active_record.rb:228 msgid "%{attribute} has already been taken" msgstr "%{attribute} ir jau aizņemts" #: lib/gettext_activerecord/active_record.rb:229 msgid "%{attribute} is not a number" msgstr "%{attribute} nav skaitlis" #: lib/gettext_activerecord/active_record.rb:230 msgid "%{attribute} must be greater than %{count}" msgstr "%{attribute} jābūt lielākam kā %{count}" #: lib/gettext_activerecord/active_record.rb:231 msgid "%{attribute} must be greater than or equal to %{count}" msgstr "%{attribute} jābūt lielākam vai vienādam ar %{count}" #: lib/gettext_activerecord/active_record.rb:232 msgid "%{attribute} must be equal to %{count}" msgstr "%{attribute} jābūt vienādam ar %{count}" #: lib/gettext_activerecord/active_record.rb:233 msgid "%{attribute} must be less than %{count}" msgstr "%{attribute} jābūt mazākam kā %{count}" #: lib/gettext_activerecord/active_record.rb:234 msgid "%{attribute} must be less than or equal to %{count}" msgstr "%{attribute} jābūt mazākam vai vienādam ar %{count}" #: lib/gettext_activerecord/active_record.rb:235 msgid "%{attribute} must be odd" msgstr "%{attribute} jābūt nepāra skaitlim" #: lib/gettext_activerecord/active_record.rb:236 msgid "%{attribute} must be even" msgstr "%{attribute} jābūt pāra skaitlim" gettext-activerecord-2.1.0/po/nb/0000755000175000017500000000000011623722575015713 5ustar gwolfgwolfgettext-activerecord-2.1.0/po/nb/gettext_activerecord.po0000644000175000017500000000753511623722575022503 0ustar gwolfgwolf# a po-file for Ruby-GetText-Package and Ruby on Rails. # # Copyright (C) 2005-2008 Masao Mutoh # # This file is distributed under the same license as the Ruby-GetText-Package. # # Runar Ingebrigtsen , 2007, 2008. # # msgid "" msgstr "" "Project-Id-Version: gettext_activerecord 0.1.0\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2009-02-09 01:48+0900\n" "PO-Revision-Date: 2008-07-14 16:16+0200\n" "Last-Translator: Runar Ingebrigtsen \n" "Language-Team: Norwegian/Bokmaal \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" #: lib/gettext_activerecord/parser.rb:60 msgid "'%{file}' is not found." msgstr "" #: lib/gettext_activerecord/parser.rb:104 msgid "Ignored '%{file}'. Solve dependencies first." msgstr "" #: lib/gettext_activerecord/parser.rb:131 msgid "No database is available." msgstr "" #: lib/gettext_activerecord/parser.rb:167 msgid "rubygems are not found." msgstr "" #: lib/gettext_activerecord/active_record.rb:27 msgid "Validation failed: %{error_messages}" msgstr "Validering feilet: %{error_messages}" #: lib/gettext_activerecord/active_record.rb:218 msgid "%{attribute} is not included in the list" msgstr "%{attribute} er ikke inkludert i listen" #: lib/gettext_activerecord/active_record.rb:219 msgid "%{attribute} is reserved" msgstr "%{attribute} er reservert" #: lib/gettext_activerecord/active_record.rb:220 msgid "%{attribute} is invalid" msgstr "%{attribute} er ugyldig" #: lib/gettext_activerecord/active_record.rb:221 msgid "%{attribute} doesn't match confirmation" msgstr "%{attribute} stemmer ikke med bekreftelsen" #: lib/gettext_activerecord/active_record.rb:222 msgid "%{attribute} must be accepted" msgstr "%{attribute} må godtas" #: lib/gettext_activerecord/active_record.rb:223 msgid "%{attribute} can't be empty" msgstr "%{attribute} kan ikke være tom" #: lib/gettext_activerecord/active_record.rb:224 msgid "%{attribute} can't be blank" msgstr "%{attribute} kan ikke være blank" #: lib/gettext_activerecord/active_record.rb:225 msgid "%{attribute} is too long (maximum is %{count} characters)" msgstr "%{attribute} er for lang (maks %{count} tegn)" #: lib/gettext_activerecord/active_record.rb:226 msgid "%{attribute} is too short (minimum is %{count} characters)" msgstr "%{attribute} er for kort (minimum %{count} tegn)" #: lib/gettext_activerecord/active_record.rb:227 msgid "%{attribute} is the wrong length (should be %{count} characters)" msgstr "%{attribute} er har gal lengde (skulle vært %{count} tegn)" #: lib/gettext_activerecord/active_record.rb:228 msgid "%{attribute} has already been taken" msgstr "%{attribute} er allerede i bruk" #: lib/gettext_activerecord/active_record.rb:229 msgid "%{attribute} is not a number" msgstr "%{attribute} er ikke et tall" #: lib/gettext_activerecord/active_record.rb:230 msgid "%{attribute} must be greater than %{count}" msgstr "%{attribute} må være større enn %{count}" #: lib/gettext_activerecord/active_record.rb:231 msgid "%{attribute} must be greater than or equal to %{count}" msgstr "%{attribute} må være større enn eller lik %{count}" #: lib/gettext_activerecord/active_record.rb:232 msgid "%{attribute} must be equal to %{count}" msgstr "%{attribute} må være lik %{count}" #: lib/gettext_activerecord/active_record.rb:233 msgid "%{attribute} must be less than %{count}" msgstr "%{attribute} må være mindre enn %{count}" #: lib/gettext_activerecord/active_record.rb:234 msgid "%{attribute} must be less than or equal to %{count}" msgstr "%{attribute} må være mindre enn eller lik %{count}" #: lib/gettext_activerecord/active_record.rb:235 msgid "%{attribute} must be odd" msgstr "%{attribute} må være ulik" #: lib/gettext_activerecord/active_record.rb:236 msgid "%{attribute} must be even" msgstr "%{attribute} må være lik" gettext-activerecord-2.1.0/po/nl/0000755000175000017500000000000011623722575015725 5ustar gwolfgwolfgettext-activerecord-2.1.0/po/nl/gettext_activerecord.po0000644000175000017500000001012111623722575022476 0ustar gwolfgwolf# # a po-file for Ruby-GetText-Package and Ruby on Rails. # # Copyright (C) 2005-2007 Masao Mutoh # # This file is distributed under the same license as the Ruby-GetText-Package. # # Bart ten Brinke , 2009. # Menno Jonkers , 2005-2007. # msgid "" msgstr "" "Project-Id-Version: gettext_activerecord 0.1.0\n" "POT-Creation-Date: 2009-02-09 01:48+0900\n" "PO-Revision-Date: 2007-06-26 20:52+0100\n" "Last-Translator: Bart ten Brinke \n" "Language-Team: Dutch \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=n != 1;\n" #: lib/gettext_activerecord/parser.rb:60 msgid "'%{file}' is not found." msgstr "Kan het bestand '%{file}' niet vinden." #: lib/gettext_activerecord/parser.rb:104 msgid "Ignored '%{file}'. Solve dependencies first." msgstr "Bestand '%{file}' wordt overgeslagen. Dependency probleem." #: lib/gettext_activerecord/parser.rb:131 msgid "No database is available." msgstr "Er is geen database beschikbaar." #: lib/gettext_activerecord/parser.rb:167 msgid "rubygems are not found." msgstr "Kan rubygems niet vinden." #: lib/gettext_activerecord/active_record.rb:27 msgid "Validation failed: %{error_messages}" msgstr "Validatie mislukt: %{error_messages}" #: lib/gettext_activerecord/active_record.rb:218 msgid "%{attribute} is not included in the list" msgstr "%{attribute} komt niet voor in de lijst" #: lib/gettext_activerecord/active_record.rb:219 msgid "%{attribute} is reserved" msgstr "%{attribute} mag niet worden gebruikt" #: lib/gettext_activerecord/active_record.rb:220 msgid "%{attribute} is invalid" msgstr "%{attribute} is ongeldig" #: lib/gettext_activerecord/active_record.rb:221 msgid "%{attribute} doesn't match confirmation" msgstr "%{attribute} komt niet overeen met de bevestiging" #: lib/gettext_activerecord/active_record.rb:222 msgid "%{attribute} must be accepted" msgstr "%{attribute} moet geaccepteerd worden" #: lib/gettext_activerecord/active_record.rb:223 msgid "%{attribute} can't be empty" msgstr "%{attribute} mag niet leeg zijn" #: lib/gettext_activerecord/active_record.rb:224 msgid "%{attribute} can't be blank" msgstr "%{attribute} mag niet leeg zijn" #: lib/gettext_activerecord/active_record.rb:225 msgid "%{attribute} is too long (maximum is %{count} characters)" msgstr "%{attribute} is te lang (maximaal %{count} tekens)" #: lib/gettext_activerecord/active_record.rb:226 msgid "%{attribute} is too short (minimum is %{count} characters)" msgstr "%{attribute} is te kort (minimaal %{count} tekens)" #: lib/gettext_activerecord/active_record.rb:227 msgid "%{attribute} is the wrong length (should be %{count} characters)" msgstr "%{attribute} heeft een onjuiste lengte (dit moet %{count} tekens zijn)" #: lib/gettext_activerecord/active_record.rb:228 msgid "%{attribute} has already been taken" msgstr "%{attribute} is al in gebruik" #: lib/gettext_activerecord/active_record.rb:229 msgid "%{attribute} is not a number" msgstr "%{attribute} is geen getal" #: lib/gettext_activerecord/active_record.rb:230 msgid "%{attribute} must be greater than %{count}" msgstr "%{attribute} moet groter zijn dan %{count}" #: lib/gettext_activerecord/active_record.rb:231 msgid "%{attribute} must be greater than or equal to %{count}" msgstr "%{attribute} moet groter of gelijk zijn aan %{count}" #: lib/gettext_activerecord/active_record.rb:232 msgid "%{attribute} must be equal to %{count}" msgstr "%{attribute} moet gelijk zijn aan %{count}" #: lib/gettext_activerecord/active_record.rb:233 msgid "%{attribute} must be less than %{count}" msgstr "%{attribute} moet minder zijn dan %{count}" #: lib/gettext_activerecord/active_record.rb:234 msgid "%{attribute} must be less than or equal to %{count}" msgstr "%{attribute} moet minder dan of gelijk zijn aan %{count}" #: lib/gettext_activerecord/active_record.rb:235 msgid "%{attribute} must be odd" msgstr "%{attribute} moet een oneven aantal zijn" #: lib/gettext_activerecord/active_record.rb:236 msgid "%{attribute} must be even" msgstr "%{attribute} moet even aantal zijn" gettext-activerecord-2.1.0/po/ru/0000755000175000017500000000000011623722575015742 5ustar gwolfgwolfgettext-activerecord-2.1.0/po/ru/gettext_activerecord.po0000644000175000017500000001065211623722575022524 0ustar gwolfgwolf# translation of rails.po to Russian # a po-file for Ruby-GetText-Package and Ruby on Rails. # # Copyright (C) 2005-2008 Masao Mutoh # # This file is distributed under the same license as the Ruby-GetText-Package. # # Yuri Kozlov , 2006-2008. msgid "" msgstr "" "Project-Id-Version: gettext_activerecord 0.1.0\n" "POT-Creation-Date: 2009-02-09 01:48+0900\n" "PO-Revision-Date: 2008-07-13 10:03+0400\n" "Last-Translator: Yuri Kozlov \n" "Language-Team: Russian \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%" "10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n" "X-Generator: KBabel 1.11.4\n" #: lib/gettext_activerecord/parser.rb:60 msgid "'%{file}' is not found." msgstr "" #: lib/gettext_activerecord/parser.rb:104 msgid "Ignored '%{file}'. Solve dependencies first." msgstr "" #: lib/gettext_activerecord/parser.rb:131 msgid "No database is available." msgstr "" #: lib/gettext_activerecord/parser.rb:167 msgid "rubygems are not found." msgstr "" #: lib/gettext_activerecord/active_record.rb:27 msgid "Validation failed: %{error_messages}" msgstr "Проверка правильности не пройдена: %{error_messages}" #: lib/gettext_activerecord/active_record.rb:218 msgid "%{attribute} is not included in the list" msgstr "%{attribute} не включёно в список" #: lib/gettext_activerecord/active_record.rb:219 msgid "%{attribute} is reserved" msgstr "%{attribute} зарезервировано" #: lib/gettext_activerecord/active_record.rb:220 msgid "%{attribute} is invalid" msgstr "%{attribute} недействительно" #: lib/gettext_activerecord/active_record.rb:221 msgid "%{attribute} doesn't match confirmation" msgstr "%{attribute} не подтверждено" #: lib/gettext_activerecord/active_record.rb:222 msgid "%{attribute} must be accepted" msgstr "%{attribute} должно быть принято" #: lib/gettext_activerecord/active_record.rb:223 msgid "%{attribute} can't be empty" msgstr "%{attribute} не может быть пусто" #: lib/gettext_activerecord/active_record.rb:224 msgid "%{attribute} can't be blank" msgstr "%{attribute} не может быть пробелом" #: lib/gettext_activerecord/active_record.rb:225 msgid "%{attribute} is too long (maximum is %{count} characters)" msgstr "%{attribute} слишком длинно (максимально возможно %{count} символов)" #: lib/gettext_activerecord/active_record.rb:226 msgid "%{attribute} is too short (minimum is %{count} characters)" msgstr "%{attribute} слишком коротко (должно быть минимум %{count} символов)" #: lib/gettext_activerecord/active_record.rb:227 msgid "%{attribute} is the wrong length (should be %{count} characters)" msgstr "%{attribute} неправильной длины (должно быть %{count} символов)" #: lib/gettext_activerecord/active_record.rb:228 msgid "%{attribute} has already been taken" msgstr "%{attribute} уже было взято" #: lib/gettext_activerecord/active_record.rb:229 msgid "%{attribute} is not a number" msgstr "Ожидается число: %{attribute}" #: lib/gettext_activerecord/active_record.rb:230 msgid "%{attribute} must be greater than %{count}" msgstr "%{attribute} должно быть больше %{count}" #: lib/gettext_activerecord/active_record.rb:231 msgid "%{attribute} must be greater than or equal to %{count}" msgstr "%{attribute} должно быть больше или равно %{count}" #: lib/gettext_activerecord/active_record.rb:232 msgid "%{attribute} must be equal to %{count}" msgstr "%{attribute} должно быть равно %{count}" #: lib/gettext_activerecord/active_record.rb:233 msgid "%{attribute} must be less than %{count}" msgstr "%{attribute} должно быть меньше %{count}" #: lib/gettext_activerecord/active_record.rb:234 msgid "%{attribute} must be less than or equal to %{count}" msgstr "%{attribute} должно быть меньше или равно %{count}" #: lib/gettext_activerecord/active_record.rb:235 msgid "%{attribute} must be odd" msgstr "%{attribute} должно быть нечётным" #: lib/gettext_activerecord/active_record.rb:236 msgid "%{attribute} must be even" msgstr "%{attribute} должно быть чётным" gettext-activerecord-2.1.0/po/sr/0000755000175000017500000000000011623722575015740 5ustar gwolfgwolfgettext-activerecord-2.1.0/po/sr/gettext_activerecord.po0000644000175000017500000001042711623722575022522 0ustar gwolfgwolf# # a po-file for Ruby-GetText-Package and Ruby on Rails. # # Copyright (C) 2005-2008 Masao Mutoh # # This file is distributed under the same license as the Ruby-GetText-Package. # # Slobodan Paunović , 2008 # msgid "" msgstr "" "Project-Id-Version: gettext_activerecord 0.1.0\n" "POT-Creation-Date: 2009-02-09 01:48+0900\n" "PO-Revision-Date: 2008-07-13 08:52+0200\n" "Last-Translator: Slobodan Paunović \n" "Language-Team: Serbian\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=3; plural=n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%" "10<=4 && (n%100<10 || n%100>=20) ? 1 : 2;\n" #: lib/gettext_activerecord/parser.rb:60 msgid "'%{file}' is not found." msgstr "" #: lib/gettext_activerecord/parser.rb:104 msgid "Ignored '%{file}'. Solve dependencies first." msgstr "" #: lib/gettext_activerecord/parser.rb:131 msgid "No database is available." msgstr "" #: lib/gettext_activerecord/parser.rb:167 msgid "rubygems are not found." msgstr "" #: lib/gettext_activerecord/active_record.rb:27 msgid "Validation failed: %{error_messages}" msgstr "Провера није успела: %{error_messages}" #: lib/gettext_activerecord/active_record.rb:218 msgid "%{attribute} is not included in the list" msgstr "%{attribute} се не налази у листи" #: lib/gettext_activerecord/active_record.rb:219 msgid "%{attribute} is reserved" msgstr "%{attribute} је резервисано" #: lib/gettext_activerecord/active_record.rb:220 msgid "%{attribute} is invalid" msgstr "%{attribute} није исправно" #: lib/gettext_activerecord/active_record.rb:221 msgid "%{attribute} doesn't match confirmation" msgstr "%{attribute} се не слаже са потврдом" #: lib/gettext_activerecord/active_record.rb:222 msgid "%{attribute} must be accepted" msgstr "%{attribute} мора да се прихвати" #: lib/gettext_activerecord/active_record.rb:223 msgid "%{attribute} can't be empty" msgstr "%{attribute} не сме бити празно" #: lib/gettext_activerecord/active_record.rb:224 msgid "%{attribute} can't be blank" msgstr "%{attribute} не сме бити празно" #: lib/gettext_activerecord/active_record.rb:225 msgid "%{attribute} is too long (maximum is %{count} characters)" msgstr "%{attribute} је сувише дугачко (максимум је %{count} карактера)" #: lib/gettext_activerecord/active_record.rb:226 msgid "%{attribute} is too short (minimum is %{count} characters)" msgstr "%{attribute} је сувише кратко (минимум је %{count} карактера)" #: lib/gettext_activerecord/active_record.rb:227 msgid "%{attribute} is the wrong length (should be %{count} characters)" msgstr "%{attribute} је погрешне дужине (треба да има %{count} карактера)" #: lib/gettext_activerecord/active_record.rb:228 msgid "%{attribute} has already been taken" msgstr "%{attribute} је већ заузето" #: lib/gettext_activerecord/active_record.rb:229 msgid "%{attribute} is not a number" msgstr "%{attribute} није број" #: lib/gettext_activerecord/active_record.rb:230 msgid "%{attribute} must be greater than %{count}" msgstr "%{attribute} мора бити веће од %{count}" #: lib/gettext_activerecord/active_record.rb:231 msgid "%{attribute} must be greater than or equal to %{count}" msgstr "%{attribute} мора бити веће или једнако од %{count}" #: lib/gettext_activerecord/active_record.rb:232 msgid "%{attribute} must be equal to %{count}" msgstr "%{attribute} мора бити једнако %{count}" #: lib/gettext_activerecord/active_record.rb:233 msgid "%{attribute} must be less than %{count}" msgstr "%{attribute} мора бити мање од %{count}" #: lib/gettext_activerecord/active_record.rb:234 msgid "%{attribute} must be less than or equal to %{count}" msgstr "%{attribute} мора бити мање или једнако од %{count}" #: lib/gettext_activerecord/active_record.rb:235 msgid "%{attribute} must be odd" msgstr "%{attribute} мора бити непарно" #: lib/gettext_activerecord/active_record.rb:236 msgid "%{attribute} must be even" msgstr "%{attribute} мора бити парно" gettext-activerecord-2.1.0/po/ua/0000755000175000017500000000000011623722575015721 5ustar gwolfgwolfgettext-activerecord-2.1.0/po/ua/gettext_activerecord.po0000644000175000017500000001056511623722575022506 0ustar gwolfgwolf# translation of rails.po to Ukrainian # # a po-file for Ruby-GetText-Package and Ruby on Rails. # # Copyright (C) 2005-2008 Masao Mutoh # # This file is distributed under the same license as the Ruby-GetText-Package. # # Alex Rootoff, 2007,2008 # msgid "" msgstr "" "Project-Id-Version: gettext_activerecord 0.1.0\n" "POT-Creation-Date: 2009-02-09 01:48+0900\n" "PO-Revision-Date: 2008-07-14 05:33+0200\n" "Last-Translator: Alex Rootoff \n" "Language-Team: Ukrainian\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%" "10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n" "n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n" "n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n" #: lib/gettext_activerecord/parser.rb:60 msgid "'%{file}' is not found." msgstr "" #: lib/gettext_activerecord/parser.rb:104 msgid "Ignored '%{file}'. Solve dependencies first." msgstr "" #: lib/gettext_activerecord/parser.rb:131 msgid "No database is available." msgstr "" #: lib/gettext_activerecord/parser.rb:167 msgid "rubygems are not found." msgstr "" #: lib/gettext_activerecord/active_record.rb:27 msgid "Validation failed: %{error_messages}" msgstr "Перевірка правильності завершилась невдачею: %{error_messages}" #: lib/gettext_activerecord/active_record.rb:218 msgid "%{attribute} is not included in the list" msgstr "%{attribute} не включено в перелік" #: lib/gettext_activerecord/active_record.rb:219 msgid "%{attribute} is reserved" msgstr "%{attribute} зарезервовано" #: lib/gettext_activerecord/active_record.rb:220 msgid "%{attribute} is invalid" msgstr "%{attribute} недійсний" #: lib/gettext_activerecord/active_record.rb:221 msgid "%{attribute} doesn't match confirmation" msgstr "%{attribute} не підтверджено" #: lib/gettext_activerecord/active_record.rb:222 msgid "%{attribute} must be accepted" msgstr "%{attribute} необхідно прийняти" #: lib/gettext_activerecord/active_record.rb:223 msgid "%{attribute} can't be empty" msgstr "%{attribute} не може бути пустим" #: lib/gettext_activerecord/active_record.rb:224 msgid "%{attribute} can't be blank" msgstr "%{attribute} не може бути пустим чи невизначеним" #: lib/gettext_activerecord/active_record.rb:225 msgid "%{attribute} is too long (maximum is %{count} characters)" msgstr "%{attribute} задовгий (має бути щонайбільше %{count} символів)" #: lib/gettext_activerecord/active_record.rb:226 msgid "%{attribute} is too short (minimum is %{count} characters)" msgstr "%{attribute} закороткий (має бути щонайменше %{count} символів)" #: lib/gettext_activerecord/active_record.rb:227 msgid "%{attribute} is the wrong length (should be %{count} characters)" msgstr "%{attribute} неправильна довжина (має бути %{count} символів)" #: lib/gettext_activerecord/active_record.rb:228 msgid "%{attribute} has already been taken" msgstr "%{attribute} вже зайнято" #: lib/gettext_activerecord/active_record.rb:229 msgid "%{attribute} is not a number" msgstr "%{attribute} не є числом" #: lib/gettext_activerecord/active_record.rb:230 msgid "%{attribute} must be greater than %{count}" msgstr "%{attribute} має бути більше, ніж %{count}" #: lib/gettext_activerecord/active_record.rb:231 msgid "%{attribute} must be greater than or equal to %{count}" msgstr "%{attribute} має бути щонайменше %{count}" #: lib/gettext_activerecord/active_record.rb:232 msgid "%{attribute} must be equal to %{count}" msgstr "%{attribute} має бути %{count}" #: lib/gettext_activerecord/active_record.rb:233 msgid "%{attribute} must be less than %{count}" msgstr "%{attribute} має бути менше, ніж %{count}" #: lib/gettext_activerecord/active_record.rb:234 msgid "%{attribute} must be less than or equal to %{count}" msgstr "%{attribute} має бути щонайбільше %{count}" #: lib/gettext_activerecord/active_record.rb:235 msgid "%{attribute} must be odd" msgstr "%{attribute} має бути непарним" #: lib/gettext_activerecord/active_record.rb:236 msgid "%{attribute} must be even" msgstr "%{attribute} має бути парним" gettext-activerecord-2.1.0/po/vi/0000755000175000017500000000000011623722575015732 5ustar gwolfgwolfgettext-activerecord-2.1.0/po/vi/gettext_activerecord.po0000644000175000017500000000756011623722575022520 0ustar gwolfgwolf# # a po-file for Ruby-GetText-Package and Ruby on Rails. # # Copyright (C) 2005-2008 Masao Mutoh # # This file is distributed under the same license as the Ruby-GetText-Package. # # Ngoc DAO Thanh , 2007,2008. # msgid "" msgstr "" "Project-Id-Version: gettext_activerecord 0.1.0\n" "POT-Creation-Date: 2009-02-09 01:48+0900\n" "PO-Revision-Date: 2008-07-13 21:24+0900\n" "Last-Translator: Ngoc Dao \n" "Language-Team: Vietnamese\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" #: lib/gettext_activerecord/parser.rb:60 msgid "'%{file}' is not found." msgstr "" #: lib/gettext_activerecord/parser.rb:104 msgid "Ignored '%{file}'. Solve dependencies first." msgstr "" #: lib/gettext_activerecord/parser.rb:131 msgid "No database is available." msgstr "" #: lib/gettext_activerecord/parser.rb:167 msgid "rubygems are not found." msgstr "" #: lib/gettext_activerecord/active_record.rb:27 msgid "Validation failed: %{error_messages}" msgstr "Kiểm chứng thất bại: %{error_messages}" #: lib/gettext_activerecord/active_record.rb:218 msgid "%{attribute} is not included in the list" msgstr "%{attribute} không có trong danh sách" #: lib/gettext_activerecord/active_record.rb:219 msgid "%{attribute} is reserved" msgstr "%{attribute} được dành riêng" #: lib/gettext_activerecord/active_record.rb:220 msgid "%{attribute} is invalid" msgstr "%{attribute} không hợp lệ" #: lib/gettext_activerecord/active_record.rb:221 msgid "%{attribute} doesn't match confirmation" msgstr "%{attribute} không khớp với xác nhận" #: lib/gettext_activerecord/active_record.rb:222 msgid "%{attribute} must be accepted" msgstr "%{attribute} phải được chấp nhận" #: lib/gettext_activerecord/active_record.rb:223 msgid "%{attribute} can't be empty" msgstr "%{attribute} không được rỗng" #: lib/gettext_activerecord/active_record.rb:224 msgid "%{attribute} can't be blank" msgstr "%{attribute} không được trống" #: lib/gettext_activerecord/active_record.rb:225 msgid "%{attribute} is too long (maximum is %{count} characters)" msgstr "%{attribute} quá dài (tối đa là %{count} kí tự)" #: lib/gettext_activerecord/active_record.rb:226 msgid "%{attribute} is too short (minimum is %{count} characters)" msgstr "%{attribute} quá ngắn (tối thiểu là %{count} kí tự)" #: lib/gettext_activerecord/active_record.rb:227 msgid "%{attribute} is the wrong length (should be %{count} characters)" msgstr "%{attribute} sai chiều dài (phải là %{count} kí tự)" #: lib/gettext_activerecord/active_record.rb:228 msgid "%{attribute} has already been taken" msgstr "%{attribute} đã tồn tại" #: lib/gettext_activerecord/active_record.rb:229 msgid "%{attribute} is not a number" msgstr "%{attribute} không phải là số" #: lib/gettext_activerecord/active_record.rb:230 msgid "%{attribute} must be greater than %{count}" msgstr "%{attribute} phải lớn hơn %{count}" #: lib/gettext_activerecord/active_record.rb:231 msgid "%{attribute} must be greater than or equal to %{count}" msgstr "%{attribute} phải lớn hơn hoặc bằng %{count}" #: lib/gettext_activerecord/active_record.rb:232 msgid "%{attribute} must be equal to %{count}" msgstr "%{attribute} phải bằng %{count}" #: lib/gettext_activerecord/active_record.rb:233 msgid "%{attribute} must be less than %{count}" msgstr "%{attribute} phải nhỏ hơn %{count}" #: lib/gettext_activerecord/active_record.rb:234 msgid "%{attribute} must be less than or equal to %{count}" msgstr "%{attribute} phải nhỏ hơn hoặc bằng %{count}" #: lib/gettext_activerecord/active_record.rb:235 msgid "%{attribute} must be odd" msgstr "%{attribute} phải lẻ" #: lib/gettext_activerecord/active_record.rb:236 msgid "%{attribute} must be even" msgstr "%{attribute} phải chẵn" gettext-activerecord-2.1.0/po/zh/0000755000175000017500000000000011623722575015735 5ustar gwolfgwolfgettext-activerecord-2.1.0/po/zh/gettext_activerecord.po0000644000175000017500000000750411623722575022521 0ustar gwolfgwolf# translation of rails.po to Simplified Chinese # # a po-file for Ruby-GetText-Package and Ruby on Rails. # # Copyright (C) 2006-2008 Masao Mutoh # # This file is distributed under the same license as the Ruby-GetText-Package. # # Yang Bob , 2006-2008. # Yingfeng , 2006. # msgid "" msgstr "" "Project-Id-Version: gettext_activerecord 0.1.0\n" "POT-Creation-Date: 2009-02-09 01:48+0900\n" "PO-Revision-Date: 2006-04-15 13:36+0300\n" "Last-Translator: Yang Bob \n" "Language-Team: Simplified Chinese\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=1; plural=0;\n" "X-Generator: KBabel 1.9.1\n" #: lib/gettext_activerecord/parser.rb:60 msgid "'%{file}' is not found." msgstr "" #: lib/gettext_activerecord/parser.rb:104 msgid "Ignored '%{file}'. Solve dependencies first." msgstr "" #: lib/gettext_activerecord/parser.rb:131 msgid "No database is available." msgstr "" #: lib/gettext_activerecord/parser.rb:167 msgid "rubygems are not found." msgstr "" #: lib/gettext_activerecord/active_record.rb:27 msgid "Validation failed: %{error_messages}" msgstr "验证失败:%{error_messages}" #: lib/gettext_activerecord/active_record.rb:218 msgid "%{attribute} is not included in the list" msgstr "%{attribute}没有包含在本列表中" #: lib/gettext_activerecord/active_record.rb:219 msgid "%{attribute} is reserved" msgstr "%{attribute}是保留关键字" #: lib/gettext_activerecord/active_record.rb:220 msgid "%{attribute} is invalid" msgstr "%{attribute}无效" #: lib/gettext_activerecord/active_record.rb:221 msgid "%{attribute} doesn't match confirmation" msgstr "%{attribute}与确认输入的内容不一致" #: lib/gettext_activerecord/active_record.rb:222 msgid "%{attribute} must be accepted" msgstr "%{attribute}必须被接受" #: lib/gettext_activerecord/active_record.rb:223 msgid "%{attribute} can't be empty" msgstr "%{attribute}不能为空" #: lib/gettext_activerecord/active_record.rb:224 msgid "%{attribute} can't be blank" msgstr "%{attribute}不能为空" #: lib/gettext_activerecord/active_record.rb:225 msgid "%{attribute} is too long (maximum is %{count} characters)" msgstr "%{attribute}超出长度范围了(最多允许%{count}个字符)" #: lib/gettext_activerecord/active_record.rb:226 msgid "%{attribute} is too short (minimum is %{count} characters)" msgstr "%{attribute}太短了 (不能少于%{count}个字符)" #: lib/gettext_activerecord/active_record.rb:227 msgid "%{attribute} is the wrong length (should be %{count} characters)" msgstr "%{attribute}长度错误 (应当包含%{count}个字符)" #: lib/gettext_activerecord/active_record.rb:228 msgid "%{attribute} has already been taken" msgstr "%{attribute}已经被使用了" #: lib/gettext_activerecord/active_record.rb:229 msgid "%{attribute} is not a number" msgstr "%{attribute}不是数字" #: lib/gettext_activerecord/active_record.rb:230 msgid "%{attribute} must be greater than %{count}" msgstr "%{attribute}必须大于" #: lib/gettext_activerecord/active_record.rb:231 msgid "%{attribute} must be greater than or equal to %{count}" msgstr "%{attribute}必须大于等于" #: lib/gettext_activerecord/active_record.rb:232 msgid "%{attribute} must be equal to %{count}" msgstr "%{attribute}必须等于" #: lib/gettext_activerecord/active_record.rb:233 msgid "%{attribute} must be less than %{count}" msgstr "%{attribute}必须小于" #: lib/gettext_activerecord/active_record.rb:234 msgid "%{attribute} must be less than or equal to %{count}" msgstr "%{attribute}必须小于等于" #: lib/gettext_activerecord/active_record.rb:235 msgid "%{attribute} must be odd" msgstr "%{attribute}必须是奇数" #: lib/gettext_activerecord/active_record.rb:236 msgid "%{attribute} must be even" msgstr "%{attribute}必须是偶数" gettext-activerecord-2.1.0/po/pt_BR/0000755000175000017500000000000011623722575016322 5ustar gwolfgwolfgettext-activerecord-2.1.0/po/pt_BR/gettext_activerecord.po0000644000175000017500000000773311623722575023112 0ustar gwolfgwolf# a po-file for Ruby-GetText-Package and Ruby on Rails. # # Copyright (C) 2005-2008 Masao Mutoh # # This file is distributed under the same license as the Ruby-GetText-Package. # # Antonio S. de A. Terceiro , 2006, 2008. # Joao Pedrosa , 2005-2007. # msgid "" msgstr "" "Project-Id-Version: gettext_activerecord 0.1.0\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2009-02-09 01:48+0900\n" "PO-Revision-Date: 2008-07-14 09:46-0300\n" "Last-Translator: Antonio Terceiro \n" "Language-Team: Portuguese(Brazil) \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" #: lib/gettext_activerecord/parser.rb:60 msgid "'%{file}' is not found." msgstr "" #: lib/gettext_activerecord/parser.rb:104 msgid "Ignored '%{file}'. Solve dependencies first." msgstr "" #: lib/gettext_activerecord/parser.rb:131 msgid "No database is available." msgstr "" #: lib/gettext_activerecord/parser.rb:167 msgid "rubygems are not found." msgstr "" #: lib/gettext_activerecord/active_record.rb:27 msgid "Validation failed: %{error_messages}" msgstr "A validação falhou: %{error_messages}" #: lib/gettext_activerecord/active_record.rb:218 msgid "%{attribute} is not included in the list" msgstr "%{attribute} não está incluído na lista" #: lib/gettext_activerecord/active_record.rb:219 msgid "%{attribute} is reserved" msgstr "%{attribute} é reservado" #: lib/gettext_activerecord/active_record.rb:220 msgid "%{attribute} is invalid" msgstr "%{attribute} é inválido" #: lib/gettext_activerecord/active_record.rb:221 msgid "%{attribute} doesn't match confirmation" msgstr "%{attribute} não combina com a confirmação" #: lib/gettext_activerecord/active_record.rb:222 msgid "%{attribute} must be accepted" msgstr "%{attribute} deve ser aceito" #: lib/gettext_activerecord/active_record.rb:223 msgid "%{attribute} can't be empty" msgstr "%{attribute} não pode ser vazio" #: lib/gettext_activerecord/active_record.rb:224 msgid "%{attribute} can't be blank" msgstr "%{attribute} não pode ser em branco" #: lib/gettext_activerecord/active_record.rb:225 msgid "%{attribute} is too long (maximum is %{count} characters)" msgstr "%{attribute} é longo demais (o máximo é %{count} caracteres)" #: lib/gettext_activerecord/active_record.rb:226 msgid "%{attribute} is too short (minimum is %{count} characters)" msgstr "%{attribute} é curto demais (o mínimo é %{count} caracteres)" #: lib/gettext_activerecord/active_record.rb:227 msgid "%{attribute} is the wrong length (should be %{count} characters)" msgstr "%{attribute} tem o comprimento incorreto (deveria ter %{count} caracteres)" #: lib/gettext_activerecord/active_record.rb:228 msgid "%{attribute} has already been taken" msgstr "%{attribute} já foi tomado" #: lib/gettext_activerecord/active_record.rb:229 msgid "%{attribute} is not a number" msgstr "%{attribute} não é um número" #: lib/gettext_activerecord/active_record.rb:230 msgid "%{attribute} must be greater than %{count}" msgstr "%{attribute} deve ser maior do que %{count}" #: lib/gettext_activerecord/active_record.rb:231 msgid "%{attribute} must be greater than or equal to %{count}" msgstr "%{attribute} deve ser maior ou igual a %{count}" #: lib/gettext_activerecord/active_record.rb:232 msgid "%{attribute} must be equal to %{count}" msgstr "%{attribute} deve ser igual a %{count}" #: lib/gettext_activerecord/active_record.rb:233 msgid "%{attribute} must be less than %{count}" msgstr "%{attribute} deve ser menor que %{count}" #: lib/gettext_activerecord/active_record.rb:234 msgid "%{attribute} must be less than or equal to %{count}" msgstr "%{attribute} deve ser menor ou igual a %{count}" #: lib/gettext_activerecord/active_record.rb:235 msgid "%{attribute} must be odd" msgstr "%{attribute} deve ser ímpar" #: lib/gettext_activerecord/active_record.rb:236 msgid "%{attribute} must be even" msgstr "%{attribute} deve ser par" gettext-activerecord-2.1.0/po/zh_TW/0000755000175000017500000000000011623722575016347 5ustar gwolfgwolfgettext-activerecord-2.1.0/po/zh_TW/gettext_activerecord.po0000644000175000017500000000737611623722575023142 0ustar gwolfgwolf# # a po-file for Ruby-GetText-Package and Ruby on Rails. # # Copyright (C) 2005-2008 Masao Mutoh # # This file is distributed under the same license as the Ruby-GetText-Package. # # Yang Bob , 2006-2008. # LIN CHUNG-YI , 2006. # msgid "" msgstr "" "Project-Id-Version: gettext_activerecord 0.1.0\n" "POT-Creation-Date: 2009-02-09 01:48+0900\n" "PO-Revision-Date: 2006-08-21 09:27+0800\n" "Last-Translator: Yang Bob \n" "Language-Team: zh_TW \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Poedit-Language: Chinese\n" "X-Poedit-Country: TAIWAN\n" "Plural-Forms: nplurals=1; plural=0;\n" #: lib/gettext_activerecord/parser.rb:60 msgid "'%{file}' is not found." msgstr "" #: lib/gettext_activerecord/parser.rb:104 msgid "Ignored '%{file}'. Solve dependencies first." msgstr "" #: lib/gettext_activerecord/parser.rb:131 msgid "No database is available." msgstr "" #: lib/gettext_activerecord/parser.rb:167 msgid "rubygems are not found." msgstr "" #: lib/gettext_activerecord/active_record.rb:27 msgid "Validation failed: %{error_messages}" msgstr "校驗失敗:%{error_messages}" #: lib/gettext_activerecord/active_record.rb:218 msgid "%{attribute} is not included in the list" msgstr "%{attribute}沒有包含在列表中" #: lib/gettext_activerecord/active_record.rb:219 msgid "%{attribute} is reserved" msgstr "%{attribute}被保留" #: lib/gettext_activerecord/active_record.rb:220 msgid "%{attribute} is invalid" msgstr "%{attribute}是無效" #: lib/gettext_activerecord/active_record.rb:221 msgid "%{attribute} doesn't match confirmation" msgstr "%{attribute}不符和確認標準" #: lib/gettext_activerecord/active_record.rb:222 msgid "%{attribute} must be accepted" msgstr "%{attribute}必須接受" #: lib/gettext_activerecord/active_record.rb:223 msgid "%{attribute} can't be empty" msgstr "%{attribute}不能是空白" #: lib/gettext_activerecord/active_record.rb:224 msgid "%{attribute} can't be blank" msgstr "%{attribute}不能是空白" #: lib/gettext_activerecord/active_record.rb:225 msgid "%{attribute} is too long (maximum is %{count} characters)" msgstr "%{attribute}太長 (最長是%{count}个字)" #: lib/gettext_activerecord/active_record.rb:226 msgid "%{attribute} is too short (minimum is %{count} characters)" msgstr "%{attribute}太短 (最短是%{count}个字)" #: lib/gettext_activerecord/active_record.rb:227 msgid "%{attribute} is the wrong length (should be %{count} characters)" msgstr "%{attribute}字數錯誤 (應該是%{count}個字)" #: lib/gettext_activerecord/active_record.rb:228 msgid "%{attribute} has already been taken" msgstr "%{attribute}已被使用" #: lib/gettext_activerecord/active_record.rb:229 msgid "%{attribute} is not a number" msgstr "%{attribute}不是數字" #: lib/gettext_activerecord/active_record.rb:230 msgid "%{attribute} must be greater than %{count}" msgstr "%{attribute}必須大於" #: lib/gettext_activerecord/active_record.rb:231 msgid "%{attribute} must be greater than or equal to %{count}" msgstr "%{attribute}必須大於等於" #: lib/gettext_activerecord/active_record.rb:232 msgid "%{attribute} must be equal to %{count}" msgstr "%{attribute}必須等於" #: lib/gettext_activerecord/active_record.rb:233 msgid "%{attribute} must be less than %{count}" msgstr "%{attribute}必須小於" #: lib/gettext_activerecord/active_record.rb:234 msgid "%{attribute} must be less than or equal to %{count}" msgstr "%{attribute}必須小於等於" #: lib/gettext_activerecord/active_record.rb:235 msgid "%{attribute} must be odd" msgstr "%{attribute}必須是奇数" #: lib/gettext_activerecord/active_record.rb:236 msgid "%{attribute} must be even" msgstr "%{attribute}必須是偶数" gettext-activerecord-2.1.0/po/gettext_activerecord.pot0000644000175000017500000000604111623722575022257 0ustar gwolfgwolf# SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # FIRST AUTHOR , YEAR. # #, fuzzy msgid "" msgstr "" "Project-Id-Version: gettext_activerecord 0.1.0\n" "POT-Creation-Date: 2009-02-09 01:48+0900\n" "PO-Revision-Date: 2009-02-09 01:40+0900\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\n" #: lib/gettext_activerecord/parser.rb:60 msgid "'%{file}' is not found." msgstr "" #: lib/gettext_activerecord/parser.rb:104 msgid "Ignored '%{file}'. Solve dependencies first." msgstr "" #: lib/gettext_activerecord/parser.rb:131 msgid "No database is available." msgstr "" #: lib/gettext_activerecord/parser.rb:167 msgid "rubygems are not found." msgstr "" #: lib/gettext_activerecord/active_record.rb:27 msgid "Validation failed: %{error_messages}" msgstr "" #: lib/gettext_activerecord/active_record.rb:218 msgid "%{attribute} is not included in the list" msgstr "" #: lib/gettext_activerecord/active_record.rb:219 msgid "%{attribute} is reserved" msgstr "" #: lib/gettext_activerecord/active_record.rb:220 msgid "%{attribute} is invalid" msgstr "" #: lib/gettext_activerecord/active_record.rb:221 msgid "%{attribute} doesn't match confirmation" msgstr "" #: lib/gettext_activerecord/active_record.rb:222 msgid "%{attribute} must be accepted" msgstr "" #: lib/gettext_activerecord/active_record.rb:223 msgid "%{attribute} can't be empty" msgstr "" #: lib/gettext_activerecord/active_record.rb:224 msgid "%{attribute} can't be blank" msgstr "" #: lib/gettext_activerecord/active_record.rb:225 msgid "%{attribute} is too long (maximum is %{count} characters)" msgstr "" #: lib/gettext_activerecord/active_record.rb:226 msgid "%{attribute} is too short (minimum is %{count} characters)" msgstr "" #: lib/gettext_activerecord/active_record.rb:227 msgid "%{attribute} is the wrong length (should be %{count} characters)" msgstr "" #: lib/gettext_activerecord/active_record.rb:228 msgid "%{attribute} has already been taken" msgstr "" #: lib/gettext_activerecord/active_record.rb:229 msgid "%{attribute} is not a number" msgstr "" #: lib/gettext_activerecord/active_record.rb:230 msgid "%{attribute} must be greater than %{count}" msgstr "" #: lib/gettext_activerecord/active_record.rb:231 msgid "%{attribute} must be greater than or equal to %{count}" msgstr "" #: lib/gettext_activerecord/active_record.rb:232 msgid "%{attribute} must be equal to %{count}" msgstr "" #: lib/gettext_activerecord/active_record.rb:233 msgid "%{attribute} must be less than %{count}" msgstr "" #: lib/gettext_activerecord/active_record.rb:234 msgid "%{attribute} must be less than or equal to %{count}" msgstr "" #: lib/gettext_activerecord/active_record.rb:235 msgid "%{attribute} must be odd" msgstr "" #: lib/gettext_activerecord/active_record.rb:236 msgid "%{attribute} must be even" msgstr "" gettext-activerecord-2.1.0/lib/0000755000175000017500000000000011623722575015444 5ustar gwolfgwolfgettext-activerecord-2.1.0/lib/gettext_activerecord.rb0000644000175000017500000000103111623722575022202 0ustar gwolfgwolf=begin gettext_activerecord.rb - GetText for ActiveRecord Copyright (C) 2009 Masao Mutoh You may redistribute it and/or modify it under the same license terms as Ruby or LGPL. =end require 'gettext' require 'active_record' require 'gettext_activerecord/migration' require 'gettext_activerecord/schema_definitions' require 'gettext_activerecord/validations' require 'gettext_activerecord/base' require 'gettext_activerecord/i18n' require 'gettext_activerecord/version' class Class def to_s_with_gettext to_s end end gettext-activerecord-2.1.0/lib/gettext_activerecord/0000755000175000017500000000000011623722575021662 5ustar gwolfgwolfgettext-activerecord-2.1.0/lib/gettext_activerecord/i18n.rb0000644000175000017500000000172611623722575022774 0ustar gwolfgwolf=begin lib/gettext_activerecord/i18n.rb - GetText for ActiveRecord's I18n. Copyright (C) 2009 Masao Mutoh You may redistribute it and/or modify it under the same license terms as Ruby or LGPL. =end module I18n #:nodoc: class << self include GetText # gettext_activerecord doesn't define backend. So it can be used with another backend. def translate_with_gettext_activerecord(key, options = {}) #:nodoc: if options[:scope] == [:activerecord, :errors] options[:attribute] = key.to_s.split(".")[3] options # This value will be used in ActiveRecord::Base::Errors.localize_error_messages else translate_without_gettext_activerecord(key, options) end end alias_method_chain :translate, :gettext_activerecord #:nodoc: alias_method :t_with_gettext_activerecord, :translate_with_gettext_activerecord #:nodoc: alias_method_chain :t, :gettext_activerecord #:nodoc: end end gettext-activerecord-2.1.0/lib/gettext_activerecord/validations.rb0000644000175000017500000001633611623722575024535 0ustar gwolfgwolf=begin lib/gettext_activerecord/validations.rb - GetText for ActiveRecord Copyright (C) 2006-2009 Masao Mutoh You may redistribute it and/or modify it under the same license terms as Ruby or LGPL. =end module ActiveRecord #:nodoc: class RecordInvalid < ActiveRecordError #:nodoc: attr_reader :record include GetText bindtextdomain "gettext_activerecord" def initialize(record) @record = record super(_("Validation failed: %{error_messages}") % {:error_messages => @record.errors.full_messages.join(", ")}) end end module Validations # :nodoc: class << self def real_included(base) base.extend ClassMethods base.class_eval{ include GetText def gettext(str) #:nodoc: _(str) end class << self def human_attribute_name_with_gettext_activerecord(attribute_key_name) #:nodoc: s_("#{self.to_s_with_gettext}|#{attribute_key_name.humanize}") end alias_method_chain :human_attribute_name, :gettext_activerecord def human_attribute_table_name_for_error(table_name) #:nodoc: _(table_name.gsub(/_/, " ")) end end } end end if respond_to? :included class << self def included_with_gettext_activerecord(base) # :nodoc: unless base <= ActiveRecord::Base included_without_gettext_activerecord(base) end real_included(base) end alias_method_chain :included, :gettext_activerecord end else class << self # Since rails-1.2.0. def append_features_with_gettext_activerecord(base) # :nodoc: unless base <= ActiveRecord::Base append_features_without_gettext_activerecord(base) end real_included(base) end alias_method_chain :append_features, :gettext_activerecord end end end # activerecord-1.14.3/lib/active_record/validations.rb class Errors #:nodoc: include GetText textdomain "gettext_activerecord" class << self include GetText def default_error_messages_with_gettext_activerecord @@default_error_messages || {} end alias_method_chain :default_error_messages, :gettext_activerecord # To use other backends, gettext_activerecord doesn't use backend architecture. # You can use GetText with other backends. @@default_error_messages = { :inclusion => N_("%{attribute} is not included in the list"), :exclusion => N_("%{attribute} is reserved"), :invalid => N_("%{attribute} is invalid"), :confirmation => N_("%{attribute} doesn't match confirmation"), :accepted => N_("%{attribute} must be accepted"), :empty => N_("%{attribute} can't be empty"), :blank => N_("%{attribute} can't be blank"), :too_long => N_("%{attribute} is too long (maximum is %{count} characters)"), :too_short => N_("%{attribute} is too short (minimum is %{count} characters)"), :wrong_length => N_("%{attribute} is the wrong length (should be %{count} characters)"), :taken => N_("%{attribute} has already been taken"), :not_a_number => N_("%{attribute} is not a number"), :greater_than => N_("%{attribute} must be greater than %{count}"), :greater_than_or_equal_to => N_("%{attribute} must be greater than or equal to %{count}"), :equal_to => N_("%{attribute} must be equal to %{count}"), :less_than => N_("%{attribute} must be less than %{count}"), :less_than_or_equal_to => N_("%{attribute} must be less than or equal to %{count}"), :odd => N_("%{attribute} must be odd"), :even => N_("%{attribute} must be even") } end def each_with_gettext_activerecord #:nodoc: @errors.each_key { |attr| @errors[attr].each { |msg| yield attr, localize_error_message(attr, msg, false) } } end alias_method_chain :each, :gettext_activerecord # Returns error messages. # * Returns nil, if no errors are associated with the specified attribute. # * Returns the error message, if one error is associated with the specified attribute. # * Returns an array of error messages, if more than one error is associated with the specified attribute. # And for GetText, # * If the error messages include %{fn}, it returns formatted text such as "foo %{fn}" => "foo Field" # * else, the error messages are prepended the field name such as "foo" => "foo" (Same as default behavior). # Note that this behaviour is different from full_messages. def on_with_gettext_activerecord(attribute) # e.g.) foo field: "%{fn} foo" => "Foo foo", "foo" => "foo". errors = localize_error_messages(false)[attribute.to_s] return nil if errors.nil? errors.size == 1 ? errors.first : errors end alias_method_chain :on, :gettext_activerecord alias :[] :on # Returns all the full error messages in an array. # * If the error messages include %{fn}, it returns formatted text such as "foo %{fn}" => "foo Field" # * else, the error messages are prepended the field name such as "foo" => "Field foo" (Same as default behavior). # As L10n, first one is recommanded because the order of subject,verb and others are not same in languages. def full_messages_with_gettext_activerecord full_messages = [] errors = localize_error_messages errors.each_key do |attr| errors[attr].each do |msg| next if msg.nil? full_messages << msg end end full_messages end alias_method_chain :full_messages, :gettext_activerecord private def localize_error_message(attr, object, append_field) # :nodoc: obj = object.respond_to?(:message) ? object.message : object msgid, count, value = obj, 0, "" if obj.kind_of? Hash msgid = obj[:default].select{|v| v.is_a? String}[0] unless msgid symbol = obj[:default][0].to_s.split(".").last.to_sym msgid = @@default_error_messages[symbol] end #attr, count, value = obj[:attribute], obj[:count], obj[:value] count, value = obj[:count], obj[:value] attr = obj[:attribute] if obj[:attribute] end msgstr = @base.gettext(msgid) msgstr = _(msgid) if msgstr == msgid msgstr = msgstr.gsub("%{fn}", "%{attribute}").gsub("%d", "%{count}").gsub("%{val}", "%{value}") # for backward compatibility. if attr == "base" full_message = msgstr elsif /%\{attribute\}/ =~ msgstr full_message = msgstr % {:attribute => @base.class.human_attribute_name(attr)} elsif append_field full_message = @base.class.human_attribute_name(attr) + " " + msgstr else full_message = msgstr end full_message % {:count => count, :value => value} end def localize_error_messages(append_field = true) # :nodoc: # e.g.) foo field: "%{fn} foo" => "Foo foo", "foo" => "Foo foo". errors = {} each_without_gettext_activerecord {|attr, msg| next if msg.nil? errors[attr] ||= [] errors[attr] << localize_error_message(attr, msg, append_field) } errors end end end gettext-activerecord-2.1.0/lib/gettext_activerecord/parser.rb0000644000175000017500000001577711623722575023524 0ustar gwolfgwolf=begin lib/gettext_activerecord/parser.rb - parser for ActiveRecord Copyright (C) 2005-2009 Masao Mutoh You may redistribute it and/or modify it under the same license terms as Ruby or LGPL. =end require 'gettext' require 'gettext/tools/rgettext' require 'gettext/tools/parser/ruby' include GetText ActiveRecord::Base.instance_eval do alias inherited_without_log inherited def inherited(subclass) puts "registering an ActiveRecord model for later processing: #{subclass}" if $DEBUG active_record_classes_list << "#{subclass}" unless subclass.name.empty? inherited_without_log(subclass) end def active_record_classes_list $active_record_classes_list ||= [] end def reset_active_record_classes_list $active_record_classes_list = [] end end module GetText module ActiveRecordParser extend GetText include GetText bindtextdomain "gettext_activerecord" @config = { :db_yml => "config/database.yml", :db_mode => "development", :activerecord_classes => ["ActiveRecord::Base"], :untranslate_classes => ["ActiveRecord::Base", "ActiveRecord::SessionStore::Session"], :untranslate_columns => ["id"], :untranslate_table_name => false, :use_classname => true, } @ar_re = nil module_function def require_rails(file) # :nodoc: begin require file rescue MissingSourceFile $stderr.puts _("'%{file}' is not found.") % {:file => file} end end # Sets some preferences to parse ActiveRecord files. # # * config: a Hash of the config. It can takes some values below: # * :use_classname - If true, the msgids of ActiveRecord become "ClassName|FieldName" (e.g. "Article|Title"). Otherwise the ClassName is not used (e.g. "Title"). Default is true. # * :db_yml - the path of database.yml. Default is "config/database.yml". # * :db_mode - the mode of the database. Default is "development" # * :activerecord_classes - an Array of the superclass of the models. The classes should be String value. Default is ["ActiveRecord::Base"] # * :untranslate_classes - an Array of the modules/class names which is ignored as the msgid. # * :untranslate_columns - an Array of the column names which is ignored as the msgid. # * :untranslate_table_name - a Boolean that avoids table name to be translated if it is true ... Generally, we don't have to translate table_name, do we? Maybe it is not true..... but it is a test # * :adapter - the options for ActiveRecord::Base.establish_connection. If this value is set, :db_yml option is ignored. # * :host - ditto # * :username - ditto # * :password - ditto # * :database - ditto # * :socket - ditto # * :encoding - ditto # # "ClassName|FieldName" uses GetText.sgettext. So you don't need to translate the left-side of "|". # See . def init(config) puts "\nconfig: #{config.inspect}\n\n" if $DEBUG if config config.each{|k, v| @config[k] = v } end @ar_re = /class.*(#{@config[:activerecord_classes].join("|")})/ end def translatable_class?(klass) if klass.is_a?(Class) && klass < ActiveRecord::Base if klass.untranslate_all? || klass.abstract_class? || @config[:untranslate_classes].include?(klass.name) false else true end else true end end def translatable_column?(klass, columnname) ! (klass.untranslate?(columnname) || @config[:untranslate_columns].include?(columnname)) end def parse(file, targets = []) # :nodoc: puts "parse file #{file}" if $DEBUG GetText.locale = "en" old_constants = Object.constants begin eval(open(file).read, TOPLEVEL_BINDING) rescue $stderr.puts _("Ignored '%{file}'. Solve dependencies first.") % {:file => file} $stderr.puts $! end #loaded_constants = Object.constants - old_constants loaded_constants = ActiveRecord::Base.active_record_classes_list ActiveRecord::Base.reset_active_record_classes_list loaded_constants.each do |classname| klass = eval(classname, TOPLEVEL_BINDING) if translatable_class?(klass) puts "processing class #{klass.name}" if $DEBUG add_target(targets, file, ActiveSupport::Inflector.singularize(klass.table_name.gsub(/_/, " "))) unless @config[:untranslate_table_name] unless klass.class_name == classname add_target(targets, file, ActiveSupport::Inflector.singularize(klass.to_s_with_gettext.gsub(/_/, " ").downcase)) end begin klass.columns.each do |column| if translatable_column?(klass, column.name) if @config[:use_classname] msgid = klass.to_s_with_gettext + "|" + klass.human_attribute_name(column.name) else msgid = klass.human_attribute_name(column.name) end add_target(targets, file, msgid) end end rescue $stderr.puts _("No database is available.") $stderr.puts $! end end end if RubyParser.target?(file) targets += RubyParser.parse(file) end targets end def add_target(targets, file, msgid) # :nodoc: po = PoMessage.new(:normal) po.msgid = msgid po.sources << "#{file}:-" targets << po targets end def target?(file) # :nodoc: init(nil) unless @ar_re data = IO.readlines(file) data.each do |v| if @ar_re =~ v unless ActiveRecord::Base.connected? begin require 'rubygems' rescue LoadError $stderr.puts _("rubygems are not found.") if $DEBUG end begin ENV["RAILS_ENV"] = @config[:db_mode] require 'config/boot.rb' require 'config/environment.rb' require_rails 'activesupport' require_rails 'gettext_activerecord' rescue LoadError require_rails 'rubygems' gem 'activerecord' require_rails 'activesupport' require_rails 'active_record' require_rails 'gettext_activerecord' end begin yaml = YAML.load(IO.read(@config[:db_yml])) if yaml[@config[:db_mode]] ActiveRecord::Base.establish_connection(yaml[@config[:db_mode]]) else ActiveRecord::Base.establish_connection(yaml) end rescue if @config[:adapter] ActiveRecord::Base.establish_connection(@config) else return false end end end return true end end false end end RGetText.add_parser(GetText::ActiveRecordParser) end gettext-activerecord-2.1.0/lib/gettext_activerecord/migration.rb0000644000175000017500000000051311623722575024177 0ustar gwolfgwolf=begin lib/gettext_activerecord/migration.rb - GetText for ActiveRecord::Migration Copyright (C) 2009 Masao Mutoh You may redistribute it and/or modify it under the same license terms as Ruby or LGPL. =end module ActiveRecord #:nodoc: class Migration extend GetText include GetText end end gettext-activerecord-2.1.0/lib/gettext_activerecord/schema_definitions.rb0000644000175000017500000000136311623722575026045 0ustar gwolfgwolf=begin lib/gettext_activerecord/schema_definitions.rb - GetText for ActiveRecord::ConnectionAdapters::Column Copyright (C) 2009 Masao Mutoh You may redistribute it and/or modify it under the same license terms as Ruby or LGPL. =end module ActiveRecord #:nodoc: module ConnectionAdapters #:nodoc: # An abstract definition of a column in a table. class Column attr_accessor :table_class alias :human_name_witout_localized :human_name def human_name_with_gettext_activerecord if table_class table_class.human_attribute_name(@name) else @name.humanize end end alias_method_chain :human_name, :gettext_activerecord end end end gettext-activerecord-2.1.0/lib/gettext_activerecord/base.rb0000644000175000017500000000362211623722575023124 0ustar gwolfgwolf=begin lib/gettext_activerecord/base.rb - GetText for ActiveRecord::Base Copyright (C) 2009 Masao Mutoh You may redistribute it and/or modify it under the same license terms as Ruby or LGPL. =end module ActiveRecord #:nodoc: class Base include GetText include Validations @@gettext_untranslate = Hash.new(false) @@gettext_untranslate_columns = {} class << self # Untranslate all of the tablename/fieldnames in this model class. # (e.g.) # Person < ActiveRecord::Base # untranslate_all # end def untranslate_all @@gettext_untranslate[self] = true end # Returns true if "untranslate_all" is called. Otherwise false. def untranslate_all? @@gettext_untranslate[self] end # Sets the untranslate columns. # (e.g.) # Person < ActiveRecord::Base # untranslate :age, :address # end def untranslate(*w) ary = @@gettext_untranslate_columns[self] || [] ary += w.collect{|v| v.to_s} @@gettext_untranslate_columns[self] = ary end # Returns true if the column is set "untranslate". # (e.g.) untranslate? :foo def untranslate?(columnname) ary = @@gettext_untranslate_columns[self] || [] ary.include?(columnname) end def untranslate_data #:nodoc: [@@gettext_untranslate[self], @@gettext_untranslate_columns[self] || []] end def columns_with_gettext_activerecord unless defined? @columns @columns = nil end unless @columns @columns = columns_without_gettext_activerecord @columns.each {|column| column.table_class = self } end @columns end alias_method_chain :columns, :gettext_activerecord end end end gettext-activerecord-2.1.0/lib/gettext_activerecord/tools.rb0000644000175000017500000000151311623722575023347 0ustar gwolfgwolf=begin tools.rb - Utility functions Copyright (C) 2009 Masao Mutoh You may redistribute it and/or modify it under the same license terms as Ruby or LGPL. =end require 'gettext/tools' require 'gettext_activerecord' require 'gettext_activerecord/parser' module GetText extend self alias :create_mofiles_org :create_mofiles #:nodoc: alias :update_pofiles_org :update_pofiles #:nodoc: # update_pofiles for ActiveRecord. # In this method, GetText::ActiveRecordParser.init is called # with "options". # (e.g.) # GetText.update_po_files("foo", Dir.glob("lib/**/*"), "1.0.0", :untranslate_classes = ["UntranslateClass"] def update_pofiles(textdomain, files, app_version, options = {}) GetText::ActiveRecordParser.init(options) GetText.update_pofiles_org(textdomain, files, app_version, options) end end gettext-activerecord-2.1.0/lib/gettext_activerecord/version.rb0000644000175000017500000000042111623722575023671 0ustar gwolfgwolf=begin version - version information of gettext_activerecord. Copyright (C) 2009 Masao Mutoh You may redistribute it and/or modify it under the same license terms as Ruby or LGPL. =end module GetTextActiveRecord RAILS_VERSION = "2.3.4" VERSION = "2.1.0" end gettext-activerecord-2.1.0/data/0000755000175000017500000000000011623722575015607 5ustar gwolfgwolfgettext-activerecord-2.1.0/data/locale/0000755000175000017500000000000011623722575017046 5ustar gwolfgwolfgettext-activerecord-2.1.0/data/locale/bg/0000755000175000017500000000000011623722575017436 5ustar gwolfgwolfgettext-activerecord-2.1.0/data/locale/bg/LC_MESSAGES/0000755000175000017500000000000011623722575021223 5ustar gwolfgwolfgettext-activerecord-2.1.0/data/locale/bg/LC_MESSAGES/gettext_activerecord.mo0000644000175000017500000000607411623722575026005 0ustar gwolfgwolfl'#Ae}(@9:W&*6'S3{$BmB 65K299x(jf Bs N @ UF g S eX D 8      %{attribute} can't be blank%{attribute} can't be empty%{attribute} doesn't match confirmation%{attribute} has already been taken%{attribute} is invalid%{attribute} is not a number%{attribute} is not included in the list%{attribute} is reserved%{attribute} is the wrong length (should be %{count} characters)%{attribute} is too long (maximum is %{count} characters)%{attribute} is too short (minimum is %{count} characters)%{attribute} must be accepted%{attribute} must be equal to %{count}%{attribute} must be even%{attribute} must be greater than %{count}%{attribute} must be greater than or equal to %{count}%{attribute} must be less than %{count}%{attribute} must be less than or equal to %{count}%{attribute} must be oddValidation failed: %{error_messages}Project-Id-Version: gettext_activerecord 0.1.0 POT-Creation-Date: 2009-02-09 01:48+0900 PO-Revision-Date: 2008-07-11 11:35+0300 Last-Translator: Sava Chankov Language-Team: Bulgarian MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Plural-Forms: nplurals=2; plural=(n != 1); Полето „%{attribute}“ не може да е празноПолето „%{attribute}“ не може да е празно%{attribute} не съвпадаПолето „%{attribute}“ е вече заетоПолето „%{attribute}“ е невалидноПолето „%{attribute}“ не е числоПолето „%{attribute}“ не е в списъкаПолето „%{attribute}“ е резервираноПолето „%{attribute}“ е с неправилна дължина (трябва да е %{count} символа)Полето „%{attribute}“ е много дълго (максимумът е %{count} символа)Полето „%{attribute}“ е много късо (минимумът е %{count} символа)Полето „%{attribute}“ трябва бъде приетоПолето „%{attribute}“ трябва бъде равно на %{count}Полето „%{attribute}“ трябва бъде четноПолето „%{attribute}“ трябва бъде по-голямо от %{count}Полето „%{attribute}“ трябва бъде по-голямо или равно на %{count}Полето „%{attribute}“ трябва бъде по-малко от %{count}Полето „%{attribute}“ трябва бъде по-малко или равно на %{count}Полето „%{attribute}“ трябва бъде нечетноНеуспешна валидация: %{error_messages}gettext-activerecord-2.1.0/data/locale/ca/0000755000175000017500000000000011623722575017431 5ustar gwolfgwolfgettext-activerecord-2.1.0/data/locale/ca/LC_MESSAGES/0000755000175000017500000000000011623722575021216 5ustar gwolfgwolfgettext-activerecord-2.1.0/data/locale/ca/LC_MESSAGES/gettext_activerecord.mo0000644000175000017500000000463211623722575025776 0ustar gwolfgwolfl'#Ae}(@9:W&*6'S3{$U"Cf77FPd<;.'Nv-3)1 R *o      %{attribute} can't be blank%{attribute} can't be empty%{attribute} doesn't match confirmation%{attribute} has already been taken%{attribute} is invalid%{attribute} is not a number%{attribute} is not included in the list%{attribute} is reserved%{attribute} is the wrong length (should be %{count} characters)%{attribute} is too long (maximum is %{count} characters)%{attribute} is too short (minimum is %{count} characters)%{attribute} must be accepted%{attribute} must be equal to %{count}%{attribute} must be even%{attribute} must be greater than %{count}%{attribute} must be greater than or equal to %{count}%{attribute} must be less than %{count}%{attribute} must be less than or equal to %{count}%{attribute} must be oddValidation failed: %{error_messages}Project-Id-Version: gettext_activerecord 0.1.0 POT-Creation-Date: 2009-02-09 01:48+0900 PO-Revision-Date: 2005-12-17 14:33+0900 Last-Translator: Ramon Salvadó Language-Team: Catalan MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Plural-Forms: nplurals=2; plural=(n != 1); %{attribute} no pot estar en blanc%{attribute} no pot ser buit%{attribute} no té el mateix valor que la confirmació%{attribute} ja existent%{attribute} no és vàlid%{attribute} no és un número%{attribute} no pertany a la llista de possibles valors%{attribute} no està permès%{attribute} té una llargària incorrecta (hauria de tenir %{count} caràcters)%{attribute} és massa llarg (màxim de %{count} caràcters)%{attribute} és massa curt (mínim de %{count} caràcters)%{attribute} ha de ser acceptat%{attribute} ha de ser igual a %{count}%{attribute} ha de ser parell%{attribute} ha de ser més gran que %{count}%{attribute} ha de ser més gran o igual a %{count}%{attribute} ha de ser menor que %{count}%{attribute} ha de ser menor o igual que %{count}%{attribute} ha de ser senarLa validació ha fallat: %{error_messages}gettext-activerecord-2.1.0/data/locale/bs/0000755000175000017500000000000011623722575017452 5ustar gwolfgwolfgettext-activerecord-2.1.0/data/locale/bs/LC_MESSAGES/0000755000175000017500000000000011623722575021237 5ustar gwolfgwolfgettext-activerecord-2.1.0/data/locale/bs/LC_MESSAGES/gettext_activerecord.mo0000644000175000017500000000336411623722575026020 0ustar gwolfgwolfHIe'#(+@D9:$=!!'8`}F>+@j(    %{attribute} can't be blank%{attribute} can't be empty%{attribute} doesn't match confirmation%{attribute} has already been taken%{attribute} is invalid%{attribute} is not a number%{attribute} is not included in the list%{attribute} is reserved%{attribute} is the wrong length (should be %{count} characters)%{attribute} is too long (maximum is %{count} characters)%{attribute} is too short (minimum is %{count} characters)%{attribute} must be acceptedValidation failed: %{error_messages}Project-Id-Version: gettext_activerecord 0.1.0 POT-Creation-Date: 2009-02-09 01:48+0900 PO-Revision-Date: 2007-06-26 19:02+0200 Last-Translator: Sanjin Sehic Language-Team: Bosnian MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Plural-Forms: n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2; X-Generator: KBabel 1.11.4 %{attribute} ne može biti prazan%{attribute} ne može biti prazan%{attribute} se ne podudara sa potvrdom%{attribute} se već koristi%{attribute} je pogrešan%{attribute} nije broj%{attribute} nije u listi%{attribute} je rezervisano%{attribute} je pogrešne dužine (trebalo bi biti %{count} karaktera)%{attribute} je previše dugo (maksimum je %{count} karaktera)%{attribute} nije dovoljno dugo (maksimum je %{count} karaktera)%{attribute} se mora prihvatitiProvjera nije uspjela: %{error_messages}gettext-activerecord-2.1.0/data/locale/de/0000755000175000017500000000000011623722575017436 5ustar gwolfgwolfgettext-activerecord-2.1.0/data/locale/de/LC_MESSAGES/0000755000175000017500000000000011623722575021223 5ustar gwolfgwolfgettext-activerecord-2.1.0/data/locale/de/LC_MESSAGES/gettext_activerecord.mo0000644000175000017500000000462611623722575026006 0ustar gwolfgwolfl'#Ae}(@9:W&*6'S3{$l!Z!|7),VHr00#&Ah,4+3 H -h      %{attribute} can't be blank%{attribute} can't be empty%{attribute} doesn't match confirmation%{attribute} has already been taken%{attribute} is invalid%{attribute} is not a number%{attribute} is not included in the list%{attribute} is reserved%{attribute} is the wrong length (should be %{count} characters)%{attribute} is too long (maximum is %{count} characters)%{attribute} is too short (minimum is %{count} characters)%{attribute} must be accepted%{attribute} must be equal to %{count}%{attribute} must be even%{attribute} must be greater than %{count}%{attribute} must be greater than or equal to %{count}%{attribute} must be less than %{count}%{attribute} must be less than or equal to %{count}%{attribute} must be oddValidation failed: %{error_messages}Project-Id-Version: gettext_activerecord 0.1.0 POT-Creation-Date: 2009-02-09 01:48+0900 PO-Revision-Date: 2008-07-13 10:00W. Europe Standard Time Last-Translator: Patrick Lenz Language-Team: German MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Plural-Forms: nplurals=2; plural=(n != 1); %{attribute} darf nicht leer sein%{attribute} darf nicht leer sein%{attribute} stimmt nicht mit der Bestätigung überein%{attribute} existiert bereits%{attribute} ist ungültig%{attribute} ist keine Zahl%{attribute} kommt nicht in der Liste vor%{attribute} ist reserviert%{attribute} hat eine falsche Länge (sollte %{count} Zeichen lang sein)%{attribute} ist zu lang (max. %{count} Zeichen)%{attribute} ist zu kurz (min. %{count} Zeichen)%{attribute} muss akzeptiert werden%{attribute} muss gleich %{count} sein%{attribute} muss gerade sein%{attribute} muss größer sein als %{count}%{attribute} muss größer oder gleich %{count} sein%{attribute} muss kleiner sein als %{count}%{attribute} muss kleiner oder gleich %{count} sein%{attribute} muss ungerade seinValidierung fehlgeschlagen: %{error_messages}gettext-activerecord-2.1.0/data/locale/cs/0000755000175000017500000000000011623722575017453 5ustar gwolfgwolfgettext-activerecord-2.1.0/data/locale/cs/LC_MESSAGES/0000755000175000017500000000000011623722575021240 5ustar gwolfgwolfgettext-activerecord-2.1.0/data/locale/cs/LC_MESSAGES/gettext_activerecord.mo0000644000175000017500000000344511623722575026021 0ustar gwolfgwolfHIe'#(+@D9:$=!!(0Yw$14@>\?#%    %{attribute} can't be blank%{attribute} can't be empty%{attribute} doesn't match confirmation%{attribute} has already been taken%{attribute} is invalid%{attribute} is not a number%{attribute} is not included in the list%{attribute} is reserved%{attribute} is the wrong length (should be %{count} characters)%{attribute} is too long (maximum is %{count} characters)%{attribute} is too short (minimum is %{count} characters)%{attribute} must be acceptedValidation failed: %{error_messages}Project-Id-Version: gettext_activerecord 0.1.0 POT-Creation-Date: 2009-02-09 01:48+0900 PO-Revision-Date: 2006-12-16 13:08+0100 Last-Translator: Karel Miarka Language-Team: Czech MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2); X-Poedit-Language: Czech %{attribute} musí být vyplněno%{attribute} musí být vyplněno%{attribute} není shodné s potvrzením%{attribute} je již použito%{attribute} je chybné%{attribute} není správné číslo%{attribute} není obsaženo v seznamu možností%{attribute} je rezervováno a nemůže být zvoleno%{attribute} má nesprávnou délku (musí mít %{count} znaků)%{attribute} je příliš dlouhé (maximum je %{count} znaků)%{attribute} je příliš krátké (minimum je %{count} znaků)%{attribute} musí být zaškrtnutoVýsledek validace: %{error_messages}gettext-activerecord-2.1.0/data/locale/el/0000755000175000017500000000000011623722575017446 5ustar gwolfgwolfgettext-activerecord-2.1.0/data/locale/el/LC_MESSAGES/0000755000175000017500000000000011623722575021233 5ustar gwolfgwolfgettext-activerecord-2.1.0/data/locale/el/LC_MESSAGES/gettext_activerecord.mo0000644000175000017500000000574111623722575026015 0ustar gwolfgwolfl'#Ae}(@9:W&*6'S3{$E@3@tU: 'F2nG3roq 9r N 9 R5 R P P, 0} 2      %{attribute} can't be blank%{attribute} can't be empty%{attribute} doesn't match confirmation%{attribute} has already been taken%{attribute} is invalid%{attribute} is not a number%{attribute} is not included in the list%{attribute} is reserved%{attribute} is the wrong length (should be %{count} characters)%{attribute} is too long (maximum is %{count} characters)%{attribute} is too short (minimum is %{count} characters)%{attribute} must be accepted%{attribute} must be equal to %{count}%{attribute} must be even%{attribute} must be greater than %{count}%{attribute} must be greater than or equal to %{count}%{attribute} must be less than %{count}%{attribute} must be less than or equal to %{count}%{attribute} must be oddValidation failed: %{error_messages}Project-Id-Version: gettext_activerecord 0.1.0 POT-Creation-Date: 2009-02-09 01:48+0900 PO-Revision-Date: 2006-01-06 19:50+0100 Last-Translator: damphyr Language-Team: Greek MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Plural-Forms: nplurals=2; plural=(n != 1); το %{attribute} δεν γίνεται να είναι κενότο %{attribute} δεν γίνεται να είναι κενότο %{attribute} δεν ταιριάζει με την επιβεβαίωση τουτο %{attribute} είναι ήδη κατειλημένοτο %{attribute} είναι άκυροτο %{attribute} δεν είναι αριθμόςτο %{attribute} δεν περιλαμβάνεται στη λίστατο %{attribute} είναι κατειλημένοτο %{attribute} έχει το λάθος μήκος (πρέπει να είναι %{count} χαρακτήρες)το %{attribute} είναι πολύ μακρύ (το μέγιστο είναι %{count} χαρακτήρες)το %{attribute} είναι πολύ μικρό (το ελάχιστο είναι %{count} χαρακτήρες)το %{attribute} πρέπει να γίνει δεκτότο %{attribute} πρέπει να μικρότερο ή ίσο με %{count}το %{attribute} πρέπει να είναι άρτιοτο %{attribute} πρέπει να μεγαλύτερο ή ίσο απο %{count}το %{attribute} πρέπει να μεγαλύτερο ή ίσο απο %{count}το %{attribute} πρέπει να μικρότερο ή ίσο απο %{count}το %{attribute} πρέπει να μικρότερο ή ίσο απο %{count}το %{attribute} πρέπει να περιτόΑποτυχία ελέγχου: %{error_messages}gettext-activerecord-2.1.0/data/locale/eo/0000755000175000017500000000000011623722575017451 5ustar gwolfgwolfgettext-activerecord-2.1.0/data/locale/eo/LC_MESSAGES/0000755000175000017500000000000011623722575021236 5ustar gwolfgwolfgettext-activerecord-2.1.0/data/locale/eo/LC_MESSAGES/gettext_activerecord.mo0000644000175000017500000000442011623722575026011 0ustar gwolfgwolfl'#Ae}(@9:W&*6'S3{$SA_"}"(*3S5#!0=$n3 '     %{attribute} can't be blank%{attribute} can't be empty%{attribute} doesn't match confirmation%{attribute} has already been taken%{attribute} is invalid%{attribute} is not a number%{attribute} is not included in the list%{attribute} is reserved%{attribute} is the wrong length (should be %{count} characters)%{attribute} is too long (maximum is %{count} characters)%{attribute} is too short (minimum is %{count} characters)%{attribute} must be accepted%{attribute} must be equal to %{count}%{attribute} must be even%{attribute} must be greater than %{count}%{attribute} must be greater than or equal to %{count}%{attribute} must be less than %{count}%{attribute} must be less than or equal to %{count}%{attribute} must be oddValidation failed: %{error_messages}Project-Id-Version: gettext_activerecord 0.1.0 POT-Creation-Date: 2009-02-09 01:48+0900 PO-Revision-Date: 2007-06-26 11:42+0200 Last-Translator: Malte Milatz Language-Team: Esperanto MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Plural-Forms: nplurals=2; plural=(n != 1); %{attribute} ne estu malplena%{attribute} ne estu malplena%{attribute} devias de la konfirmo%{attribute} jam preniĝis%{attribute}: nevalida%{attribute} ne estas nombroLa listo ne enhavas "%{attribute}"%{attribute}: rezervita%{attribute} estu %{count} signojn longa%{attribute}: tro longa (maksimume %{count} signoj)%{attribute}: tro mallonga (minimume %{count} signoj)%{attribute} estu akceptata%{attribute} estu egala al %{count}%{attribute} estu para nombro%{attribute} estu pli ol %{count}%{attribute} estu pli ol, aŭ egala al, %{count}%{attribute} estu malpli ol %{count}%{attribute} estu malpli ol, aŭ egala al, %{count}%{attribute} estu malpara nombroErarkontrolo montris: %{error_messages}gettext-activerecord-2.1.0/data/locale/es/0000755000175000017500000000000011623722575017455 5ustar gwolfgwolfgettext-activerecord-2.1.0/data/locale/es/LC_MESSAGES/0000755000175000017500000000000011623722575021242 5ustar gwolfgwolfgettext-activerecord-2.1.0/data/locale/es/LC_MESSAGES/gettext_activerecord.mo0000644000175000017500000000460611623722575026023 0ustar gwolfgwolfl'#Ae}(@9:W&*6'S3{$Y%G"m,*>K[@@)&Ho(0(0 = ,Y      %{attribute} can't be blank%{attribute} can't be empty%{attribute} doesn't match confirmation%{attribute} has already been taken%{attribute} is invalid%{attribute} is not a number%{attribute} is not included in the list%{attribute} is reserved%{attribute} is the wrong length (should be %{count} characters)%{attribute} is too long (maximum is %{count} characters)%{attribute} is too short (minimum is %{count} characters)%{attribute} must be accepted%{attribute} must be equal to %{count}%{attribute} must be even%{attribute} must be greater than %{count}%{attribute} must be greater than or equal to %{count}%{attribute} must be less than %{count}%{attribute} must be less than or equal to %{count}%{attribute} must be oddValidation failed: %{error_messages}Project-Id-Version: gettext_activerecord 0.1.0 POT-Creation-Date: 2009-02-09 01:48+0900 PO-Revision-Date: 2005-12-17 14:33+0900 Last-Translator: David Espada Language-Team: Spanish MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Plural-Forms: nplurals=2; plural=(n != 1); %{attribute} no puede estar en blanco%{attribute} no puede estar vacío%{attribute} no se ajusta a la confirmación%{attribute} ya se ha tomado%{attribute} no es válido%{attribute} no es un número%{attribute} no está incluido en la lista%{attribute} está reservado%{attribute} tiene longitud incorrecta (debería tener %{count} caracteres)%{attribute} es demasiado largo (máximo de %{count} caracteres)%{attribute} es demasiado corto (mínimo de %{count} caracteres)%{attribute} debe ser aceptado%{attribute} debe ser igual a %{count}%{attribute} debe ser par%{attribute} debe ser mayor que %{count}%{attribute} debe ser mayor o igual que %{count}%{attribute} debe ser menor que %{count}%{attribute} debe ser menor o igual que %{count}%{attribute} debe ser imparHa fallado la validación: %{error_messages}gettext-activerecord-2.1.0/data/locale/et/0000755000175000017500000000000011623722575017456 5ustar gwolfgwolfgettext-activerecord-2.1.0/data/locale/et/LC_MESSAGES/0000755000175000017500000000000011623722575021243 5ustar gwolfgwolfgettext-activerecord-2.1.0/data/locale/et/LC_MESSAGES/gettext_activerecord.mo0000644000175000017500000000455111623722575026023 0ustar gwolfgwolfl'#Ae}(@9:W&*6'S3{$N<\!|@ >aI!+ 8+W7'9 17      %{attribute} can't be blank%{attribute} can't be empty%{attribute} doesn't match confirmation%{attribute} has already been taken%{attribute} is invalid%{attribute} is not a number%{attribute} is not included in the list%{attribute} is reserved%{attribute} is the wrong length (should be %{count} characters)%{attribute} is too long (maximum is %{count} characters)%{attribute} is too short (minimum is %{count} characters)%{attribute} must be accepted%{attribute} must be equal to %{count}%{attribute} must be even%{attribute} must be greater than %{count}%{attribute} must be greater than or equal to %{count}%{attribute} must be less than %{count}%{attribute} must be less than or equal to %{count}%{attribute} must be oddValidation failed: %{error_messages}Project-Id-Version: gettext_activerecord 0.1.0 POT-Creation-Date: 2009-02-09 01:48+0900 PO-Revision-Date: 2008-08-07 14:00+0300 Last-Translator: Erkki Eilonen Language-Team: Estonian MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Plural-Forms: nplurals=2; plural=n != 1; %{attribute} ei tohi olla tühi%{attribute} ei tohi olla tühi%{attribute} ei vasta kinnitusele%{attribute} on juba olemas%{attribute} on vigane%{attribute} ei ole number%{attribute} pole lubatud%{attribute} pole lubatud%{attribute} on vale pikkusega (peab olema %{count} tähemärki)%{attribute} on liiga pikk (lubatud kuni %{count} tähemärki)%{attribute} on liiga lühike (peab olema vähemalt %{count} tähemärki)%{attribute} peab olema märgitud%{attribute} peab olema võrdne %{count}-ga%{attribute} peab olema paaris%{attribute} peab olema suurem kui %{count}%{attribute} peab olema suurem või võrdne %{count}-ga%{attribute} peab väiksem kui %{count}%{attribute} peab olema väiksem või võrdne %{count}-ga%{attribute} peab paarituÕigsuse kontroll ebaõnnestus: %{error_messages}gettext-activerecord-2.1.0/data/locale/fr/0000755000175000017500000000000011623722575017455 5ustar gwolfgwolfgettext-activerecord-2.1.0/data/locale/fr/LC_MESSAGES/0000755000175000017500000000000011623722575021242 5ustar gwolfgwolfgettext-activerecord-2.1.0/data/locale/fr/LC_MESSAGES/gettext_activerecord.mo0000644000175000017500000000457211623722575026025 0ustar gwolfgwolfl'#Ae}(@9:W&*6'S3{$C!1S1s $"P=67 )H.e7.73 'R      %{attribute} can't be blank%{attribute} can't be empty%{attribute} doesn't match confirmation%{attribute} has already been taken%{attribute} is invalid%{attribute} is not a number%{attribute} is not included in the list%{attribute} is reserved%{attribute} is the wrong length (should be %{count} characters)%{attribute} is too long (maximum is %{count} characters)%{attribute} is too short (minimum is %{count} characters)%{attribute} must be accepted%{attribute} must be equal to %{count}%{attribute} must be even%{attribute} must be greater than %{count}%{attribute} must be greater than or equal to %{count}%{attribute} must be less than %{count}%{attribute} must be less than or equal to %{count}%{attribute} must be oddValidation failed: %{error_messages}Project-Id-Version: gettext_activerecord 0.1.0 POT-Creation-Date: 2009-02-09 01:48+0900 PO-Revision-Date: 2005-12-17 14:33+0900 Last-Translator: Vincent Isambart Language-Team: French MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Plural-Forms: nplurals=2; plural=n == 1 ? 0 : 1; %{attribute} ne peut être vierge%{attribute} ne peut être vide%{attribute} ne correspond pas à la confirmation%{attribute} est déjà pris%{attribute} est invalide%{attribute} n'est pas un nombre%{attribute} n'est pas dans la liste%{attribute} est réservé%{attribute} a une longueur incompatible (devrait être de %{count} caractères)%{attribute} est trop long (max. %{count} caractères)%{attribute} est trop court (min. %{count} caractères)%{attribute} doit être accepté%{attribute} doit être égal à %{count}%{attribute} doit être pair%{attribute} doit être supérieur à %{count}%{attribute} doit être supérieur ou égal à %{count}%{attribute} doit être inférieur à %{count}%{attribute} doit être inférieur ou égal à %{count}%{attribute} doit être impairValidation échouée: %{error_messages}gettext-activerecord-2.1.0/data/locale/hr/0000755000175000017500000000000011623722575017457 5ustar gwolfgwolfgettext-activerecord-2.1.0/data/locale/hr/LC_MESSAGES/0000755000175000017500000000000011623722575021244 5ustar gwolfgwolfgettext-activerecord-2.1.0/data/locale/hr/LC_MESSAGES/gettext_activerecord.mo0000644000175000017500000000336511623722575026026 0ustar gwolfgwolfHIe'#(+@D9:$=!!'9a~F>,@k(    %{attribute} can't be blank%{attribute} can't be empty%{attribute} doesn't match confirmation%{attribute} has already been taken%{attribute} is invalid%{attribute} is not a number%{attribute} is not included in the list%{attribute} is reserved%{attribute} is the wrong length (should be %{count} characters)%{attribute} is too long (maximum is %{count} characters)%{attribute} is too short (minimum is %{count} characters)%{attribute} must be acceptedValidation failed: %{error_messages}Project-Id-Version: gettext_activerecord 0.1.0 POT-Creation-Date: 2009-02-09 01:48+0900 PO-Revision-Date: 2007-06-26 19:02+0200 Last-Translator: Sanjin Sehic Language-Team: Croatian MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Plural-Forms: n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2; X-Generator: KBabel 1.11.4 %{attribute} ne može biti prazan%{attribute} ne može biti prazan%{attribute} se ne podudara sa potvrdom%{attribute} se već koristi%{attribute} je pogrešan%{attribute} nije broj%{attribute} nije u listi%{attribute} je rezervisano%{attribute} je pogrešne dužine (trebalo bi biti %{count} karaktera)%{attribute} je previše dugo (maksimum je %{count} karaktera)%{attribute} nije dovoljno dugo (maksimum je %{count} karaktera)%{attribute} se mora prihvatitiProvjera nije uspjela: %{error_messages}gettext-activerecord-2.1.0/data/locale/hu/0000755000175000017500000000000011623722575017462 5ustar gwolfgwolfgettext-activerecord-2.1.0/data/locale/hu/LC_MESSAGES/0000755000175000017500000000000011623722575021247 5ustar gwolfgwolfgettext-activerecord-2.1.0/data/locale/hu/LC_MESSAGES/gettext_activerecord.mo0000644000175000017500000000464211623722575026030 0ustar gwolfgwolfl'#Ae}(@9:W&*6'S3{$SA^9{"  &CG;:'**/U.7-8 2S       %{attribute} can't be blank%{attribute} can't be empty%{attribute} doesn't match confirmation%{attribute} has already been taken%{attribute} is invalid%{attribute} is not a number%{attribute} is not included in the list%{attribute} is reserved%{attribute} is the wrong length (should be %{count} characters)%{attribute} is too long (maximum is %{count} characters)%{attribute} is too short (minimum is %{count} characters)%{attribute} must be accepted%{attribute} must be equal to %{count}%{attribute} must be even%{attribute} must be greater than %{count}%{attribute} must be greater than or equal to %{count}%{attribute} must be less than %{count}%{attribute} must be less than or equal to %{count}%{attribute} must be oddValidation failed: %{error_messages}Project-Id-Version: gettext_activerecord 0.1.0 POT-Creation-Date: 2009-02-09 01:48+0900 PO-Revision-Date: 2008-07-15 09:00+0900 Last-Translator: Tamás Tompa Language-Team: Hungarian MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Plural-Forms: nplurals=2; plural=(n != 1); %{attribute} nem lehet üres%{attribute} nem lehet üres%{attribute} megerősítés nem egyezik meg az eredetivel%{attribute} már egyszer szerepel%{attribute} érvénytelen%{attribute} nem szám%{attribute} nem megfelelő%{attribute} fenntartott érték%{attribute} nem megfelelő hosszúságú (%{count} karakter lehet)%{attribute} túl hosszú (maximum %{count} karakter lehet)%{attribute} túl rövid (minimum %{count} karakter lehet)%{attribute} értékét el kell fogadni%{attribute} értéke %{count} kell legyen%{attribute} értékének párosnak kell lennie%{attribute} nagyobb kell legyen mint %{count}%{attribute} legalább akkora kell legyen mint %{count}%{attribute} kisebb kell legyen mint %{count}%{attribute} legfeljebb akkora kell legyen mint %{count}%{attribute} értékének páratlannak kell lennieHiba oka: %{error_messages}gettext-activerecord-2.1.0/data/locale/ja/0000755000175000017500000000000011623722575017440 5ustar gwolfgwolfgettext-activerecord-2.1.0/data/locale/ja/LC_MESSAGES/0000755000175000017500000000000011623722575021225 5ustar gwolfgwolfgettext-activerecord-2.1.0/data/locale/ja/LC_MESSAGES/gettext_activerecord.mo0000644000175000017500000000505311623722575026003 0ustar gwolfgwolfl'#Ae}(@9:W&*6'S3{$:*(*S$~*$3*'*R;}AA*=/h-A; AD ; - :      %{attribute} can't be blank%{attribute} can't be empty%{attribute} doesn't match confirmation%{attribute} has already been taken%{attribute} is invalid%{attribute} is not a number%{attribute} is not included in the list%{attribute} is reserved%{attribute} is the wrong length (should be %{count} characters)%{attribute} is too long (maximum is %{count} characters)%{attribute} is too short (minimum is %{count} characters)%{attribute} must be accepted%{attribute} must be equal to %{count}%{attribute} must be even%{attribute} must be greater than %{count}%{attribute} must be greater than or equal to %{count}%{attribute} must be less than %{count}%{attribute} must be less than or equal to %{count}%{attribute} must be oddValidation failed: %{error_messages}Project-Id-Version: gettext_activerecord 0.1.0 POT-Creation-Date: 2009-02-09 01:48+0900 PO-Revision-Date: 2008-07-13 15:10+0900 Last-Translator: Masao Mutoh Language-Team: Japanese MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Plural-Forms: nplurals=2; plural=(n != 1); %{attribute}を入力してください。%{attribute}を入力してください。%{attribute}が一致しません。%{attribute}はすでに存在します。%{attribute}は不正な値です。%{attribute}は数値で入力してください。%{attribute}は一覧にありません。%{attribute}は予約されています。%{attribute}は%{count}文字で入力してください。%{attribute}は%{count}文字以内で入力してください。%{attribute}は%{count}文字以上で入力してください。%{attribute}を受諾してください。%{attribute}は%{count}にしてください。%{attribute}は偶数にしてください。%{attribute}は%{count}より大きい値にしてください。%{attribute}は%{count}以上の値にしてください。%{attribute}は%{count}より小さい値にしてください。%{attribute}は%{count}以下の値にしてください。%{attribute}は奇数にしてください。入力値が正しくありません。: %{error_messages}gettext-activerecord-2.1.0/data/locale/it/0000755000175000017500000000000011623722575017462 5ustar gwolfgwolfgettext-activerecord-2.1.0/data/locale/it/LC_MESSAGES/0000755000175000017500000000000011623722575021247 5ustar gwolfgwolfgettext-activerecord-2.1.0/data/locale/it/LC_MESSAGES/gettext_activerecord.mo0000644000175000017500000000315511623722575026026 0ustar gwolfgwolf 89U'q#(@49u:X"a"* ''$ODtLMT    %{attribute} can't be blank%{attribute} can't be empty%{attribute} doesn't match confirmation%{attribute} has already been taken%{attribute} is invalid%{attribute} is not a number%{attribute} is not included in the list%{attribute} is reserved%{attribute} is the wrong length (should be %{count} characters)%{attribute} is too long (maximum is %{count} characters)%{attribute} is too short (minimum is %{count} characters)%{attribute} must be acceptedProject-Id-Version: gettext_activerecord 0.1.0 POT-Creation-Date: 2009-02-09 01:48+0900 PO-Revision-Date: 2005-12-17 14:33+0900 Last-Translator: Marco Lazzeri Language-Team: Italian MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Plural-Forms: nplurals=2; plural=(n != 1); %{attribute} non può essere vuoto%{attribute} non può essere vuoto%{attribute} non corrisponde alla conferma%{attribute} è già in uso%{attribute} non è valido%{attribute} non è un numero%{attribute} non è incluso nella lista%{attribute} è una parola riservata%{attribute} lunghezza errata (deve essere lungo %{count} caratteri)%{attribute} è troppo lungo (la lunghezza massima è di %{count} caratteri)%{attribute} è troppo corto (la lunghezza minima è di %{count} caratetteri)%{} dev'essere accettatogettext-activerecord-2.1.0/data/locale/ko/0000755000175000017500000000000011623722575017457 5ustar gwolfgwolfgettext-activerecord-2.1.0/data/locale/ko/LC_MESSAGES/0000755000175000017500000000000011623722575021244 5ustar gwolfgwolfgettext-activerecord-2.1.0/data/locale/ko/LC_MESSAGES/gettext_activerecord.mo0000644000175000017500000000406511623722575026024 0ustar gwolfgwolfHIe'#(+@D9:$K=GGMYg8+P&MwTVVq56    %{attribute} can't be blank%{attribute} can't be empty%{attribute} doesn't match confirmation%{attribute} has already been taken%{attribute} is invalid%{attribute} is not a number%{attribute} is not included in the list%{attribute} is reserved%{attribute} is the wrong length (should be %{count} characters)%{attribute} is too long (maximum is %{count} characters)%{attribute} is too short (minimum is %{count} characters)%{attribute} must be acceptedValidation failed: %{error_messages}Project-Id-Version: gettext_activerecord 0.1.0 POT-Creation-Date: 2009-02-09 01:48+0900 PO-Revision-Date: 2006-07-10 02:00+0900 Last-Translator: Gyoung-Yoon Noh Language-Team: Korean MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Plural-Forms: nplurals=1; plural=0; %{attribute}이(가) 비어 있습니다. 값을 입력해야 합니다%{attribute}이(가) 비어 있습니다. 값을 입력해야 합니다입력 확인을 위한 %{attribute}이(가) 서로 일치하지 않습니다중복되는 값을 사용했습니다. 다른 %{attribute}을(를) 사용해주십시요%{attribute}은(는) 유효하지 않은 형식입니다%{attribute}은(는) 숫자가 아닙니다%{attribute}은(는) 허용 가능한 목록에 포함되어 있지 않습니다%{attribute}은(는) 예약되어 있기 때문에 사용할 수 없습니다%{attribute}의 문자 수가 잘못되었습니다. %{count} 문자여야 합니다%{attribute}의 문자 수가 최대 허용 문자 수 %{count}자 보다 많습니다%{attribute}의 문자 수가 최소 허용 문자 수 %{count}자 보다 작습니다%{attribute}은(는) 반드시 확인해야 합니다유효하지 않은 입력입니다: %{error_messages}gettext-activerecord-2.1.0/data/locale/lv/0000755000175000017500000000000011623722575017467 5ustar gwolfgwolfgettext-activerecord-2.1.0/data/locale/lv/LC_MESSAGES/0000755000175000017500000000000011623722575021254 5ustar gwolfgwolfgettext-activerecord-2.1.0/data/locale/lv/LC_MESSAGES/gettext_activerecord.mo0000644000175000017500000000465011623722575026034 0ustar gwolfgwolfl'#Ae}(@9:W&*6'S3{$v%d)$$0U=p;8#*?#j+8*7 %V +|      %{attribute} can't be blank%{attribute} can't be empty%{attribute} doesn't match confirmation%{attribute} has already been taken%{attribute} is invalid%{attribute} is not a number%{attribute} is not included in the list%{attribute} is reserved%{attribute} is the wrong length (should be %{count} characters)%{attribute} is too long (maximum is %{count} characters)%{attribute} is too short (minimum is %{count} characters)%{attribute} must be accepted%{attribute} must be equal to %{count}%{attribute} must be even%{attribute} must be greater than %{count}%{attribute} must be greater than or equal to %{count}%{attribute} must be less than %{count}%{attribute} must be less than or equal to %{count}%{attribute} must be oddValidation failed: %{error_messages}Project-Id-Version: gettext_activerecord 0.1.0 POT-Creation-Date: 2009-02-09 01:48+0900 PO-Revision-Date: 2008-07-25 09:37+0200 Last-Translator: Aivars Akots Language-Team: Latvian MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n != 0 ? 1 : 2); %{attribute} ir obligāti jāaizpilda%{attribute} nevar būt tukšs%{attribute} nesakrīt ar apstiprinājumu%{attribute} ir jau aizņemts%{attribute} ir nepareizi noformēts%{attribute} nav skaitlis%{attribute} nav iekļauts sarakstā%{attribute} ir rezervēts%{attribute} ir nepareiza garuma (jābūt %{count} simboliem)%{attribute} ir pārāk garšs (maksimums %{count} simboli)%{attribute} ir pārāk īss (minimums %{count} simboli)%{attribute} ir jāakceptē%{attribute} jābūt vienādam ar %{count}%{attribute} jābūt pāra skaitlim%{attribute} jābūt lielākam kā %{count}%{attribute} jābūt lielākam vai vienādam ar %{count}%{attribute} jābūt mazākam kā %{count}%{attribute} jābūt mazākam vai vienādam ar %{count}%{attribute} jābūt nepāra skaitlimValidācija neveiksmīga: %{error_messages}gettext-activerecord-2.1.0/data/locale/nb/0000755000175000017500000000000011623722575017445 5ustar gwolfgwolfgettext-activerecord-2.1.0/data/locale/nb/LC_MESSAGES/0000755000175000017500000000000011623722575021232 5ustar gwolfgwolfgettext-activerecord-2.1.0/data/locale/nb/LC_MESSAGES/gettext_activerecord.mo0000644000175000017500000000456511623722575026017 0ustar gwolfgwolfl'#Ae}(@9:W&*6'S3{$!|* !'>f;-0#3W+r5*44 $P      %{attribute} can't be blank%{attribute} can't be empty%{attribute} doesn't match confirmation%{attribute} has already been taken%{attribute} is invalid%{attribute} is not a number%{attribute} is not included in the list%{attribute} is reserved%{attribute} is the wrong length (should be %{count} characters)%{attribute} is too long (maximum is %{count} characters)%{attribute} is too short (minimum is %{count} characters)%{attribute} must be accepted%{attribute} must be equal to %{count}%{attribute} must be even%{attribute} must be greater than %{count}%{attribute} must be greater than or equal to %{count}%{attribute} must be less than %{count}%{attribute} must be less than or equal to %{count}%{attribute} must be oddValidation failed: %{error_messages}Project-Id-Version: gettext_activerecord 0.1.0 Report-Msgid-Bugs-To: POT-Creation-Date: 2009-02-09 01:48+0900 PO-Revision-Date: 2008-07-14 16:16+0200 Last-Translator: Runar Ingebrigtsen Language-Team: Norwegian/Bokmaal MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Plural-Forms: nplurals=2; plural=(n != 1); %{attribute} kan ikke være blank%{attribute} kan ikke være tom%{attribute} stemmer ikke med bekreftelsen%{attribute} er allerede i bruk%{attribute} er ugyldig%{attribute} er ikke et tall%{attribute} er ikke inkludert i listen%{attribute} er reservert%{attribute} er har gal lengde (skulle vært %{count} tegn)%{attribute} er for lang (maks %{count} tegn)%{attribute} er for kort (minimum %{count} tegn)%{attribute} må godtas%{attribute} må være lik %{count}%{attribute} må være lik%{attribute} må være større enn %{count}%{attribute} må være større enn eller lik %{count}%{attribute} må være mindre enn %{count}%{attribute} må være mindre enn eller lik %{count}%{attribute} må være ulikValidering feilet: %{error_messages}gettext-activerecord-2.1.0/data/locale/nl/0000755000175000017500000000000011623722575017457 5ustar gwolfgwolfgettext-activerecord-2.1.0/data/locale/nl/LC_MESSAGES/0000755000175000017500000000000011623722575021244 5ustar gwolfgwolfgettext-activerecord-2.1.0/data/locale/nl/LC_MESSAGES/gettext_activerecord.mo0000644000175000017500000000542011623722575026020 0ustar gwolfgwolf%@A]'y#(#@<9}:&7*Q6|'3(,@m$i.N1n'%F@22%* "> *a 4 * 8 (% &N :u $       %{attribute} can't be blank%{attribute} can't be empty%{attribute} doesn't match confirmation%{attribute} has already been taken%{attribute} is invalid%{attribute} is not a number%{attribute} is not included in the list%{attribute} is reserved%{attribute} is the wrong length (should be %{count} characters)%{attribute} is too long (maximum is %{count} characters)%{attribute} is too short (minimum is %{count} characters)%{attribute} must be accepted%{attribute} must be equal to %{count}%{attribute} must be even%{attribute} must be greater than %{count}%{attribute} must be greater than or equal to %{count}%{attribute} must be less than %{count}%{attribute} must be less than or equal to %{count}%{attribute} must be odd'%{file}' is not found.Ignored '%{file}'. Solve dependencies first.No database is available.Validation failed: %{error_messages}rubygems are not found.Project-Id-Version: gettext_activerecord 0.1.0 POT-Creation-Date: 2009-02-09 01:48+0900 PO-Revision-Date: 2007-06-26 20:52+0100 Last-Translator: Bart ten Brinke Language-Team: Dutch MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Plural-Forms: nplurals=2; plural=n != 1; %{attribute} mag niet leeg zijn%{attribute} mag niet leeg zijn%{attribute} komt niet overeen met de bevestiging%{attribute} is al in gebruik%{attribute} is ongeldig%{attribute} is geen getal%{attribute} komt niet voor in de lijst%{attribute} mag niet worden gebruikt%{attribute} heeft een onjuiste lengte (dit moet %{count} tekens zijn)%{attribute} is te lang (maximaal %{count} tekens)%{attribute} is te kort (minimaal %{count} tekens)%{attribute} moet geaccepteerd worden%{attribute} moet gelijk zijn aan %{count}%{attribute} moet even aantal zijn%{attribute} moet groter zijn dan %{count}%{attribute} moet groter of gelijk zijn aan %{count}%{attribute} moet minder zijn dan %{count}%{attribute} moet minder dan of gelijk zijn aan %{count}%{attribute} moet een oneven aantal zijnKan het bestand '%{file}' niet vinden.Bestand '%{file}' wordt overgeslagen. Dependency probleem.Er is geen database beschikbaar.Validatie mislukt: %{error_messages}Kan rubygems niet vinden.gettext-activerecord-2.1.0/data/locale/ru/0000755000175000017500000000000011623722575017474 5ustar gwolfgwolfgettext-activerecord-2.1.0/data/locale/ru/LC_MESSAGES/0000755000175000017500000000000011623722575021261 5ustar gwolfgwolfgettext-activerecord-2.1.0/data/locale/ru/LC_MESSAGES/gettext_activerecord.mo0000644000175000017500000000563711623722575026047 0ustar gwolfgwolfl'#Ae}(@9:W&*6'S3{$60*1'\++2+b;lk 1w 6 / 8 JI 8 J 3 RL      %{attribute} can't be blank%{attribute} can't be empty%{attribute} doesn't match confirmation%{attribute} has already been taken%{attribute} is invalid%{attribute} is not a number%{attribute} is not included in the list%{attribute} is reserved%{attribute} is the wrong length (should be %{count} characters)%{attribute} is too long (maximum is %{count} characters)%{attribute} is too short (minimum is %{count} characters)%{attribute} must be accepted%{attribute} must be equal to %{count}%{attribute} must be even%{attribute} must be greater than %{count}%{attribute} must be greater than or equal to %{count}%{attribute} must be less than %{count}%{attribute} must be less than or equal to %{count}%{attribute} must be oddValidation failed: %{error_messages}Project-Id-Version: gettext_activerecord 0.1.0 POT-Creation-Date: 2009-02-09 01:48+0900 PO-Revision-Date: 2008-07-13 10:03+0400 Last-Translator: Yuri Kozlov Language-Team: Russian MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2); X-Generator: KBabel 1.11.4 %{attribute} не может быть пробелом%{attribute} не может быть пусто%{attribute} не подтверждено%{attribute} уже было взято%{attribute} недействительноОжидается число: %{attribute}%{attribute} не включёно в список%{attribute} зарезервировано%{attribute} неправильной длины (должно быть %{count} символов)%{attribute} слишком длинно (максимально возможно %{count} символов)%{attribute} слишком коротко (должно быть минимум %{count} символов)%{attribute} должно быть принято%{attribute} должно быть равно %{count}%{attribute} должно быть чётным%{attribute} должно быть больше %{count}%{attribute} должно быть больше или равно %{count}%{attribute} должно быть меньше %{count}%{attribute} должно быть меньше или равно %{count}%{attribute} должно быть нечётнымПроверка правильности не пройдена: %{error_messages}gettext-activerecord-2.1.0/data/locale/sr/0000755000175000017500000000000011623722575017472 5ustar gwolfgwolfgettext-activerecord-2.1.0/data/locale/sr/LC_MESSAGES/0000755000175000017500000000000011623722575021257 5ustar gwolfgwolfgettext-activerecord-2.1.0/data/locale/sr/LC_MESSAGES/gettext_activerecord.mo0000644000175000017500000000543711623722575026043 0ustar gwolfgwolfl'#Ae}(@9:W&*6'S3{$..7'5&]1(dac]0# 6T ) 5 K 57 Km - 7      %{attribute} can't be blank%{attribute} can't be empty%{attribute} doesn't match confirmation%{attribute} has already been taken%{attribute} is invalid%{attribute} is not a number%{attribute} is not included in the list%{attribute} is reserved%{attribute} is the wrong length (should be %{count} characters)%{attribute} is too long (maximum is %{count} characters)%{attribute} is too short (minimum is %{count} characters)%{attribute} must be accepted%{attribute} must be equal to %{count}%{attribute} must be even%{attribute} must be greater than %{count}%{attribute} must be greater than or equal to %{count}%{attribute} must be less than %{count}%{attribute} must be less than or equal to %{count}%{attribute} must be oddValidation failed: %{error_messages}Project-Id-Version: gettext_activerecord 0.1.0 POT-Creation-Date: 2009-02-09 01:48+0900 PO-Revision-Date: 2008-07-13 08:52+0200 Last-Translator: Slobodan Paunović Language-Team: Serbian MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Plural-Forms: nplurals=3; plural=n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2; %{attribute} не сме бити празно%{attribute} не сме бити празно%{attribute} се не слаже са потврдом%{attribute} је већ заузето%{attribute} није исправно%{attribute} није број%{attribute} се не налази у листи%{attribute} је резервисано%{attribute} је погрешне дужине (треба да има %{count} карактера)%{attribute} је сувише дугачко (максимум је %{count} карактера)%{attribute} је сувише кратко (минимум је %{count} карактера)%{attribute} мора да се прихвати%{attribute} мора бити једнако %{count}%{attribute} мора бити парно%{attribute} мора бити веће од %{count}%{attribute} мора бити веће или једнако од %{count}%{attribute} мора бити мање од %{count}%{attribute} мора бити мање или једнако од %{count}%{attribute} мора бити непарноПровера није успела: %{error_messages}gettext-activerecord-2.1.0/data/locale/ua/0000755000175000017500000000000011623722575017453 5ustar gwolfgwolfgettext-activerecord-2.1.0/data/locale/ua/LC_MESSAGES/0000755000175000017500000000000011623722575021240 5ustar gwolfgwolfgettext-activerecord-2.1.0/data/locale/ua/LC_MESSAGES/gettext_activerecord.mo0000644000175000017500000000557011623722575026022 0ustar gwolfgwolfl'#Ae}(@9:W&*6'S3{$N04*e"!4'*_R`b 0v % ) : :2 8m < - f      %{attribute} can't be blank%{attribute} can't be empty%{attribute} doesn't match confirmation%{attribute} has already been taken%{attribute} is invalid%{attribute} is not a number%{attribute} is not included in the list%{attribute} is reserved%{attribute} is the wrong length (should be %{count} characters)%{attribute} is too long (maximum is %{count} characters)%{attribute} is too short (minimum is %{count} characters)%{attribute} must be accepted%{attribute} must be equal to %{count}%{attribute} must be even%{attribute} must be greater than %{count}%{attribute} must be greater than or equal to %{count}%{attribute} must be less than %{count}%{attribute} must be less than or equal to %{count}%{attribute} must be oddValidation failed: %{error_messages}Project-Id-Version: gettext_activerecord 0.1.0 POT-Creation-Date: 2009-02-09 01:48+0900 PO-Revision-Date: 2008-07-14 05:33+0200 Last-Translator: Alex Rootoff Language-Team: Ukrainian MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2); n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2); n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2); %{attribute} не може бути пустим чи невизначеним%{attribute} не може бути пустим%{attribute} не підтверджено%{attribute} вже зайнято%{attribute} недійсний%{attribute} не є числом%{attribute} не включено в перелік%{attribute} зарезервовано%{attribute} неправильна довжина (має бути %{count} символів)%{attribute} задовгий (має бути щонайбільше %{count} символів)%{attribute} закороткий (має бути щонайменше %{count} символів)%{attribute} необхідно прийняти%{attribute} має бути %{count}%{attribute} має бути парним%{attribute} має бути більше, ніж %{count}%{attribute} має бути щонайменше %{count}%{attribute} має бути менше, ніж %{count}%{attribute} має бути щонайбільше %{count}%{attribute} має бути непарнимПеревірка правильності завершилась невдачею: %{error_messages}gettext-activerecord-2.1.0/data/locale/vi/0000755000175000017500000000000011623722575017464 5ustar gwolfgwolfgettext-activerecord-2.1.0/data/locale/vi/LC_MESSAGES/0000755000175000017500000000000011623722575021251 5ustar gwolfgwolfgettext-activerecord-2.1.0/data/locale/vi/LC_MESSAGES/gettext_activerecord.mo0000644000175000017500000000460611623722575026032 0ustar gwolfgwolfl'#Ae}(@9:W&*6'S3{$R$@#e,#("@<c8>*#Cg'5'5 > .W      %{attribute} can't be blank%{attribute} can't be empty%{attribute} doesn't match confirmation%{attribute} has already been taken%{attribute} is invalid%{attribute} is not a number%{attribute} is not included in the list%{attribute} is reserved%{attribute} is the wrong length (should be %{count} characters)%{attribute} is too long (maximum is %{count} characters)%{attribute} is too short (minimum is %{count} characters)%{attribute} must be accepted%{attribute} must be equal to %{count}%{attribute} must be even%{attribute} must be greater than %{count}%{attribute} must be greater than or equal to %{count}%{attribute} must be less than %{count}%{attribute} must be less than or equal to %{count}%{attribute} must be oddValidation failed: %{error_messages}Project-Id-Version: gettext_activerecord 0.1.0 POT-Creation-Date: 2009-02-09 01:48+0900 PO-Revision-Date: 2008-07-13 21:24+0900 Last-Translator: Ngoc Dao Language-Team: Vietnamese MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Plural-Forms: nplurals=2; plural=(n != 1); %{attribute} không được trống%{attribute} không được rỗng%{attribute} không khớp với xác nhận%{attribute} đã tồn tại%{attribute} không hợp lệ%{attribute} không phải là số%{attribute} không có trong danh sách%{attribute} được dành riêng%{attribute} sai chiều dài (phải là %{count} kí tự)%{attribute} quá dài (tối đa là %{count} kí tự)%{attribute} quá ngắn (tối thiểu là %{count} kí tự)%{attribute} phải được chấp nhận%{attribute} phải bằng %{count}%{attribute} phải chẵn%{attribute} phải lớn hơn %{count}%{attribute} phải lớn hơn hoặc bằng %{count}%{attribute} phải nhỏ hơn %{count}%{attribute} phải nhỏ hơn hoặc bằng %{count}%{attribute} phải lẻKiểm chứng thất bại: %{error_messages}gettext-activerecord-2.1.0/data/locale/zh/0000755000175000017500000000000011623722575017467 5ustar gwolfgwolfgettext-activerecord-2.1.0/data/locale/zh/LC_MESSAGES/0000755000175000017500000000000011623722575021254 5ustar gwolfgwolfgettext-activerecord-2.1.0/data/locale/zh/LC_MESSAGES/gettext_activerecord.mo0000644000175000017500000000437611623722575026041 0ustar gwolfgwolfl'#Ae}(@9:W&*6'S3{$p^w-' 18P@55Qj      %{attribute} can't be blank%{attribute} can't be empty%{attribute} doesn't match confirmation%{attribute} has already been taken%{attribute} is invalid%{attribute} is not a number%{attribute} is not included in the list%{attribute} is reserved%{attribute} is the wrong length (should be %{count} characters)%{attribute} is too long (maximum is %{count} characters)%{attribute} is too short (minimum is %{count} characters)%{attribute} must be accepted%{attribute} must be equal to %{count}%{attribute} must be even%{attribute} must be greater than %{count}%{attribute} must be greater than or equal to %{count}%{attribute} must be less than %{count}%{attribute} must be less than or equal to %{count}%{attribute} must be oddValidation failed: %{error_messages}Project-Id-Version: gettext_activerecord 0.1.0 POT-Creation-Date: 2009-02-09 01:48+0900 PO-Revision-Date: 2006-04-15 13:36+0300 Last-Translator: Yang Bob Language-Team: Simplified Chinese MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Plural-Forms: nplurals=1; plural=0; X-Generator: KBabel 1.9.1 %{attribute}不能为空%{attribute}不能为空%{attribute}与确认输入的内容不一致%{attribute}已经被使用了%{attribute}无效%{attribute}不是数字%{attribute}没有包含在本列表中%{attribute}是保留关键字%{attribute}长度错误 (应当包含%{count}个字符)%{attribute}超出长度范围了(最多允许%{count}个字符)%{attribute}太短了 (不能少于%{count}个字符)%{attribute}必须被接受%{attribute}必须等于%{attribute}必须是偶数%{attribute}必须大于%{attribute}必须大于等于%{attribute}必须小于%{attribute}必须小于等于%{attribute}必须是奇数验证失败:%{error_messages}gettext-activerecord-2.1.0/data/locale/pt_BR/0000755000175000017500000000000011623722575020054 5ustar gwolfgwolfgettext-activerecord-2.1.0/data/locale/pt_BR/LC_MESSAGES/0000755000175000017500000000000011623722575021641 5ustar gwolfgwolfgettext-activerecord-2.1.0/data/locale/pt_BR/LC_MESSAGES/gettext_activerecord.mo0000644000175000017500000000465111623722575026422 0ustar gwolfgwolfl'#Ae}(@9:W&*6'S3{$$w -!*AlJ??Q&n+/( /4 d '      %{attribute} can't be blank%{attribute} can't be empty%{attribute} doesn't match confirmation%{attribute} has already been taken%{attribute} is invalid%{attribute} is not a number%{attribute} is not included in the list%{attribute} is reserved%{attribute} is the wrong length (should be %{count} characters)%{attribute} is too long (maximum is %{count} characters)%{attribute} is too short (minimum is %{count} characters)%{attribute} must be accepted%{attribute} must be equal to %{count}%{attribute} must be even%{attribute} must be greater than %{count}%{attribute} must be greater than or equal to %{count}%{attribute} must be less than %{count}%{attribute} must be less than or equal to %{count}%{attribute} must be oddValidation failed: %{error_messages}Project-Id-Version: gettext_activerecord 0.1.0 Report-Msgid-Bugs-To: POT-Creation-Date: 2009-02-09 01:48+0900 PO-Revision-Date: 2008-07-14 09:46-0300 Last-Translator: Antonio Terceiro Language-Team: Portuguese(Brazil) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Plural-Forms: nplurals=2; plural=(n != 1); %{attribute} não pode ser em branco%{attribute} não pode ser vazio%{attribute} não combina com a confirmação%{attribute} já foi tomado%{attribute} é inválido%{attribute} não é um número%{attribute} não está incluído na lista%{attribute} é reservado%{attribute} tem o comprimento incorreto (deveria ter %{count} caracteres)%{attribute} é longo demais (o máximo é %{count} caracteres)%{attribute} é curto demais (o mínimo é %{count} caracteres)%{attribute} deve ser aceito%{attribute} deve ser igual a %{count}%{attribute} deve ser par%{attribute} deve ser maior do que %{count}%{attribute} deve ser maior ou igual a %{count}%{attribute} deve ser menor que %{count}%{attribute} deve ser menor ou igual a %{count}%{attribute} deve ser ímparA validação falhou: %{error_messages}gettext-activerecord-2.1.0/data/locale/zh_TW/0000755000175000017500000000000011623722575020101 5ustar gwolfgwolfgettext-activerecord-2.1.0/data/locale/zh_TW/LC_MESSAGES/0000755000175000017500000000000011623722575021666 5ustar gwolfgwolfgettext-activerecord-2.1.0/data/locale/zh_TW/LC_MESSAGES/gettext_activerecord.mo0000644000175000017500000000434611623722575026450 0ustar gwolfgwolfl'#Ae}(@9:W&*6'S3{$! $#H2^,,9Rq      %{attribute} can't be blank%{attribute} can't be empty%{attribute} doesn't match confirmation%{attribute} has already been taken%{attribute} is invalid%{attribute} is not a number%{attribute} is not included in the list%{attribute} is reserved%{attribute} is the wrong length (should be %{count} characters)%{attribute} is too long (maximum is %{count} characters)%{attribute} is too short (minimum is %{count} characters)%{attribute} must be accepted%{attribute} must be equal to %{count}%{attribute} must be even%{attribute} must be greater than %{count}%{attribute} must be greater than or equal to %{count}%{attribute} must be less than %{count}%{attribute} must be less than or equal to %{count}%{attribute} must be oddValidation failed: %{error_messages}Project-Id-Version: gettext_activerecord 0.1.0 POT-Creation-Date: 2009-02-09 01:48+0900 PO-Revision-Date: 2006-08-21 09:27+0800 Last-Translator: Yang Bob Language-Team: zh_TW MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Poedit-Language: Chinese X-Poedit-Country: TAIWAN Plural-Forms: nplurals=1; plural=0; %{attribute}不能是空白%{attribute}不能是空白%{attribute}不符和確認標準%{attribute}已被使用%{attribute}是無效%{attribute}不是數字%{attribute}沒有包含在列表中%{attribute}被保留%{attribute}字數錯誤 (應該是%{count}個字)%{attribute}太長 (最長是%{count}个字)%{attribute}太短 (最短是%{count}个字)%{attribute}必須接受%{attribute}必須等於%{attribute}必須是偶数%{attribute}必須大於%{attribute}必須大於等於%{attribute}必須小於%{attribute}必須小於等於%{attribute}必須是奇数校驗失敗:%{error_messages}gettext-activerecord-2.1.0/test/0000755000175000017500000000000011623722575015655 5ustar gwolfgwolfgettext-activerecord-2.1.0/test/db/0000755000175000017500000000000011623722575016242 5ustar gwolfgwolfgettext-activerecord-2.1.0/test/db/sqlite.rb0000644000175000017500000000051211623722575020066 0ustar gwolfgwolf#create a connection if /java/ =~ RUBY_PLATFORM adapter = "jdbcsqlite3" else adapter = "sqlite3" end ActiveRecord::Base.configurations = {"test" => { :adapter => adapter, :database => ":memory:" }.with_indifferent_access} ActiveRecord::Base.logger = Logger.new('/dev/null') ActiveRecord::Base.establish_connection(:test) gettext-activerecord-2.1.0/test/db/migrate.rb0000644000175000017500000000175111623722575020223 0ustar gwolfgwolfActiveRecord::Schema.define(:version => 1) do create_table :topics do |t| t.string :title, :author_name, :author_email_address t.datetime :written_on t.timestamp :bonus_time t.date :last_read t.text :content t.boolean :approved t.integer :replies_count, :default=>0, :null=>false t.integer :parent_id t.string :type, :limit=>50 end create_table :developers do |t| t.string :name, :limit=>100 t.integer :salary, :default=>70_000, :null=>false t.timestamps end create_table :books do |t| t.string :title, :limit=>100 t.integer :price, :default=>70_000, :null=>false t.timestamps end create_table :users do |t| t.string :first_name, :last_name, :limit=>100 t.timestamps end create_table :people do |t| t.string :first_name, :limit=>100 t.integer :lock_version, :null=>false t.timestamps end create_table :inept_wizards do |t| t.string :name,:city,:type, :limit=>100 t.timestamps end end gettext-activerecord-2.1.0/test/po/0000755000175000017500000000000011623722575016273 5ustar gwolfgwolfgettext-activerecord-2.1.0/test/po/ja/0000755000175000017500000000000011623722575016665 5ustar gwolfgwolfgettext-activerecord-2.1.0/test/po/ja/active_record.po0000644000175000017500000002304411623722575022041 0ustar gwolfgwolf# Japanese translations for PACKAGE package # Copyright (C) 2006 THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # Masao Mutoh , 2006. # msgid "" msgstr "" "Project-Id-Version: active_record 1.0.0\n" "POT-Creation-Date: 2009-10-08 19:08+0200\n" "PO-Revision-Date: 2006-08-09 02:17+0900\n" "Last-Translator: Masao Mutoh \n" "Language-Team: Japanese\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=1; plural=0;\n" #: models/developer.rb:- msgid "developer" msgstr "開発者" #: models/developer.rb:- msgid "Developer|Name" msgstr "開発者名" #: models/developer.rb:- msgid "Developer|Salary" msgstr "給料" #: models/developer.rb:- msgid "Developer|Created at" msgstr "生成日" #: models/developer.rb:- msgid "Developer|Updated at" msgstr "更新日" #: models/developer.rb:2 msgid "Developer|Non existent" msgstr "存在しない" #: models/topic.rb:- models/reply.rb:- msgid "topic" msgstr "トピック" #: models/topic.rb:- msgid "Topic|Title" msgstr "タイトル" #: models/topic.rb:- msgid "Topic|Author name" msgstr "著者名" #: models/topic.rb:- msgid "Topic|Author email address" msgstr "著者Eメールアドレス" #: models/topic.rb:- msgid "Topic|Written on" msgstr "リテンオン" #: models/topic.rb:- msgid "Topic|Bonus time" msgstr "ボーナスタイム" #: models/topic.rb:- msgid "Topic|Last read" msgstr "最後の読み込み" #: models/topic.rb:- msgid "Topic|Content" msgstr "内容" #: models/topic.rb:- msgid "Topic|Approved" msgstr "承認" #: models/topic.rb:- msgid "Topic|Replies count" msgstr "リプライ数" #: models/topic.rb:- msgid "Topic|Parent" msgstr "親" #: models/topic.rb:- msgid "Topic|Type" msgstr "種別" #: models/topic.rb:35 msgid "Topic|Terms of service" msgstr "利用規約" #: models/topic.rb:36 test_validations.rb:503 msgid "must be abided" msgstr "に従ってください。" #: models/reply.rb:- msgid "reply" msgstr "リプライ" #: models/reply.rb:- msgid "Reply|Title" msgstr "Replyタイトル" #: models/reply.rb:- msgid "Reply|Author name" msgstr "Reply著者名" #: models/reply.rb:- msgid "Reply|Author email address" msgstr "Reply著者Eメールアドレス" #: models/reply.rb:- msgid "Reply|Written on" msgstr "" #: models/reply.rb:- msgid "Reply|Bonus time" msgstr "Replyボーナスタイム" #: models/reply.rb:- msgid "Reply|Last read" msgstr "" #: models/reply.rb:- msgid "Reply|Content" msgstr "Reply内容" #: models/reply.rb:- msgid "Reply|Approved" msgstr "Reply承認" #: models/reply.rb:- msgid "Reply|Replies count" msgstr "Replyリプライ数" #: models/reply.rb:- msgid "Reply|Parent" msgstr "Reply親" #: models/reply.rb:- msgid "Reply|Type" msgstr "Reply種別" #: models/reply.rb:- msgid "sillyreply" msgstr "バカな承認" #: models/reply.rb:- msgid "SillyReply|Title" msgstr "Sillyタイトル" #: models/reply.rb:- msgid "SillyReply|Author name" msgstr "Silly著者名" #: models/reply.rb:- msgid "SillyReply|Author email address" msgstr "Silly著者Eメールアドレス" #: models/reply.rb:- msgid "SillyReply|Written on" msgstr "" #: models/reply.rb:- msgid "SillyReply|Bonus time" msgstr "Sillyボーナスタイム" #: models/reply.rb:- msgid "SillyReply|Last read" msgstr "" #: models/reply.rb:- msgid "SillyReply|Content" msgstr "Silly内容" #: models/reply.rb:- msgid "SillyReply|Approved" msgstr "Silly承認" #: models/reply.rb:- msgid "SillyReply|Replies count" msgstr "Sillyリプライ数" #: models/reply.rb:- msgid "SillyReply|Parent" msgstr "" #: models/reply.rb:- msgid "SillyReply|Type" msgstr "承認" #: models/reply.rb:4 msgid "Reply|Topic" msgstr "Replyトピック" #: models/reply.rb:16 models/reply.rb:20 msgid "Empty" msgstr "空です。" #: models/reply.rb:25 msgid "is Content Mismatch" msgstr "は内容がミスマッチです。" #: models/reply.rb:30 msgid "is Wrong Create" msgstr "が不正に生成されました。" #: models/reply.rb:34 msgid "is Wrong Update" msgstr "が不正に更新されました。" #: test_validations.rb:- msgid "inept wizard" msgstr "不器用な魔術師" #: test_validations.rb:- msgid "IneptWizard|Name" msgstr "不器用な魔術師名" #: test_validations.rb:- msgid "IneptWizard|City" msgstr "不器用な魔術師名" #: test_validations.rb:- msgid "IneptWizard|Type" msgstr "不器用な魔術師タイプ" #: test_validations.rb:- msgid "IneptWizard|Created at" msgstr "生成日" #: test_validations.rb:- msgid "IneptWizard|Updated at" msgstr "更新日" #: test_validations.rb:- msgid "person" msgstr "人" #: test_validations.rb:- msgid "protectedperson" msgstr "守られた人" #: test_validations.rb:- msgid "ProtectedPerson|First name" msgstr "名前" #: test_validations.rb:- msgid "ProtectedPerson|Lock version" msgstr "ロックバージョン" #: test_validations.rb:- msgid "ProtectedPerson|Created at" msgstr "生成日" #: test_validations.rb:- msgid "ProtectedPerson|Updated at" msgstr "更新日" #: test_validations.rb:- msgid "conjurer" msgstr "手品師" #: test_validations.rb:- msgid "Conjurer|Name" msgstr "手品師名" #: test_validations.rb:- msgid "Conjurer|City" msgstr "手品師町" #: test_validations.rb:- msgid "Conjurer|Type" msgstr "手品師タイプ" #: test_validations.rb:- msgid "Conjurer|Created at" msgstr "生成日" #: test_validations.rb:- msgid "Conjurer|Updated at" msgstr "更新日" #: test_validations.rb:- msgid "thaumaturgist" msgstr "奇術師" #: test_validations.rb:- msgid "Thaumaturgist|Name" msgstr "奇術師名" #: test_validations.rb:- msgid "Thaumaturgist|City" msgstr "奇術師町" #: test_validations.rb:- msgid "Thaumaturgist|Type" msgstr "奇術師タイプ" #: test_validations.rb:- msgid "Thaumaturgist|Created at" msgstr "生成日" #: test_validations.rb:- msgid "Thaumaturgist|Updated at" msgstr "更新日" #: test_validations.rb:389 msgid "gotcha" msgstr "ごっちゃ" #: test_validations.rb:481 msgid "%{fn} must be abided" msgstr "%{fn}に従ってください。" #: test_validations.rb:699 test_validations.rb:753 msgid "%{fn} is bad data" msgstr "%{fn}は悪いデータです。" #: test_validations.rb:720 test_validations.rb:805 msgid "is bad data" msgstr "は悪いデータです。" #: test_validations.rb:857 msgid "%{fn} can not be %{val}" msgstr "%{val}は%{fn}ではありません。" #: test_validations.rb:871 msgid "can not be %{val}" msgstr "は%{val}ではありません。" #: test_validations.rb:919 msgid "%{fn} option %{val} is not in the list" msgstr "オプション%{val}は%{fn}一覧にありません。" #: test_validations.rb:941 msgid "option %{val} is not in the list" msgstr "オプション%{val}は一覧にありません。" #: test_validations.rb:971 msgid "%{fn} option %{val} is restricted" msgstr "オプション%{fn}%{val}は制限されています。" #: test_validations.rb:993 msgid "option %{val} is restricted" msgstr "オプション%{val}は制限されています。" #: test_validations.rb:1109 test_validations.rb:1145 msgid "my string(%{fn}) is too short: %d" msgstr "文字列:%{fn}は短すぎ: %d" #: test_validations.rb:1109 test_validations.rb:1145 msgid "my string(%{fn}) is too long: %d" msgstr "文字列:%{fn}は長すぎ: %d" #: test_validations.rb:1127 test_validations.rb:1171 msgid "my string is too short: %d" msgstr "文字列は短すぎ: %d" #: test_validations.rb:1127 test_validations.rb:1171 msgid "my string is too long: %d" msgstr "文字列は長すぎ: %d" #: test_validations.rb:1230 msgid "%{fn} %d dayo" msgstr "%{fn}は%d以上だよ。" #: test_validations.rb:1247 msgid "%d dayo" msgstr "は%d以上だよ。" #: test_validations.rb:1273 test_validations.rb:1307 test_validations.rb:1343 #: test_validations.rb:1378 test_validations.rb:1414 test_validations.rb:1989 #: test_validations.rb:2028 test_validations.rb:2091 test_validations.rb:2131 #: test_validations.rb:2157 test_validations.rb:2215 test_validations.rb:2254 msgid "%{fn} hoo %d" msgstr "%{fn}ふー%d" #: test_validations.rb:1290 test_validations.rb:1325 test_validations.rb:1361 #: test_validations.rb:1396 test_validations.rb:1431 test_validations.rb:1448 #: test_validations.rb:1465 test_validations.rb:2009 test_validations.rb:2047 #: test_validations.rb:2072 test_validations.rb:2111 test_validations.rb:2177 #: test_validations.rb:2197 test_validations.rb:2234 test_validations.rb:2274 msgid "hoo %d" msgstr "ふー%d" #: test_validations.rb:1505 msgid "%{fn} will never be valid" msgstr "%{fn}は決して正しくならないでしょう。" #: test_validations.rb:1522 msgid "will never be valid" msgstr "は決して正しくならないでしょう。" #: test_validations.rb:1546 test_validations.rb:1592 test_validations.rb:1675 #: test_validations.rb:1721 test_validations.rb:1760 test_validations.rb:1798 #: test_validations.rb:1843 test_validations.rb:1879 test_validations.rb:1926 msgid "%{fn} contains 'single' and \"double\" quotes" msgstr "%{fn}は'シングル' \"ダブル\"クオートを含む。" #: test_validations.rb:1569 test_validations.rb:1617 test_validations.rb:1698 #: test_validations.rb:1744 test_validations.rb:1782 test_validations.rb:1820 #: test_validations.rb:1866 test_validations.rb:1903 test_validations.rb:1957 msgid "This string contains 'single' and \"double\" quotes" msgstr "この文字列は'シングル' \"ダブル\"クオートを含む。" #: test_validations.rb:2517 msgid "smaller than %{count}" msgstr "" #: test_validations.rb:2524 msgid "greater than %{count}" msgstr "" #~ msgid "course" #~ msgstr "手品師" gettext-activerecord-2.1.0/test/po/active_record.pot0000644000175000017500000001733411623722575021640 0ustar gwolfgwolf# SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # FIRST AUTHOR , YEAR. # #, fuzzy msgid "" msgstr "" "Project-Id-Version: active_record 1.0.0\n" "POT-Creation-Date: 2009-10-08 19:08+0200\n" "PO-Revision-Date: 2006-08-09 01:51+0900\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\n" #: models/developer.rb:- msgid "developer" msgstr "" #: models/developer.rb:- msgid "Developer|Name" msgstr "" #: models/developer.rb:- msgid "Developer|Salary" msgstr "" #: models/developer.rb:- msgid "Developer|Created at" msgstr "" #: models/developer.rb:- msgid "Developer|Updated at" msgstr "" #: models/developer.rb:2 msgid "Developer|Non existent" msgstr "" #: models/topic.rb:- models/reply.rb:- msgid "topic" msgstr "" #: models/topic.rb:- msgid "Topic|Title" msgstr "" #: models/topic.rb:- msgid "Topic|Author name" msgstr "" #: models/topic.rb:- msgid "Topic|Author email address" msgstr "" #: models/topic.rb:- msgid "Topic|Written on" msgstr "" #: models/topic.rb:- msgid "Topic|Bonus time" msgstr "" #: models/topic.rb:- msgid "Topic|Last read" msgstr "" #: models/topic.rb:- msgid "Topic|Content" msgstr "" #: models/topic.rb:- msgid "Topic|Approved" msgstr "" #: models/topic.rb:- msgid "Topic|Replies count" msgstr "" #: models/topic.rb:- msgid "Topic|Parent" msgstr "" #: models/topic.rb:- msgid "Topic|Type" msgstr "" #: models/topic.rb:35 msgid "Topic|Terms of service" msgstr "" #: models/topic.rb:36 test_validations.rb:503 msgid "must be abided" msgstr "" #: models/reply.rb:- msgid "reply" msgstr "" #: models/reply.rb:- msgid "Reply|Title" msgstr "" #: models/reply.rb:- msgid "Reply|Author name" msgstr "" #: models/reply.rb:- msgid "Reply|Author email address" msgstr "" #: models/reply.rb:- msgid "Reply|Written on" msgstr "" #: models/reply.rb:- msgid "Reply|Bonus time" msgstr "" #: models/reply.rb:- msgid "Reply|Last read" msgstr "" #: models/reply.rb:- msgid "Reply|Content" msgstr "" #: models/reply.rb:- msgid "Reply|Approved" msgstr "" #: models/reply.rb:- msgid "Reply|Replies count" msgstr "" #: models/reply.rb:- msgid "Reply|Parent" msgstr "" #: models/reply.rb:- msgid "Reply|Type" msgstr "" #: models/reply.rb:- msgid "sillyreply" msgstr "" #: models/reply.rb:- msgid "SillyReply|Title" msgstr "" #: models/reply.rb:- msgid "SillyReply|Author name" msgstr "" #: models/reply.rb:- msgid "SillyReply|Author email address" msgstr "" #: models/reply.rb:- msgid "SillyReply|Written on" msgstr "" #: models/reply.rb:- msgid "SillyReply|Bonus time" msgstr "" #: models/reply.rb:- msgid "SillyReply|Last read" msgstr "" #: models/reply.rb:- msgid "SillyReply|Content" msgstr "" #: models/reply.rb:- msgid "SillyReply|Approved" msgstr "" #: models/reply.rb:- msgid "SillyReply|Replies count" msgstr "" #: models/reply.rb:- msgid "SillyReply|Parent" msgstr "" #: models/reply.rb:- msgid "SillyReply|Type" msgstr "" #: models/reply.rb:4 msgid "Reply|Topic" msgstr "" #: models/reply.rb:16 models/reply.rb:20 msgid "Empty" msgstr "" #: models/reply.rb:25 msgid "is Content Mismatch" msgstr "" #: models/reply.rb:30 msgid "is Wrong Create" msgstr "" #: models/reply.rb:34 msgid "is Wrong Update" msgstr "" #: test_validations.rb:- msgid "inept wizard" msgstr "" #: test_validations.rb:- msgid "IneptWizard|Name" msgstr "" #: test_validations.rb:- msgid "IneptWizard|City" msgstr "" #: test_validations.rb:- msgid "IneptWizard|Type" msgstr "" #: test_validations.rb:- msgid "IneptWizard|Created at" msgstr "" #: test_validations.rb:- msgid "IneptWizard|Updated at" msgstr "" #: test_validations.rb:- msgid "person" msgstr "" #: test_validations.rb:- msgid "protectedperson" msgstr "" #: test_validations.rb:- msgid "ProtectedPerson|First name" msgstr "" #: test_validations.rb:- msgid "ProtectedPerson|Lock version" msgstr "" #: test_validations.rb:- msgid "ProtectedPerson|Created at" msgstr "" #: test_validations.rb:- msgid "ProtectedPerson|Updated at" msgstr "" #: test_validations.rb:- msgid "conjurer" msgstr "" #: test_validations.rb:- msgid "Conjurer|Name" msgstr "" #: test_validations.rb:- msgid "Conjurer|City" msgstr "" #: test_validations.rb:- msgid "Conjurer|Type" msgstr "" #: test_validations.rb:- msgid "Conjurer|Created at" msgstr "" #: test_validations.rb:- msgid "Conjurer|Updated at" msgstr "" #: test_validations.rb:- msgid "thaumaturgist" msgstr "" #: test_validations.rb:- msgid "Thaumaturgist|Name" msgstr "" #: test_validations.rb:- msgid "Thaumaturgist|City" msgstr "" #: test_validations.rb:- msgid "Thaumaturgist|Type" msgstr "" #: test_validations.rb:- msgid "Thaumaturgist|Created at" msgstr "" #: test_validations.rb:- msgid "Thaumaturgist|Updated at" msgstr "" #: test_validations.rb:389 msgid "gotcha" msgstr "" #: test_validations.rb:481 msgid "%{fn} must be abided" msgstr "" #: test_validations.rb:699 test_validations.rb:753 msgid "%{fn} is bad data" msgstr "" #: test_validations.rb:720 test_validations.rb:805 msgid "is bad data" msgstr "" #: test_validations.rb:857 msgid "%{fn} can not be %{val}" msgstr "" #: test_validations.rb:871 msgid "can not be %{val}" msgstr "" #: test_validations.rb:919 msgid "%{fn} option %{val} is not in the list" msgstr "" #: test_validations.rb:941 msgid "option %{val} is not in the list" msgstr "" #: test_validations.rb:971 msgid "%{fn} option %{val} is restricted" msgstr "" #: test_validations.rb:993 msgid "option %{val} is restricted" msgstr "" #: test_validations.rb:1109 test_validations.rb:1145 msgid "my string(%{fn}) is too short: %d" msgstr "" #: test_validations.rb:1109 test_validations.rb:1145 msgid "my string(%{fn}) is too long: %d" msgstr "" #: test_validations.rb:1127 test_validations.rb:1171 msgid "my string is too short: %d" msgstr "" #: test_validations.rb:1127 test_validations.rb:1171 msgid "my string is too long: %d" msgstr "" #: test_validations.rb:1230 msgid "%{fn} %d dayo" msgstr "" #: test_validations.rb:1247 msgid "%d dayo" msgstr "" #: test_validations.rb:1273 test_validations.rb:1307 test_validations.rb:1343 #: test_validations.rb:1378 test_validations.rb:1414 test_validations.rb:1989 #: test_validations.rb:2028 test_validations.rb:2091 test_validations.rb:2131 #: test_validations.rb:2157 test_validations.rb:2215 test_validations.rb:2254 msgid "%{fn} hoo %d" msgstr "" #: test_validations.rb:1290 test_validations.rb:1325 test_validations.rb:1361 #: test_validations.rb:1396 test_validations.rb:1431 test_validations.rb:1448 #: test_validations.rb:1465 test_validations.rb:2009 test_validations.rb:2047 #: test_validations.rb:2072 test_validations.rb:2111 test_validations.rb:2177 #: test_validations.rb:2197 test_validations.rb:2234 test_validations.rb:2274 msgid "hoo %d" msgstr "" #: test_validations.rb:1505 msgid "%{fn} will never be valid" msgstr "" #: test_validations.rb:1522 msgid "will never be valid" msgstr "" #: test_validations.rb:1546 test_validations.rb:1592 test_validations.rb:1675 #: test_validations.rb:1721 test_validations.rb:1760 test_validations.rb:1798 #: test_validations.rb:1843 test_validations.rb:1879 test_validations.rb:1926 msgid "%{fn} contains 'single' and \"double\" quotes" msgstr "" #: test_validations.rb:1569 test_validations.rb:1617 test_validations.rb:1698 #: test_validations.rb:1744 test_validations.rb:1782 test_validations.rb:1820 #: test_validations.rb:1866 test_validations.rb:1903 test_validations.rb:1957 msgid "This string contains 'single' and \"double\" quotes" msgstr "" #: test_validations.rb:2517 msgid "smaller than %{count}" msgstr "" #: test_validations.rb:2524 msgid "greater than %{count}" msgstr "" gettext-activerecord-2.1.0/test/test_parser.rb0000644000175000017500000001044011623722575020534 0ustar gwolfgwolfrequire 'helper' require 'gettext_activerecord/tools' class TestGetTextParser < Test::Unit::TestCase def assert_parser(ary, po) poary = [po.msgid, *po.sources] assert_equal(ary, poary) end def test_class ary = GetText::RGetText.parse("models/topic.rb") assert_equal(14, ary.size) assert_parser(["topic", "models/topic.rb:-"], ary[0]) assert_parser(["Topic|Title", "models/topic.rb:-"], ary[1]) assert_parser(["Topic|Author name", "models/topic.rb:-"], ary[2]) assert_parser(["Topic|Author email address", "models/topic.rb:-"], ary[3]) assert_parser(["Topic|Written on", "models/topic.rb:-"], ary[4]) assert_parser(["Topic|Bonus time", "models/topic.rb:-"], ary[5]) assert_parser(["Topic|Last read", "models/topic.rb:-"], ary[6]) assert_parser(["Topic|Content", "models/topic.rb:-"], ary[7]) assert_parser(["Topic|Approved", "models/topic.rb:-"], ary[8]) assert_parser(["Topic|Replies count", "models/topic.rb:-"], ary[9]) assert_parser(["Topic|Parent", "models/topic.rb:-"], ary[10]) assert_parser(["Topic|Type", "models/topic.rb:-"], ary[11]) assert_parser(["Topic|Terms of service", "models/topic.rb:35"], ary[12]) assert_parser(["must be abided", "models/topic.rb:36"], ary[13]) end def test_subclass ary = GetText::RGetText.parse("models/reply.rb") ary.sort!{|a, b| a[0].downcase <=> b[0].downcase} assert_equal(30, ary.size) assert_parser(["Empty", "models/reply.rb:16", "models/reply.rb:20"], ary[0]) assert_parser(["is Content Mismatch", "models/reply.rb:25"], ary[1]) assert_parser(["is Wrong Create", "models/reply.rb:30"], ary[2]) assert_parser(["is Wrong Update", "models/reply.rb:34"], ary[3]) assert_parser(["reply", "models/reply.rb:-"], ary[4]) assert_parser(["Reply|Approved", "models/reply.rb:-"], ary[5]) assert_parser(["Reply|Author email address", "models/reply.rb:-"], ary[6]) assert_parser(["Reply|Author name", "models/reply.rb:-"], ary[7]) assert_parser(["Reply|Bonus time", "models/reply.rb:-"], ary[8]) assert_parser(["Reply|Content", "models/reply.rb:-"], ary[9]) assert_parser(["Reply|Last read", "models/reply.rb:-"], ary[10]) assert_parser(["Reply|Parent", "models/reply.rb:-"], ary[11]) assert_parser(["Reply|Replies count", "models/reply.rb:-"], ary[12]) assert_parser(["Reply|Title", "models/reply.rb:-"], ary[13]) # this target is from N_(). assert_parser(["Reply|Topic", "models/reply.rb:4"], ary[14]) assert_parser(["Reply|Type", "models/reply.rb:-"], ary[15]) assert_parser(["Reply|Written on", "models/reply.rb:-"], ary[16]) assert_parser(["sillyreply", "models/reply.rb:-"], ary[17]) assert_parser(["SillyReply|Approved", "models/reply.rb:-"], ary[18]) assert_parser(["SillyReply|Author email address", "models/reply.rb:-"], ary[19]) assert_parser(["SillyReply|Author name", "models/reply.rb:-"], ary[20]) assert_parser(["SillyReply|Bonus time", "models/reply.rb:-"], ary[21]) assert_parser(["SillyReply|Content", "models/reply.rb:-"], ary[22]) assert_parser(["SillyReply|Last read", "models/reply.rb:-"], ary[23]) assert_parser(["SillyReply|Parent", "models/reply.rb:-"], ary[24]) assert_parser(["SillyReply|Replies count", "models/reply.rb:-"], ary[25]) assert_parser(["SillyReply|Title", "models/reply.rb:-"], ary[26]) assert_parser(["SillyReply|Type", "models/reply.rb:-"], ary[27]) assert_parser(["SillyReply|Written on", "models/reply.rb:-"], ary[28]) assert_parser(["topic", "models/reply.rb:-"], ary[29]) end def test_untranslate GetText::ActiveRecordParser.target?("models/book.rb") ary = GetText::ActiveRecordParser.parse("models/book.rb") ary.sort!{|a, b| a[0].downcase <=> b[0].downcase} assert_equal(4, ary.size) assert_parser(["book", "models/book.rb:-"], ary[0]) assert_parser(["Book|Created at", "models/book.rb:-"], ary[1]) assert_parser(["Book|Price", "models/book.rb:-"], ary[2]) assert_parser(["Book|Updated at", "models/book.rb:-"], ary[3]) end def test_untranslate_all GetText::ActiveRecordParser.target?("models/user.rb") ary = GetText::ActiveRecordParser.parse("models/user.rb") assert_equal(0, ary.size) end def test_abstract_class ary = GetText::ActiveRecordParser.parse("models/wizard.rb") assert_equal(0, ary.size) end end gettext-activerecord-2.1.0/test/Rakefile0000644000175000017500000000225511623722575017326 0ustar gwolfgwolf$LOAD_PATH.unshift "../lib" require 'rubygems' locale_path = File.join(ENV["LOCALE_PATH"] || "../../locale/", "lib") gettext_path = File.join(ENV["GETTEXT_PATH"] || "../../gettext/", "lib") $LOAD_PATH.unshift locale_path $LOAD_PATH.unshift gettext_path task :default => :test desc "Create mo files" task :makemo do require 'activerecord' require 'gettext_activerecord/tools' GetText.create_mofiles(:mo_root => "locale") end SCHEMA_PATH = File.join(File.dirname(__FILE__), "db") desc "Update pot/po files for ActiveRecord test." task :updatepo do require 'activerecord' require 'db/sqlite' require 'db/migrate' require 'gettext_activerecord/tools' GetText::ActiveRecordParser.init( :adapter => "sqlite3", :encoding => "utf8", :activerecord_classes => ["ActiveRecord::Base", "Reply"], :database => ':memory:' ) GetText.update_pofiles("active_record", [ "models/developer.rb", "models/topic.rb", "models/reply.rb", "test_validations.rb" ], "active_record 1.0.0") end desc 'Run all tests' task :test do Dir.glob("test_*.rb").each do |path| ruby "-I../lib:../../locale/lib", "-I#{gettext_path}", "-rubygems", path rescue nil end end gettext-activerecord-2.1.0/test/test_validations.rb0000644000175000017500000027310111623722575021562 0ustar gwolfgwolf# encoding: utf-8 require 'helper' require 'models/topic' require 'models/reply' require 'models/developer' require 'models/wizard' require 'models/inept_wizard' # the cases/repairhelper is missing in the current AR 2.2.2 release # try to get it or load our copy ar_dir = $LOAD_PATH.select{|v| v =~ /gems\/activerecord-.*\/lib/}[0].sub(/lib$/, "") if File.exist?(File.join(ar_dir,'test','cases','repair_helper.rb')) #make the AR/test dir available, and load $LOAD_PATH.unshift File.join(ar_dir, "test") require 'cases/repair_helper' else require 'vendor/repair_helper' end include ActiveRecord::Testing::RepairHelper # The following methods in Topic are used in test_conditional_validation_* class Topic def condition_is_true return true end def condition_is_true_but_its_not return false end end class ProtectedPerson < ActiveRecord::Base set_table_name 'people' attr_accessor :addon attr_protected :first_name end # TODO rename to MockModel class MyModel attr_accessor :title def save; end def save!; end def update_attribute(name, value); end def new_record? false end class << self def human_name name end def human_attribute_name(name) name end end def self.self_and_descendants_from_active_record [self] end include ActiveRecord::Validations validates_presence_of :title end class Conjurer < IneptWizard end class Thaumaturgist < IneptWizard end class ValidationsTest < ActiveRecord::TestCase include GetText bindtextdomain_to(ActiveRecord, "active_record", :path => "locale") def setup if AR_TEST_VERSION < "2.1.0" Topic.write_inheritable_attribute(:validate, nil) Topic.write_inheritable_attribute(:validate_on_create, nil) Topic.write_inheritable_attribute(:validate_on_update, nil) else Topic.instance_variable_set("@validate_callbacks", ActiveSupport::Callbacks::CallbackChain.new) Topic.instance_variable_set("@validate_on_create_callbacks", ActiveSupport::Callbacks::CallbackChain.new) Topic.instance_variable_set("@validate_on_update_callbacks", ActiveSupport::Callbacks::CallbackChain.new) end end def test_single_attr_validation_and_error_msg GetText.set_locale "ja_JP.UTF-8" r = Reply.new r.title = "There's no content!" r.save assert r.errors.invalid?("content"), "A reply without content should mark that attribute as invalid" assert_equal "空です。", r.errors.on("content"), "A reply without content should contain an error" assert_equal "Reply内容 空です。", r.errors.full_messages[0], "A reply without content should contain an error" assert_equal 1, r.errors.count GetText.set_locale "en" r = Reply.new r.title = "There's no content!" r.save assert_equal "Empty", r.errors.on("content"), "A reply without content should contain an error" end def test_double_attr_validation_and_error_msg GetText.set_locale "ja_JP.UTF-8" r = Reply.new assert !r.save assert r.errors.invalid?("title"), "A reply without title should mark that attribute as invalid" assert_equal ["Replyタイトル 空です。", "Reply内容 空です。"].sort, r.errors.full_messages.sort assert_equal "空です。", r.errors.on("title") assert r.errors.invalid?("content"), "A reply without content should mark that attribute as invalid" assert_equal ["Replyタイトル 空です。", "Reply内容 空です。"].sort, r.errors.full_messages.sort assert_equal "空です。", r.errors.on("content") assert_equal 2, r.errors.count GetText.set_locale "en" r = Reply.new assert !r.save assert r.errors.invalid?("title"), "A reply without title should mark that attribute as invalid" assert_equal ["Content Empty", "Title Empty"], r.errors.full_messages.sort assert_equal "Empty", r.errors.on("title"), "A reply without title should contain an error" assert r.errors.invalid?("content"), "A reply without content should mark that attribute as invalid" assert_equal ["Content Empty", "Title Empty"], r.errors.full_messages.sort assert_equal "Empty", r.errors.on("content"), "A reply without content should contain an error" assert_equal 2, r.errors.count end def test_error_on_create GetText.set_locale "ja_JP.UTF-8" r = Reply.new r.title = "Wrong Create" assert !r.save assert r.errors.invalid?("title"), "A reply with a bad title should mark that attribute as invalid" assert_equal ["Replyタイトル が不正に生成されました。", "Reply内容 空です。"], r.errors.full_messages.sort assert_equal "が不正に生成されました。", r.errors.on("title") GetText.set_locale "en" r = Reply.new r.title = "Wrong Create" assert !r.save assert r.errors.invalid?("title"), "A reply with a bad title should mark that attribute as invalid" assert_equal ["Content Empty", "Title is Wrong Create"], r.errors.full_messages.sort assert_equal "is Wrong Create", r.errors.on("title") end def test_error_on_update GetText.set_locale "ja_JP.UTF-8" r = Reply.new r.title = "Bad" r.content = "Good" assert r.save, "First save should be successful" r.title = "Wrong Update" assert !r.save, "Second save should fail" assert r.errors.invalid?("title"), "A reply with a bad title should mark that attribute as invalid" assert_equal "Replyタイトル が不正に更新されました。", r.errors.full_messages[0] assert_equal "が不正に更新されました。", r.errors.on("title") GetText.set_locale "en" r = Reply.new r.title = "Bad" r.content = "Good" assert r.save, "First save should be successful" r.title = "Wrong Update" assert !r.save, "Second save should fail" assert r.errors.invalid?("title"), "A reply with a bad title should mark that attribute as invalid" assert_equal "Title is Wrong Update", r.errors.full_messages[0] assert_equal "is Wrong Update", r.errors.on("title") end def test_invalid_record_exception assert_raises(ActiveRecord::RecordInvalid) { Reply.create! } assert_raises(ActiveRecord::RecordInvalid) { Reply.new.save! } GetText.set_locale "ja_JP.UTF-8" begin r = Reply.new r.save! flunk rescue ActiveRecord::RecordInvalid => invalid assert_equal r, invalid.record assert ["入力値が正しくありません。: Replyタイトル 空です。, Reply内容 空です。", "入力値が正しくありません。: Reply内容 空です。, Replyタイトル 空です。"].include? invalid.message end GetText.set_locale "en" begin r = Reply.new r.save! flunk rescue ActiveRecord::RecordInvalid => invalid assert_equal r, invalid.record assert ["Validation failed: Title Empty, Content Empty", "Validation failed: Content Empty, Title Empty"].include? invalid.message end end def test_exception_on_create_bang_many assert_raises(ActiveRecord::RecordInvalid) do Reply.create!([ { "title" => "OK" }, { "title" => "Wrong Create" }]) end GetText.set_locale "ja_JP.UTF-8" begin Reply.create!([ { "title" => "OK" }, { "title" => "Wrong Create" }]) rescue ActiveRecord::RecordInvalid => invalid assert_equal "入力値が正しくありません。: Reply内容 空です。", invalid.message end GetText.set_locale "en" begin Reply.create!([ { "title" => "OK" }, { "title" => "Wrong Create" }]) rescue ActiveRecord::RecordInvalid => invalid assert_equal "Validation failed: Content Empty", invalid.message end end def test_exception_on_create_bang_with_block assert_raises(ActiveRecord::RecordInvalid) do Reply.create!({ "title" => "OK" }) do |r| r.content = nil end end GetText.set_locale "ja_JP.UTF-8" begin Reply.create!({ "title" => "OK" }) do |r| r.content = nil end rescue ActiveRecord::RecordInvalid => invalid assert_equal "入力値が正しくありません。: Reply内容 空です。", invalid.message end GetText.set_locale "en" begin Reply.create!({ "title" => "OK" }) do |r| r.content = nil end rescue ActiveRecord::RecordInvalid => invalid assert_equal "Validation failed: Content Empty", invalid.message end end def test_exception_on_create_bang_many_with_block assert_raises(ActiveRecord::RecordInvalid) do Reply.create!([{ "title" => "OK" }, { "title" => "Wrong Create" }]) do |r| r.content = nil end end GetText.set_locale "ja_JP.UTF-8" begin Reply.create!([{ "title" => "OK" }, { "title" => "Wrong Create" }]) do |r| r.content = nil end rescue ActiveRecord::RecordInvalid => invalid assert_equal "入力値が正しくありません。: Reply内容 空です。", invalid.message end GetText.set_locale "en" begin Reply.create!([{ "title" => "OK" }, { "title" => "Wrong Create" }]) do |r| r.content = nil end rescue ActiveRecord::RecordInvalid => invalid assert_equal "Validation failed: Content Empty", invalid.message end end def test_scoped_create_without_attributes Reply.with_scope(:create => {}) do assert_raises(ActiveRecord::RecordInvalid) { Reply.create! } end GetText.set_locale "ja_JP.UTF-8" Reply.with_scope(:create => {}) do begin Reply.create! rescue ActiveRecord::RecordInvalid => invalid assert ["入力値が正しくありません。: Replyタイトル 空です。, Reply内容 空です。", "入力値が正しくありません。: Reply内容 空です。, Replyタイトル 空です。"].include? invalid.message end end GetText.set_locale "en" Reply.with_scope(:create => {}) do begin Reply.create! rescue ActiveRecord::RecordInvalid => invalid assert ["Validation failed: Title Empty, Content Empty", "Validation failed: Content Empty, Title Empty"].include? invalid.message end end end def test_single_error_per_attr_iteration GetText.set_locale "ja_JP.UTF-8" r = Reply.new r.save errors = [] r.errors.each { |attr, msg| errors << [attr, msg] } assert errors.include?(["title", "空です。"]) assert errors.include?(["content", "空です。"]) GetText.set_locale "en" r = Reply.new r.save errors = [] r.errors.each { |attr, msg| errors << [attr, msg] } assert errors.include?(["title", "Empty"]) assert errors.include?(["content", "Empty"]) end def test_multiple_errors_per_attr_iteration_with_full_error_composition GetText.set_locale "ja_JP.UTF-8" r = Reply.new r.title = "Wrong Create" r.content = "Mismatch" r.save errors = [] r.errors.each_full { |error| errors << error } assert_equal "Replyタイトル が不正に生成されました。", errors[0] assert_equal "Replyタイトル は内容がミスマッチです。", errors[1] assert_equal 2, r.errors.count GetText.set_locale "en" r = Reply.new r.title = "Wrong Create" r.content = "Mismatch" r.save errors = [] r.errors.each_full { |error| errors << error } assert_equal "Title is Wrong Create", errors[0] assert_equal "Title is Content Mismatch", errors[1] assert_equal 2, r.errors.count end def test_errors_on_base GetText.set_locale "ja_JP.UTF-8" r = Reply.new r.content = "Mismatch" r.save r.errors.add_to_base "リプライはdignifyされてません。" errors = [] r.errors.each_full { |error| errors << error } assert_equal "リプライはdignifyされてません。", r.errors.on_base assert errors.include?("Replyタイトル 空です。") assert errors.include?("リプライはdignifyされてません。") assert_equal 2, r.errors.count GetText.set_locale "en" r = Reply.new r.content = "Mismatch" r.save r.errors.add_to_base "Reply is not dignifying" errors = [] r.errors.each_full { |error| errors << error } assert_equal "Reply is not dignifying", r.errors.on_base assert errors.include?("Title Empty") assert errors.include?("Reply is not dignifying") assert_equal 2, r.errors.count end def test_validates_each perform = true hits = 0 Topic.validates_each(:title, :content, [:title, :content]) do |record, attr| if perform record.errors.add attr, N_('gotcha') hits += 1 end end GetText.set_locale "ja_JP.UTF-8" t = Topic.new("title" => "valid", "content" => "whatever") assert !t.save assert_equal 4, hits assert_equal ["タイトル ごっちゃ", "タイトル ごっちゃ", "内容 ごっちゃ", "内容 ごっちゃ"], t.errors.full_messages assert_equal ["ごっちゃ", "ごっちゃ"], t.errors.on(:title) assert_equal ["ごっちゃ", "ごっちゃ"], t.errors.on(:content) GetText.set_locale "en" hits = 0 t = Topic.new("title" => "valid", "content" => "whatever") assert !t.save assert_equal 4, hits assert_equal ["Title gotcha", "Title gotcha", "Content gotcha", "Content gotcha"], t.errors.full_messages assert_equal ["gotcha", "gotcha"], t.errors.on(:title) assert_equal ["gotcha", "gotcha"], t.errors.on(:content) ensure perform = false end =begin #Don't need this def test_no_title_confirmation end def test_title_confirmation end def test_terms_of_service_agreement_no_acceptance end =end def test_errors_on_boundary_breaking GetText.set_locale "ja_JP.UTF-8" developer = Developer.new("name" => "xs") assert !developer.save assert_equal "開発者名は3文字以上で入力してください。", developer.errors.full_messages[0] assert_equal "開発者名は3文字以上で入力してください。", developer.errors.on("name") developer.name = "All too very long for this boundary, it really is" assert !developer.save assert_equal "開発者名は20文字以内で入力してください。", developer.errors.full_messages[0] assert_equal "開発者名は20文字以内で入力してください。", developer.errors.on("name") developer.name = "ちょうどぴったり12" assert developer.save GetText.set_locale "en" developer = Developer.new("name" => "xs") assert !developer.save assert_equal "Name is too short (minimum is 3 characters)", developer.errors.full_messages[0] assert_equal "Name is too short (minimum is 3 characters)", developer.errors.on("name") developer.name = "All too very long for this boundary, it really is" assert !developer.save assert_equal "Name is too long (maximum is 20 characters)", developer.errors.full_messages[0] assert_equal "Name is too long (maximum is 20 characters)", developer.errors.on("name") developer.name = "Just right" assert developer.save end def test_terms_of_service_agreement GetText.set_locale "ja_JP.UTF-8" Topic.validates_acceptance_of(:terms_of_service, :on => :create) t = Topic.create("title" => "We should be confirmed","terms_of_service" => "") assert !t.save assert_equal "利用規約を受諾してください。", t.errors.full_messages[0] assert_equal "利用規約を受諾してください。", t.errors.on(:terms_of_service) t.terms_of_service = "1" assert t.save GetText.set_locale "en" t = Topic.create("title" => "We should be confirmed","terms_of_service" => "") assert !t.save assert_equal "Terms of service must be accepted", t.errors.full_messages[0] assert_equal "Terms of service must be accepted", t.errors.on(:terms_of_service) t.terms_of_service = "1" assert t.save end def test_eula_fn GetText.set_locale "ja_JP.UTF-8" Topic.validates_acceptance_of(:eula, :message => N_("%{fn} must be abided"), :on => :create) t = Topic.create("title" => "We should be confirmed","eula" => "") assert !t.save assert_equal "Eulaに従ってください。", t.errors.full_messages[0] assert_equal "Eulaに従ってください。", t.errors.on(:eula) t.eula = "1" assert t.save GetText.set_locale "en" t = Topic.create("title" => "We should be confirmed","eula" => "") assert !t.save assert_equal "Eula must be abided", t.errors.full_messages[0] assert_equal "Eula must be abided", t.errors.on(:eula) t.eula = "1" assert t.save end def test_eula GetText.set_locale "ja_JP.UTF-8" Topic.validates_acceptance_of(:eula, :message => N_("must be abided"), :on => :create) t = Topic.create("title" => "We should be confirmed","eula" => "") assert !t.save assert_equal "Eula に従ってください。", t.errors.full_messages[0] assert_equal "に従ってください。", t.errors.on(:eula) t.eula = "1" assert t.save GetText.set_locale "en" t = Topic.create("title" => "We should be confirmed","eula" => "") assert !t.save assert_equal "Eula must be abided", t.errors.full_messages[0] assert_equal "must be abided", t.errors.on(:eula) t.eula = "1" assert t.save end def test_terms_of_service_agreement_with_accept_value Topic.validates_acceptance_of(:terms_of_service, :on => :create, :accept => "I agree.") GetText.set_locale "ja_JP.UTF-8" t = Topic.create("title" => "We should be confirmed", "terms_of_service" => "") assert !t.save assert_equal "利用規約を受諾してください。", t.errors.full_messages[0] assert_equal "利用規約を受諾してください。", t.errors.on(:terms_of_service) t.terms_of_service = "I agree." assert t.save GetText.set_locale "en" t = Topic.create("title" => "We should be confirmed", "terms_of_service" => "") assert !t.save assert_equal "Terms of service must be accepted", t.errors.full_messages[0] assert_equal "Terms of service must be accepted", t.errors.on(:terms_of_service) t.terms_of_service = "I agree." assert t.save end =begin #Don't need this def test_validates_acceptance_of_as_database_column end def test_validates_acceptance_of_with_non_existant_table end =end def test_validate_presences Topic.validates_presence_of(:title, :content) GetText.set_locale "ja_JP.UTF-8" t = Topic.create assert !t.save assert_equal "タイトルを入力してください。", t.errors.full_messages[0] assert_equal "内容を入力してください。", t.errors.full_messages[1] assert_equal "タイトルを入力してください。", t.errors.on(:title) assert_equal "内容を入力してください。", t.errors.on(:content) t.title = "something" t.content = " " assert !t.save assert_equal "内容を入力してください。", t.errors.full_messages[0] assert_equal "内容を入力してください。", t.errors.on(:content) t.content = "like stuff" assert t.save GetText.set_locale "en" t = Topic.create assert !t.save assert_equal "Title can't be blank", t.errors.full_messages[0] assert_equal "Content can't be blank", t.errors.full_messages[1] assert_equal "Title can't be blank", t.errors.on(:title) assert_equal "Content can't be blank", t.errors.on(:content) t.title = "something" t.content = " " assert !t.save assert_equal "Content can't be blank", t.errors.full_messages[0] assert_equal "Content can't be blank", t.errors.on(:content) t.content = "like stuff" assert t.save end def test_validate_uniqueness Topic.validates_uniqueness_of(:title) GetText.set_locale "ja_JP.UTF-8" t = Topic.new("title" => "I'm unique!") assert t.save, "Should save t as unique" t.content = "Remaining unique" assert t.save, "Should still save t as unique" t2 = Topic.new("title" => "I'm unique!") assert !t2.valid?, "Shouldn't be valid" assert !t2.save, "Shouldn't save t2 as unique" assert_equal "タイトルはすでに存在します。", t2.errors.full_messages[0] assert_equal "タイトルはすでに存在します。", t2.errors.on(:title) GetText.set_locale "en" t = Topic.new("title" => "I'm unique2!") assert t.save, "Should save t as unique" t.content = "Remaining unique2" assert t.save, "Should still save t as unique" t2 = Topic.new("title" => "I'm unique2!") assert !t2.valid?, "Shouldn't be valid" assert !t2.save, "Shouldn't save t2 as unique" assert_equal "Title has already been taken", t2.errors.full_messages[0] assert_equal "Title has already been taken", t2.errors.on(:title) end =begin #Don't need this def test_validate_uniqueness_with_scope end def test_validate_uniqueness_scoped_to_defining_class end def test_validate_uniqueness_with_scope_array end def test_validate_case_insensitive_uniqueness end def test_validate_case_sensitive_uniqueness end =end def test_validate_straight_inheritance_uniqueness GetText.set_locale "ja_JP.UTF-8" w1 = IneptWizard.create(:name => "I18nRincewind", :city => "I18nAnkh-Morpork") assert w1.valid?, "Saving w1" # Should use validation from base class (which is abstract) w2 = IneptWizard.new(:name => "I18nRincewind", :city => "I18nQuirm") assert !w2.valid?, "w2 shouldn't be valid" assert w2.errors.on(:name), "Should have errors for name" assert_equal "不器用な魔術師名はすでに存在します。", w2.errors.on(:name), "Should have uniqueness message for name" w3 = Conjurer.new(:name => "I18nRincewind", :city => "I18nQuirm") assert !w3.valid?, "w3 shouldn't be valid" assert w3.errors.on(:name), "Should have errors for name" assert_equal "手品師名はすでに存在します。", w3.errors.on(:name), "Should have uniqueness message for name" w4 = Conjurer.create(:name => "I18nThe Amazing Bonko", :city => "I18nQuirm") assert w4.valid?, "Saving w4" w5 = Thaumaturgist.new(:name => "I18nThe Amazing Bonko", :city => "I18nLancre") assert !w5.valid?, "w5 shouldn't be valid" assert w5.errors.on(:name), "Should have errors for name" assert_equal "奇術師名はすでに存在します。", w5.errors.on(:name), "Should have uniqueness message for name" w6 = Thaumaturgist.new(:name => "I18nMustrum Ridcully", :city => "I18nQuirm") assert !w6.valid?, "w6 shouldn't be valid" assert w6.errors.on(:city), "Should have errors for city" assert_equal "奇術師町はすでに存在します。", w6.errors.on(:city), "Should have uniqueness message for city" GetText.set_locale "en" w1 = IneptWizard.create(:name => "Rincewind", :city => "Ankh-Morpork") assert w1.valid?, "Saving w1" # Should use validation from base class (which is abstract) w2 = IneptWizard.new(:name => "Rincewind", :city => "Quirm") assert !w2.valid?, "w2 shouldn't be valid" assert w2.errors.on(:name), "Should have errors for name" assert_equal "Name has already been taken", w2.errors.on(:name), "Should have uniqueness message for name" w3 = Conjurer.new(:name => "Rincewind", :city => "Quirm") assert !w3.valid?, "w3 shouldn't be valid" assert w3.errors.on(:name), "Should have errors for name" assert_equal "Name has already been taken", w3.errors.on(:name), "Should have uniqueness message for name" w4 = Conjurer.create(:name => "The Amazing Bonko", :city => "Quirm") assert w4.valid?, "Saving w4" w5 = Thaumaturgist.new(:name => "The Amazing Bonko", :city => "Lancre") assert !w5.valid?, "w5 shouldn't be valid" assert w5.errors.on(:name), "Should have errors for name" assert_equal "Name has already been taken", w5.errors.on(:name), "Should have uniqueness message for name" w6 = Thaumaturgist.new(:name => "Mustrum Ridcully", :city => "Quirm") assert !w6.valid?, "w6 shouldn't be valid" assert w6.errors.on(:city), "Should have errors for city" assert_equal "City has already been taken", w6.errors.on(:city), "Should have uniqueness message for city" end def test_validate_format_fn Topic.validates_format_of(:title, :content, :with => /^Validation\smacros \w+!$/, :message => N_("%{fn} is bad data")) GetText.set_locale "ja_JP.UTF-8" t = Topic.create("title" => "i'm incorrect", "content" => "Validation macros rule!") assert !t.valid?, "Shouldn't be valid" assert !t.save, "Shouldn't save because it's invalid" assert_equal "タイトルは悪いデータです。", t.errors.full_messages[0] assert_equal "タイトルは悪いデータです。", t.errors.on(:title) assert_nil t.errors.on(:content) GetText.set_locale "en" assert_raise(ArgumentError) { Topic.validates_format_of(:title, :content) } t = Topic.create("title" => "i'm incorrect", "content" => "Validation macros rule!") assert !t.valid?, "Shouldn't be valid" assert !t.save, "Shouldn't save because it's invalid" assert_equal "Title is bad data", t.errors.full_messages[0] assert_equal "Title is bad data", t.errors.on(:title) assert_nil t.errors.on(:content) end def test_validate_format Topic.validates_format_of(:title, :content, :with => /^Validation\smacros \w+!$/, :message => N_("is bad data")) GetText.set_locale "ja_JP.UTF-8" t = Topic.create("title" => "i'm incorrect", "content" => "Validation macros rule!") assert !t.valid?, "Shouldn't be valid" assert !t.save, "Shouldn't save because it's invalid" assert_equal "タイトル は悪いデータです。", t.errors.full_messages[0] assert_equal "は悪いデータです。", t.errors.on(:title) assert_nil t.errors.on(:content) GetText.set_locale "en" assert_raise(ArgumentError) { Topic.validates_format_of(:title, :content) } t = Topic.create("title" => "i'm incorrect", "content" => "Validation macros rule!") assert !t.valid?, "Shouldn't be valid" assert !t.save, "Shouldn't save because it's invalid" assert_equal "Title is bad data", t.errors.full_messages[0] assert_equal "is bad data", t.errors.on(:title) assert_nil t.errors.on(:content) t.title = "Validation macros rule!" assert t.save assert_nil t.errors.on(:title) assert_raise(ArgumentError) { Topic.validates_format_of(:title, :content) } end =begin # Don't need this def test_validate_format_with_allow_blank end =end def test_validate_format_numeric_fn Topic.validates_format_of(:title, :content, :with => /^[1-9][0-9]*$/, :message => N_("%{fn} is bad data")) GetText.set_locale "ja_JP.UTF-8" t = Topic.create("title" => "72x", "content" => "6789") assert !t.valid?, "Shouldn't be valid" assert !t.save, "Shouldn't save because it's invalid" assert_equal "タイトルは悪いデータです。", t.errors.on(:title) assert_nil t.errors.on(:content) t.title = "-11" assert !t.valid?, "Shouldn't be valid" t.title = "03" assert !t.valid?, "Shouldn't be valid" t.title = "z44" assert !t.valid?, "Shouldn't be valid" t.title = "5v7" assert !t.valid?, "Shouldn't be valid" t.title = "1" assert t.save assert_nil t.errors.on(:title) GetText.set_locale "en" t = Topic.create("title" => "72x", "content" => "6789") assert !t.valid?, "Shouldn't be valid" assert !t.save, "Shouldn't save because it's invalid" assert_equal "Title is bad data", t.errors.on(:title) assert_nil t.errors.on(:content) t.title = "-11" assert !t.valid?, "Shouldn't be valid" t.title = "03" assert !t.valid?, "Shouldn't be valid" t.title = "z44" assert !t.valid?, "Shouldn't be valid" t.title = "5v7" assert !t.valid?, "Shouldn't be valid" t.title = "1" assert t.save assert_nil t.errors.on(:title) end def test_validate_format_numeric Topic.validates_format_of(:title, :content, :with => /^[1-9][0-9]*$/, :message => N_("is bad data")) GetText.set_locale "ja_JP.UTF-8" t = Topic.create("title" => "72x", "content" => "6789") assert !t.valid?, "Shouldn't be valid" assert !t.save, "Shouldn't save because it's invalid" assert_equal "は悪いデータです。", t.errors.on(:title) assert_nil t.errors.on(:content) t.title = "-11" assert !t.valid?, "Shouldn't be valid" t.title = "03" assert !t.valid?, "Shouldn't be valid" t.title = "z44" assert !t.valid?, "Shouldn't be valid" t.title = "5v7" assert !t.valid?, "Shouldn't be valid" t.title = "1" assert t.save assert_nil t.errors.on(:title) GetText.set_locale "en" t = Topic.create("title" => "72x", "content" => "6789") assert !t.valid?, "Shouldn't be valid" assert !t.save, "Shouldn't save because it's invalid" assert_equal "is bad data", t.errors.on(:title) assert_nil t.errors.on(:content) t.title = "-11" assert !t.valid?, "Shouldn't be valid" t.title = "03" assert !t.valid?, "Shouldn't be valid" t.title = "z44" assert !t.valid?, "Shouldn't be valid" t.title = "5v7" assert !t.valid?, "Shouldn't be valid" t.title = "1" assert t.save assert_nil t.errors.on(:title) end def test_validate_format_with_formatted_message_fn Topic.validates_format_of(:title, :with => /^Valid Title$/, :message => N_("%{fn} can not be %{val}")) GetText.set_locale "ja_JP.UTF-8" t = Topic.create(:title => 'Invalid title') assert_equal "Invalid titleはタイトルではありません。", t.errors.full_messages[0] assert_equal "Invalid titleはタイトルではありません。", t.errors.on(:title) GetText.set_locale "en" t = Topic.create(:title => 'Invalid title') assert_equal "Title can not be Invalid title", t.errors.full_messages[0] assert_equal "Title can not be Invalid title", t.errors.on(:title) end def test_validate_format_with_formatted_message Topic.validates_format_of(:title, :with => /^Valid Title$/, :message => N_("can not be %{val}")) GetText.set_locale "ja_JP.UTF-8" t = Topic.create(:title => 'Invalid title') assert_equal "タイトル はInvalid titleではありません。", t.errors.full_messages[0] assert_equal "はInvalid titleではありません。", t.errors.on(:title) GetText.set_locale "en" t = Topic.create(:title => 'Invalid title') assert_equal "Title can not be Invalid title", t.errors.full_messages[0] assert_equal "can not be Invalid title", t.errors.on(:title) end def test_validates_inclusion_of Topic.validates_inclusion_of( :title, :in => %w( a b c d e f g ) ) GetText.set_locale "ja_JP.UTF-8" t = Topic.create("title" => "a", "content" => "I know you are but what am I?") assert t.valid? t.title = "uhoh" assert !t.valid? assert t.errors.on(:title) assert_equal "タイトルは一覧にありません。", t.errors.full_messages[0] assert_equal "タイトルは一覧にありません。", t.errors.on(:title) GetText.set_locale "en" t = Topic.create("title" => "a", "content" => "I know you are but what am I?") assert t.valid? t.title = "uhoh" assert !t.valid? assert t.errors.on(:title) assert_equal "Title is not included in the list", t.errors.full_messages[0] assert_equal "Title is not included in the list", t.errors.on(:title) end =begin # Don't need this def test_validates_inclusion_of_with_allow_nil end def test_numericality_with_getter_method end def test_validates_length_of_with_allow_nil end def test_validates_length_of_with_allow_blank end =end def test_validates_inclusion_of_with_formatted_message_fn Topic.validates_inclusion_of( :title, :in => %w( a b c d e f g ), :message => N_("%{fn} option %{val} is not in the list") ) GetText.set_locale "ja_JP.UTF-8" assert Topic.create("title" => "a", "content" => "abc").valid? t = Topic.create("title" => "uhoh", "content" => "abc") assert !t.valid? assert t.errors.on(:title) assert_equal "オプションuhohはタイトル一覧にありません。", t.errors.full_messages[0] assert_equal "オプションuhohはタイトル一覧にありません。", t.errors["title"] GetText.set_locale "en" assert Topic.create("title" => "a", "content" => "abc").valid? t = Topic.create("title" => "uhoh", "content" => "abc") assert !t.valid? assert t.errors.on(:title) assert_equal "Title option uhoh is not in the list", t.errors.full_messages[0] assert_equal "Title option uhoh is not in the list", t.errors["title"] end def test_validates_inclusion_of_with_formatted_message Topic.validates_inclusion_of( :title, :in => %w( a b c d e f g ), :message => N_("option %{val} is not in the list") ) GetText.set_locale "ja_JP.UTF-8" assert Topic.create("title" => "a", "content" => "abc").valid? t = Topic.create("title" => "uhoh", "content" => "abc") assert !t.valid? assert t.errors.on(:title) assert_equal "タイトル オプションuhohは一覧にありません。", t.errors.full_messages[0] assert_equal "オプションuhohは一覧にありません。", t.errors["title"] GetText.set_locale "en" assert Topic.create("title" => "a", "content" => "abc").valid? t = Topic.create("title" => "uhoh", "content" => "abc") assert !t.valid? assert t.errors.on(:title) assert_equal "Title option uhoh is not in the list", t.errors.full_messages[0] assert_equal "option uhoh is not in the list", t.errors["title"] end =begin Don't need this def test_numericality_with_allow_nil_and_getter_method end def test_validates_exclusion_of end =end def test_validates_exclusion_of_with_formatted_message_fn GetText.set_locale "ja_JP.UTF-8" Topic.validates_exclusion_of( :title, :in => %w( abe monkey ), :message => N_("%{fn} option %{val} is restricted") ) assert Topic.create("title" => "something", "content" => "abc") t = Topic.create("title" => "monkey") assert !t.valid? assert t.errors.on(:title) assert_equal "オプションタイトルmonkeyは制限されています。", t.errors.full_messages[0] assert_equal "オプションタイトルmonkeyは制限されています。", t.errors["title"] GetText.set_locale "en" assert Topic.create("title" => "something", "content" => "abc") t = Topic.create("title" => "monkey") assert !t.valid? assert t.errors.on(:title) assert_equal "Title option monkey is restricted", t.errors.full_messages[0] assert_equal "Title option monkey is restricted", t.errors["title"] end def test_validates_exclusion_of_with_formatted_message GetText.set_locale "ja_JP.UTF-8" Topic.validates_exclusion_of( :title, :in => %w( abe monkey ), :message => N_("option %{val} is restricted") ) assert Topic.create("title" => "something", "content" => "abc") t = Topic.create("title" => "monkey") assert !t.valid? assert t.errors.on(:title) assert_equal "タイトル オプションmonkeyは制限されています。", t.errors.full_messages[0] assert_equal "オプションmonkeyは制限されています。", t.errors["title"] GetText.set_locale "en" assert Topic.create("title" => "something", "content" => "abc") t = Topic.create("title" => "monkey") assert !t.valid? assert t.errors.on(:title) assert_equal "Title option monkey is restricted", t.errors.full_messages[0] assert_equal "option monkey is restricted", t.errors["title"] end def test_validates_length_of_using_minimum Topic.validates_length_of :title, :minimum => 5 GetText.set_locale "ja_JP.UTF-8" t = Topic.create("title" => "valid", "content" => "whatever") assert t.valid? t.title = "not" assert !t.valid? assert t.errors.on(:title) assert_equal "タイトルは5文字以上で入力してください。", t.errors.full_messages[0] assert_equal "タイトルは5文字以上で入力してください。", t.errors.on("title") GetText.set_locale "en" t = Topic.create("title" => "valid", "content" => "whatever") assert t.valid? t.title = "not" assert !t.valid? assert t.errors.on(:title) assert_equal "Title is too short (minimum is 5 characters)", t.errors.full_messages[0] assert_equal "Title is too short (minimum is 5 characters)", t.errors.on("title") end def test_validates_length_of_using_maximum Topic.validates_length_of :title, :maximum => 5 GetText.set_locale "ja_JP.UTF-8" t = Topic.create("title" => "valid", "content" => "whatever") assert t.valid? t.title = "notvalid" assert !t.valid? assert t.errors.on(:title) assert_equal "タイトルは5文字以内で入力してください。", t.errors.full_messages[0] assert_equal "タイトルは5文字以内で入力してください。", t.errors.on("title") GetText.set_locale "en" t = Topic.create("title" => "valid", "content" => "whatever") assert t.valid? t.title = "notvalid" assert !t.valid? assert t.errors.on(:title) assert_equal "Title is too long (maximum is 5 characters)", t.errors.full_messages[0] assert_equal "Title is too long (maximum is 5 characters)", t.errors.on("title") end =begin # Don't need this def test_optionally_validates_length_of_using_minimum end =end def test_validates_length_of_using_within Topic.validates_length_of(:title, :content, :within => 3..5) GetText.set_locale "ja_JP.UTF-8" t = Topic.new("title" => "a!", "content" => "I'm ooooooooh so very long") assert !t.valid? assert_equal "タイトルは3文字以上で入力してください。", t.errors.full_messages[0] assert_equal "内容は5文字以内で入力してください。", t.errors.full_messages[1] assert_equal "タイトルは3文字以上で入力してください。", t.errors.on(:title) assert_equal "内容は5文字以内で入力してください。", t.errors.on(:content) t.title = nil t.content = nil assert !t.valid? assert_equal "タイトルは3文字以上で入力してください。", t.errors.full_messages[0] assert_equal "内容は3文字以上で入力してください。", t.errors.full_messages[1] assert_equal "タイトルは3文字以上で入力してください。", t.errors.on(:title) assert_equal "内容は3文字以上で入力してください。", t.errors.on(:content) GetText.set_locale "en" t = Topic.new("title" => "a!", "content" => "I'm ooooooooh so very long") assert !t.valid? assert_equal "Title is too short (minimum is 3 characters)", t.errors.full_messages[0] assert_equal "Content is too long (maximum is 5 characters)", t.errors.full_messages[1] assert_equal "Title is too short (minimum is 3 characters)", t.errors.on(:title) assert_equal "Content is too long (maximum is 5 characters)", t.errors.on(:content) t.title = nil t.content = nil assert !t.valid? assert_equal "Title is too short (minimum is 3 characters)", t.errors.full_messages[0] assert_equal "Content is too short (minimum is 3 characters)", t.errors.full_messages[1] assert_equal "Title is too short (minimum is 3 characters)", t.errors.on(:title) assert_equal "Content is too short (minimum is 3 characters)", t.errors.on(:content) end =begin # Don't need this def test_optionally_validates_length_of_using_within end =end def test_optionally_validates_length_of_using_within_on_create_fn Topic.validates_length_of :title, :content, :within => 5..10, :on => :create, :too_short => N_("my string(%{fn}) is too short: %d"), :too_long => N_("my string(%{fn}) is too long: %d") GetText.set_locale "ja_JP.UTF-8" t = Topic.create("title" => "thisisnotvalid", "content" => "whatever") assert !t.save assert t.errors.on(:title) assert_equal "文字列:タイトルは長すぎ: 10", t.errors.full_messages[0] assert_equal "文字列:タイトルは長すぎ: 10", t.errors.on(:title) GetText.set_locale "en" t = Topic.create("title" => "thisisnotvalid", "content" => "whatever") assert !t.save assert t.errors.on(:title) assert_equal "my string(Title) is too long: 10", t.errors.full_messages[0] assert_equal "my string(Title) is too long: 10", t.errors.on(:title) end def test_optionally_validates_length_of_using_within_on_create Topic.validates_length_of :title, :content, :within => 5..10, :on => :create, :too_short => N_("my string is too short: %d"), :too_long => N_("my string is too long: %d") GetText.set_locale "ja_JP.UTF-8" t = Topic.create("title" => "thisisnotvalid", "content" => "whatever") assert !t.save assert t.errors.on(:title) assert_equal "タイトル 文字列は長すぎ: 10", t.errors.full_messages[0] assert_equal "文字列は長すぎ: 10", t.errors.on(:title) GetText.set_locale "en" t = Topic.create("title" => "thisisnotvalid", "content" => "whatever") assert !t.save assert t.errors.on(:title) assert_equal "Title my string is too long: 10", t.errors.full_messages[0] assert_equal "my string is too long: 10", t.errors.on(:title) end def test_optionally_validates_length_of_using_within_on_update_fn Topic.validates_length_of :title, :content, :within => 5..10, :on => :update, :too_short => N_("my string(%{fn}) is too short: %d"), :too_long => N_("my string(%{fn}) is too long: %d") GetText.set_locale "ja_JP.UTF-8" t = Topic.create("title" => "vali", "content" => "whatever") assert !t.save assert t.errors.on(:title) t.title = "not" assert !t.save assert t.errors.on(:title) assert_equal "文字列:タイトルは短すぎ: 5", t.errors.full_messages[0] assert_equal "文字列:タイトルは短すぎ: 5", t.errors.on(:title) GetText.set_locale "en" t = Topic.create("title" => "vali", "content" => "whatever") assert !t.save assert t.errors.on(:title) t.title = "not" assert !t.save assert t.errors.on(:title) assert_equal "my string(Title) is too short: 5", t.errors.full_messages[0] assert_equal "my string(Title) is too short: 5", t.errors.on(:title) end def test_optionally_validates_length_of_using_within_on_update Topic.validates_length_of :title, :content, :within => 5..10, :on => :update, :too_short => N_("my string is too short: %d"), :too_long => N_("my string is too long: %d") GetText.set_locale "ja_JP.UTF-8" t = Topic.create("title" => "vali", "content" => "whatever") assert !t.save assert t.errors.on(:title) t.title = "not" assert !t.save assert t.errors.on(:title) assert_equal "タイトル 文字列は短すぎ: 5", t.errors.full_messages[0] assert_equal "文字列は短すぎ: 5", t.errors.on(:title) GetText.set_locale "en" t = Topic.create("title" => "vali", "content" => "whatever") assert !t.save assert t.errors.on(:title) t.title = "not" assert !t.save assert t.errors.on(:title) assert_equal "Title my string is too short: 5", t.errors.full_messages[0] assert_equal "my string is too short: 5", t.errors.on(:title) end def test_validates_length_of_using_is Topic.validates_length_of :title, :is => 5 GetText.set_locale "ja_JP.UTF-8" t = Topic.create("title" => "valid", "content" => "whatever") assert t.valid? t.title = "notvalid" assert !t.valid? assert t.errors.on(:title) assert_equal "タイトルは5文字で入力してください。", t.errors.full_messages[0] assert_equal "タイトルは5文字で入力してください。", t.errors.on("title") GetText.set_locale "en" t = Topic.create("title" => "valid", "content" => "whatever") assert t.valid? t.title = "notvalid" assert !t.valid? assert t.errors.on(:title) assert_equal "Title is the wrong length (should be 5 characters)", t.errors.full_messages[0] assert_equal "Title is the wrong length (should be 5 characters)", t.errors.on("title") end =begin # Don't need this def test_optionally_validates_length_of_using_is end def test_validates_length_of_using_bignum end =end def test_validates_length_with_globaly_modified_error_message_fn ActiveRecord::Errors.default_error_messages[:too_short] = N_('%{fn} %d dayo') Topic.validates_length_of :title, :minimum => 10 GetText.set_locale "ja_JP.UTF-8" t = Topic.create(:title => 'too short') assert !t.valid? assert_equal 'タイトルは10以上だよ。', t.errors.full_messages[0] assert_equal 'タイトルは10以上だよ。', t.errors.on('title') GetText.set_locale "en" t = Topic.create(:title => 'too short') assert !t.valid? assert_equal 'Title 10 dayo', t.errors.full_messages[0] assert_equal 'Title 10 dayo', t.errors.on('title') end def test_validates_length_with_globaly_modified_error_message ActiveRecord::Errors.default_error_messages[:too_short] = N_('%d dayo') Topic.validates_length_of :title, :minimum => 10 GetText.set_locale "ja_JP.UTF-8" t = Topic.create(:title => 'too short') assert !t.valid? assert_equal 'タイトル は10以上だよ。', t.errors.full_messages[0] assert_equal 'は10以上だよ。', t.errors.on('title') GetText.set_locale "en" t = Topic.create(:title => 'too short') assert !t.valid? assert_equal 'Title 10 dayo', t.errors.full_messages[0] assert_equal '10 dayo', t.errors.on('title') end =begin def test_validates_size_of_association end def test_validates_size_of_association_using_within end def test_validates_length_of_nasty_params end =end def test_validates_length_of_custom_errors_for_minimum_with_message_fn Topic.validates_length_of( :title, :minimum => 5, :message => N_("%{fn} hoo %d") ) GetText.set_locale "ja_JP.UTF-8" t = Topic.create("title" => "uhoh", "content" => "whatever") assert !t.valid? assert t.errors.on(:title) assert_equal "タイトルふー5", t.errors.full_messages[0] assert_equal "タイトルふー5", t.errors.on("title") GetText.set_locale "en" t = Topic.create("title" => "uhoh", "content" => "whatever") assert !t.valid? assert t.errors.on(:title) assert_equal "Title hoo 5", t.errors.full_messages[0] assert_equal "Title hoo 5", t.errors.on("title") end def test_validates_length_of_custom_errors_for_minimum_with_message Topic.validates_length_of( :title, :minimum => 5, :message => N_("hoo %d") ) GetText.set_locale "ja_JP.UTF-8" t = Topic.create("title" => "uhoh", "content" => "whatever") assert !t.valid? assert t.errors.on(:title) assert_equal "タイトル ふー5", t.errors.full_messages[0] assert_equal "ふー5", t.errors.on("title") GetText.set_locale "en" t = Topic.create("title" => "uhoh", "content" => "whatever") assert !t.valid? assert t.errors.on(:title) assert_equal "Title hoo 5", t.errors.full_messages[0] assert_equal "hoo 5", t.errors.on("title") end def test_validates_length_of_custom_errors_for_minimum_with_too_short_fn Topic.validates_length_of( :title, :minimum=>5, :too_short => N_("%{fn} hoo %d") ) GetText.set_locale "ja_JP.UTF-8" t = Topic.create("title" => "uhoh", "content" => "whatever") assert !t.valid? assert t.errors.on(:title) assert_equal "タイトルふー5", t.errors.full_messages[0] assert_equal "タイトルふー5", t.errors.on("title") GetText.set_locale "en" t = Topic.create("title" => "uhoh", "content" => "whatever") assert !t.valid? assert t.errors.on(:title) assert_equal "Title hoo 5", t.errors.full_messages[0] assert_equal "Title hoo 5", t.errors.on("title") end def test_validates_length_of_custom_errors_for_minimum_with_too_short Topic.validates_length_of( :title, :minimum=>5, :too_short => N_("hoo %d") ) GetText.set_locale "ja_JP.UTF-8" t = Topic.create("title" => "uhoh", "content" => "whatever") assert !t.valid? assert t.errors.on(:title) assert_equal "タイトル ふー5", t.errors.full_messages[0] assert_equal "ふー5", t.errors.on("title") GetText.set_locale "en" t = Topic.create("title" => "uhoh", "content" => "whatever") assert !t.valid? assert t.errors.on(:title) assert_equal "Title hoo 5", t.errors.full_messages[0] assert_equal "hoo 5", t.errors.on("title") end def test_validates_length_of_custom_errors_for_maximum_with_message_fn Topic.validates_length_of( :title, :maximum=>5, :message => N_("%{fn} hoo %d")) GetText.set_locale "ja_JP.UTF-8" t = Topic.create("title" => "uhohuhoh", "content" => "whatever") assert !t.valid? assert t.errors.on(:title) assert_equal "タイトルふー5", t.errors.full_messages[0] assert_equal "タイトルふー5", t.errors.on("title") GetText.set_locale "en" t = Topic.create("title" => "uhohuhoh", "content" => "whatever") assert !t.valid? assert t.errors.on(:title) assert_equal "Title hoo 5", t.errors.full_messages[0] assert_equal "Title hoo 5", t.errors.on("title") end def test_validates_length_of_custom_errors_for_maximum_with_message Topic.validates_length_of( :title, :maximum=>5, :message => N_("hoo %d")) GetText.set_locale "ja_JP.UTF-8" t = Topic.create("title" => "uhohuhoh", "content" => "whatever") assert !t.valid? assert t.errors.on(:title) assert_equal "タイトル ふー5", t.errors.full_messages[0] assert_equal "ふー5", t.errors.on("title") GetText.set_locale "en" t = Topic.create("title" => "uhohuhoh", "content" => "whatever") assert !t.valid? assert t.errors.on(:title) assert_equal "Title hoo 5", t.errors.full_messages[0] assert_equal "hoo 5", t.errors.on("title") end def test_validates_length_of_custom_errors_for_maximum_with_too_long_fn Topic.validates_length_of( :title, :maximum=>5, :too_long => N_("%{fn} hoo %d")) GetText.set_locale "ja_JP.UTF-8" t = Topic.create("title" => "uhohuhoh", "content" => "whatever") assert !t.valid? assert t.errors.on(:title) assert_equal "タイトルふー5", t.errors.full_messages[0] assert_equal "タイトルふー5", t.errors.on("title") GetText.set_locale "en" t = Topic.create("title" => "uhohuhoh", "content" => "whatever") assert !t.valid? assert t.errors.on(:title) assert_equal "Title hoo 5", t.errors.full_messages[0] assert_equal "Title hoo 5", t.errors.on("title") end def test_validates_length_of_custom_errors_for_maximum_with_too_long Topic.validates_length_of( :title, :maximum=>5, :too_long => N_("hoo %d")) GetText.set_locale "ja_JP.UTF-8" t = Topic.create("title" => "uhohuhoh", "content" => "whatever") assert !t.valid? assert t.errors.on(:title) assert_equal "タイトル ふー5", t.errors.full_messages[0] assert_equal "ふー5", t.errors.on("title") GetText.set_locale "en" t = Topic.create("title" => "uhohuhoh", "content" => "whatever") assert !t.valid? assert t.errors.on(:title) assert_equal "Title hoo 5", t.errors.full_messages[0] assert_equal "hoo 5", t.errors.on("title") end def test_validates_length_of_custom_errors_for_is_with_message_fn Topic.validates_length_of( :title, :is=>5, :message=> N_("%{fn} hoo %d") ) GetText.set_locale "ja_JP.UTF-8" t = Topic.create("title" => "uhohuhoh", "content" => "whatever") assert !t.valid? assert t.errors.on(:title) assert_equal "タイトルふー5", t.errors.full_messages[0] assert_equal "タイトルふー5", t.errors.on("title") GetText.set_locale "en" t = Topic.create("title" => "uhohuhoh", "content" => "whatever") assert !t.valid? assert t.errors.on(:title) assert_equal "Title hoo 5", t.errors.full_messages[0] assert_equal "Title hoo 5", t.errors.on("title") end def test_validates_length_of_custom_errors_for_is_with_message Topic.validates_length_of( :title, :is=>5, :message=> N_("hoo %d") ) GetText.set_locale "ja_JP.UTF-8" t = Topic.create("title" => "uhohuhoh", "content" => "whatever") assert !t.valid? assert t.errors.on(:title) assert_equal "タイトル ふー5", t.errors.full_messages[0] assert_equal "ふー5", t.errors.on("title") GetText.set_locale "en" t = Topic.create("title" => "uhohuhoh", "content" => "whatever") assert !t.valid? assert t.errors.on(:title) assert_equal "Title hoo 5", t.errors.full_messages[0] assert_equal "hoo 5", t.errors.on("title") end def test_validates_length_of_custom_errors_for_is_with_wrong_length_fn Topic.validates_length_of( :title, :is=>5, :wrong_length=> N_("hoo %d") ) GetText.set_locale "ja_JP.UTF-8" t = Topic.create("title" => "uhohuhoh", "content" => "whatever") assert !t.valid? assert t.errors.on(:title) assert_equal "タイトル ふー5", t.errors.full_messages[0] assert_equal "ふー5", t.errors.on("title") GetText.set_locale "en" t = Topic.create("title" => "uhohuhoh", "content" => "whatever") assert !t.valid? assert t.errors.on(:title) assert_equal "Title hoo 5", t.errors.full_messages[0] assert_equal "hoo 5", t.errors.on("title") end def test_validates_length_of_custom_errors_for_is_with_wrong_length Topic.validates_length_of( :title, :is=>5, :wrong_length=> N_("hoo %d") ) GetText.set_locale "ja_JP.UTF-8" t = Topic.create("title" => "uhohuhoh", "content" => "whatever") assert !t.valid? assert t.errors.on(:title) assert_equal "タイトル ふー5", t.errors.full_messages[0] assert_equal "ふー5", t.errors.on("title") GetText.set_locale "en" t = Topic.create("title" => "uhohuhoh", "content" => "whatever") assert !t.valid? assert t.errors.on(:title) assert_equal "Title hoo 5", t.errors.full_messages[0] assert_equal "hoo 5", t.errors.on("title") end =begin def test_validates_length_of_using_minimum_utf8 end def test_validates_length_of_using_maximum_utf8 end def test_validates_length_of_using_within_utf8 end def test_optionally_validates_length_of_using_within_utf8 end def test_optionally_validates_length_of_using_within_on_create_utf8 end def test_optionally_validates_length_of_using_within_on_update_utf8 end def test_validates_length_of_using_is_utf8 end def test_validates_size_of_association_utf8 end def test_validates_associated_many end def test_validates_associated_one end =end def test_validate_block_fn Topic.validate { |topic| topic.errors.add("title", N_("%{fn} will never be valid")) } GetText.set_locale "ja_JP.UTF-8" t = Topic.create("title" => "Title", "content" => "whatever") assert !t.valid? assert t.errors.on(:title) assert_equal "タイトルは決して正しくならないでしょう。", t.errors.full_messages[0] assert_equal "タイトルは決して正しくならないでしょう。", t.errors.on("title") GetText.set_locale "en" t = Topic.create("title" => "Title", "content" => "whatever") assert !t.valid? assert t.errors.on(:title) assert_equal "Title will never be valid", t.errors.full_messages[0] assert_equal "Title will never be valid", t.errors.on("title") end def test_validate_block Topic.validate { |topic| topic.errors.add("title", N_("will never be valid")) } GetText.set_locale "ja_JP.UTF-8" t = Topic.create("title" => "Title", "content" => "whatever") assert !t.valid? assert t.errors.on(:title) assert_equal "タイトル は決して正しくならないでしょう。", t.errors.full_messages[0] assert_equal "は決して正しくならないでしょう。", t.errors.on("title") GetText.set_locale "en" t = Topic.create("title" => "Title", "content" => "whatever") assert !t.valid? assert t.errors.on(:title) assert_equal "Title will never be valid", t.errors.full_messages[0] assert_equal "will never be valid", t.errors.on("title") end =begin def test_invalid_validator end def test_throw_away_typing end =end def test_validates_acceptance_of_with_custom_error_using_quotes_fn Developer.validates_acceptance_of :salary, :message=> N_("%{fn} contains 'single' and \"double\" quotes") GetText.set_locale "ja_JP.UTF-8" d = Developer.new d.salary = "0" assert !d.valid? if AR_6657 assert_equal "給料は'シングル' \"ダブル\"クオートを含む。", d.errors.on(:salary).last else assert_equal "給料は'シングル' \"ダブル\"クオートを含む。", d.errors.on(:salary).first end GetText.set_locale "en" d = Developer.new d.salary = "0" assert !d.valid? if AR_6657 assert_equal "Salary contains 'single' and \"double\" quotes", d.errors.on(:salary).last else assert_equal "Salary contains 'single' and \"double\" quotes", d.errors.on(:salary).first end end def test_validates_acceptance_of_with_custom_error_using_quotes Developer.validates_acceptance_of :salary, :message=> N_("This string contains 'single' and \"double\" quotes") GetText.set_locale "ja_JP.UTF-8" d = Developer.new d.salary = "0" assert !d.valid? if AR_6657 assert_equal "この文字列は'シングル' \"ダブル\"クオートを含む。", d.errors.on(:salary).last else assert_equal "この文字列は'シングル' \"ダブル\"クオートを含む。", d.errors.on(:salary).first end GetText.set_locale "en" d = Developer.new d.salary = "0" assert !d.valid? if AR_6657 assert_equal "This string contains 'single' and \"double\" quotes", d.errors.on(:salary).last else assert_equal "This string contains 'single' and \"double\" quotes", d.errors.on(:salary).first end end def test_validates_confirmation_of_with_custom_error_using_quotes_fn Developer.validates_confirmation_of :name, :message=> N_("%{fn} contains 'single' and \"double\" quotes") GetText.set_locale "ja_JP.UTF-8" d = Developer.new d.name = "John" d.name_confirmation = "Johnny" assert !d.valid? if AR_6657 assert_equal "開発者名は'シングル' \"ダブル\"クオートを含む。", d.errors.on(:name).last else assert_equal "開発者名は'シングル' \"ダブル\"クオートを含む。", d.errors.on(:name).first end GetText.set_locale "en" d = Developer.new d.name = "John" d.name_confirmation = "Johnny" assert !d.valid? if AR_6657 assert_equal "Name contains 'single' and \"double\" quotes", d.errors.on(:name).last else assert_equal "Name contains 'single' and \"double\" quotes", d.errors.on(:name).first end end def test_validates_confirmation_of_with_custom_error_using_quotes Developer.validates_confirmation_of :name, :message=> N_("This string contains 'single' and \"double\" quotes") GetText.set_locale "ja_JP.UTF-8" d = Developer.new d.name = "John" d.name_confirmation = "Johnny" assert !d.valid? assert_equal "この文字列は'シングル' \"ダブル\"クオートを含む。", d.errors.on(:name) GetText.set_locale "en" d = Developer.new d.name = "John" d.name_confirmation = "Johnny" assert !d.valid? assert_equal "This string contains 'single' and \"double\" quotes", d.errors.on(:name) end def test_validates_format_of_with_custom_error_using_quotes_fn Developer.validates_format_of :name, :with => /^(A-Z*)$/, :message => "%{fn} contains 'single' and \"double\" quotes" GetText.set_locale "ja_JP.UTF-8" d = Developer.new d.name = "John 32" assert !d.valid? if AR_6657 assert_equal "開発者名は'シングル' \"ダブル\"クオートを含む。", d.errors.on(:name).last else assert_equal "開発者名は'シングル' \"ダブル\"クオートを含む。", d.errors.on(:name).first end GetText.set_locale "en" d = Developer.new d.name = "John 32" assert !d.valid? if AR_6657 assert_equal "Name contains 'single' and \"double\" quotes", d.errors.on(:name).last else assert_equal "Name contains 'single' and \"double\" quotes", d.errors.on(:name).first end end def test_validates_format_of_with_custom_error_using_quotes Developer.validates_format_of :name, :with => /^(A-Z*)$/, :message => "This string contains 'single' and \"double\" quotes" GetText.set_locale "ja_JP.UTF-8" d = Developer.new d.name = "John 32" assert !d.valid? assert_equal "この文字列は'シングル' \"ダブル\"クオートを含む。", d.errors.on(:name) GetText.set_locale "en" d = Developer.new d.name = "John 32" assert !d.valid? assert_equal "This string contains 'single' and \"double\" quotes", d.errors.on(:name) end def test_validates_inclusion_of_with_custom_error_using_quotes_fn Developer.validates_inclusion_of :salary, :in => 1000..80000, :message=> N_("%{fn} contains 'single' and \"double\" quotes") GetText.set_locale "ja_JP.UTF-8" d = Developer.new d.salary = "90,000" assert !d.valid? if AR_6657 assert_equal "給料は'シングル' \"ダブル\"クオートを含む。", d.errors.on(:salary).last else assert_equal "給料は'シングル' \"ダブル\"クオートを含む。", d.errors.on(:salary).first end GetText.set_locale "en" d = Developer.new d.salary = "90,000" assert !d.valid? if AR_6657 assert_equal "Salary contains 'single' and \"double\" quotes", d.errors.on(:salary).last else assert_equal "Salary contains 'single' and \"double\" quotes", d.errors.on(:salary).first end end def test_validates_inclusion_of_with_custom_error_using_quotes Developer.validates_inclusion_of :salary, :in => 1000..80000, :message=> N_("This string contains 'single' and \"double\" quotes") GetText.set_locale "ja_JP.UTF-8" d = Developer.new d.salary = "90,000" assert !d.valid? if AR_6657 assert_equal "この文字列は'シングル' \"ダブル\"クオートを含む。", d.errors.on(:salary).last else assert_equal "この文字列は'シングル' \"ダブル\"クオートを含む。", d.errors.on(:salary).first end GetText.set_locale "en" d = Developer.new d.salary = "90,000" assert !d.valid? if AR_6657 assert_equal "This string contains 'single' and \"double\" quotes", d.errors.on(:salary).last else assert_equal "This string contains 'single' and \"double\" quotes", d.errors.on(:salary).first end end def test_validates_length_of_with_custom_too_long_using_quotes_fn Developer.validates_length_of :name, :maximum => 4, :too_long=> N_("%{fn} contains 'single' and \"double\" quotes") GetText.set_locale "ja_JP.UTF-8" d = Developer.new d.name = "Jeffrey" assert !d.valid? if AR_6657 assert_equal "開発者名は'シングル' \"ダブル\"クオートを含む。", d.errors.on(:name).last else assert_equal "開発者名は'シングル' \"ダブル\"クオートを含む。", d.errors.on(:name).first end GetText.set_locale "en" d = Developer.new d.name = "Jeffrey" assert !d.valid? if AR_6657 assert_equal "Name contains 'single' and \"double\" quotes", d.errors.on(:name).last else assert_equal "Name contains 'single' and \"double\" quotes", d.errors.on(:name).first end end def test_validates_length_of_with_custom_too_long_using_quotes Developer.validates_length_of :name, :maximum => 4, :too_long=> N_("This string contains 'single' and \"double\" quotes") GetText.set_locale "ja_JP.UTF-8" d = Developer.new d.name = "Jeffrey" assert !d.valid? assert_equal "この文字列は'シングル' \"ダブル\"クオートを含む。", d.errors.on(:name).last GetText.set_locale "en" d = Developer.new d.name = "Jeffrey" assert !d.valid? assert_equal "This string contains 'single' and \"double\" quotes", d.errors.on(:name).last end def test_validates_length_of_with_custom_too_short_using_quotes_fn Developer.validates_length_of :name, :minimum => 4, :too_short=> N_("%{fn} contains 'single' and \"double\" quotes") GetText.set_locale "ja_JP.UTF-8" d = Developer.new d.name = "Joe" assert !d.valid? if AR_6657 assert_equal "開発者名は'シングル' \"ダブル\"クオートを含む。", d.errors.on(:name).last else assert_equal "開発者名は'シングル' \"ダブル\"クオートを含む。", d.errors.on(:name).first end GetText.set_locale "en" d = Developer.new d.name = "Joe" assert !d.valid? if AR_6657 assert_equal "Name contains 'single' and \"double\" quotes", d.errors.on(:name).last else assert_equal "Name contains 'single' and \"double\" quotes", d.errors.on(:name).first end end def test_validates_length_of_with_custom_too_short_using_quotes Developer.validates_length_of :name, :minimum => 4, :too_short=> N_("This string contains 'single' and \"double\" quotes") GetText.set_locale "ja_JP.UTF-8" d = Developer.new d.name = "Joe" assert !d.valid? assert_equal "この文字列は'シングル' \"ダブル\"クオートを含む。", d.errors.on(:name).last GetText.set_locale "en" d = Developer.new d.name = "Joe" assert !d.valid? assert_equal "This string contains 'single' and \"double\" quotes", d.errors.on(:name).last end def test_validates_length_of_with_custom_message_using_quotes_fn GetText.set_locale "ja_JP.UTF-8" Developer.validates_length_of :name, :minimum => 4, :message=> N_("%{fn} contains 'single' and \"double\" quotes") d = Developer.new d.name = "Joe" assert !d.valid? if AR_6657 assert_equal "開発者名は'シングル' \"ダブル\"クオートを含む。", d.errors.on(:name).last else assert_equal "開発者名は'シングル' \"ダブル\"クオートを含む。", d.errors.on(:name).first end GetText.set_locale "en" d = Developer.new d.name = "Joe" assert !d.valid? if AR_6657 assert_equal "Name contains 'single' and \"double\" quotes", d.errors.on(:name).last else assert_equal "Name contains 'single' and \"double\" quotes", d.errors.on(:name).first end end def test_validates_length_of_with_custom_message_using_quotes GetText.set_locale "ja_JP.UTF-8" Developer.validates_length_of :name, :minimum => 4, :message=> N_("This string contains 'single' and \"double\" quotes") d = Developer.new d.name = "Joe" assert !d.valid? if AR_6657 assert_equal "この文字列は'シングル' \"ダブル\"クオートを含む。", d.errors.on(:name).last else assert_equal "この文字列は'シングル' \"ダブル\"クオートを含む。", d.errors.on(:name).first end GetText.set_locale "en" d = Developer.new d.name = "Joe" assert !d.valid? if AR_6657 assert_equal "This string contains 'single' and \"double\" quotes", d.errors.on(:name).last else assert_equal "This string contains 'single' and \"double\" quotes", d.errors.on(:name).first end end def test_validates_presence_of_with_custom_message_using_quotes_fn # This test depends on test_validates_presence_of_with_custom_message_using_quotes GetText.set_locale "ja_JP.UTF-8" Developer.validates_presence_of :non_existent, :message=> N_("%{fn} contains 'single' and \"double\" quotes") d = Developer.new d.name = "Joe" assert !d.valid? if AR_6657 assert_equal "存在しないは'シングル' \"ダブル\"クオートを含む。", d.errors.on(:non_existent).last else assert_equal "存在しないは'シングル' \"ダブル\"クオートを含む。", d.errors.on(:non_existent).first end GetText.set_locale "en" d = Developer.new d.name = "Joe" assert !d.valid? if AR_6657 assert_equal "Non existent contains 'single' and \"double\" quotes", d.errors.on(:non_existent).last else assert_equal "Non existent contains 'single' and \"double\" quotes", d.errors.on(:non_existent).first end end def test_validates_presence_of_with_custom_message_using_quotes GetText.set_locale "ja_JP.UTF-8" Developer.validates_presence_of :non_existent, :message=> N_("This string contains 'single' and \"double\" quotes") d = Developer.new d.name = "Joe" assert !d.valid? assert_equal "この文字列は'シングル' \"ダブル\"クオートを含む。", d.errors.on(:non_existent) GetText.set_locale "en" d = Developer.new d.name = "Joe" assert !d.valid? assert_equal "This string contains 'single' and \"double\" quotes", d.errors.on(:non_existent) end def test_validates_uniqueness_of_with_custom_message_using_quotes_fn Developer.validates_uniqueness_of :name, :message=> N_("%{fn} contains 'single' and \"double\" quotes") GetText.set_locale "ja_JP.UTF-8" d = Developer.new d.name = "David" assert !d.valid? if AR_6657 assert_equal d.errors.on(:name).last, "開発者名は'シングル' \"ダブル\"クオートを含む。" else assert_equal d.errors.on(:name).first, "開発者名は'シングル' \"ダブル\"クオートを含む。" end GetText.set_locale "en" d = Developer.new d.name = "David" assert !d.valid? if AR_6657 assert_equal d.errors.on(:name).last, "Name contains 'single' and \"double\" quotes" else assert_equal d.errors.on(:name).first, "Name contains 'single' and \"double\" quotes" end end def test_validates_uniqueness_of_with_custom_message_using_quotes Developer.validates_uniqueness_of :name, :message=> N_("This string contains 'single' and \"double\" quotes") GetText.set_locale "ja_JP.UTF-8" d = Developer.new d.name = "David" assert !d.valid? if AR_6657 assert_equal d.errors.on(:name).first, "この文字列は'シングル' \"ダブル\"クオートを含む。" else assert_equal d.errors.on(:name).last, "この文字列は'シングル' \"ダブル\"クオートを含む。" end GetText.set_locale "en" d = Developer.new d.name = "David" assert !d.valid? if AR_6657 assert_equal d.errors.on(:name).first, "This string contains 'single' and \"double\" quotes" else assert_equal d.errors.on(:name).last, "This string contains 'single' and \"double\" quotes" end end def test_validates_associated_with_custom_message_using_quotes_fn Reply.validates_associated :topic, :message => N_("%{fn} contains 'single' and \"double\" quotes") Topic.validates_presence_of :content r = Reply.create("title" => "A reply", "content" => "with content!") r.topic = Topic.create("title" => "uhohuhoh") assert !r.valid? assert r.errors.on(:topic) r.topic.content = "non-empty" assert r.valid? GetText.set_locale "ja_JP.UTF-8" r = Reply.create("title" => "A reply", "content" => "with content!") r.topic = Topic.create("title" => "uhohuhoh") assert !r.valid? if AR_6657 assert_equal "Replyトピックは'シングル' \"ダブル\"クオートを含む。", r.errors.on(:topic).last else assert_equal "Replyトピックは'シングル' \"ダブル\"クオートを含む。", r.errors.on(:topic).first end GetText.set_locale "en" r = Reply.create("title" => "A reply", "content" => "with content!") r.topic = Topic.create("title" => "uhohuhoh") assert !r.valid? if AR_6657 assert_equal "Topic contains 'single' and \"double\" quotes", r.errors.on(:topic).last else assert_equal "Topic contains 'single' and \"double\" quotes", r.errors.on(:topic).first end end def test_validates_associated_with_custom_message_using_quotes Reply.validates_associated :topic, :message => N_("This string contains 'single' and \"double\" quotes") Topic.validates_presence_of :content r = Reply.create("title" => "A reply", "content" => "with content!") r.topic = Topic.create("title" => "uhohuhoh") assert !r.valid? assert r.errors.on(:topic) r.topic.content = "non-empty" assert r.valid? GetText.set_locale "ja_JP.UTF-8" r = Reply.create("title" => "A reply", "content" => "with content!") r.topic = Topic.create("title" => "uhohuhoh") assert !r.valid? assert_equal "この文字列は'シングル' \"ダブル\"クオートを含む。", r.errors.on(:topic) GetText.set_locale "en" r = Reply.create("title" => "A reply", "content" => "with content!") r.topic = Topic.create("title" => "uhohuhoh") assert !r.valid? assert_equal "This string contains 'single' and \"double\" quotes", r.errors.on(:topic) end =begin def test_if_validation_using_method_true end def test_unless_validation_using_method_true end def test_if_validation_using_method_false end =end def test_unless_validation_using_method_false_fn # When the method returns false Topic.validates_length_of( :title, :maximum=>5, :too_long=>N_("%{fn} hoo %d"), :unless => :condition_is_true_but_its_not ) GetText.set_locale "ja_JP.UTF-8" t = Topic.create("title" => "uhohuhoh", "content" => "whatever") assert !t.valid? assert t.errors.on(:title) assert_equal "タイトルふー5", t.errors.full_messages[0] assert_equal "タイトルふー5", t.errors["title"] GetText.set_locale "en" t = Topic.create("title" => "uhohuhoh", "content" => "whatever") assert !t.valid? assert t.errors.on(:title) assert_equal "Title hoo 5", t.errors.full_messages[0] assert_equal "Title hoo 5", t.errors["title"] end def test_unless_validation_using_method_false # When the method returns false Topic.validates_length_of( :title, :maximum=>5, :too_long=>N_("hoo %d"), :unless => :condition_is_true_but_its_not ) GetText.set_locale "ja_JP.UTF-8" t = Topic.create("title" => "uhohuhoh", "content" => "whatever") assert !t.valid? assert t.errors.on(:title) assert_equal "タイトル ふー5", t.errors.full_messages[0] assert_equal "ふー5", t.errors["title"] GetText.set_locale "en" t = Topic.create("title" => "uhohuhoh", "content" => "whatever") assert !t.valid? assert t.errors.on(:title) assert_equal "Title hoo 5", t.errors.full_messages[0] assert_equal "hoo 5", t.errors["title"] end def test_if_validation_using_string_true_fn # When the evaluated string returns true Topic.validates_length_of( :title, :maximum=>5, :too_long=>N_("%{fn} hoo %d"), :if => "a = 1; a == 1" ) GetText.set_locale "ja_JP.UTF-8" t = Topic.create("title" => "uhohuhoh", "content" => "whatever") assert !t.valid? assert t.errors.on(:title) assert_equal "タイトルふー5", t.errors.full_messages[0] assert_equal "タイトルふー5", t.errors["title"] GetText.set_locale "en" t = Topic.create("title" => "uhohuhoh", "content" => "whatever") assert !t.valid? assert t.errors.on(:title) assert_equal "Title hoo 5", t.errors.full_messages[0] assert_equal "Title hoo 5", t.errors["title"] end def test_if_validation_using_string_true # When the evaluated string returns true Topic.validates_length_of( :title, :maximum=>5, :too_long=>N_("hoo %d"), :if => "a = 1; a == 1" ) GetText.set_locale "ja_JP.UTF-8" t = Topic.create("title" => "uhohuhoh", "content" => "whatever") assert !t.valid? assert t.errors.on(:title) assert_equal "タイトル ふー5", t.errors.full_messages[0] assert_equal "ふー5", t.errors["title"] GetText.set_locale "en" t = Topic.create("title" => "uhohuhoh", "content" => "whatever") assert !t.valid? assert t.errors.on(:title) assert_equal "Title hoo 5", t.errors.full_messages[0] assert_equal "hoo 5", t.errors["title"] end =begin def test_unless_validation_using_string_true end def test_if_validation_using_string_false end =end def test_unless_validation_using_string_false # When the evaluated string returns false Topic.validates_length_of( :title, :maximum=>5, :too_long=>N_("hoo %d"), :unless => "false") GetText.set_locale "ja_JP.UTF-8" t = Topic.create("title" => "uhohuhoh", "content" => "whatever") assert !t.valid? assert t.errors.on(:title) assert_equal "タイトル ふー5", t.errors.full_messages[0] assert_equal "ふー5", t.errors["title"] GetText.set_locale "en" t = Topic.create("title" => "uhohuhoh", "content" => "whatever") assert !t.valid? assert t.errors.on(:title) assert_equal "Title hoo 5", t.errors.full_messages[0] assert_equal "hoo 5", t.errors["title"] end def test_if_validation_using_block_true_fn # When the block returns true Topic.validates_length_of( :title, :maximum=>5, :too_long=>N_("%{fn} hoo %d"), :if => Proc.new { |r| r.content.size > 4 } ) GetText.set_locale "ja_JP.UTF-8" t = Topic.create("title" => "uhohuhoh", "content" => "whatever") assert !t.valid? assert t.errors.on(:title) assert_equal "タイトルふー5", t.errors.full_messages[0] assert_equal "タイトルふー5", t.errors["title"] GetText.set_locale "en" t = Topic.create("title" => "uhohuhoh", "content" => "whatever") assert !t.valid? assert t.errors.on(:title) assert_equal "Title hoo 5", t.errors.full_messages[0] assert_equal "Title hoo 5", t.errors["title"] end def test_if_validation_using_block_true # When the block returns true Topic.validates_length_of( :title, :maximum=>5, :too_long=>N_("hoo %d"), :if => Proc.new { |r| r.content.size > 4 } ) GetText.set_locale "ja_JP.UTF-8" t = Topic.create("title" => "uhohuhoh", "content" => "whatever") assert !t.valid? assert t.errors.on(:title) assert_equal "タイトル ふー5", t.errors.full_messages[0] assert_equal "ふー5", t.errors["title"] GetText.set_locale "en" t = Topic.create("title" => "uhohuhoh", "content" => "whatever") assert !t.valid? assert t.errors.on(:title) assert_equal "Title hoo 5", t.errors.full_messages[0] assert_equal "hoo 5", t.errors["title"] end def test_conditional_validation_using_method_true_fn # When the method returns true Topic.validates_length_of( :title, :maximum=>5, :too_long=> N_("%{fn} hoo %d"), :if => :condition_is_true ) GetText.set_locale "ja_JP.UTF-8" t = Topic.create("title" => "uhohuhoh", "content" => "whatever") assert !t.valid? assert t.errors.on(:title) assert_equal "タイトルふー5", t.errors.full_messages[0] assert_equal "タイトルふー5", t.errors.on("title") GetText.set_locale "en" t = Topic.create("title" => "uhohuhoh", "content" => "whatever") assert !t.valid? assert t.errors.on(:title) assert_equal "Title hoo 5", t.errors.full_messages[0] assert_equal "Title hoo 5", t.errors.on("title") end =begin Don't need this def test_unless_validation_using_block_true end def test_if_validation_using_block_false end =end def test_unless_validation_using_block_false_fn # When the block returns false Topic.validates_length_of( :title, :maximum=>5, :too_long=>N_("%{fn} hoo %d"), :unless => Proc.new { |r| r.title != "uhohuhoh"} ) GetText.set_locale "ja_JP.UTF-8" t = Topic.create("title" => "uhohuhoh", "content" => "whatever") assert !t.valid? assert t.errors.on(:title) assert_equal "タイトルふー5", t.errors.full_messages[0] assert_equal "タイトルふー5", t.errors.on("title") GetText.set_locale "en" t = Topic.create("title" => "uhohuhoh", "content" => "whatever") assert !t.valid? assert t.errors.on(:title) assert_equal "Title hoo 5", t.errors.full_messages[0] assert_equal "Title hoo 5", t.errors["title"] end def test_unless_validation_using_block_false # When the block returns false Topic.validates_length_of( :title, :maximum=>5, :too_long=>N_("hoo %d"), :unless => Proc.new { |r| r.title != "uhohuhoh"} ) GetText.set_locale "ja_JP.UTF-8" t = Topic.create("title" => "uhohuhoh", "content" => "whatever") assert !t.valid? assert t.errors.on(:title) assert_equal "タイトル ふー5", t.errors.full_messages[0] assert_equal "ふー5", t.errors.on("title") GetText.set_locale "en" t = Topic.create("title" => "uhohuhoh", "content" => "whatever") assert !t.valid? assert t.errors.on(:title) assert_equal "Title hoo 5", t.errors.full_messages[0] assert_equal "hoo 5", t.errors["title"] end def test_conditional_validation_using_method_true # When the method returns true Topic.validates_length_of( :title, :maximum=>5, :too_long=> N_("hoo %d"), :if => :condition_is_true ) GetText.set_locale "ja_JP.UTF-8" t = Topic.create("title" => "uhohuhoh", "content" => "whatever") assert !t.valid? assert t.errors.on(:title) assert_equal "タイトル ふー5", t.errors.full_messages[0] assert_equal "ふー5", t.errors.on("title") GetText.set_locale "en" t = Topic.create("title" => "uhohuhoh", "content" => "whatever") assert !t.valid? assert t.errors.on(:title) assert_equal "Title hoo 5", t.errors.full_messages[0] assert_equal "hoo 5", t.errors.on("title") end def test_conditional_validation_using_string_true_fn # When the evaluated string returns true Topic.validates_length_of( :title, :maximum=>5, :too_long=> N_("%{fn} hoo %d"), :if => "a = 1; a == 1" ) GetText.set_locale "ja_JP.UTF-8" t = Topic.create("title" => "uhohuhoh", "content" => "whatever") assert !t.valid? assert t.errors.on(:title) assert_equal "タイトルふー5", t.errors.full_messages[0] assert_equal "タイトルふー5", t.errors.on("title") GetText.set_locale "en" t = Topic.create("title" => "uhohuhoh", "content" => "whatever") assert !t.valid? assert t.errors.on(:title) assert_equal "Title hoo 5", t.errors.full_messages[0] assert_equal "Title hoo 5", t.errors.on("title") end def test_conditional_validation_using_string_true # When the evaluated string returns true Topic.validates_length_of( :title, :maximum=>5, :too_long=> N_("hoo %d"), :if => "a = 1; a == 1" ) GetText.set_locale "ja_JP.UTF-8" t = Topic.create("title" => "uhohuhoh", "content" => "whatever") assert !t.valid? assert t.errors.on(:title) assert_equal "タイトル ふー5", t.errors.full_messages[0] assert_equal "ふー5", t.errors.on("title") GetText.set_locale "en" t = Topic.create("title" => "uhohuhoh", "content" => "whatever") assert !t.valid? assert t.errors.on(:title) assert_equal "Title hoo 5", t.errors.full_messages[0] assert_equal "hoo 5", t.errors.on("title") end def test_conditional_validation_using_block_true_fn # When the block returns true GetText.set_locale "ja_JP.UTF-8" Topic.validates_length_of( :title, :maximum=>5, :too_long => N_("%{fn} hoo %d"), :if => Proc.new { |r| r.content.size > 4 } ) t = Topic.create("title" => "uhohuhoh", "content" => "whatever") assert !t.valid? assert t.errors.on(:title) assert_equal "タイトルふー5", t.errors.full_messages[0] assert_equal "タイトルふー5", t.errors.on("title") GetText.set_locale "en" t = Topic.create("title" => "uhohuhoh", "content" => "whatever") assert !t.valid? assert t.errors.on(:title) assert_equal "Title hoo 5", t.errors.full_messages[0] assert_equal "Title hoo 5", t.errors.on("title") end def test_conditional_validation_using_block_true # When the block returns true GetText.set_locale "ja_JP.UTF-8" Topic.validates_length_of( :title, :maximum=>5, :too_long => N_("hoo %d"), :if => Proc.new { |r| r.content.size > 4 } ) t = Topic.create("title" => "uhohuhoh", "content" => "whatever") assert !t.valid? assert t.errors.on(:title) assert_equal "タイトル ふー5", t.errors.full_messages[0] assert_equal "ふー5", t.errors.on("title") GetText.set_locale "en" t = Topic.create("title" => "uhohuhoh", "content" => "whatever") assert !t.valid? assert t.errors.on(:title) assert_equal "Title hoo 5", t.errors.full_messages[0] assert_equal "hoo 5", t.errors.on("title") end def test_validates_associated_missing GetText.set_locale "ja_JP.UTF-8" Reply.validates_presence_of(:topic) r = Reply.create("title" => "A reply", "content" => "with content!") # In this case, rgettext doesn't pick up the names of relations as msgid, # so you need to define N_() in the model class assert_equal "Replyトピックを入力してください。", r.errors.on(:topic) GetText.set_locale "en" r = Reply.create("title" => "A reply", "content" => "with content!") assert_equal "Topic can't be blank", r.errors.on(:topic) assert_equal "Topic can't be blank", r.errors.full_messages[0] end def test_errors_to_xml GetText.set_locale "ja_JP.UTF-8" r = Reply.new :title => "Wrong Create" assert !r.valid? xml = r.errors.to_xml(:skip_instruct => true) assert_equal "", xml.first(8) assert xml.include?("Replyタイトル が不正に生成されました。") assert xml.include?("Reply内容 空です。") GetText.set_locale "en" r = Reply.new :title => "Wrong Create" assert !r.valid? xml = r.errors.to_xml(:skip_instruct => true) assert_equal "", xml.first(8) assert xml.include?("Title is Wrong Create") assert xml.include?("Content Empty") end def test_validation_order if AR_6657 Topic.validates_presence_of :title Topic.validates_length_of :title, :minimum => 2 GetText.set_locale "ja_JP.UTF-8" t = Topic.new("title" => "") assert !t.valid? assert_equal "タイトルを入力してください。", t.errors.on("title").first GetText.set_locale "en" t = Topic.new("title" => "") assert !t.valid? assert_equal "Title can't be blank", t.errors.on("title").first end end =begin #Don't need this def test_validation_with_if_as_string end =end def test_default_validates_numericality_of GetText.set_locale "ja_JP.UTF-8" Topic.validates_numericality_of :approved topic = Topic.create("title" => "numeric test", "content" => "whatever", "approved" => "aaa") assert_equal "承認は数値で入力してください。", topic.errors.on(:approved) GetText.set_locale "en" topic = Topic.create("title" => "numeric test", "content" => "whatever", "approved" => "aaa") assert_equal "Approved is not a number", topic.errors.on(:approved) assert_equal "Approved is not a number", topic.errors.full_messages[0] end def test_inherited_messages GetText.set_locale "ja_JP.UTF-8" Topic.validates_presence_of(:title, :content) GetText.set_locale "ja_JP.UTF-8" t = Topic.create assert !t.save assert_equal ["タイトルを入力してください。", "内容を入力してください。"].sort, t.errors.full_messages.sort assert_equal "タイトルを入力してください。", t.errors.on(:title) assert_equal "内容を入力してください。", t.errors.on(:content) t = Reply.create assert !t.save assert_equal ["Replyタイトルを入力してください。", "Replyタイトル 空です。", "Reply内容を入力してください。", "Reply内容 空です。"].sort, t.errors.full_messages.sort assert_equal ["Replyタイトルを入力してください。","空です。"], t.errors.on(:title) assert_equal ["Reply内容を入力してください。", "空です。"], t.errors.on(:content) t = Reply.create t.title = "Wrong Create" assert !t.save assert_equal ["Replyタイトル が不正に生成されました。", "Reply内容を入力してください。", "Reply内容 空です。"].sort, t.errors.full_messages.sort t = SillyReply.create assert !t.save assert_equal ["Sillyタイトルを入力してください。", "Sillyタイトル 空です。", "Silly内容を入力してください。", "Silly内容 空です。"].sort, t.errors.full_messages.sort assert_equal ["Sillyタイトルを入力してください。","空です。"], t.errors.on(:title) assert_equal ["Silly内容を入力してください。","空です。"], t.errors.on(:content) t = SillyReply.create t.title = "Wrong Create" assert !t.save assert_equal ["Sillyタイトル が不正に生成されました。", "Silly内容を入力してください。", "Silly内容 空です。"].sort, t.errors.full_messages.sort end def test_original_model_with_validation GetText.set_locale "ja_JP.UTF-8" t = MyModel.new t.title = nil t.save assert_equal "Titleを入力してください。", t.errors.full_messages[0] assert_equal "Titleを入力してください。", t.errors.on(:title) GetText.set_locale "en" t = MyModel.new t.title = nil t.save assert_equal "Title can't be blank", t.errors.full_messages[0] assert_equal "Title can't be blank", t.errors.on(:title) end end class ValidatesNumericalityTest < ActiveRecord::TestCase include GetText NIL = [nil] BLANK = ["", " ", " \t \r \n"] BIGDECIMAL_STRINGS = %w(12345678901234567890.1234567890) # 30 significent digits FLOAT_STRINGS = %w(0.0 +0.0 -0.0 10.0 10.5 -10.5 -0.0001 -090.1 90.1e1 -90.1e5 -90.1e-5 90e-5) INTEGER_STRINGS = %w(0 +0 -0 10 +10 -10 0090 -090) FLOATS = [0.0, 10.0, 10.5, -10.5, -0.0001] + FLOAT_STRINGS INTEGERS = [0, 10, -10] + INTEGER_STRINGS BIGDECIMAL = BIGDECIMAL_STRINGS.collect! { |bd| BigDecimal.new(bd) } JUNK = ["not a number", "42 not a number", "0xdeadbeef", "00-1", "--3", "+-3", "+3-1", "-+019.0", "12.12.13.12", "123\nnot a number"] INFINITY = [1.0/0.0] repair_validations(Topic) bindtextdomain_to(Topic, "active_record", :path => "locale") def test_default_validates_numericality_of Topic.validates_numericality_of :approved invalid!(NIL + BLANK + JUNK) # valid!(FLOATS + INTEGERS + BIGDECIMAL) end def test_validates_numericality_of_with_nil_allowed Topic.validates_numericality_of :approved, :allow_nil => true invalid!(JUNK) # valid!(NIL + BLANK + FLOATS + INTEGERS + BIGDECIMAL + INFINITY) end def test_validates_numericality_of_with_integer_only Topic.validates_numericality_of :approved, :only_integer => true invalid!(NIL + BLANK + JUNK + FLOATS + BIGDECIMAL) # valid!(INTEGERS) end def test_validates_numericality_of_with_integer_only_and_nil_allowed Topic.validates_numericality_of :approved, :only_integer => true, :allow_nil => true invalid!(JUNK + FLOATS + BIGDECIMAL + INFINITY) # valid!(NIL + BLANK + INTEGERS) end def test_validates_numericality_with_greater_than Topic.validates_numericality_of :approved, :greater_than => 10 invalid!([-10, 10], 'Approved must be greater than 10', '承認は10より大きい値にしてください。') # valid!([11]) end def test_validates_numericality_with_greater_than_or_equal Topic.validates_numericality_of :approved, :greater_than_or_equal_to => 10 invalid!([-9, 9], 'Approved must be greater than or equal to 10', "承認は10以上の値にしてください。") # valid!([10]) end def test_validates_numericality_with_equal_to Topic.validates_numericality_of :approved, :equal_to => 10 invalid!([-10, 11], 'Approved must be equal to 10', "承認は10にしてください。") # valid!([10]) end def test_validates_numericality_with_less_than Topic.validates_numericality_of :approved, :less_than => 10 invalid!([10], 'Approved must be less than 10', "承認は10より小さい値にしてください。") # valid!([-9, 9]) end def test_validates_numericality_with_less_than_or_equal_to Topic.validates_numericality_of :approved, :less_than_or_equal_to => 10 invalid!([11], 'Approved must be less than or equal to 10') # valid!([-10, 10]) end def test_validates_numericality_with_odd Topic.validates_numericality_of :approved, :odd => true invalid!([-2, 2], 'Approved must be odd', "承認は奇数にしてください。") # valid!([-1, 1]) end def test_validates_numericality_with_even Topic.validates_numericality_of :approved, :even => true invalid!([-1, 1], 'Approved must be even', "承認は偶数にしてください。") # valid!([-2, 2]) end def test_validates_numericality_with_greater_than_less_than_and_even Topic.validates_numericality_of :approved, :greater_than => 1, :less_than => 4, :even => true invalid!([1, 3, 4]) # valid!([2]) end def test_validates_numericality_with_numeric_message Topic.validates_numericality_of :approved, :less_than => 4, :message => N_("smaller than %{count}") topic = Topic.new("title" => "numeric test", "approved" => 10) assert !topic.valid? assert_equal "Approved smaller than 4", topic.errors.full_messages[0] assert_equal "smaller than 4", topic.errors.on(:approved) Topic.validates_numericality_of :approved, :greater_than => 4, :message => N_("greater than %{count}") topic = Topic.new("title" => "numeric test", "approved" => 1) assert !topic.valid? assert_equal "Approved greater than 4", topic.errors.full_messages[0] assert_equal "greater than 4", topic.errors.on(:approved) end private def invalid!(values, error=nil, errorj=nil) with_each_topic_approved_value(values) do |topic, value| GetText.set_locale "ja_JP.UTF-8" assert !topic.valid?, "#{value.inspect} not rejected as a number" assert topic.errors.on(:approved) assert_equal errorj, topic.errors.full_messages[0] if errorj assert_equal errorj, topic.errors.on(:approved) if errorj end with_each_topic_approved_value(values) do |topic, value| GetText.set_locale "en" assert !topic.valid?, "#{value.inspect} not rejected as a number" assert topic.errors.on(:approved) assert_equal error, topic.errors.full_messages[0] if error assert_equal error, topic.errors.on(:approved) if error end end =begin # Don't need this def valid!(values) with_each_topic_approved_value(values) do |topic, value| assert topic.valid?, "#{value.inspect} not accepted as a number" end end =end def with_each_topic_approved_value(values) topic = Topic.new("title" => "numeric test", "content" => "whatever") values.each do |value| topic.approved = value yield topic, value end end end gettext-activerecord-2.1.0/test/locale/0000755000175000017500000000000011623722575017114 5ustar gwolfgwolfgettext-activerecord-2.1.0/test/locale/ja/0000755000175000017500000000000011623722575017506 5ustar gwolfgwolfgettext-activerecord-2.1.0/test/locale/ja/LC_MESSAGES/0000755000175000017500000000000011623722575021273 5ustar gwolfgwolfgettext-activerecord-2.1.0/test/locale/ja/LC_MESSAGES/active_record.mo0000644000175000017500000001350611623722575024446 0ustar gwolfgwolf[ + #0B&W!~    ! 0 G X m s        ' B Q l ~     , B U n       1 , ; V h y         # * 7 K [ k w   ! ;BR X cqwD&:& a o 885# Y f p}       : DNU n x!    *!6Xg     DBI fp  !   +4$J$o$ %E3e3   0 UG,CK(9.MA6X7)!I4Y:@O#0WV["? N QR&/P8+Z S1F<D> J2;*L=5%BH3'ET$- %d dayo%{fn} %d dayo%{fn} can not be %{val}%{fn} contains 'single' and "double" quotes%{fn} hoo %d%{fn} is bad data%{fn} must be abided%{fn} option %{val} is not in the list%{fn} option %{val} is restricted%{fn} will never be validConjurer|CityConjurer|Created atConjurer|NameConjurer|TypeConjurer|Updated atDeveloper|Created atDeveloper|NameDeveloper|Non existentDeveloper|SalaryDeveloper|Updated atEmptyIneptWizard|CityIneptWizard|Created atIneptWizard|NameIneptWizard|TypeIneptWizard|Updated atProtectedPerson|Created atProtectedPerson|First nameProtectedPerson|Lock versionProtectedPerson|Updated atReply|ApprovedReply|Author email addressReply|Author nameReply|Bonus timeReply|ContentReply|ParentReply|Replies countReply|TitleReply|TopicReply|TypeSillyReply|ApprovedSillyReply|Author email addressSillyReply|Author nameSillyReply|Bonus timeSillyReply|ContentSillyReply|Replies countSillyReply|TitleSillyReply|TypeThaumaturgist|CityThaumaturgist|Created atThaumaturgist|NameThaumaturgist|TypeThaumaturgist|Updated atThis string contains 'single' and "double" quotesTopic|ApprovedTopic|Author email addressTopic|Author nameTopic|Bonus timeTopic|ContentTopic|Last readTopic|ParentTopic|Replies countTopic|Terms of serviceTopic|TitleTopic|TypeTopic|Written oncan not be %{val}conjurerdevelopergotchahoo %dinept wizardis Content Mismatchis Wrong Createis Wrong Updateis bad datamust be abidedmy string is too long: %dmy string is too short: %dmy string(%{fn}) is too long: %dmy string(%{fn}) is too short: %doption %{val} is not in the listoption %{val} is restrictedpersonprotectedpersonreplysillyreplythaumaturgisttopicwill never be validProject-Id-Version: active_record 1.0.0 POT-Creation-Date: 2009-10-08 19:08+0200 PO-Revision-Date: 2006-08-09 02:17+0900 Last-Translator: Masao Mutoh Language-Team: Japanese MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Plural-Forms: nplurals=1; plural=0; は%d以上だよ。%{fn}は%d以上だよ。%{val}は%{fn}ではありません。%{fn}は'シングル' "ダブル"クオートを含む。%{fn}ふー%d%{fn}は悪いデータです。%{fn}に従ってください。オプション%{val}は%{fn}一覧にありません。オプション%{fn}%{val}は制限されています。%{fn}は決して正しくならないでしょう。手品師町更新日手品師名手品師タイプ更新日生成日開発者名存在しない給料更新日空です。不器用な魔術師名更新日不器用な魔術師名不器用な魔術師タイプ更新日更新日名前ロックバージョン更新日Reply承認Reply著者EメールアドレスReply著者名ReplyボーナスタイムReply内容Reply親Replyリプライ数ReplyタイトルReplyトピックReply種別Silly承認Silly著者EメールアドレスSilly著者名SillyボーナスタイムSilly内容Sillyリプライ数Sillyタイトル承認奇術師町更新日奇術師名奇術師タイプ更新日この文字列は'シングル' "ダブル"クオートを含む。承認著者Eメールアドレス著者名ボーナスタイム内容最後の読み込み親リプライ数利用規約タイトル種別リテンオンは%{val}ではありません。手品師開発者ごっちゃふー%d不器用な魔術師は内容がミスマッチです。が不正に生成されました。が不正に更新されました。は悪いデータです。に従ってください。文字列は長すぎ: %d文字列は短すぎ: %d文字列:%{fn}は長すぎ: %d文字列:%{fn}は短すぎ: %dオプション%{val}は一覧にありません。オプション%{val}は制限されています。人守られた人リプライバカな承認奇術師トピックは決して正しくならないでしょう。gettext-activerecord-2.1.0/test/models/0000755000175000017500000000000011623722575017140 5ustar gwolfgwolfgettext-activerecord-2.1.0/test/models/reply.rb0000644000175000017500000000247011623722575020623 0ustar gwolfgwolfrequire 'models/topic' class Reply < Topic # ActiveRecord::Base N_("Reply|Topic") # Need to define relation table names explicity # if you use it in validations. belongs_to :topic, :foreign_key => "parent_id", :counter_cache => true has_many :replies, :class_name => "SillyReply", :dependent => :destroy, :foreign_key => "parent_id" validate :errors_on_empty_content validate_on_create :title_is_wrong_create attr_accessible :title, :author_name, :author_email_address, :written_on, :content, :last_read def validate errors.add("title", N_("Empty")) unless attribute_present? "title" end def errors_on_empty_content errors.add("content", N_("Empty")) unless attribute_present? "content" end def validate_on_create if attribute_present?("title") && attribute_present?("content") && content == "Mismatch" errors.add("title", N_("is Content Mismatch")) end end def title_is_wrong_create errors.add("title", N_("is Wrong Create")) if attribute_present?("title") && title == "Wrong Create" end def validate_on_update errors.add("title", N_("is Wrong Update")) if attribute_present?("title") && title == "Wrong Update" end end class SillyReply < Reply belongs_to :reply, :foreign_key => "parent_id", :counter_cache => :replies_count end gettext-activerecord-2.1.0/test/models/developer.rb0000644000175000017500000000026011623722575021450 0ustar gwolfgwolfclass Developer < ActiveRecord::Base N_("Developer|Non existent") validates_inclusion_of :salary, :in => 50000..200000 validates_length_of :name, :within => 3..20 end gettext-activerecord-2.1.0/test/models/inept_wizard.rb0000644000175000017500000000012411623722575022161 0ustar gwolfgwolfclass IneptWizard < Wizard #ActiveRecord::Base validates_uniqueness_of :city end gettext-activerecord-2.1.0/test/models/user.rb0000644000175000017500000000006611623722575020445 0ustar gwolfgwolfclass User < ActiveRecord::Base untranslate_all end gettext-activerecord-2.1.0/test/models/topic.rb0000644000175000017500000000263011623722575020604 0ustar gwolfgwolfclass Topic < ActiveRecord::Base named_scope :base named_scope :written_before, lambda { |time| { :conditions => ['written_on < ?', time] } } named_scope :approved, :conditions => {:approved => true} named_scope :replied, :conditions => ['replies_count > 0'] named_scope :anonymous_extension do def one 1 end end module NamedExtension def two 2 end end module MultipleExtensionOne def extension_one 1 end end module MultipleExtensionTwo def extension_two 2 end end named_scope :named_extension, :extend => NamedExtension named_scope :multiple_extensions, :extend => [MultipleExtensionTwo, MultipleExtensionOne] has_many :replies, :dependent => :destroy, :foreign_key => "parent_id" serialize :content N_("Topic|Terms of service") N_("must be abided") before_create :default_written_on before_destroy :destroy_children def parent Topic.find(parent_id) end def topic_id id end protected def approved=(val) @custom_approved = val write_attribute(:approved, val) end def default_written_on self.written_on = Time.now unless attribute_present?("written_on") end def destroy_children self.class.delete_all "parent_id = #{id}" end def after_initialize if self.new_record? self.author_email_address = 'test@test.com' end end end gettext-activerecord-2.1.0/test/models/wizard.rb0000644000175000017500000000014411623722575020764 0ustar gwolfgwolfclass Wizard < ActiveRecord::Base self.abstract_class = true validates_uniqueness_of :name end gettext-activerecord-2.1.0/test/models/book.rb0000644000175000017500000000007111623722575020415 0ustar gwolfgwolfclass Book < ActiveRecord::Base untranslate :title end gettext-activerecord-2.1.0/test/vendor/0000755000175000017500000000000011623722575017152 5ustar gwolfgwolfgettext-activerecord-2.1.0/test/vendor/repair_helper.rb0000644000175000017500000000320111623722575022314 0ustar gwolfgwolfmodule ActiveRecord module Testing module RepairHelper def self.included(base) base.class_eval do extend ClassMethods end end module Toolbox def self.record_validations(*model_classes) model_classes.inject({}) do |repair, klass| repair[klass] ||= {} [:validate, :validate_on_create, :validate_on_update].each do |callback| the_callback = klass.instance_variable_get("@#{callback.to_s}_callbacks") repair[klass][callback] = (the_callback.nil? ? nil : the_callback.dup) end repair end end def self.reset_validations(recorded) recorded.each do |klass, repairs| [:validate, :validate_on_create, :validate_on_update].each do |callback| klass.instance_variable_set("@#{callback.to_s}_callbacks", repairs[callback]) end end end end module ClassMethods def repair_validations(*model_classes) setup do @validation_repairs = ActiveRecord::Testing::RepairHelper::Toolbox.record_validations(*model_classes) end teardown do ActiveRecord::Testing::RepairHelper::Toolbox.reset_validations(@validation_repairs) end end end def repair_validations(*model_classes, &block) validation_repairs = ActiveRecord::Testing::RepairHelper::Toolbox.record_validations(*model_classes) return block.call ensure ActiveRecord::Testing::RepairHelper::Toolbox.reset_validations(validation_repairs) end end end end gettext-activerecord-2.1.0/test/helper.rb0000644000175000017500000000167111623722575017466 0ustar gwolfgwolf# encoding: utf-8 unless RUBY_VERSION >= "1.9.0" $KCODE = "UTF8" end $LOAD_PATH.unshift "." $LOAD_PATH.unshift File.join(File.dirname(__FILE__), '/../lib') require 'rubygems' require 'test/unit' require 'active_record' # use local gettext or current gettext gem begin $LOAD_PATH.unshift ENV["GETTEXT_LIB_PATH"] || "../../gettext/lib:../" require 'gettext' rescue LoadError gem 'gettext', '>=2.0.0' require 'gettext' end require 'gettext_activerecord' # load database and setup parser require 'db/sqlite' require 'db/migrate' # do something strange with AR_6657 AR_TEST_VERSION = /activerecord-([^\/]+)/.match($LOAD_PATH.join)[1] if AR_TEST_VERSION > "2.0.0" #ticket 6657 on dev.rubyonrails.org require this but it becames removed(?) AR_6657 = true else AR_6657 = false end puts "The activerecord svn version is #{$1}" # Make with_scope public for tests class << ActiveRecord::Base public :with_scope, :with_exclusive_scope end gettext-activerecord-2.1.0/Rakefile0000644000175000017500000000655111623722575016352 0ustar gwolfgwolf# # Rakefile for gettext_activerecord. # # Use setup.rb or gem for installation. # You don't need to use this file directly. # # Copyright(c) 2009 Masao Mutoh # # This program is licenced under the same licence as Ruby. # #make lib and paralel gettext checkout available $LOAD_PATH.unshift "./lib" gettext_path = File.join(ENV["GETTEXT_PATH"] || "../gettext/", "lib") $LOAD_PATH.unshift gettext_path require 'rubygems' require 'rake' require 'rake/packagetask' require 'rake/gempackagetask' require 'rake/rdoctask' gettext_path = File.join(ENV["GETTEXT_PATH"] || "../gettext/", "lib") $LOAD_PATH.unshift gettext_path require 'gettext_activerecord/version' PKG_VERSION = GetTextActiveRecord::VERSION task :default => [:makemo] ############################################################ # Manage po/mo files ############################################################ desc "Create *.mo from *.po" task :makemo do $stderr.puts "Create active_record mo files." require 'gettext/tools' GetText.create_mofiles end desc "Update pot/po files to match new version." task :updatepo do require 'gettext/tools' GetText.update_pofiles("gettext_activerecord", Dir.glob("lib/**/*.rb"), "gettext_activerecord #{PKG_VERSION}") end ############################################################ # Package tasks ############################################################ desc "Create gem and tar.gz" spec = Gem::Specification.new do |s| s.name = 'gettext_activerecord' s.version = PKG_VERSION s.summary = 'Localization support for ActiveRecord by Ruby-GetText-Package.' s.author = 'Masao Mutoh' s.email = 'mutomasa at gmail.com' s.homepage = 'http://gettext.rubyforge.org/' s.rubyforge_project = "gettext" s.files = FileList['**/*'].to_a.select{|v| v !~ /pkg|git/} s.require_path = 'lib' s.add_dependency('gettext', '>= 2.1.0') s.add_dependency('activerecord', '>= 2.3.2') s.has_rdoc = true s.description = 'Localization support for ActiveRecord by Ruby-GetText-Package.' end Rake::PackageTask.new("gettext_activerecord", PKG_VERSION) do |o| o.package_files = FileList['**/*'].to_a.select{|v| v !~ /pkg|git/} o.need_tar_gz = true o.need_zip = false end Rake::GemPackageTask.new(spec) do |p| p.gem_spec = spec p.need_tar_gz = false p.need_zip = false end ############################################################ # Misc tasks ############################################################ Rake::RDocTask.new { |rdoc| begin allison = `allison --path`.chop rescue allison = '' end rdoc.rdoc_dir = 'doc' rdoc.title = "gettext_activerecord API Reference" rdoc.options << '--line-numbers' << '--inline-source' rdoc.rdoc_files.include('README.rdoc', 'ChangeLog') rdoc.rdoc_files.include('lib/**/*.rb') rdoc.template = allison if allison.size > 0 } desc "Publish the release files to RubyForge." task :release => [:makemo, :package ] do require 'rubyforge' rubyforge = RubyForge.new rubyforge.configure rubyforge.login rubyforge.add_release("gettext", "gettext_activerecord", PKG_VERSION, "pkg/gettext_activerecord-#{PKG_VERSION}.gem", "pkg/gettext_activerecord-#{PKG_VERSION}.tar.gz") end # Run the unit tests desc 'Run tests' task :test do cd "test" Dir.glob("test_*.rb").each do |v| ruby "-Ilib:../../locale/lib:../../gettext/lib #{v}" end cd ".." end gettext-activerecord-2.1.0/sample/0000755000175000017500000000000011623722575016157 5ustar gwolfgwolfgettext-activerecord-2.1.0/sample/db/0000755000175000017500000000000011623722575016544 5ustar gwolfgwolfgettext-activerecord-2.1.0/sample/db/schema.rb0000644000175000017500000000016711623722575020335 0ustar gwolfgwolfActiveRecord::Schema.define(:version => 1) do create_table :books do |t| t.string :title, :author_name end end gettext-activerecord-2.1.0/sample/po/0000755000175000017500000000000011623722575016575 5ustar gwolfgwolfgettext-activerecord-2.1.0/sample/po/ja/0000755000175000017500000000000011623722575017167 5ustar gwolfgwolfgettext-activerecord-2.1.0/sample/po/ja/sample_ar.po0000644000175000017500000000141411623722575021472 0ustar gwolfgwolf# Japanese translations for PACKAGE package # PACKAGE パッケージに対する英訳. # Copyright (C) 2009 THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # Masao Mutoh , 2009. # msgid "" msgstr "" "Project-Id-Version: sample AR 1.0.0\n" "POT-Creation-Date: 2009-02-28 02:12+0900\n" "PO-Revision-Date: 2009-02-15 22:42+0900\n" "Last-Translator: Masao Mutoh \n" "Language-Team: Japanese\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=1; plural=0;\n" #: book.rb:- msgid "book" msgstr "書籍" #: book.rb:- msgid "Book|Title" msgstr "タイトル" #: book.rb:- msgid "Book|Author name" msgstr "著者" gettext-activerecord-2.1.0/sample/po/sample_ar.pot0000644000175000017500000000132211623722575021262 0ustar gwolfgwolf# SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # FIRST AUTHOR , YEAR. # #, fuzzy msgid "" msgstr "" "Project-Id-Version: sample AR 1.0.0\n" "POT-Creation-Date: 2009-02-28 02:12+0900\n" "PO-Revision-Date: 2009-02-15 22:33+0900\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\n" #: book.rb:- msgid "book" msgstr "" #: book.rb:- msgid "Book|Title" msgstr "" #: book.rb:- msgid "Book|Author name" msgstr "" gettext-activerecord-2.1.0/sample/sample.rb0000644000175000017500000000103711623722575017766 0ustar gwolfgwolf$LOAD_PATH.unshift "../lib" require 'rubygems' require 'gettext' require 'gettext_activerecord' require 'yaml' require 'book' config = YAML.load(IO.read("config/database.yml"))["development"] ActiveRecord::Base.establish_connection(config) GetText.bindtextdomain_to(ActiveRecord, "sample_ar", :path => "locale") GetText.set_locale "ja_JP.UTF-8" book = Book.new book.title = "Foo" book.save puts book.errors.full_messages #puts Japanese error message. GetText.set_locale "en" puts book.errors.full_messages #puts English error message. gettext-activerecord-2.1.0/sample/Rakefile0000644000175000017500000000137211623722575017627 0ustar gwolfgwolf$LOAD_PATH.unshift "../lib" gettext_path = File.join(ENV["GETTEXT_PATH"] || "../../gettext/", "lib") $LOAD_PATH.unshift gettext_path require 'rubygems' require 'gettext' desc "Create mo files" task :makemo do require 'gettext_activerecord/tools' GetText.create_mofiles end desc "Update po files" task :updatepo do require 'gettext_activerecord/tools' # Read Database information from "config/database.yml" GetText.update_pofiles("sample_ar", ["book.rb"], "sample AR 1.0.0") end task :createdb do require 'active_record' config = YAML.load(IO.read("config/database.yml"))["development"] ActiveRecord::Base.establish_connection(config) require 'db/schema.rb' end task :dropdb do rm "db/development.sqlite3" end gettext-activerecord-2.1.0/sample/config/0000755000175000017500000000000011623722575017424 5ustar gwolfgwolfgettext-activerecord-2.1.0/sample/config/database.yml0000644000175000017500000000010711623722575021711 0ustar gwolfgwolfdevelopment: adapter: "sqlite3" database: db/development.sqlite3 gettext-activerecord-2.1.0/sample/README.rdoc0000644000175000017500000000032611623722575017766 0ustar gwolfgwolf= Sample for gettext_activerecord == USAGE (Install sqlite3 and sqlite3-ruby first) $ Edit config/database.yml if you need. $ rake createdb $ rake makemo $ ruby sample.rb (or ruby -I/gettext/path/lib sample.rb) gettext-activerecord-2.1.0/sample/book.rb0000644000175000017500000000012111623722575017430 0ustar gwolfgwolfclass Book < ActiveRecord::Base validates_length_of :title, :minimum => 10 end gettext-activerecord-2.1.0/gettext_activerecord.gemspec0000644000175000017500000000517711623722575022473 0ustar gwolfgwolf# -*- encoding: utf-8 -*- Gem::Specification.new do |s| s.name = %q{gettext_activerecord} s.version = "2.0.4" s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version= s.authors = ["Masao Mutoh"] s.date = %q{2009-08-20} s.description = %q{Localization support for ActiveRecord by Ruby-GetText-Package.} s.email = %q{mutomasa at gmail.com} s.files = ["ChangeLog", "po/hr/gettext_activerecord.po", "po/cs/gettext_activerecord.po", "po/vi/gettext_activerecord.po", "po/nb/gettext_activerecord.po", "po/nl/gettext_activerecord.po", "po/zh/gettext_activerecord.po", "po/el/gettext_activerecord.po", "po/ko/gettext_activerecord.po", "po/gettext_activerecord.pot", "po/de/gettext_activerecord.po", "po/lv/gettext_activerecord.po", "po/hu/gettext_activerecord.po", "po/ja/gettext_activerecord.po", "po/eo/gettext_activerecord.po", "po/sr/gettext_activerecord.po", "po/es/gettext_activerecord.po", "po/bg/gettext_activerecord.po", "po/ca/gettext_activerecord.po", "po/bs/gettext_activerecord.po", "po/it/gettext_activerecord.po", "po/pt_BR/gettext_activerecord.po", "po/ua/gettext_activerecord.po", "po/ru/gettext_activerecord.po", "po/zh_TW/gettext_activerecord.po", "po/fr/gettext_activerecord.po", "po/et/gettext_activerecord.po", "sample/po/ja/sample_ar.po", "sample/po/sample_ar.pot", "sample/README.rdoc", "sample/Rakefile", "sample/sample.rb", "sample/config/database.yml", "sample/db/schema.rb", "sample/book.rb", "README.rdoc", "COPYING", "Rakefile", "lib/gettext_activerecord.rb", "lib/gettext_activerecord/migration.rb", "lib/gettext_activerecord/i18n.rb", "lib/gettext_activerecord/validations.rb", "lib/gettext_activerecord/schema_definitions.rb", "lib/gettext_activerecord/parser.rb", "lib/gettext_activerecord/version.rb", "lib/gettext_activerecord/base.rb", "lib/gettext_activerecord/tools.rb"] s.homepage = %q{http://gettext.rubyforge.org/} s.require_paths = ["lib"] s.rubyforge_project = %q{gettext} s.rubygems_version = %q{1.3.4} s.summary = %q{Localization support for ActiveRecord by Ruby-GetText-Package.} if s.respond_to? :specification_version then current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION s.specification_version = 3 if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then s.add_runtime_dependency(%q, [">= 2.0.4"]) s.add_runtime_dependency(%q, [">= 2.3.2"]) else s.add_dependency(%q, [">= 2.0.4"]) s.add_dependency(%q, [">= 2.3.2"]) end else s.add_dependency(%q, [">= 2.0.4"]) s.add_dependency(%q, [">= 2.3.2"]) end end gettext-activerecord-2.1.0/README.rdoc0000644000175000017500000001367611623722575016521 0ustar gwolfgwolf= gettext_activerecord gettext_activerecord provides the localization for ActiveRecord-2.2 or later using Ruby-GetText-Package. * Validation messages translation * Model translation * extract messages from models with the rake task. == Website * homepage[http://www.yotabanana.com/hiki/ruby-gettext.html] * on rubyforge[http://gettext/rubyforge.org/] * on github[http://github.com/gettext_activerecord/] == Requirements * {Ruby 1.8.3 or later}[http://www.ruby-lang.org] * {Rubygems}[http://www.rubygems.org/] * {locale gem}[http://rubyforge.org/projects/locale/] * $ gem install locale * {gettext gem}[http://rubyforge.org/projects/gettext/] * $ gem install gettext == Install #Uninstall old gettext if exists. (sudo/su on POSIX system) gem uninstall gettext #from rubyforge (sudo/su on POSIX system) gem install locale gem install gettext_activerecord == Usage === without Rails ==== Rakefile require 'rubygems' desc "Create mo files" task :makemo do require 'gettext_activerecord/tools' GetText.create_mofiles end task :updatepo do require 'gettext_activerecord/tools' # Need to access DB to find Model table/column names. # Use config/database.yml which is the same style with rails. GetText.update_pofiles("sample_ar", ["topic.rb"], "sample AR 1.0.0") end ==== topic.rb class Topic < ActiveRecord::Base validates_length_of :title, :minimum => 10 end ==== sample.rb require 'gettext_activerecord' require 'topic' # Use config/database.yml which is the same style with rails. config = YAML.load(IO.read("config/database.yml"))["development"] ActiveRecord::Base.establish_connection(config) GetText.bindtextdomain_to(ActiveRecord, "sample_ar", :path => "locale") GetText.set_locale "ja_JP.UTF-8" a = Topic.new a.title = "Foo" a.save puts a.errors.full_messages #puts Japanese error message. ==== Then ... $ rake updatepo $ cd po $ mkdir ja $ msginit -l ja_JP.UTF-8 -i sample_ar.pot -o ja/sample_ar.po $ Edit ja/sample_ar.po $ cd ../../ $ rake makemo $ ruby sample.rb === with Rails See gettext_rails [http://github.com/mutoh/gettext_rails/tree/master] == Support matrix * gettext_activerecord-2.1.0 - rails-2.3.2,2.3.3,2.3.4 * gettext_activerecord-2.0.2 - rails-2.3.2 * gettext_activerecord-2.0.1 - rails-2.3.2 * gettext_activerecord-2.0.0 - rails-2.3.2 == License This program is licenced under the same licence as Ruby(See COPYING) or LGPL(Lesser General Public License: http://www.gnu.org/licenses/lgpl-3.0.txt). * Copyright (C) 2001-2009 Masao Mutoh == Translators * Bosnian(bs) - Sanjin Sehic * Bulgarian(bg) - Sava Chankov * Catalan(ca) - Ramon Salvadó * Chinese(Simplified)(zh_CN) * Yang Bob (current) * Yingfeng * Chinese(Traditional)(zh_TW) * Yang Bob (current) * LIN CHUNG-YI * Croatian(hr) - Sanjin Sehic * Czech(cs) - Karel Miarka * Dutch(nl) - Bart ten Brinke (current) Menno Jonkers * Esperanto(eo) - Malte Milatz * Estonian(et) - Erkki Eilonen * French(fr) * Vincent Isambart (current) * David Sulc * David Sulc * Laurent Sansonetti * German(de) * Patrick Lenz (current) * Detlef Reichl * Sven Herzberg * Sascha Ebach * Greek(el) - Vassilis Rizopoulos * Hungarian(hu) - Tamás Tompa * Italian(it) * Marco Lazzeri * Gabriele Renzi * Japanese(ja) - Masao Mutoh * Korean(ko) - Gyoung-Yoon Noh * Latvian(lv) - Aivars Akots * Norwegian(nb) - Runar Ingebrigtsen * Portuguese(Brazil)(pt_BR) * Antonio S. de A. Terceiro (current) * Joao Pedrosa * Russian(ru) - Yuri Kozlov * Serbian(sr) - Slobodan Paunović" * Spanish(es) * David Espada (current) * David Moreno Garza * Ukrainian(ua) - Alex Rootoff * Vietnamese(vi) - Ngoc Dao Thanh == Status of translations * Bosnian(bs) - 1.90.0 (old) * Bulgarian(bg) - 2.0.0 * Catalan(ca) - 2.0.0 * Croatian(hr) - 1.90.0 (old) * Chinese(zh_CN) - 2.0.0 * Chinese(zh_TW) - 2.0.0 * Czech(cs) - 1.9.0 (old) * Dutch(nl) - 2.0.2 * English(default) - 1.90.0 (old) * Esperanto(eo) - 2.0.0 * Estonian(et) - 2.0.0 * French(fr) - 2.0.0 * German(de) - 2.0.0 * Greek(el) - 2.0.0 * Hungarian(hu) - 2.0.0 * Italian(it) - 1.6.0 (old) * Japanese(ja) - 2.1.0 * Korean(ko) - 1.9.0 (old) * Latvian(lv) - 2.0.0 * Norwegian(nb) - 2.0.0 * Portuguese(Brazil)(pt_BR) - 2.0.0 * Russian(ru) - 2.0.0 * Serbian(sr) - 1.91.0 (old) * Spanish(es) - 2.0.0 * Ukrainian(ua) - 2.0.0 * Vietnamese(vi) - 2.0.0 == Maintainer Masao Mutoh gettext-activerecord-2.1.0/ChangeLog0000644000175000017500000000172711623722575016457 0ustar gwolfgwolf= gettext_activerecord-2.0.5 (2009-11-11) * make test task visible in "rake -T" [by Vladimir Dobriakov] * Update to user column_mapping. [by hallelujah] * Add active_record 2.3.4 support [by hallelujah] * Update license information (explicit to use Ruby's or LGPL). [Pointed out by Masateru Yoshikawa] * Update to work with gettext-2.1.0. * Fixed bugs [by hallelujah, Vladimir Dobriakov, Masao Mutoh] = gettext_activerecord-2.0.4 (2009-05-23) * Updated version/dependencies. = gettext_activerecord-2.0.3 (2009-05-09) * Fixed the dependencies. [Reported by Hans de Graaff] * Add the test task to Rakefile. = gettext_activerecord-2.0.2 (2009-05-07) * Update version. * Update Dutch translation [by Bart ten Brinke] * Enhance ruby-1.9.1 support. = gettext_activerecord-2.0.1 (2009-04-18) * parser.rb: skip anonymous classes by TieTew. = gettext_activerecord-2.0.0 (2009-03-22) * Separated from Ruby-GetText-Package-1.93.0. * Support activerecord-2.3.2. gettext-activerecord-2.1.0/metadata.yml0000644000175000017500000001122411623722575017201 0ustar gwolfgwolf--- !ruby/object:Gem::Specification name: gettext_activerecord version: !ruby/object:Gem::Version version: 2.1.0 platform: ruby authors: - Masao Mutoh autorequire: bindir: bin cert_chain: [] date: 2009-11-14 00:00:00 +09:00 default_executable: dependencies: - !ruby/object:Gem::Dependency name: gettext type: :runtime version_requirement: version_requirements: !ruby/object:Gem::Requirement requirements: - - ">=" - !ruby/object:Gem::Version version: 2.1.0 version: - !ruby/object:Gem::Dependency name: activerecord type: :runtime version_requirement: version_requirements: !ruby/object:Gem::Requirement requirements: - - ">=" - !ruby/object:Gem::Version version: 2.3.2 version: description: Localization support for ActiveRecord by Ruby-GetText-Package. email: mutomasa at gmail.com executables: [] extensions: [] extra_rdoc_files: [] files: - lib/gettext_activerecord/base.rb - lib/gettext_activerecord/i18n.rb - lib/gettext_activerecord/schema_definitions.rb - lib/gettext_activerecord/validations.rb - lib/gettext_activerecord/migration.rb - lib/gettext_activerecord/tools.rb - lib/gettext_activerecord/version.rb - lib/gettext_activerecord/parser.rb - lib/gettext_activerecord.rb - test/Rakefile - test/helper.rb - test/vendor/repair_helper.rb - test/test_parser.rb - test/db/migrate.rb - test/db/sqlite.rb - test/locale/ja/LC_MESSAGES/active_record.mo - test/models/reply.rb - test/models/user.rb - test/models/topic.rb - test/models/inept_wizard.rb - test/models/wizard.rb - test/models/book.rb - test/models/developer.rb - test/test_validations.rb - test/po/ja/active_record.po - test/po/active_record.pot - Rakefile - README.rdoc - gettext_activerecord.gemspec - ChangeLog - data/locale/ru/LC_MESSAGES/gettext_activerecord.mo - data/locale/el/LC_MESSAGES/gettext_activerecord.mo - data/locale/ko/LC_MESSAGES/gettext_activerecord.mo - data/locale/ja/LC_MESSAGES/gettext_activerecord.mo - data/locale/sr/LC_MESSAGES/gettext_activerecord.mo - data/locale/eo/LC_MESSAGES/gettext_activerecord.mo - data/locale/bs/LC_MESSAGES/gettext_activerecord.mo - data/locale/zh/LC_MESSAGES/gettext_activerecord.mo - data/locale/vi/LC_MESSAGES/gettext_activerecord.mo - data/locale/et/LC_MESSAGES/gettext_activerecord.mo - data/locale/it/LC_MESSAGES/gettext_activerecord.mo - data/locale/zh_TW/LC_MESSAGES/gettext_activerecord.mo - data/locale/nb/LC_MESSAGES/gettext_activerecord.mo - data/locale/ua/LC_MESSAGES/gettext_activerecord.mo - data/locale/es/LC_MESSAGES/gettext_activerecord.mo - data/locale/pt_BR/LC_MESSAGES/gettext_activerecord.mo - data/locale/hr/LC_MESSAGES/gettext_activerecord.mo - data/locale/cs/LC_MESSAGES/gettext_activerecord.mo - data/locale/ca/LC_MESSAGES/gettext_activerecord.mo - data/locale/hu/LC_MESSAGES/gettext_activerecord.mo - data/locale/bg/LC_MESSAGES/gettext_activerecord.mo - data/locale/lv/LC_MESSAGES/gettext_activerecord.mo - data/locale/de/LC_MESSAGES/gettext_activerecord.mo - data/locale/nl/LC_MESSAGES/gettext_activerecord.mo - data/locale/fr/LC_MESSAGES/gettext_activerecord.mo - COPYING - sample/Rakefile - sample/README.rdoc - sample/sample.rb - sample/book.rb - sample/db/schema.rb - sample/po/ja/sample_ar.po - sample/po/sample_ar.pot - sample/config/database.yml - po/ru/gettext_activerecord.po - po/el/gettext_activerecord.po - po/ko/gettext_activerecord.po - po/ja/gettext_activerecord.po - po/sr/gettext_activerecord.po - po/eo/gettext_activerecord.po - po/bs/gettext_activerecord.po - po/zh/gettext_activerecord.po - po/vi/gettext_activerecord.po - po/et/gettext_activerecord.po - po/it/gettext_activerecord.po - po/zh_TW/gettext_activerecord.po - po/nb/gettext_activerecord.po - po/ua/gettext_activerecord.po - po/es/gettext_activerecord.po - po/pt_BR/gettext_activerecord.po - po/hr/gettext_activerecord.po - po/cs/gettext_activerecord.po - po/ca/gettext_activerecord.po - po/hu/gettext_activerecord.po - po/bg/gettext_activerecord.po - po/lv/gettext_activerecord.po - po/gettext_activerecord.pot - po/de/gettext_activerecord.po - po/nl/gettext_activerecord.po - po/fr/gettext_activerecord.po has_rdoc: true homepage: http://gettext.rubyforge.org/ licenses: [] post_install_message: rdoc_options: [] require_paths: - lib required_ruby_version: !ruby/object:Gem::Requirement requirements: - - ">=" - !ruby/object:Gem::Version version: "0" version: required_rubygems_version: !ruby/object:Gem::Requirement requirements: - - ">=" - !ruby/object:Gem::Version version: "0" version: requirements: [] rubyforge_project: gettext rubygems_version: 1.3.5 signing_key: specification_version: 3 summary: Localization support for ActiveRecord by Ruby-GetText-Package. test_files: [] gettext-activerecord-2.1.0/COPYING0000644000175000017500000000470711623722575015741 0ustar gwolfgwolfRuby is copyrighted free software by Yukihiro Matsumoto . You can redistribute it and/or modify it under either the terms of the GPL version 2 (see the file GPL), or the conditions below: 1. You may make and give away verbatim copies of the source form of the software without restriction, provided that you duplicate all of the original copyright notices and associated disclaimers. 2. You may modify your copy of the software in any way, provided that you do at least ONE of the following: a) place your modifications in the Public Domain or otherwise make them Freely Available, such as by posting said modifications to Usenet or an equivalent medium, or by allowing the author to include your modifications in the software. b) use the modified software only within your corporation or organization. c) give non-standard binaries non-standard names, with instructions on where to get the original software distribution. d) make other distribution arrangements with the author. 3. You may distribute the software in object code or binary form, provided that you do at least ONE of the following: a) distribute the binaries and library files of the software, together with instructions (in the manual page or equivalent) on where to get the original distribution. b) accompany the distribution with the machine-readable source of the software. c) give non-standard binaries non-standard names, with instructions on where to get the original software distribution. d) make other distribution arrangements with the author. 4. You may modify and include the part of the software into any other software (possibly commercial). But some files in the distribution are not written by the author, so that they are not under these terms. For the list of those files and their copying conditions, see the file LEGAL. 5. The scripts and library files supplied as input to or produced as output from the software do not automatically fall under the copyright of the software, but belong to whomever generated them, and may be sold commercially, and may be aggregated with this software. 6. THIS SOFTWARE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.