# Rake error,?

**URL:** <https://www.ruby-forum.com/t/rake-error/132108>\
**Category:** Rails\
**Created:** [March 17, 2008, 2:54am UTC](https://www.ruby-forum.com/t/rake-error/132108 "2008-03-17T02:54:21Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![casid](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/47e85d/32.png) [@casid](https://www.ruby-forum.com/u/casid)\
**Post date:** [March 17, 2008, 2:54am UTC](https://www.ruby-forum.com/t/rake-error/132108/1 "2008-03-17T02:54:21Z")

</div>

Hello RoR Developers

I got tiny problem with rakefile,

require ‘gettext/utils’  
require ‘gettext/rails’

desc “Update pot/po files to match new version.”  
task :updatepo do  
TEXT\_DOMAIN = “myapp”  
APP\_VERSION = “myapp 1.1.0”  
GetText.update\_pofiles(TEXT\_DOMAIN,  
Dir.glob("{app,lib}/\*\*/\*.{rb,rhtml,erb}"),  
APP\_VERSION)  
end

rake updatepo

and result,

C:…\rails\po\>rake updatepo  
(in C:/…/rails)  
Error occurs in app/models/m\_account.rb  
rake aborted!  
development database is not configured  
C:/…/rails/rakefile:19  
(See full trace by running task with --trace)

how can I solve it, any idea…

and I have one question more,could you tell me the architecture of  
gettext, how it works,  
could you tell me like MCV architecture ,  
I couldn t understand well,  
I create strings for gettext ( \_(’’)), and create template .pot file,  
and then copy and rename with .po file, translate and edit .po file, and  
then create .mo file from .po file.  
finally I add it to my rails application,  
init\_gettext “myapp”

do I miss anything, because I couldnt run it…

thanks…

---

<div class="post-metadata">

**Author:** ![casid](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/47e85d/32.png) [@casid](https://www.ruby-forum.com/u/casid)\
**Post date:** [March 18, 2008, 1:15am UTC](https://www.ruby-forum.com/t/rake-error/132108/2 "2008-03-18T01:15:29Z")

</div>

I solve the rake error but still have problem with gettext. Anyway I  
will keep try.

---

<div class="post-metadata">

**Author:** ![casid](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/47e85d/32.png) [@casid](https://www.ruby-forum.com/u/casid)\
**Post date:** [March 18, 2008, 2:45am UTC](https://www.ruby-forum.com/t/rake-error/132108/3 "2008-03-18T02:45:48Z")

</div>

Lamer L. wrote:

> I solve the rake error but still have problem with gettext. Anyway I  
> will keep try.

There is a configuration file that the plugin installed… find it in  
your config directory… edit it to match the db defined in  
config/database.yaml and you will be all set…

By the way, the readme file that ships with the plugin gives you step by  
step directions to get started with it…

hth

ilan
