Displaying 5 results from an estimated 5 matches for "globalize_transl".
2006 Jun 05
0
Failed to install Globalize plugin
...the following error message:
(in C:/Rails/Application/medicalmind)
== GlobalizeMigration: migrating
==============================================
-- create_table(:globalize_countries, {:force=>true})
-> 0.2110s
-- add_index(:globalize_countries, :code)
-> 0.3000s
-- create_table(:globalize_translations, {:force=>true})
-> 0.1600s
-- add_index(:globalize_translations, [:tr_key, :language_id])
-> 0.2310s
-- add_index(:globalize_translations, [:table_name, :item_id,
:language_id])
-> 0.2200s
-- create_table(:globalize_languages, {:force=>true})
-> 0.1700s
-- add_...
2006 Feb 17
4
Need Help with Globalize Plugin
...as posted by Jake Morrison in
the Globalize wiki...
http://www.globalize-rails.org/wiki/pages/Frequently+Asked+Questions
... so that I can successfully create the DB schema.
Now I tried to follow the examples in the wiki when using models but
it seems that my data is not being stored in the globalize_translations
table. Anyway here is a sample of my code.
environment.rb:
include Globalize
controllers/application.rb:
class ApplicationController < ActionController::Base
Locale.set_base_language(''en-US'')
end
models/sample.rb
class Trial < ActiveRecord::Base...
2006 Apr 13
0
Globalize not with Rails 1.1.2
...d on
http://wiki.globalize-rails.org/wiki/pages/example
-----
require File.dirname(__FILE__) + ''/../test_helper''
class NewsItemTest < Test::Unit::TestCase
# Uncomment the following line if the test/fixtures are used
# fixtures :globalize_countries, :globalize_languages,
:globalize_translations
def test_add_content_translations
NewsItem.delete_all
Globalize::Locale.set_base_language(''en-US'')
# create a row in the base language
Globalize::Locale.set(''en-US'')
assert_nothing_raised() do
assert_kind_of NewsItem, NewsItem...
2006 Nov 04
0
Globalize & caching
...e original sentence (without trying to
fetch the translation from the DB)
I would guess that something like ''-=+-;+_'' would be safe enough ;)
When a translation is added for a key, the previous version (the predefined
value) is removed anyway, so the only problem would appear when
globalize_translations table is populated from outside the application. But
in that case a refresh_cache_for_desired_values method could be added and be
run whenever desired.
I have an application that has many thousands strings that will have to be
translated, and having globalize endlessly trying to pull translat...
2006 Aug 02
4
is it possible to duplicate a key? --new
Im not very familiar with RoR so this question might be kind of silly.
I want to store strings from different lenguages in a database. I want
to have the key for the string in english be the ''key'' for all the
corresponding traslations of that string. For example:
(database columns)
lenguage-------------key-----------------value-----
english hello