Instead of "de": try "de-DE":

But anyhow, why not use globalite (included with CommunityEngine) to
do ActiveRecord translations?. Have a look here:
http://github.com/mattetti/globalite/tree/master under "Rails
Localization"

On Jan 21, 1:18 pm, MW <[email protected]> wrote:
> Hi,
>
> these are the "first" lines frpm the de.yml
>
> "de":
>   date:
>     formats:
>       default: "%d.%m.%Y"
>       short: "%e. %b"
>       long: "%e. %B %Y"
>       only_day: "%e"
>
>     day_names: [Sonntag, Montag, Dienstag, Mittwoch, Donnerstag,
> Freitag, Samstag]
>     abbr_day_names: [So, Mo, Di, Mi, Do, Fr, Sa]
>     month_names: [~, Januar, Februar, März, April, Mai, Juni, Juli,
> August, September, Oktober, November, Dezember]
>     abbr_month_names: [~, Jan, Feb, Mär, Apr, Mai, Jun, Jul, Aug, Sep,
> Okt, Nov, Dez]
>     order: [ :day, :month, :year ]
>
>   time:
>     formats:
>       default: "%A, %e. %B %Y, %H:%M Uhr"
>       time: "%H:%M"
>       short: "%e. %B, %H:%M Uhr"
>       long: "%A, %e. %B %Y, %H:%M Uhr"
>       only_second: "%S"
>
>     am: ""
>     pm: ""
>
>   datetime:
>     distance_in_words:
>       half_a_minute: 'eine halbe Minute'
>       less_than_x_seconds:
>         zero: 'weniger als 1 Sekunde'
>         one: '1 Sekunde'
>         other: '{{count}} Sekunden'
>       x_seconds:
>         one: '1 Sekunde'
>         other: '{{count}} Sekunden'
>       less_than_x_minutes:
>         zero: 'weniger als 1 Minute'
>         one: 'eine Minute'
>         other: '{{count}} Minuten'
>       x_minutes:
>         one: '1 Minute'
>         other: '{{count}} Minuten'
>       about_x_hours:
>         one: 'etwa 1 Stunde'
>         other: '{{count}} Stunden'
>       x_days:
>         one: '1 Tag'
>         other: '{{count}} Tage'
>       about_x_months:
>         one: 'etwa 1 Monat'
>         other: '{{count}} Monate'
>       x_months:
>         one: '1 Monat'
>         other: '{{count}} Monate'
>       about_x_years:
>         one: 'etwa 1 Jahr'
>         other: '{{count}} Jahre'
>       over_x_years:
>         one: 'mehr als 1 Jahr'
>         other: '{{count}} Jahre'
>
> On 21 Jan., 13:15, jak4 <[email protected]> wrote:
>
> > Can you post the first few lines from your translation file?
>
> > On Jan 21, 1:08 pm, MW <[email protected]> wrote:
>
> > > Hi Bruno,
>
> > > I did everything to get the default locale running and even mongrel
> > > tells me that it has loaded the right config/locale file:
>
> > > (in environment.db I uncommentet this:
> > >    config.i18n.load_path = Dir[File.join(RAILS_ROOT, 'my', 'locales',
> > > '*.{rb,yml}')]
> > >    config.i18n.default_locale = :de
> > > )
>
> > > Ok, mongrel says:
>
> > > Processing ThemeController#stylesheets (for 192.168.100.183 at
> > > 2009-01-21 14:01:58) [GET]
> > >   Parameters: {"filename"=>"screen.css"}
> > > [I18n] loading locale: de-DE from config
> > > [I18n] Locale set to de-DE
> > > Completed in 1ms (View: 0, DB: 0) | 200 OK [http://192.168.100.198/
> > > stylesheets/theme/screen.css]
> > > Streaming file /usr/local/rails/renofon/themes/renobc/stylesheets/
> > > screen.css
>
> > > In my rails root/config/locale/de.yml I have a fully translation but
> > > it does not work. Again and again the token thing says
>
> > > translation missing: de-DE, activerecord, errors, template, header
>
> > > translation missing: de-DE, activerecord, errors, template, body
>
> > >     * Password confirmation translation missing: de-DE, activerecord,
> > > errors, models, user, attributes, password_confirmation, blank
> > >     * Password translation missing: de-DE, activerecord, errors,
> > > models, user, attributes, password, blank
> > >     * Password translation missing: de-DE, activerecord, errors,
> > > models, user, attributes, password, too_short
> > >     * Login translation missing: de-DE, activerecord, errors, models,
> > > user, attributes, login, blank
> > >     * Login translation missing: de-DE, activerecord, errors, models,
> > > user, attributes, login, too_short
> > >     * Login translation missing: de-DE, activerecord, errors, models,
> > > user, attributes, login, invalid
> > >     * Email translation missing: de-DE, activerecord, errors, models,
> > > user, attributes, email, blank
> > >     * Email translation missing: de-DE, activerecord, errors, models,
> > > user, attributes, email, too_short
> > >     * Email translation missing: de-DE, activerecord, errors, models,
> > > user, attributes, email, invalid
>
> > > Any more ideas how to get the error messages running in german?
>
> > > THX a lot
>
> > > Matz
>
> > > On 20 Jan., 20:32, "Bruno Bornsztein" <[email protected]>
> > > wrote:
>
> > > > Check the i18n docs 
> > > > here:http://weblog.rubyonrails.org/2008/11/18/new-rails-2-2-i18n-defaultsh...
>
> > > > You should be created a language file in your app folder, not in the 
> > > > Rails
> > > > gem folder. Then you just need to set the local in application.yml.
>
> > > > On Tue, Jan 20, 2009 at 2:04 AM, MW <[email protected]> wrote:
>
> > > > > Any help would be really great!
>
> > > > > Thank you!!!
>
> > > > > Matz
>
> > > > > On 19 Jan., 14:10, MW <[email protected]> wrote:
> > > > > > Hi Bruno,
>
> > > > > > I am a little bit confused, if I create a de.yml file in 
> > > > > > ruby/gems/1.8/
> > > > > > gems/activerecord-2.2.2/lib/active_record/locale, where can I say
> > > > > > ActiveRecord "Ok, now do not load the en.yml file any longer, please
> > > > > > take the de.yml file with my german translatuions"...?
> > > > > > Or do I have to create the translations in the /lang/ui folder at my
> > > > > > app?
>
> > > > > > THX a lot
>
> > > > > > Matz
>
> > > > > > On 16 Jan., 00:39, "Bruno Bornsztein" <[email protected]>
> > > > > > wrote:
>
> > > > > > > PS - the Globalite plugin has many of these translations done 
> > > > > > > already:
>
> > > > > > >http://github.com/mattetti/globalite/tree/3525504a30645b6234361bc6c92.
> > > > > ..
>
> > > > > > > and
>
> > > > > > >http://github.com/mattetti/globalite/blob/3525504a30645b6234361bc6c92.
> > > > > ..
>
> > > > > > > The yaml files are in a slightly different format though.
>
> > > > > > > On Thu, Jan 15, 2009 at 5:37 PM, Bruno Bornsztein <
>
> > > > > > > [email protected]> wrote:
> > > > > > > > Yeah, looks like the french localization file is far from 
> > > > > > > > complete.
> > > > > Those
> > > > > > > > error mean you're missing the localizations for ActiveRecord's
> > > > > default error
> > > > > > > > messages. As you can see here<
> > > > >http://github.com/rails/rails/tree/7a0e7c7270548138a333bc39aab5aec805...>,
> > > > > > > > Rails doesn't ship with error messages in any language beside
> > > > > english.
> > > > > > > > You'll need to translate the tokens in this file<
> > > > >http://github.com/rails/rails/tree/7a0e7c7270548138a333bc39aab5aec805...>and
> > > > > add the translations to your own language file.
>
> > > > > > > > On Thu, Jan 15, 2009 at 11:07 AM, Wormsy <[email protected]>
> > > > > wrote:
>
> > > > > > > >> I am using Community Engine in french and since the update of 
> > > > > > > >> the
> > > > > > > >> project I have these translations errors on the users page 
> > > > > > > >> during
> > > > > the
> > > > > > > >> registration process.
>
> > > > > > > >> translation missing: fr, activerecord, errors, template, header
>
> > > > > > > >> translation missing: fr, activerecord, errors, template, body
>
> > > > > > > >>    * Password confirmation translation missing: fr, 
> > > > > > > >> activerecord,
> > > > > > > >> errors, models, user, attributes, password_confirmation, blank
> > > > > > > >>    * Password translation missing: fr, activerecord, errors, 
> > > > > > > >> models,
> > > > > > > >> user, attributes, password, blank
> > > > > > > >>    * Password translation missing: fr, activerecord, errors, 
> > > > > > > >> models,
> > > > > > > >> user, attributes, password, too_short
> > > > > > > >>    * Login translation missing: fr, activerecord, errors, 
> > > > > > > >> models,
> > > > > > > >> user, attributes, login, blank
> > > > > > > >>    * Login translation missing: fr, activerecord, errors, 
> > > > > > > >> models,
> > > > > > > >> user, attributes, login, too_short
> > > > > > > >>    * Login translation missing: fr, activerecord, errors, 
> > > > > > > >> models,
> > > > > > > >> user, attributes, login, invalid
> > > > > > > >>    * Email translation missing: fr, activerecord, errors, 
> > > > > > > >> models,
> > > > > > > >> user, attributes, email, blank
> > > > > > > >>    * Email translation missing: fr, activerecord, errors, 
> > > > > > > >> models,
> > > > > > > >> user, attributes, email, too_short
> > > > > > > >>    * Email translation missing: fr, activerecord, errors, 
> > > > > > > >> models,
> > > > > > > >> user, attributes, email, invalid
>
> > > > > > > >> These errors appear when I validate an empty registration 
> > > > > > > >> form. With
> > > > > > > >> the previous Community engine version the problem did not 
> > > > > > > >> exist. Is
> > > > > > > >> someone has an idea about this problem ?
>
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CommunityEngine" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/communityengine?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to