Displaying 20 results from an estimated 2000 matches similar to: "gettext and maintenance"
2006 Jun 22
2
GetText Question: How not to gather ActiveRecord''s columns?
Hi,
Rake''s ''updatepo'' task[1] suggested by Masao(Ruby-GetText maintainer)
gather whole model''s columns. I don''t need to translate those column names.
So I''d like to give translators the po files without such needless messages.
However I wouldn''t like to exclude ''app/models'', because of some useful
gettext-ized
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.
2006 May 29
1
need help with gettext
I''m following the wiki instructions for using gettext:
http://manuals.rubyonrails.com/read/chapter/105
I run ''rake updatepo'' and it creates a myapp.pot file in rails_root/po. I
then create a sub-directory (rails_root/po/en_GB) and copy a translated
myapp.pot into it. When I run ''rake makemo'' it doesn''t create a ''locale''
2006 Jan 11
8
GetText: Works with en_GB and en_US, but doesn''t with de_DE!
Hi all
I''m trying to get GetText to work. I have the following folder
structure:
|-myapp.pot
|-de_DE/:
| `-myapp.po
|-en_GB/:
| `-myapp.po
|-en_US/:
` `-myapp.po
I run rake updatepo, and then rake makemo.
Now I set en-gb as default language in Firefox and run my app >> works!
Then I set en-us as default language in Firefox and run my app >> works,
2006 May 30
2
Wrong Content-type in RJS with Gettext
Hello,
I am developing an application using Rails and doing l10n with
ruby-gettext.
When I deploy the app on lighttpd, every rjs template is rendered with
Content-type: text/html; charset: UTF-8. I believe it comes from 85th
line of
rails.rb script in ruby-gettext lib. RJS templates are not executed in
this situation.
Hovewer, when I run the app with Webrick, rjs templates are rendered
with:
2006 Jul 07
2
Problem with GetText 1.6.0 - undefined method ''N_''
I''m just upgraded GetText from 1.4.0 to 1.6.0, and all my tests got broken.
I got this error:
ruby/lib/ruby/gems/1.8/gems/activerecord-1.14.3/lib/active_record/base.rb:1129:in
`method_missing'': undefined method `N_'' for User:Class (NoMethodError)
etc
My model user.rb has this line:
validates_format_of :login, :with => /^[a-zA-Z0-9_]+$/, :message =>
2005 Dec 29
5
Ruby-GetText-Package-1.1.0
Hi,
Ruby-GetText-Package-1.1.0 is now available.
This release enhances many features for Ruby on Rails.
I hope this release make your Application support L10n.
And thanks for many helps!
Highlights
----------
* Added some functions which managed po/mo files easily.
* GetText.update_pofiles creates/updates pot/po files.
The idea is from Sascha Ebach.
* String% is extended to accept
2006 Jul 06
6
Problem with gettext and functional tests
Hi,
I am using gettext to let my web application know several languages. All
works fine, but since I integrated it, my functional tests don''t work any
more.
I keep getting the error message:
NoMethodError: undefined method `cgi'' for
#<ActionController::TestRequest:0xb77f7f88>.
All right, TestRequest doesn''t have a cgi method. Therefore I just included
this into
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.
2013 Feb 04
2
gettext weirdness
Hi,
I am trying to use the gettext() function to translate some text. I have
never used this function before, so, it's entirely possible that I am
doing something wrong. The issue that I am encountering is that
gettext() properly translates some text, but not some other.
Natural language was compiled in my R (installed from the Debian
repositories):
$ R
R version 2.15.1 (2012-06-22) --
2013 Feb 04
2
gettext weirdness
Hi,
I am trying to use the gettext() function to translate some text. I have
never used this function before, so, it's entirely possible that I am
doing something wrong. The issue that I am encountering is that
gettext() properly translates some text, but not some other.
Natural language was compiled in my R (installed from the Debian
repositories):
$ R
R version 2.15.1 (2012-06-22) --
2006 May 08
2
How to set the default language in GetText?
How to set the default language in GetText?
The default language of GetText is en,and I want to change it to another
language,and also keep the ability to change to any other languages by
just click the according href.
Currently I use:
class ApplicationController < ActionController::Base
before_filter :set_charset
def set_charset
@headers["Content-Type"] = "text/html;
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''
2005 Nov 07
9
Using Gettext To Translate Your Rails Application
Hi,
Has anyone has any success using the gettext translation methods mentioned in
this wiki page?
http://manuals.rubyonrails.com/read/chapter/105
I got up to running the localize script at which point it protests about not
being able to find ''gettext/rgettext'' from the require line at the top of the
script:
script/localize:8:in `require'': no such file to load --
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
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 Jul 27
7
''remember me'' using cookies
I''m about to implement this, and I''m thinking of storing the user''s id and
their hashed password in the cookie after a successful authentication.
can any see an obvious security issue with this? I know the method is
vulnerable to cookie theft but am i missing anything?
thanks
alan
2006 Jun 24
2
contents of /lib automatically loaded?
I''ve written a simple replacement (not extension) of Ruby''s array class with
some added functionality. I defined it in array.rb and put the file in
rails_root/lib but when i fire up the console the class isn''t being loaded.
How can I have my class automatically loaded and used instead of the built
in Ruby class?
2006 Aug 11
2
gettext problem
Hi,
I''m a newbie to rails and find the framework very well designed.
However, I have to develop for the French and Belgian market, wich means
the primary language is french and sometimes need i18n. I started to
evaluate ruby-gettext, as it allows me to translate rails validation
errors, including model and attribute names. I follow the tutorial at
2006 Aug 16
15
OT: finding a designer (bit of a rant)
I''ve written my app already. It outputs valid xhtml and I need a stylesheet
to drop over the top. How hard is it for people to understand that?
It''s a small project, they''d have to do the main design/layout, and then a
little custom styling for some specific elements which don''t appear on every
page. That''s the point of CSS right? write once, use