Displaying 20 results from an estimated 1000 matches similar to: "Newbee met problems when do some i18n on rails"
2011 Sep 05
1
I18n.locale Setting invalid
I like this set of
code:
before_filter :set_language
def set_language
request_language = request.env[''HTTP_ACCEPT_LANGUAGE'']
request_language = request_language.nil? ? nil :
request_language[/[^,;]+/]
I18n.locale = request_language if request_language &&
File.exist?("#{Rails.root.to_s}/config/locales/#{request_language}.yml")
end
if i setting
2012 Oct 10
0
Setting locale directories for I18n
Rails 3.1.3
I would like to apply i18n for my application.
Since there are many yml files in config/locales directory, I have made
subdirectories so that the maintenance will be easier. For example,
config/locales/devise/
date/
top/
...
Each subdirectories contain corresponding locale files that are applied
when users change
2010 Aug 21
2
Rails 3: I18n.locale not set to I18n.default_locale in production
I have an application that uses I18n, but in the first deployment, I
don''t want to enable different languages per user/request because
there are very few users who all speak german).
Therefore I have config.i18n.default_locale = :de in config/
application.rb.
I have no code whatsoever to set/change I18n.locale in my app.
In development environment, it works as expected: the
2009 Jun 14
3
Rails I18n
Hi,
I am trying to use i18n in rails. I want the language to be set first
from params[:locale] (probably already in the url) then from the browser
http header and lastly from the default_locale. Everything is fine. Now
the problem starts, when I want to add a dropdown list to allow the user
to change the locale. How do I force the page to reload with the new
Locale? FYI, I tried using .js and
2010 Mar 26
5
"invalid byte sequence in US-ASCII" on i18n form
I''m getting the error "invalid byte sequence in US-ASCII" when using i18n on
Rails 3.0.0beta with Ruby 1.9.1. I''ve searched extensively on Google and the
problem seems to happen with 2.3.x versions as well (when using Ruby 1.9.1).
I just set the default language to portuguese and added this locale file:
2006 Jul 17
0
Ruby-GetText-Package-1.7.0
Hi,
Ruby-GetText-Package-1.7.0 is now available.
Enjoy L10n!
Changes
-------
* Improve to support Ruby on Rails
* Localize ActionView::Helpers::DateHelper.distance_of_time_in_words.
* Localize ActionView::Helpers::ActiveRecordHelper.error_message_on.
* Add ActiveRecord::Base.untranslate, .untranslate_all to prevend to
translate columns.
* "ID" fields are ignored as
2009 Jan 23
0
NameError: uninitialized constant I18n
Just installed the plugin as described on the link below.
http://factore.ca/on-the-floor/11-introducing-has-foreign-language-an-easy-database-internationalization-plugin
If i fire up my console and then:
I18n.default_locale = "en"
i got the error message:
NameError: uninitialized constant I18n
from
2014 Jun 11
0
my webpage does not send emails confimation/notification
Hello everybody
I have a problem with my inquireis, when I want to contact and I send the
message, I must receive two emails one of confirmation (client) and other
of notification (admin of the web page) but it does not send.
The webpage work in production environment.
When I watch the log (production.log) I seed this:
>
> There was an error delivering an inquiry confirmation:
> 503
2009 May 12
2
rails 2.3.2 is not generating environment.rb properly
problem: rails 2.3.2 is not generating
config.action_controller.session_store = :active_record_store in
environment.rb
this is the code in environment.rb
---------------------------------------------------------------------------
# Be sure to restart your server when you modify this file
# Specifies gem version of Rails to use when vendor/rails is not present
RAILS_GEM_VERSION =
2011 Jan 31
0
Rails 3 - Translation of Error header doen't work
I am preparing the upgrade of one RoR aplication that used Rails 2.3.8
and where all the translations worked fine. Now I discovered that it
is not the case any more. Everything seems to work fien except the
Error windows header where the interpolation is not recognized.
I''m using Rails 3.0.3, Ruby 1.9.2.
I''ve just created a simple application, downloaded the latest french
YML
2002 Nov 20
0
[PATCH #9] Password expiration via /bin/passwd.
This is an attempt to simplify the AIX expiry-via-passwd stuff and make
it more generic. (There's actually a net reduction in #ifdefs).
Patch against CVS:
1) configure finds passwd.
2) sshd uses passwd during session if required.
3) sshd uses passwd for PAM change if privsep disabled.
4) sshd uses Buffers for expire and post-login messages (no longer AIX
specific).
5) password_change_required
2006 Mar 29
2
distance_of_time_in_words and Time classes
There is <%= distance_of_time_in_words(Time.now, @a_time) %> before
xzy.<BR />
<!-- ^ this gives 2279 days -->
This does not work because when @a_time is stored, even though it is a
Time field and the class is Time, it includes a date. The Date isn''t
even that days date its the year 2000, hence the 2279 days ago.
So how do I set the date part of @a_time (a Time
2006 Jul 14
1
Converting Date string to Time Object
Hi,
I have MySQL model with created_on specified as :date. This means that the
day the record was created on is stored in the database as a string like
"2006-04-28". I want to be able output a something like "5 days ago". From
looking in the API I''ve found "strftime" and "*distance_of_time_in_words*".
Distance_of_time_in_words only accepts Time
2010 May 21
1
newbee in XEN
Hi there,
I''m a new user with Xen. I''m trying to create a virtual machine with linux
debian. I have installed the server but now I don''t kno how to configure a
lan. I need to create ten virtal machines inside this server. I don''t know
where I can configure it. Each machine has to use fixed IP Addresess. If any
soul can help me I really apreciate it. Excese my
2014 May 04
0
newbee questions
Hi,
Im very new to virtualization on Linux, wanting to kick the tires
some, and am wondering where best to go next.
Right now, ive done the 'all in one install' of ovirt 3.4 on a single
fedora 19 machine. Its a desktop with a wifi network interface, and im
trying to set up the kvm hypervisor in combination with macvtap. Any
pointers to docs on what best to do next is appreciated. Im
2004 Jan 18
0
RE: Newbee question (hot phone numbers)
Just dropping a note about hot-desking
I believe hot-desking requires hot phone numbers. These hot phone #
should not be connected to physical phones but rather to a database
entry from where the physical phone(s) is(are) retrieved.
Users should be able to modify (securely) their own database record.
I'm currently trying to understand Bluetooth and the Norwood Bluetooth
initiative.
2005 Jun 06
0
Newbee, help with cdr/odbc/mysql logging problem
Hello,
I have now been playing with Asterisk for about a week and absolutely love it!
Unfortunately I seam to be having a problem with cdr records and mysql
via the ODBC method
It would appear to all be set up properly, and I am able to successfully. log
inbound/outbound activity into my mysql cdr database. All the inserted values
appear to be correct and meaningful but for the Duration
2004 Dec 02
1
FC3 (Newbee alert)
Hi
I am running Fedora Core 3. Since there is no wine distro for core 3 is
it ok to run the distro for core 2 and/or are there any caveats?
Don
2008 Feb 25
1
just a wine newbee
I come from Autoit because it doesn't support Linux OS.
I've some questions:
1- can I make Linux programs with a computer that only has Windows?
2- I see the downloads page of windows, but there is not any compiler or something like that. where is it?
3- Can I use sciTE for program in wine?
4- is there a help file or some tutorials?
thanks,
olivarra1
PD: I'm sorry because my english
2014 Dec 19
0
[LLVMdev] Newbee question: LLVM backend regression tests for thumb1 targets on simulator possible?
Am 19.12.2014 11:00, schrieb Renato Golin:
> On 18 December 2014 at 04:02, Tim Northover <t.p.northover at gmail.com> wrote:
>>> You have some special version of qemu? My default distribution's qemu
>>> package did not have a cortex-M0 nor has qemu head freshly taken from git:
>> The trouble with Cortex-M0 (from a virtualised testing perspective) is
>>