# Help with gettext

**URL:** <https://www.ruby-forum.com/t/help-with-gettext/128814>\
**Category:** Rails\
**Created:** [February 11, 2008, 8:02pm UTC](https://www.ruby-forum.com/t/help-with-gettext/128814 "2008-02-11T20:02:04Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![captaffy](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/f04885/32.png) [@captaffy](https://www.ruby-forum.com/u/captaffy)\
**Post date:** [February 11, 2008, 8:02pm UTC](https://www.ruby-forum.com/t/help-with-gettext/128814/1 "2008-02-11T20:02:04Z")

</div>

I have this code:

```
  <tr>
  <th><%= _('Client') %></th>
  <th><%= _('Product') %></th>
  <th><%= _('Serial Number') %></th>
  <th><%= _('State') %></th>
</tr>

```

Serial Number is never in my .po file, but the others are there. Where  
is the problem?

---

<div class="post-metadata">

**Author:** ![captaffy](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/f04885/32.png) [@captaffy](https://www.ruby-forum.com/u/captaffy)\
**Post date:** [February 12, 2008, 1:46pm UTC](https://www.ruby-forum.com/t/help-with-gettext/128814/2 "2008-02-12T13:46:18Z")

</div>

I can’t see where your problem is.  
I just ran the code you gave through rgettext and the resulting output  
was:

# SOME DESCRIPTIVE TITLE.

# Copyright (C) YEAR THE PACKAGE’S COPYRIGHT HOLDER

# This file is distributed under the same license as the PACKAGE

package.

# FIRST AUTHOR [EMAIL@ADDRESS](mailto:EMAIL@ADDRESS), YEAR.

# 

#, fuzzy  
msgid “”  
msgstr “”  
“Project-Id-Version: PACKAGE VERSION\n”  
“POT-Creation-Date: 2008-02-12 22:42+1000\n”  
“PO-Revision-Date: 2008-02-12 22:42+1000\n”  
“Last-Translator: FULL NAME [EMAIL@ADDRESS](mailto:EMAIL@ADDRESS)\n”  
“Language-Team: LANGUAGE [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)\n”  
“MIME-Version: 1.0\n”  
“Content-Type: text/plain; charset=UTF-8\n”  
“Content-Transfer-Encoding: 8bit\n”  
“Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\n”

#: /Users/stuart/test.rhtml:2  
msgid “Client”  
msgstr “”

#: /Users/stuart/test.rhtml:3  
msgid “Product”  
msgstr “”

#: /Users/stuart/test.rhtml:4  
msgid “Serial Number”  
msgstr “”

#: /Users/stuart/test.rhtml:5  
msgid “State”  
msgstr “”

---

<div class="post-metadata">

**Author:** ![captaffy](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/f04885/32.png) [@captaffy](https://www.ruby-forum.com/u/captaffy)\
**Post date:** [February 12, 2008, 2:47pm UTC](https://www.ruby-forum.com/t/help-with-gettext/128814/3 "2008-02-12T14:47:00Z")

</div>

stuart.coyle wrote:

> I can’t see where your problem is.  
> I just ran the code you gave through rgettext and the resulting output  
> was:
> 
> # SOME DESCRIPTIVE TITLE.
> 
> # Copyright (C) YEAR THE PACKAGE’S COPYRIGHT HOLDER
> 
> # This file is distributed under the same license as the PACKAGE
> 
> package.
> 
> # FIRST AUTHOR [EMAIL@ADDRESS](mailto:EMAIL@ADDRESS), YEAR.
> 
> # 
> 
> #, fuzzy  
> msgid “”  
> msgstr “”  
> “Project-Id-Version: PACKAGE VERSION\n”  
> “POT-Creation-Date: 2008-02-12 22:42+1000\n”  
> “PO-Revision-Date: 2008-02-12 22:42+1000\n”  
> “Last-Translator: FULL NAME [EMAIL@ADDRESS](mailto:EMAIL@ADDRESS)\n”  
> “Language-Team: LANGUAGE [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)\n”  
> “MIME-Version: 1.0\n”  
> “Content-Type: text/plain; charset=UTF-8\n”  
> “Content-Transfer-Encoding: 8bit\n”  
> “Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\n”
> 
> #: /Users/stuart/test.rhtml:2  
> msgid “Client”  
> msgstr “”
> 
> #: /Users/stuart/test.rhtml:3  
> msgid “Product”  
> msgstr “”
> 
> #: /Users/stuart/test.rhtml:4  
> msgid “Serial Number”  
> msgstr “”
> 
> #: /Users/stuart/test.rhtml:5  
> msgid “State”  
> msgstr “”

Thanks.

I think it must be some kind of problem with my rails and my gettext  
version.
