Displaying 20 results from an estimated 600 matches similar to: "Multilingual Validation Messages"
2005 Aug 10
24
Multilingual Rails v0.5. Big update!
Multilingual Rails v0.5 is just released with lots of new features.
Here is the changelog:
v0.5: New charset conversion string-methods. Multilingual Rails
always use UTF-8 internally.
iconv_to(charset) # Return string as charset
iconv_from(charset) # Return string as UTF-8, converted
from charset
iconv_from!(charset) # Convert string from charset to UTF-8
2005 Aug 13
9
Multilingual Rails v0.6
Multilingual Rails v0.6 is released!
Here is the changelog. Documentation and download at the homepage:
http://www.tuxsoft.se/oss/rails/multilingual
v0.6 - 2005-08-13
* String case-manipulation functions replaced with ruby-unicode
equivalents (if ruby-unicode is installed):
String#downcase, String#upcase and String#capitalize now fully
handle Unicode.
* String normalization
2006 Jan 24
17
Updated lighttpd to 1.4.9 - error running dispatch.fcgi
Hi all,
I just updated lighttpd from 1.4.8 to 1.4.9 and it now refuses to
start with the following error:
2006-01-24 23:12:24: (mod_fastcgi.c.989) execve failed for: public/
dispatch.fcgi No such file or directory
2006-01-24 23:12:24: (mod_fastcgi.c.1015) the fastcgi-backend public/
dispatch.fcgi failed to start:
2006-01-24 23:12:24: (mod_fastcgi.c.1019) child exited with status 2
2005 Mar 06
12
Where to place custom classes?
Hi all,
I am writing a simple shopping cart which will consist of a single
class. There will be no DB table for carts so I do not want to make my
Cart a model. But where do I place my Cart class so that I can access
it in my controllers?
I want to be able do do things like this (for instance in a shop
controller):
def add_to_cart
@session[''cart''].add(article_id, amount)
2006 Feb 01
4
Custom view helpers
Hi all,
I would like to write some custom helpers like the ones available as
form helpers text_field, text_area and the like. My first try was this:
custom_helper(obj, meth)
''some_string'' + obj.send(meth) + ''some_other_string''
end
Object and method are being passed as symbols like this:
custom_helper(:person, :name)
and Ruby rightfully complains that
2005 Mar 06
4
has_many and order
Hi all,
if I have a has_many and belongs_to relations like this
category has many articles
article belongs to category
is there a way I can specify the order of articles when pulling them up
with
@some_category.articles
?
Many thanks in advance!
-- Nicky
2006 Jul 07
2
Problem with GetText 1.6.0 - undefined method ''N_''
I''m just upgraded GetText from 1.4.0 to 1.6.0, and all my tests got broken.
I got this error:
ruby/lib/ruby/gems/1.8/gems/activerecord-1.14.3/lib/active_record/base.rb:1129:in
`method_missing'': undefined method `N_'' for User:Class (NoMethodError)
etc
My model user.rb has this line:
validates_format_of :login, :with => /^[a-zA-Z0-9_]+$/, :message =>
2013 Jan 20
6
preload_app = true causing - ActiveModel::MissingAttributeError: missing attribute: some_attr
Greetings,
I''m getting this - ActiveModel::MissingAttributeError: missing
attribute: some_attr - on a random basis under a unicorn server,
running rails 3.2 and ruby 1.9.3
As the case of the last poster in the following thread -
https://github.com/rails/rails/issues/1906 - I too am able to resolve
this issue by settingpreload_app to false.
However, this is not the behaviour I want to
2006 Jan 15
15
Gettext and Rails ?
Hello,
I''m trying to use ruby-gettext 1.1.1 (installed with gem) with rails and
here is all I get :
undefined method `init_gettext'' for ApplicationController:Class
Here is my source :
require ''gettext/rails''
class ApplicationController < ActionController::Base
init_gettext "test"
end
As a Nuby, I don''t really know what to do.
2006 May 09
5
How to use gettext in plugins?
I use rails-engine as a plugin of the application and I want to localize
the validate message from the plugin:
validates_length_of :login, :within => 3..40, :on => :create, :message
=> N_("%{fn} is too short (min is %d characters)")
It can not display the according language,where should i set it?
I have tried to add
require ''gettext/rails''
2006 May 03
6
ruby on rails international & BIRT integration?
Hello,
I see, that Rails is quite english-centric. I am developing some webs,
that are not primarily in English. I have a few questions:
- besides turning of plurals, what should I take care? How to use utf-8
for all data and converting it from local charsets to utf-8?
- how do I make my page multilingual (i.e. adding english support
later)? Is there something like gettext support? Is
2006 Feb 27
4
Gettext and rails
Hi
Im using the newest GetText gem, and Im having problems with classes
outside rails, they don''t get translated. For example: I have a class
representing access in my app, and it is not a ActiveRecord, just a
normal class. When require ''gettext'' and include it in the class, I can
use the _('''') methods fine. They get picked upp by rake updatepo.
2006 May 02
16
no one cares about i18n (was [OT]: Asking questions on this list)
Do most others in the community agree with this statement? It seems to me
that i18n is:
1. Actually important to many people
2. Not really the difficult to implement in concept
3. Something that people like to point out about Rails to say it''s not
ready foir "Enterprise"
It seems to be that a big part of Rails is encouraging people to do things
the "Right Way",
2003 Dec 02
2
Multilingual version of DIAX
Hi all,
The multilingual version of DIAX with both IAX and IAX2 support will be
available for download later today or tommorrow.
If someone interested to help me traslate from English to one of the
following languages (ant not oly) please drop me a direct mail.
- italian
- spanish
- french
- portuguese
In this moment the following are done:
- english
- romanian
- german
- dutch
If this can be
2006 Jul 06
6
Problem with gettext and functional tests
Hi,
I am using gettext to let my web application know several languages. All
works fine, but since I integrated it, my functional tests don''t work any
more.
I keep getting the error message:
NoMethodError: undefined method `cgi'' for
#<ActionController::TestRequest:0xb77f7f88>.
All right, TestRequest doesn''t have a cgi method. Therefore I just included
this into
2006 May 30
2
Wrong Content-type in RJS with Gettext
Hello,
I am developing an application using Rails and doing l10n with
ruby-gettext.
When I deploy the app on lighttpd, every rjs template is rendered with
Content-type: text/html; charset: UTF-8. I believe it comes from 85th
line of
rails.rb script in ruby-gettext lib. RJS templates are not executed in
this situation.
Hovewer, when I run the app with Webrick, rjs templates are rendered
with:
2006 Jan 30
5
a RJS problem/patch
Hi,
add_rjs_to_action_view.rb of javascript_generator_templates
doesn''t work with setting Content-Type in a controller.
(e.g.) http://wiki.rubyonrails.org/rails/pages/HowtoSetDefaultEncoding
class ApplicationController < ActionController::Base
before_filter :set_charset
def set_charset
@headers["Content-Type"] = "text/html; charset=utf-8"
end
end
I
2003 Dec 03
2
New Multilingual DIAX (0.9.5) available for download
Hi all,
The new multilingual version of DIAX (0.9.5) is now available for:
- English
- Romanian
- German
- Dutch
- Italian
- French
- Spanish
- Portuguese
at the following locations:
http://www.laser.com/dante
http://www.geocities.com/tdanro
What's new in 0.9.5 :
- double support(IAX(1)/IAX2)
- Multilanguage support: English, Romanian, German, Dutch, Italian, French,
Spanish, Portuguese(for
2006 Jan 11
8
GetText: Works with en_GB and en_US, but doesn''t with de_DE!
Hi all
I''m trying to get GetText to work. I have the following folder
structure:
|-myapp.pot
|-de_DE/:
| `-myapp.po
|-en_GB/:
| `-myapp.po
|-en_US/:
` `-myapp.po
I run rake updatepo, and then rake makemo.
Now I set en-gb as default language in Firefox and run my app >> works!
Then I set en-us as default language in Firefox and run my app >> works,
2007 May 23
1
Memory Leak When Searching For Multilingual Keyword(s)
On Windows XP, I played the AAF demo
(svn://projects.jkraemer.net/acts_as_ferret/trunk/demo) that works
nicely with English content. However, if the keyword is non-English (no
matter whether there is any content in db), the server immediately
causes memory leak over 1GB and stops responding. The languages I tried
include:
French (utf-8)
German (utf-8)
Spanish (utf-8)
Chinese (utf-8)
Japanese