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-defaultshttp://api.rubyonrails.org/classes/I18n.html
>
> 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
-~----------~----~----~----~------~----~------~--~---