Displaying 20 results from an estimated 10000 matches similar to: "Localization (again) a la Thomas Fuchs"
2005 Dec 30
6
call a method once per page request
Hi,
I''m wondering if there is a simple solution to call a method once per
page request.
I tried to place my call in a before_filter in ApplicationController but
it''d called a second time if I use render_component from a view.
Seems to me that a hook should be added in Dispatcher#prepare_application.
Context: working on i18n, I''m trying to check lang either from uri,
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
2006 Jan 09
3
Thomas Fuchs Interview on Audible Ajax
Hi guys,
I had the pleasure of interviewing Thomas Fuchs for "Audible Ajax", and
thought that some of you may be interested to hear it:
http://ajaxian.com/archives/audible-ajax-episode-12-thomas-fuchs-of-scriptac
ulous
Cheers,
Dion Almaer
Founder, Ajaxian.com
http://ajaxian.com
Cleaning up the web with Ajax
2006 Feb 04
3
helping with scriptaculous/Thomas Fuchs MIA?
Hi,
In the last few days I''ve been working a lot on rewriting the
dragdrop.js code. I''ve made changes for what I think is stronger
object-oriented design and made more parallels between how Droppbables
and Draggables are coded and instantiated. I have multiple selection
and dragging of draggables working and droppables can accept multiple
draggables in one drop. There are some
2006 Feb 07
2
Thomas Fuchs? Helping with Scriptaculous
Hi,
I''ve been doing a lot of rewriting of dragdrop.js. I''ve covered at
least eight open tickets, made multiple selection of draggables,
droppables can accept multiple items at a time, added 21
consistently-named callbacks and have reorganized the code. I''m
working on adding more things to Sortable now. I''m no JavaScript
expert, this is my first project, and I
2006 Jan 29
3
SHLG and lib dir
Slowly figuring out how to get my SaltedHashLoginGenerator stuff working. The wiki page
says to put "before_filter :login_required" in the user (my "user" is "member") controller
or in ApplicationController. However, wherever I put it I get NoMethodError.
The rest of the SHLG stuff seems to be working... or at least I could get to the signup
page, register, and
2005 Nov 20
1
Just another localization thread
Hey all,
I was playing w/ Thomas Fuch''s Localization module (thanks Thomas!), and
just realized how hard is to localize an application in Rails :-)
The Localization module works nice, but the problem is the error
messages. Its not that good to keep the application in [your idiom] and
the error messages in english. I saw the other threads about it,
specially the ones that recommends
2010 Sep 21
3
Web forum - should I make one?
Hello,
this might be little off-topic, but still... I have not found any official web
forum for R users. Did I look good? If not, I'm sorry and shame on me! :-)
Such forums are very probably the most common way to share information about
all sorts of problems, to ask and get answer. See http://forums.opensuse.org/
as an example. Admins, developers, users, do You think to have such forum
2001 Jan 08
2
[fwd] ogg123 (from: pfk@fuchs.offl.uni-jena.de)
A feature request that sounds reasonable and a bug report.
----- Forwarded message from Frank Klemm <pfk@fuchs.offl.uni-jena.de> -----
Delivery-Date: Sat Jan 6 06:35:21 2001
Date: Sat, 6 Jan 2001 15:26:43 +0100
From: Frank Klemm <pfk@fuchs.offl.uni-jena.de>
To: xiphmont@xiph.org
Subject: ogg123
X-Mailer: Mutt 1.0.1i
For ogg123 I need the following feature:
- Decode one .ogg file
2002 Aug 19
3
pblms with samba 2.X /3.x and NT--W2k
There is OBVIOUSLY something wrong somewhere.
EITHER a WHOLE bunch of us are stupider than we thought, the documentation left off a step, or there is something SO blatently obvious that we are ALL staring it in the face and missing it inches in front of our faces.
This is exactly what I've had, (BUT I *D*I*D* have it running ok ...)
and I STILL havent figured it out yet,...
Subject:
2005 Sep 02
7
Form to update two tables
Hello there,
this is probably a very simple problem but I''m stuck.
I''m following the Login generator tutorial from rubyonrails. It''s all
worked fine so far. But I want to add a bit more functionality so that
when a user signs up in addition to chosing a login name and password
they type in a company name which is added to a seperate table called
COMPANIES. The id
2008 Jan 30
2
Apple Mail for 10.4/Shadow/SSL -> Problem.
I have recently gotten Dovecot running on my Solaris 5.8 mail server in order
to replace UW IMAP. I'm currently testing it out with mail clients popular
amongst my users. It's been working very well, with one vital exception.
Apple Mail on OS X 10.4 is not completing authentication (I don't think
it's even getting that far).
All I'm seeing in the syslog for attempts with
2008 May 06
12
Why before_filter is not working?
I have been scratching my head on this one for most of the day.
Hopefully someone can help explain why before_filter isn''t working for
my codes.
In my Application controller, I have this:
before_filter :login_required, :except =>
[:newacct, :create_newacct, :passwd_reset ]
def login_required
unless session[:user_id]
flash[:notice] = "Please log in"
2010 Jul 10
4
Using Ubuntu as a Server
*Hi,
I want to know how can I configure R in a Ubuntu to be a server.
I am planning to use R in a Windows machine with Tinn-R, but I want R
running at an Ubuntu Lucid machine.
How can i do this?
*Atenciosamente,
Leandro Marino
http://est.leandromarino.com.br/Blog (EstatÃstico)
Cel.: + 55 21 9845-7707
Cel.: + 55 21 8777-7907
[[alternative HTML version deleted]]
2005 Nov 08
2
Scriptaculous insertion fails when XHTML Strict used in FireFox
Hi !
I'm getting an uncaught exception requiring the Scriptaculous
libraries when everything says XHTML 1.0 Strict:
class ApplicationController < ActionController::Base
before_filter :set_content_type
protected
def set_content_type
response.headers['Content-Type'] = 'application/xhtml+xml;
charset=ISO-8859-1'
end
end
<?xml version="1.0"
2007 Jun 01
5
il8n with Prototype
I''d be grateful for feedback regarding the following:
/* Iterate over elements and lookup translation for language in JSON
dictionary */
function translateChildren(parent, language) {
var phrases = parent.getElementsByClassName(''lang'');
phrases.each(function(p) {
var phrase = p.readAttribute(''for'');
p.innerHTML =
2006 Apr 05
1
''Implicit'' subselection of data in find?
Hi,
I''ve read about this technique on the great Intraweb but can''t find it
any more- hopefully someone can help or point me to a reference! I''d
hate to reinvent the wheel if I can avoid it (and rediscover all the
gotchas that someone has already found).
I''m writing a rails app that I''d like to use to service a number of
different websites out of
2006 May 27
1
Localization of Helper Tags
I''m using the Localization plugin and I''m having trouble figuring out
how to localize the values of a helper tag. For instance, how do I
get Localization to work on this tag?
<%= submit_tag ''Stuff in English'' %>
I assumed it would be
<%=_ submit_tag ''Stuff in English'' %>
But that doesn''t work. I''ve tried a
2006 Feb 27
5
Localization: word wrap in tables?
I am a Rails noob, working on bringing a legacy db system into the 21st
century. I want to localize the UI for two languages (EN/JA). Since I
am already using the salted user system, I have been playing around with
T. Fuchs'' localization module. Nice and simple, already up and working.
But here''s the problem: Japanese text is wrapping weirdly in table
cells. I could set
2006 Jun 04
5
filter function with parameter
Hi!
I want to add a function with a static paramter ("2" in the example) to
a filter, but somehow Rails seems to be looking for another syntax.
before_filter :check_quantity(2), :only => [:show]
doesn''t work. What''s the right way to do this?
Thanks a lot!
--
Posted via http://www.ruby-forum.com/.