Displaying 20 results from an estimated 11000 matches similar to: "inflections for translation system"
2006 Apr 04
13
Myowndb: a web database built with rails
Hi all,
I wanted to announce on this list that I have launched http://myowndb.com which
is a web database built with Ruby on Rails.
The application lets the administrator users define the data structure through
a web interface like in a normal database, with:
- tables
- enhanced datatypes like emaili, web URL, and a choice in list
- relations (one to many, one to one) between tables
Once the
2006 Mar 31
2
[Howto] custom and translated AR validation error messages
Hi,
I''m putting the finishing touches on a multi-lingual application, and
just posted a blog entry on how I did translate validation errors
generated by ActiveRecord at: http://www.myowndb.com/blog/?p=4
I found it surprisingly easy, and thought I''d document it.
The translation is based on a plugin I plan to publish really really
soon, more info whith the upcoming announcement.
2006 Feb 23
0
inflections for different languages
Hi,
I''d like to use the rails inflections for
pluralisation/singularisation in different languages, but want to be
sure to not interfere with the pluralization of tables, field names,
etc.
However, the Inflector is a singleton... Any suggestion so that I can
define specific rules for each language, but still let rails use its
default rules?
thanks
Raph
2014 Mar 20
2
io mode=native precisions
Hi,
Before switching to io mode=native, I wanted to check if there are any
disadvantages or potential problem with this setting.
I virtio-blk data plane required to use this setting effectively? (as
illustrated here:
http://blog.vmsplice.net/2013/03/new-in-qemu-14-high-performance-virtio.html)
Is there a requirement on the host kernel (eg minimum version)?
Thanks in advance
Raph
2005 Dec 19
1
multiple databases
Hi,
I''m writing a translation plugin which takes the translations from a
database that is different than the application''s main database.
When in my plugin''s models I put this code:
ActiveRecord::Base.establish_connection(
RAILS_ENV+"-translations"
)
all my application''s models use the plugin''s database....
Why are my
2006 Apr 10
5
Inflections.rb in spanish
Hi:
I have a problem with the plural of fracancia, I got fragancium but in
spanish is fragancia.
I modified inflections in environment.rb
Inflector.inflections do |i|
i.irregular ''fragancia'', ''fragancias''
end
but is ignored.
The solution that I found was comment this inflection on inflections.rb
#inflect.singular(/([ti])a$/i,
2012 Jul 19
20
Rails' inflections are messy
Yesterday, I opened a GitHub Issue<https://github.com/rails/rails/pull/7071> about
moving Rails inflections to an initializer. The idea wasn''t received well,
understandably, as generating a large initializer with new Rails apps is
pretty unappealing. However, the core members seemed open to the discussion
of alternatives continuing here.
For those of you not in the know,
2014 Mar 24
0
Re: io mode=native precisions
On Thu, Mar 20, 2014 at 9:13 AM, Raphael Bauduin <rblists@gmail.com> wrote:
> Hi,
>
> Before switching to io mode=native, I wanted to check if there are any
> disadvantages or potential problem with this setting.
> I virtio-blk data plane required to use this setting effectively? (as
> illustrated here:
>
2010 Nov 22
0
Rails 3 - Custom Inflection Not Working?
I''m using Rails (3.0.3) and have the following code in
initializers/inflections.rb
ActiveSupport::Inflector.inflections do |inflect|
inflect.irregular(''nursery'', ''nurseries'')
end
From the console I''m getting:
"nursery".pluralize => "nurseries"
"nurseries".singularize => "nurseries"
I should be
2014 Mar 24
1
Re: io mode=native precisions
On 03/24/2014 03:57 AM, Raphael Bauduin wrote:
>
>
>
> On Thu, Mar 20, 2014 at 9:13 AM, Raphael Bauduin <rblists@gmail.com
> <mailto:rblists@gmail.com>> wrote:
>
> Hi,
>
> Before switching to io mode=native, I wanted to check if there are any
> disadvantages or potential problem with this setting.
> I virtio-blk data plane required
2006 Jan 15
1
how to provide plugin configuration?
Hi,
I''m finalising a translation plugin I use in one app. I''d like the
plugin the be configurable but am not sure how to provide this
configurability. For example, there''s a setting for the cookie name to
use when saving user''s prefered language. I thought of having a class
TranslationConfig like this:
class TranslationsConfig
def self.cookie_name
2006 Jan 07
1
datetime returned as string, sometimes....
Hi,
I''m using postgresql 8.1, rails 1.0, and I have a strange problem on a
datetime field (timestamp without time zone in postgresql).
As shown below, the field "value" sometimes returns a string, and
sometimes a Time instance, depending of where the value is used....:
* breakpoint session _from inside an instance method_ of the object:
value
=> "1996-05-01
2005 Dec 28
1
advice needed: damagecontrol or CIA?
Hi,
I''m looking to set up a continuous integration server for a rails
application. This application is under source control with darcs.
I''ve read about damagecontrol and CIA, and wonder what experience you
can share so I can make my mind.
CIA seems to work with a post-commit so I should be able to use it
with darcs. And as it is in the rails svn repository, I have good hope
2006 Apr 11
0
Inflections in environment.rb ignored on rails 1.1.x?
Hi:
Im dealing with this problem:
I have a irregular inflection, so I need to declare on environment.rb
But is ignored by rails.
rails 1.1.0
rails 1.1.1
rails 1.1.2
What can I do?
Any Idea?
thanks
P
--
Posted via http://www.ruby-forum.com/.
2006 Jan 02
3
ANN: new rails site/RoR praise
Hi,
>From idea to launch in less than 48 hours (those 48 hours including
the new year party ;) , rails once again showed its effectiveness.
Last friday I read the news about a guy who sold a million pixels for
1$ each on his homepage. After slamming my head during half an hour
for not having thought of it [1], I thought I''d better spend some time
on a rails project, and more as a
2007 Jan 20
2
Conditional pluralize without the number
Hi.
Assume you have an array of person names. I want to generate results in
my view that look like this:
Abby is your friend
or
Abby, Bob, and Carol are your friends.
So I''d like to say:
<%= friends.to_sentence %>
<%= pluralize(friends.count, "is") %>
your <%= pluralize(friends.count, "friend") %>
But because pluralize puts in the
2006 Jan 09
2
Pluralizations
Hi, I''m new to Ruby and Rails, and I''m running Ruby 1.8.4 with Rails 1.0
on Ubuntu 5.10 (breezy).
I wanted to have a model Software, with the table as software (since
''software'' is the plural too). I appreciate one can simply use something
like use_table or whatever (can''t remember the exact command) in the
Model file, but I''d much rather
2008 Apr 05
2
installing dotnet20 fails
I am trying to install dotnet20 in 0.9.58 with
sh winetricks dotnet20
It hangs after extracting a file with
sh winetricks dotnet20
Using system libcrypto, version 90709F
DLSYM: Failed to resolve FIPS_mode_set: 127
DLSYM: Failed to resolve FIPS_mode: 127
DLSYM: Failed to resolve SHA256: 127
DLSYM: Failed to resolve SHA512: 127
DLSYM: Failed to resolve EVP_sha224: 127
DLSYM: Failed to
2006 Apr 16
1
plugins problems with RoR 1.1 in production
Hi,
I''m looking to upgrade an application based on rails 1.0, and I have a
problem with plugins working fine in development, but not in
production or test. Actually, it happens in all environments with
their dependency mechanism set to :load.
For example for the selenium on rails plugin, it needs the class
SeleniumOnRailsConfig, which triggers the dependency on
2013 Mar 26
0
Pluralization with default_locale not working (Rails 4 Beta 1)
Hi,
I am just trying to setup an application in Rails 4, Beta 1. The
application is (exclusively) in German Language and therefore also the URLs
should be German. I want to create a controller and model for an entity
called "Region"; Rails pluralizes that to "Regions", but it should be
"Regionen". What I did is: in config/application.rb uncomment this line: