Internationalization problem

60 views
Skip to first unread message

gus...@gamblingq.net

unread,
Apr 10, 2014, 1:44:42 PM4/10/14
to chica...@googlegroups.com
Hi everyone

I have the following problem when making internationalize my app

For example, my .po files in priv/lang are:


strings.es.po

msgid "firstname"
msgstr "Nombre"

msgid "lastname"
msgstr "Apellido"

msgid "email"
msgstr "Correo"


strings.en.po

msgid "firstname"
msgstr "First name"

msgid "lastname"
msgstr "Last name"

msgid "email"
msgstr "Email"


My controller:

index('GET', []) ->
      {ok,[], [{"Content-Language", "es"}]}.


And my view file:


{% trans "firstname" %}
{% trans "lastname" %}
{% trans "email"%}


And when i access to my view, only seeing the strings in english, not in spanish and other languages...

that may be?

Jesse Gumm

unread,
Apr 10, 2014, 2:31:32 PM4/10/14
to chica...@googlegroups.com

Hi Gustavo,

This was fixed last week. Are you running this with the latest version?

--
Jesse Gumm
Owner, Sigma Star Systems
414.940.4866 || sigma-star.com || @jessegumm

--
You received this message because you are subscribed to the Google Groups "ChicagoBoss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chicagoboss...@googlegroups.com.
Visit this group at http://groups.google.com/group/chicagoboss.
To view this discussion on the web visit https://groups.google.com/d/msgid/chicagoboss/09c929fa-ae2a-4a4e-bbb4-4f9d8affa864%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

kotedo

unread,
Apr 10, 2014, 3:12:35 PM4/10/14
to chica...@googlegroups.com
Hi guys,

Under section “Content-Language” in the docs, there is the snippet about the headers, that need to be set, too.

—Kai

Nicolas Michel

unread,
Apr 10, 2014, 3:38:13 PM4/10/14
to chica...@googlegroups.com

Months ago, I tried to migrate my application from 0.8.5 to 0.8.7, and I faced translation problems that prevented me from effectively changing : long story short, translation worked perfectly with 0.8.5, and did not with 0.8.7.
I did not take time to investigate, as I was in a hurry ...

By the way, this application goes live these days on 4 sites ... Wish me luck

br,

Nicolas -

Evgeny M

unread,
Apr 16, 2014, 10:22:49 AM4/16/14
to chica...@googlegroups.com, gus...@gamblingq.net
Try this, it works on 0.8.7:

msgid ""
"firstname"
msgstr ""
"Nombre"


четверг, 10 апреля 2014 г., 21:44:42 UTC+4 пользователь gus...@gamblingq.net написал:
Reply all
Reply to author
Forward
0 new messages