search for: http_accept_languages

Displaying 20 results from an estimated 21 matches for "http_accept_languages".

Did you mean: http_accept_language
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 May 08
4
Gettext not worked in firefox,but done well under IE
Anyone who has met such a kind of problem? I am adding i18n characteristics to my webapp using gettext,it works under IE,while not under firefox. here is my codes: po: po\zh_CN\myapp.po after rake makemo, i have got: locale\zh_CN\LC_MESSAGES\myapp.mo require ''gettext/rails'' class ApplicationController < ActionController::Base init_gettext "myapp" end Then I use
2007 Jan 19
1
Trouble with Rails/Ri18n
Hi, I am new to Ruby/Rails but totally fall in love with :D Nonetheless, today I am totally stuck with Ri18n. I basically followed the 10 Steps to Make Your Rails Apps Multilingual. No errors are thrown, the english version works as before with the freshly added <%= _('''') %> Still, no translations are performed. Setting I18nService.instance.lang = ''de''
2006 Jul 10
4
Test Mongrel 0.3.13.4 Please
Hey Folks, There''s a nasty little bug in 0.3.13.3 when running in development mode which could cause all sorts of problems. Please grab the pre-release of 0.3.13.4 and tell me if it works for you: gem install mongrel --source=http://mongrel.rubyforge.org/releases/ Thanks! -- Zed A. Shaw http://www.zedshaw.com/ http://mongrel.rubyforge.org/ http://www.railsmachine.com/ -- Need
2006 Apr 14
2
Language setting before routing?
When processing a request, where can you obtain the language setting of a user''s browser? I know we can read @request.env["HTTP_ACCEPT_LANGUAGE"] in an action easily. But I need to access it before being routed to a controller''s action... because the accepted language dictates my app''s language setting programmatically and what action to take.
2007 May 30
0
Headers munged into RAW_POST_DATA
Hi, we''re seeing a really weird problem in our production environment. "Connection: Keep-Alive\r\n" is being pre-pended to the RAW_POST_DATA, which makes requests error out. This bug is seen infrequently and *seems* to be browser-related, although I can''t reproduce it using the browser reported in HTTP_USER_AGENT. Set up is a apache 2.2 -> hardware load balancer
2007 May 29
1
Headers munged into RAW_POST_DATA
Hi, we''re seeing a really weird problem in our production environment. "Connection: Keep-Alive\r\n" is being pre-pended to the RAW_POST_DATA, which makes requests error out. This bug is seen infrequently and *seems* to be browser-related, although I can''t reproduce it using the browser reported in HTTP_USER_AGENT. Set up is a hardware load balancer (NetScaler)
2003 Jun 28
1
Choosing subtitle language
..., and then ask the server for that particular subtitle stream? (2) Or will all subtitle streams be sent simultaneously and regardless, thus fully leaving the decision to the client? That would be a waste of bandwidth though. (3) Or will the client send a list of prefered languages, similar to the http_accept_languages header? And then the server tries from that list and sees what it can possible provide? I'd say the fist option is better. of course, it should be possible to switch subtitle track anytime though. I'm also thinking about such a thing as a combination of the same audio language and subtitl...
2004 Aug 24
1
error when unsubscribe (PR#7198)
Full_Name: Huan Huang Version: 1.9.1 OS: Win NT Submission from: (NULL) (155.140.122.227) Traceback: Traceback (most recent call last): File "/scratch/local/app/mailman-sfs/2.1.5/scripts/driver", line 87, in run_main main() File "/scratch/local/app/mailman-sfs/2.1.5/Mailman/Cgi/options.py", line 91, in main language = cgidata.getvalue('language') File
2005 Jun 26
0
Bug in Mailman version 2.1.5
Bug in Mailman version 2.1.5 We're sorry, we hit a bug! If you would like to help us identify the problem, please email a copy of this page to the webmaster for this site with a description of what happened. Thanks! Traceback: Traceback (most recent call last): File "/var/mailman/scripts/driver", line 87, in run_main main() File
2008 Apr 17
0
Error log, when using apache2.2.x modproxy with mongrel
Hi all im new to use mongrel, my mongrel version is 1.1.4 and apache is 2.2.8 when i using apapche+mod_proxy+mongrel, there are some error in my log file and make apache 502 prxoy error. ex: proxy: error reading status line from remote server localhost proxy: Error reading from remote server returned by /test/show But it works well if i access mongrel directly. and the mongrel.log will have
2005 Mar 17
2
Using gettext to localize your rails app
Hi, I am having some trouble finding out how best to use ruby-gettext in my app. I do this in my ApplicationController: before_filter :localize private def localize # we will always use UTF-8 @charset = ''utf-8'' @headers["Content-Type"] = "text/html; charset=@charset" # simplified approach: extract the first language from the request # or use
2004 Feb 06
0
Bug (PR#6550)
Full_Name: Huan Huang Version: 1.8.1 OS: WIN NT Submission from: (NULL) (155.140.122.227) Bug in Mailman version 2.1.4 We're sorry, we hit a bug! If you would like to help us identify the problem, please email a copy of this page to the webmaster for this site with a description of what happened. Thanks! Traceback: Traceback (most recent call last): File
2004 Jan 06
0
bug report (PR#6394)
Full_Name: Huan Huang Version: OS: Submission from: (NULL) (155.140.122.227) Bug in Mailman version 2.1.4 We're sorry, we hit a bug! If you would like to help us identify the problem, please email a copy of this page to the webmaster for this site with a description of what happened. Thanks! Traceback: Traceback (most recent call last): File
2016 Apr 29
4
Trying to build ices-0.4 on ubuntu and "libshout not usable"
Hello: I hope someone can take a look at this and give me a little push to get me past this logjam. I've been running icecast + ices-0.4 + a perl application developed internally which runs an mp3 stream for a number of years. I am migrating my server from CentOS to ubuntu so I can upgrade to Perl 5.18 (so as to get clean unicode processing for another application.) I have installed
2004 Dec 02
3
No Files Seen via vmail.cgi
I am having a problem with the Vmail Web app and was hoping someone has some advice. I have been able to install vmail.cgi. I am able to bring up the vmail web page and login with out problems. However, I never see any vmails listed even when there are vmails present in the directory [root@linux-home INBOX]# ls -l total 40 -rwxrwxrwx 1 root root 255 Dec 2 14:45 msg0000.txt
2012 Mar 22
0
problems configuring cluster to lucci and virtual machines resource
I have Centos 6.1 and i'm configuring cluster with conga, lucci and ricci these services are installed and running without problem. I need this type configuration for a high availability of virtual machines which is run on kvm. My problem is at the time of configuring "service group", when i click to add appears the new windows wich say "add service to cluster" and i fill
2006 Oct 13
4
Broken installation of mongrel 0.3.13.4 on Sun OS 5.9
Hi, Anyone succeeded in installing Mongrel on Sun Solaris? It looks like the installation is broken. I have started using Mongrel recently and not sure where to look when something is missing. First the file http11.so was not installed in /usr/local/lib/ruby/gems/1.8/gems/mongrel-0.3.13.4/lib I''ve resolved that and when tried to start mongrel from the command line I received the
2016 Apr 29
0
Trying to build ices-0.4 on ubuntu and "libshout not?usable"
Hi Ray: With Ubuntu for the libshout library it will work if you install it using the apt-get command. Apt-get install libshout-dev I got ices to work on Ubuntu 14.04 with this. Hope that helps. Larry -----Original Message----- From: Icecast [mailto:icecast-bounces at xiph.org] On Behalf Of Ray Lutz Sent: Friday, April 29, 2016 6:03 PM To: icecast at xiph.org Subject: [Icecast] Trying to
2007 Sep 17
2
mongrel_rails hang and does not respond
Hello, I''ve install ror/mongrel etc, etc on a linux server (rhes). As i''m not root, all package startinf from ruby have been install into ~/gconf/usr ruby-1.8.6 and all of this gem package: -r-xr--r-- 1 dimnce dba 168448 Aug 9 14:53 rails-1.2.3.gem -r-xr--r-- 1 dimnce dba 84480 Aug 9 14:56 rake-0.7.3.gem -r-xr--r-- 1 dimnce dba 217088