Displaying 20 results from an estimated 200 matches similar to: "Need Help with Globalize Plugin"
2006 Apr 13
0
Globalize not with Rails 1.1.2
Does anybody have the latest Globalize (r184) working with Rails 1.1.2?
I can''t seem to get a very simple example to work:
-----
ruby test/unit/news_item_test.rb
Loaded suite test/unit/news_item_test
Started
F.
Finished in 0.10109 seconds.
1) Failure:
test_add_content_translations(NewsItemTest)
[test/unit/news_item_test.rb:49]:
<"US Title"> expected but was
2006 May 31
6
Restricting access to files uploaded by file_column
Hi Guys,
Does anyone know how to restrict access on files that you upload in file
column to certain users only? I notice that files being saved by the
file_column by default are being saved under the public folder and can
be accessed just by typing the URL directly. Let''s say you have a Login
system where you restrict access to some pages and allow those users to
upload their own
2006 Jun 05
0
Failed to install Globalize plugin
My envrionment is Rails 1.1.2, Ruby 1.8.4, MySQL 5.0.21 on WinXP. When I
run ''rake migrate'' after pulling the lastest 1.1 branch of Globalize
plugin, I get the following error message:
(in C:/Rails/Application/medicalmind)
== GlobalizeMigration: migrating
==============================================
-- create_table(:globalize_countries, {:force=>true})
-> 0.2110s
2006 Nov 04
0
Globalize & caching
Currently only the translated keys are being cached, those that have no
translation are not.
I believe a form of caching should be done for the keys/strings that do not
have (yet) a translation, because right now the application keeps trying to
find a translation that is not there.
A mundane way would be to cache a predefined value for strings that did not
have a translation, and return the
2006 Jan 18
15
Anyone got Globalize working???
Hi all
In another thread I complain about an error I get after trying to get
Globalize working.
http://www.ruby-forum.com/topic/51988#new
Now I want to ask you, if anybody of you has ever got Globalize working?
I have done exactly what''s written in the (absolutely much too short)
tutorial of its wiki...
http://globalize.diluvia.net/wiki
...and I''m very frustrated that no
2006 May 08
0
Globalize howto
Anybody who can help with a step by step howto in using globalize...
I followed this example:
http://globalize-rails.org/wiki/pages/example
First I''ve created the database for use in my application:
CREATE TABLE `products` (
`id` bigint(20) unsigned NOT NULL auto_increment,
`name` varchar(12) NOT NULL default '''',
`type`
2007 Feb 08
0
trying to install GLOBALIZE
I''m having problems installing the Globalize plugin
(http://www.globalize-rails.org/globalize/)
When I write this:
D:\Rails\myapp>ruby script/plugin install
svn://svn.globalize-rails.org/globalize/branches/for-1.1
nothing is reported and there is nothing installed in vendor/plugins
trying to use
D:\Rails\myapp>ruby script/plugin install
2006 Feb 06
2
Globalize plugin, now I have two classes with the same name
Hi, newbie here.
I''m using the Globalize plugin, which defines a model with the same
name as one of my existing models. We both use a model called
Country. The Globalize Country model (within vendors/...) is wrapped
in module like this...
module Globalize
class Country < ActiveRecord::Base
...
end
end
And this is my Country model (within app/models)...
class Country <
2006 Jul 26
0
How to Globalize using variants of templates?
Hi,
We have a web application running on Ruby on Rails 1.0, with all RHTML
files stored in the standard app/views/controller directories. The
static content, messages, etc. in all the templates are in US English.
We hope to release the website in other languages.
We are considering the use of the Globalize plugin from
http://svn.globalize-rails.org/svn/globalize/globalize/trunk/
The layout of the
2006 Feb 05
0
[GLOBALIZE] Trouble getting example on wiki working
Hi,
I decided to integrate globalize into my app yesterday but I''ve run into
trouble.
I originally decided to try a db translation on one of my models so I
followed the wiki example and modified where appropriate.
When I tried to create an empty Album via the console I get the
following error:
http://www.rafb.net/paste/results/opZ13I27.html
I tried to investigate and from what I
2007 Jan 17
1
Get "Uninitialized constant" with Globalize
Hey there :)
Wondering what''s up with this... I just installed the Globalize plug-in
in my current project, ran the rake globalize:setup script, then added
"include Globalize" to my config/environment.rb.
Now, when I try to start my server, I get:
=> Booting Mongrel (use ''script/server webrick'' to force WEBrick)
=> Rails application starting on
2006 Mar 30
1
Globalize DB translate not working in Rails 1.1.0
It seems there have been some changes to ActiveRecord between Rails
1.1.0 RC and 1.10 Final that cause Globalize to fail; 1.10 RC was
working fine. When retrieving records from the DB only the base language
version is fetched, even when the locale has been set differently. The
SQL in the log confirms that Globalize is ignored and a regular find()
is performed.
2008 May 31
2
Exec format error during globalize plugin install
While trying to install the globalize plugin (website down? --
http://www.globalize-rails.org/globalize/) for Rails, all the files
seem to be transferred and placed properly, but I get the following
error when install.rb attempts to run:
Exec format error - rake -f C:/clients/MyClient/code/vendor/plugins/
globalize/../../../Rakefile globalize:upgrade_schema_to_1_dot_2 &&
exit 1
I see
2006 May 03
1
Globalize app example anywhere?
Hi!
Is there anywhere tutorial how to create working application using
globalize plugin?
I need to create a site in 3 different languages and i was suggested to
use globalize plugin. I''ve read a bit on globalize wiki page and pdf
from the presentation available on the same page, but i still can''t
figure out how to use it.
1. Can i translate names of models and columns
2006 Nov 04
0
Globalize: how to set a space in thousands_sep
Hi
So far Globalize works perfectly for me with rails 1.1.6
However, when I wanted to set a space as the thousand separator, here is
what I did : I set " " (double quote, space, double quote) in the
thousands_sep field, for the corresponding country, in the file
vendor/plugin/globalize/data/country_data.csv , and then "rake
globalize:setup" as usual.
The result is not what
2006 Apr 01
0
Using globalize and Net::HTTP.get
Today we did some cool stuff with globalize (the library) and
Net::HTTP.get. I thought it was pretty awesome, but most people I talked
to really didn''t think so, so I''ve come here to share my excitement on
this list w/ ppl who''d understand :P
Anyways, we took globalize and extended it so that websites were
translated on the fly by Google Translate / Babelfish type
2008 Sep 12
0
Exclude globalize from action
Hi everyone,
I would like to know if it possible not to load globalize for a
specific actions. I try to convert a view to pdf but there are some
conflicts in the render_to_string function. So I would like to render
the view without Globalize.
Is it possible?
Unfortunately the action_view of Globalize seems too tricky to mess
around with
--~--~---------~--~----~------------~-------~--~----~
You
2006 Feb 11
1
problem with globalize
Hi,
Somehow the date translation example in globalize doesn''t work for me.
Loading development environment.
>> Locale.set("es-ES")
=> #<Globalize::Locale:0x254df78 @code="es-ES", @language=nil, @country=nil>
>> Time.now.localize("%d %B %Y")
=> "11 February 2006"
>>
Any ideas??
Thanks!
Jeroen
2006 Jan 18
1
Globalize: :select option not allowed on translatable models
Hi all
I got the following error after trying to get the Globalize plugin to
work:
:select option not allowed on translatable models
What could be the problem? I just created a plain new Rails app,
installed Globalize through SVN, migrated the DB schema, created a
scaffold for Product, and edited the Product model like the following:
class Product < ActiveRecord::Base
translates :name,
2005 Dec 06
1
globalize plugin question
Hi,
I''d like to try and use the Globalize plugin, but I only need a subset
of the features that plugin provides. I''d like to:
- translate text in views
- format date/time/numbers using different locales
I won''t be using stuff like:
Locale.set("en-US")
prod = Product.find(1)
prod.name -> "Meatballs"
Locale.set("es-ES")
prod =