search for: http_accept_language

Displaying 20 results from an estimated 21 matches for "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 config/application.rb: config.i18n.defa...
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
...requesting en :) Error: can''t convert nil into String in application.rb class ApplicationController < ActionController::Base before_filter :localize before_filter :authenticate, :except => [:login, :sign_on] private def localize lang = if @request.env[''HTTP_ACCEPT_LANGUAGE''].nil? ''en'' else lang = @request.env[''HTTP_ACCEPT_LANGUAGE''].split(''-'')[0] end I18nService.instance.lang = lang end --~--~---------~--~----~------------~-------~--~----~ You received this message...
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. (I''m not allowed to ask a user to specify a preferred languag...
2007 May 30
0
Headers munged into RAW_POST_DATA
.../x-www-form-urlencoded * GATEWAY_INTERFACE : CGI/1.2 * HTTP_ACCEPT : text/xml,application/xml,application/ xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5 * HTTP_ACCEPT_CHARSET : ISO-8859-1,utf-8;q=0.7,*;q=0.7 * HTTP_ACCEPT_ENCODING : gzip,deflate * HTTP_ACCEPT_LANGUAGE : en-us,en;q=0.5 * HTTP_CONTENT_LENGTH : 582 * HTTP_CONTENT_TYPE : application/x-www-form-urlencoded * HTTP_COOKIE : accepting=1; * HTTP_HOST : foo.com * HTTP_MAX_FORWARDS : 10 * HTTP_REFERER : https://foo.com/ad_keywords/new?ad=5&...
2007 May 29
1
Headers munged into RAW_POST_DATA
...-form-urlencoded * GATEWAY_INTERFACE : CGI/1.2 * HTTP_ACCEPT : text/xml,application/xml,application/ xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5 * HTTP_ACCEPT_CHARSET : ISO-8859-1,utf-8;q=0.7,*;q=0.7 * HTTP_ACCEPT_ENCODING : gzip,deflate * HTTP_ACCEPT_LANGUAGE : en-us,en;q=0.5 * HTTP_CONTENT_LENGTH : 582 * HTTP_CONTENT_TYPE : application/x-www-form-urlencoded * HTTP_COOKIE : accepting=1; * HTTP_HOST : foo.com * HTTP_MAX_FORWARDS : 10 * HTTP_REFERER : https://foo.com/ad_keywords/new...
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 subtit...
2004 Aug 24
1
error when unsubscribe (PR#7198)
..., image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, */* SSL_SERVER_M_SERIAL 13 SSL_SERVER_S_DN_CN stat.ethz.ch HTTP_USER_AGENT Mozilla/4.0 (compatible; MSIE 5.5; Windows NT 4.0; H010818; (R1 1.3)) nokeepalive 1 GATEWAY_INTERFACE CGI/1.1 SSL_PROTOCOL SSLv3 REMOTE_PORT 39557 HTTP_ACCEPT_LANGUAGE en-gb, en-gb HTTP_ACCEPT_ENCODING gzip, deflate, gzip, deflate ssl_unclean_shutdown 1 SSL_SERVER_V_END Jan 6 12:56:05 2014 GMT CONTENT_TYPE application/x-www-form-urlencoded, application/x-www-form-urlencoded SSL_SERVER_I_DN_CN ISG D-MATH QUERY_STRING SSL_CIPHER_USEKEYSIZE 128...
2005 Jun 26
0
Bug in Mailman version 2.1.5
...lists.digium.com MAIL_CONFIG /etc/postfix2 REQUEST_URI /mailman/confirm/asterisk-users HTTP_ACCEPT text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5 GATEWAY_INTERFACE CGI/1.1 HTTP_X_FORWARDED_FOR 165.146.60.222, 196.25.253.14 REMOTE_PORT 49973 HTTP_ACCEPT_LANGUAGE en-us,en;q=0.5 CONTENT_TYPE application/x-www-form-urlencoded HTTP_ACCEPT_ENCODING gzip,deflate UNIQUE_ID Ln22x0UQiqQAAAd3QfEAAAAl __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
2008 Apr 17
0
Error log, when using apache2.2.x modproxy with mongrel
...e\r\n\r\n" --- PARAMS: {"HTTP_X_FORWARDED_HOST"=>"www.testkoji.com", "HTTP_ACCEPT_ENCODING"=>"gzip,deflate", "HTTP_USER_AGENT"=>"Mozilla/5.0 (Windows; U; Windows NT 5.1; zh-TW; rv:1.9b5) Gecko/2008032620 Firefox/3.0b5", "HTTP_ACCEPT_LANGUAGE"=>"zh-tw,en-us;q=0.7,en;q=0.3", "HTTP_HOST"=>"www.testkoji.com", "REQUEST_PATH"=>"/test/show", "HTTP_ACCEPT_CHARSET"=>"Big5,utf-8;q=0.7,*;q=0.7", "HTTP_VERSION"=>"HTTP/1.1", "HTTP_X_FO...
2005 Mar 17
2
Using gettext to localize your rails app
...lize 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 en temp = @request.env[''HTTP_ACCEPT_LANGUAGE''].split('','').first.split(''-'') language = temp.slice(0) dialect = temp.slice(1) @language = language.nil? ? ''en'' : language.downcase # default is en @dialect = dialect.nil? ? language : dialect # should always produce lang...
2004 Feb 06
0
Bug (PR#6550)
...t, image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, */* SSL_SERVER_M_SERIAL 07 SSL_SERVER_S_DN_CN www.stat.math.ethz.ch HTTP_USER_AGENT Mozilla/4.0 (compatible; MSIE 5.5; Windows NT 4.0; H010818) nokeepalive 1 GATEWAY_INTERFACE CGI/1.1 SSL_PROTOCOL SSLv3 REMOTE_PORT 17870 HTTP_ACCEPT_LANGUAGE en-gb, en-gb HTTP_ACCEPT_ENCODING gzip, deflate, gzip, deflate ssl_unclean_shutdown 1 SSL_SERVER_V_END Feb 4 16:20:08 2013 GMT CONTENT_TYPE application/x-www-form-urlencoded, application/x-www-form-urlencoded SSL_SERVER_I_DN_CN ISG D-MATH QUERY_STRING SSL_CIPHER_USEKEYSIZE 128...
2004 Jan 06
0
bug report (PR#6394)
...t, image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, */* SSL_SERVER_M_SERIAL 07 SSL_SERVER_S_DN_CN www.stat.math.ethz.ch HTTP_USER_AGENT Mozilla/4.0 (compatible; MSIE 5.5; Windows NT 4.0; H010818) nokeepalive 1 GATEWAY_INTERFACE CGI/1.1 SSL_PROTOCOL SSLv3 REMOTE_PORT 42015 HTTP_ACCEPT_LANGUAGE en-gb, en-gb HTTP_ACCEPT_ENCODING gzip, deflate, gzip, deflate ssl_unclean_shutdown 1 SSL_SERVER_V_END Feb 4 16:20:08 2013 GMT CONTENT_TYPE application/x-www-form-urlencoded, application/x-www-form-urlencoded SSL_SERVER_I_DN_CN ISG D-MATH QUERY_STRING SSL_CIPHER_USEKEYSIZE 128...
2016 Apr 29
4
Trying to build ices-0.4 on ubuntu and "libshout not usable"
...bles: CONTEXT_DOCUMENT_ROOT = /var/www/vhosts/cognisys.com/httpdocs CONTEXT_PREFIX = DOCUMENT_ROOT = /var/www/vhosts/cognisys.com/httpdocs GATEWAY_INTERFACE = CGI/1.1 HTTP_ACCEPT = text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8 HTTP_ACCEPT_ENCODING = gzip, deflate, sdch HTTP_ACCEPT_LANGUAGE = en-US,en;q=0.8 HTTP_CACHE_CONTROL = max-age=0 HTTP_CONNECTION = keep-alive HTTP_HOST = 69.73.179.57 HTTP_UPGRADE_INSECURE_REQUESTS = 1 HTTP_USER_AGENT = Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/49.0.2623.112 Safari/537.36 MOD_PERL = mod_perl/2.0.8 MOD_PER...
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
...; CONTENT_LENGTH: '-1' CONTENT_TYPE: 'application/x-www-form-urlencoded' HTTP_ACCEPT: 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8' HTTP_ACCEPT_CHARSET: 'ISO-8859-1,utf-8;q=0.7,*;q=0.3' HTTP_ACCEPT_ENCODING: 'gzip,deflate,sdch' HTTP_ACCEPT_LANGUAGE: 'en-US,en;q=0.8,es-419;q=0.6,es;q=0.4' HTTP_CACHE_CONTROL: 'max-age=0' HTTP_CONNECTION: 'keep-alive' HTTP_COOKIE: 'tabCookie=0; expertMode=0; luci=ac68c9121cd1d044ebf15a2f2ec3db1252bb2ba7148b8328446d88a7323307db9627c40a; auth_tkt="63c7278294e41b63fce01b6af2ee...
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"
...ables: CONTEXT_DOCUMENT_ROOT = /var/www/vhosts/cognisys.com/httpdocs CONTEXT_PREFIX = DOCUMENT_ROOT = /var/www/vhosts/cognisys.com/httpdocs GATEWAY_INTERFACE = CGI/1.1 HTTP_ACCEPT = text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8 HTTP_ACCEPT_ENCODING = gzip, deflate, sdch HTTP_ACCEPT_LANGUAGE = en-US,en;q=0.8 HTTP_CACHE_CONTROL = max-age=0 HTTP_CONNECTION = keep-alive HTTP_HOST = 69.73.179.57 HTTP_UPGRADE_INSECURE_REQUESTS = 1 HTTP_USER_AGENT = Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/49.0.2623.112 Safari/537.36 MOD_PERL = mod_perl/2.0.8 MOD_PERL...
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