similar to: gettext weirdness

Displaying 20 results from an estimated 6000 matches similar to: "gettext weirdness"

2006 Feb 27
4
Gettext and rails
Hi Im using the newest GetText gem, and Im having problems with classes outside rails, they don''t get translated. For example: I have a class representing access in my app, and it is not a ActiveRecord, just a normal class. When require ''gettext'' and include it in the class, I can use the _('''') methods fine. They get picked upp by rake updatepo.
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
2006 Jun 24
2
gettext and maintenance
hi all my app has two languages, I''m using gettext to manage them and so far so good. My question is about maintenance. If I fix a typo in a _() enclosed string, for example in an rhtml file, then the translated version of that string will no longer be valid will it? even if the translation itself had no errors. Is that the case and if so will i be forced to have the _() string
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''
2013 Apr 25
2
How are R version types named ? Any convention (like Hurricanes etc)
With reference to R News News: R version 3.0.0 (Masked Marvel) has been released on 2013-04-03. R version 2.15.3 (Security Blanket) has been released on 2013-03-01 R version 2.15.2 (Trick or Treat) .... R version 2.15.1 ("Roasted Marshmallows") ... R version 2.15.0 ("Easter Beagle") R version 2.14.0 ("Great Pumpkin") Dear R help List, How are these version types
2006 May 09
5
How to use gettext in plugins?
I use rails-engine as a plugin of the application and I want to localize the validate message from the plugin: validates_length_of :login, :within => 3..40, :on => :create, :message => N_("%{fn} is too short (min is %d characters)") It can not display the according language,where should i set it? I have tried to add require ''gettext/rails''
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
2006 Jan 29
2
GetText and rjs templates?
hi, is it possible that gettext don''t work with rjs templates? i''ve just tried this simple example blog_controller.rb : class BlogController < ApplicationController def index end def dosomething end end index.rhtml : <html> <head> <%= javascript_include_tag :defaults %> </head> <body> <div id="test">Some text to change
2013 Jan 11
1
Patch for setwd() to show path in error message
Below is a patch for setwd() to show path in error message. Current it just gives error messages such as: Error in setwd(libdir) : cannot change working directory with the patch it should (read untested) give: Error in setwd(libdir) : cannot change working directory to 'path/that/fails/' PATCH: % diff -u util.c "util,patch.c" --- util.c 2012-12-16 13:13:05.002249900
2009 Feb 06
0
gettext .po msgid_plural failed
Hi All, I am using gettext and .po files for my translation, however, I found it very difficult to apply plural form translation, is there anything goes wrong? in controller: <%=h _("You received %{no_friend} friend invitation") %{:no_friend => pending_friends_for_user.length } %><br/> in en/myapp.po msgid "" msgstr "" "MIME-Version:
2005 May 17
5
Strings, Variables and GetText
Hi, I''m starting to use GetText and have this code: render_text %(<script language="JavaScript" type="text/javascript"> parent.mainframe.onUpdateNew("Gallery <b>#{@media.name}</b> was successfully created.", "#{@media.name}","#{String(@media.id)}","#{@media.media_type}"); </script>) I need to convert
2006 Jan 15
15
Gettext and Rails ?
Hello, I''m trying to use ruby-gettext 1.1.1 (installed with gem) with rails and here is all I get : undefined method `init_gettext'' for ApplicationController:Class Here is my source : require ''gettext/rails'' class ApplicationController < ActionController::Base init_gettext "test" end As a Nuby, I don''t really know what to do.
2012 Sep 11
3
R crashes when printing a named numeric vector of a specific class - Bug?
Dear useR's, today I stumbled over an interesting phenomenon: First, I created a named numeric vector with a certain class and several attributes via the structure() function. After that, I implemented a simple print method for this class. When calling this function it produces an endless loop of print calls until R crashes. :/ What is going on here? Is this a bug or have I done something
2012 Oct 16
2
Windows 7 R (32/64bit) running under cygwin: package not found
Hi, Using R 2.15.1 on Windows 7. Have installed both versions 32 and 64bit. In both of them among others I have installed a package rgenoud When I open R gui of 32bit and write library(rgenoud) it responds by showing a functional rgenoud version 5.7-8. The same it does on Rgui 64bit. Now I am working in cygwin (v. 1.12.4.0) with xwin. Normally before when I had installed a package, I only had
2012 Sep 18
2
problem with vignettes when S4 classes in packages overlap
( A similar problem is also reported by Sebastian P. Luque with library(maptools) library(trip) in the vignette as below ). I am writing a vignette which loads RMySQL and RPostgreSQL. This produces the warning: Loading required package: DBI Warning in .simpleDuplicateClass(def, prev) : A specification for class ?dbObjectId? in package ?RPostgreSQL? seems equivalent to one from package
2012 Dec 31
3
weird bug with parallel, RSQlite and tcltk
Hello, I spent a lot of a time on a weird bug, and I just managed to narrow it down. In parallel code (here with parallel::mclappy, but I got it doMC/multicore too), if the library(tcltk) is loaded, R hangs when trying to open a DB connection. I got the same behaviour on two different computers, one dual-core, and one 2 xeon quad-core. Here's the code: library(parallel) library(RSQLite)
2012 Nov 21
2
installing Rmpi on centos 6 with mpich
Hello everyone im trying to install Rmpi library on centos 6. I have already installed mpich2 1.4 [root@localhost ~]# R --version > R version 2.15.1 (2012-06-22) -- "Roasted Marshmallows" > Copyright (C) 2012 The R Foundation for Statistical Computing > ISBN 3-900051-07-0 > Platform: x86_64-redhat-linux-gnu (64-bit) [root@localhost ~]# mpich2version > MPICH2 Version:
2009 Sep 02
2
[PATCH] internationalisation: Replace autopoint infrastructure with libintl-perl
I noticed that virt-v2v, which is written exclusively in perl, failed to generate virt-v2v.pot. After much head scratching I also noticed that libguestfs.pot didn't include any messages from perl sources. Some reading of libintl-perl shows that a somewhat more complicated xgettext command line is required, as it doesn't understand Locale::TextDomain syntax by default. After a little more
2012 Aug 21
1
make check fails two tests on RHEL 6 build
I am installing R 2.15.1 onto RHEL 6, using gcc 4.7.0 with Intel MKL 10.3.7 and the following environment: export BLAS_LIBS="-Wl,--start-group /usr/caen/intel-12.1/mkl/lib/intel64/libmkl_gf_lp64.a /usr/caen/intel-12.1/mkl/lib/intel64/libmkl_sequential.a /usr/caen/intel-12.1/mkl/lib/intel64/libmkl_core.a -Wl,--end-group -lpthread" export LAPACK_LIBS="-Wl,--start-group
2012 Jul 29
1
[BUG?] utils::prompt(name=f)
> ?prompt [SNIP] ## Create a help file for each function in the .GlobalEnv: for(f in ls()) if(is.function(get(f))) prompt(name = f) > foo <- function(x) { cat(x, '\n')} > prompt(name="foo") Error in utils:::prompt(object, filename = filename, name = name, ...) : argument "object" is missing, with no default > version platform