similar to: need help with gettext

Displaying 20 results from an estimated 6000 matches similar to: "need help with gettext"

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 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 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 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
2006 May 08
1
ruby-gettext and "duplicate message definition" errors
it seems that applying rails-gettext (rake updatepo) on a rails project with models inheritance breaks correct .pot file generation, because inherited models are duplicated. Any workaround? -- Posted via http://www.ruby-forum.com/.
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
2008 Feb 04
0
gettext and acts_as_paranoid gives stack overflow
HI all, I just started using acts_as_paranoid, and I''ve been using gettext for a while. Now I get the below errors when I run rake gettext:updatepo. It''s interesting that the errors seem to stack up, so the first file just errors on belongs_to_without_deleted, the second file has a layer of eval, the second has two layers of eval, and so forth. I''ve tried for a while
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 May 01
2
GetText.update_pofiles: seeking help with error message
[Re-post from Ruby list, where this didn''t belong. Sorry for the noise.] Hi all! Following the guide at http://manuals.rubyonrails.com/read/chapter/105, I''m trying to i18n a Rails application. However, when executing ''rake updatepo'', I get the following error message: "numeric literal without digits" Searching Google and the mailing list
2008 Jan 28
0
gettext 1.10: uninitialized constant ApplicationController
When running rake updatepo with gettext 1.10, for several controllers it gives Ignored ''app/controllers/sample_controller.rb''. Solve dependencies first. /Users/sava/code/sht/trunk/vendor/rails/activerecord/lib/../../activesupport/lib/active_support/dependencies.rb:266:in `load_missing_constant'': uninitialized constant ApplicationController Rails is 1.2.5, frozen in
2008 Sep 15
1
Ruby-GetText-Package-1.93.0
Hi, Ruby-GetText-Package-1.93.0 is now available. Changes ------- * Bulgarian added. * Estonian updated. * French updated. * Japanese updated. * np_, npgettext support. * Fixed bugs. - detect the correct charset on POSIX OS. - updatepo task works again on Windows OS(with broken GNU msgmerge). - Remove BOM from po-files before GNU msgmerge is executed. (GNU msgmerge
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:
2006 Mar 02
2
SwitchTower: why symlink releases/under -> current?
Hi, I have a trouble with deploying my ordinary rails application(myapp). When I execute ''rake deploy'', [...] command finished * executing task symlink * executing "ls -x1 /var/www/myapp/releases" servers: ["app1.olalog.com"] [app1.olalog.com] executing command command finished * executing "ln -nfs /var/www/myapp/releases/under
2005 Dec 30
2
scgi apache routes help needed
I''m trying to get an application running in a sub directory of a site using apache and scgi. The application runs fine with webrick. I have a site. Let''s call it "mysite.org". There is a variety of content on that site. I would like to add a rails application to that site. Let''s call the application "myapp". So we will have urls of the form
2013 Jul 02
1
rpmbuild environment CentOS5 vs CentOS6
On CentOS5 I was used to create a simple spec file where at the end I'll declare files and directories I wan't to package: --< Snip >-- %files %dir /opt/myapp %dir /opt/myapp/bin %dir /opt/myapp/etc /opt/myapp/bin/exec01 /opt/myapp/etc/myapp.conf ---- I'll copy the file in /usr/src/redhat/SPECS and run "rpmbuild -bb myapp.spec". On CentOS6 rpm-build package no longer
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
2009 Apr 30
1
odbcConnectAccess function
HI: Is it possible to use the RODBC package within MS Access. I have been using from R but was just wondering if it could be used along with R(D)COM. Something like this: Dim dbs As DAO.Database Dim rst As DAO.Recordset Dim myApp As StatConnector Set myApp = New StatConnector myApp.GetErrorText myApp.Init "R" myApp.EvaluateNoReturn "library(RODBC)" myApp.EvaluateNoReturn
2006 Mar 09
3
OT: Subversion repository layout
Hi, I''m trying to get a nice repository structure happening and was wondering what other people like to use. I''m about ready to publish a rails app. This app now lives in myapp/trunk When this app goes live I will need to freeze it so I will copy myapp/trunk to myapp/tags/release-1.0 (right?) I also would like to get going on a new version which will break the current
2007 Jan 25
6
NOT FOUND error
I''ve been hunting the web and reading the mailing lists all day but I''m not finding any guidance on this problem. When I try to talk to my mongrel it simply responds with NOT FOUND and nothing else. I can''t find anything on google because this has to be the second most commond phrase in existence. Any help or guidance would be greatly appreciated. Sincerely, Chuck Vose
2006 Dec 01
4
uninitialized constant error in app but not when using console
I''ve got a wierd issue here and maybe someone can assist i created a module in my apps lib directory which i use for authenticating against an external source (among other things). lib/myapp.rb ----------------- require ''rubygems'' require_gem ''activerecord'' # uses activerecord odbc adapter by openlink module MyApp module ExternalSource class