Skip to content

Commit

Permalink
i18n in home, using i15r
Browse files Browse the repository at this point in the history
  • Loading branch information
molpe committed Apr 4, 2009
1 parent b2a538a commit b4dd1e6
Show file tree
Hide file tree
Showing 5 changed files with 64 additions and 28 deletions.
38 changes: 19 additions & 19 deletions app/views/home/index.html.erb
@@ -1,25 +1,25 @@
<div class="portletK" id="portlet_splashHome">
<h2><span>toginstalllation.com</span></h2>
<h2><span><%=config['plugins.tog_core.site.name']%></span></h2>
<div class="portlet_content">
<p>
Welcome to toginstallation.com, a tog powered social network.<br />
In toginstallation.com you would be able to:
<%= I18n.t("tog_core.views.home.index.welcome_to", :site_name => config['plugins.tog_core.site.name']) %>.<br />
<%= I18n.t("tog_core.views.home.index.you_would_be_able_to") %>:
</p>
<ul>
<li>Create your own profile</li>
<li>Find your friends and colleagues.</li>
<li>Create and join groups of interest.</li>
<li>And enjoy: photo &amp; video sharing, blogs system, forums, and many others extensions.</li>
<li><%= I18n.t("tog_core.views.home.index.create_your_own_profile") %></li>
<li><%= I18n.t("tog_core.views.home.index.find_your_friends_and_colleagues") %>.</li>
<li><%= I18n.t("tog_core.views.home.index.create_and_join_groups_of_interest") %>.</li>
<li><%= I18n.t("tog_core.views.home.index.and_enjoy_more") %></li>
</ul>
<div class="action"><a href="/signup"><strong>Sign up now!</strong></a></div>
<div class="action"><a href="/signup"><strong><%= I18n.t("tog_core.views.home.index.sign_up_now") %></strong></a></div>
</div>
</div>
<br/>
<div class="col_50_50 clearfix">

<div class="left_col">
<div class="portlet portletG" id="portlet_featuredUsers">
<h2><span>Featured Users</span></h2>
<h2><span><%= I18n.t("tog_core.views.home.index.featured_users") %></span></h2>
<div class="portlet_content">
<ul class="clearfix">
<% last_users.each do |user|%>
Expand All @@ -32,7 +32,7 @@

<div class="right_col">
<div class="portlet portletH" id="portlet_groups">
<h2><span>Groups</span></h2>
<h2><span><%= I18n.t("tog_core.views.home.index.groups") %></span></h2>
<div class="portlet_content">
<ul>
<% last_groups.each do |group| %>
Expand All @@ -42,7 +42,7 @@
<div class="text">
<%=group.description%>
</div>
<div class="members"><%= link_to "<strong>#{group.members.size} members</strong>", group_path(group) %><a href="#"></a></div>
<div class="members"><a href="#"></a></div>
</li>
<%end %>
</ul>
Expand All @@ -61,7 +61,7 @@


<div class="portlet portletI" id="potlet_publicContinuum">
<h2><span>The public continuum...</span></h2>
<h2><span><%= I18n.t("tog_core.views.home.index.the_public_continuum") %>...</span></h2>
<div class="portlet_content">
<ul>
<%= public_continuum(10) %>
Expand All @@ -72,30 +72,30 @@
<br />

<div class="portlet portletJ" id="portlet_pluginsTog">
<h2><span>Discover more plugins for tog </span></h2>
<h2><span><%= I18n.t("tog_core.views.home.index.discover_more_plugins_for_tog") %> </span></h2>
<div class="portlet_content">
<ul>
<li class="clearfix">
<div class="image"><img src="/tog_core/images/promotion.png" alt="" /></div>
<div class="title">Picto</div>
<div class="text">
Picto is a plugin for photo management and sharing between users of your social network.
<%= I18n.t("tog_core.views.home.index.picto_explanation") %>
</div>
<div class="more"><a href="http://www.toghq.com/tog_plugins/4-tog_picto"><strong>See more »</strong></a></div>
<div class="more"><a href="http://www.toghq.com/tog_plugins/4-tog_picto"><strong><%= I18n.t("tog_core.views.home.index.see_more") %> »</strong></a></div>
</li>
<li class="clearfix">
<div class="title">Vault</div>
<div class="text">
A small CMS for your website static pages!
<%= I18n.t("tog_core.views.home.index.vault_explanation") %>
</div>
<div class="more"><a href="http://www.toghq.com/tog_plugins/7-tog_vault"><strong>See more »</strong></a></div>
<div class="more"><a href="http://www.toghq.com/tog_plugins/7-tog_vault"><strong><%= I18n.t("tog_core.views.home.index.see_more") %> »</strong></a></div>
</li>
<li class="last clearfix">
<div class="title">Conversatio</div>
<div class="text">
A simple blog system.
<%= I18n.t("tog_core.views.home.index.conversatio_explanation") %>
</div>
<div class="more"><a href="http://www.toghq.com/tog_plugins/2-tog_conversatio"><strong>See more »</strong></a></div>
<div class="more"><a href="http://www.toghq.com/tog_plugins/2-tog_conversatio"><strong><%= I18n.t("tog_core.views.home.index.see_more") %> »</strong></a></div>
</li>
</ul>
</div>
Expand Down
8 changes: 4 additions & 4 deletions app/views/layouts/application.html.erb
Expand Up @@ -2,11 +2,11 @@
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>tog</title>
<meta name="language" content="en" />
<title><%=config['plugins.tog_core.site.name']%></title>
<meta name="language" content="<%=I18n.locale%>" />
<meta http-equiv="content-style-type" content="text/css" />
<meta http-equiv="title" content="tog"/>
<meta name="title" content="tog" />
<meta http-equiv="title" content="<%=config['plugins.tog_core.site.name']%>"/>
<meta name="title" content="<%=config['plugins.tog_core.site.name']%>" />
<meta name="description" content="XXXXX XXXX XXXX" />
<meta name="keywords" content="xxx, xxxxxx, xxxx" />
<meta name="author" content="Linking Paths" />
Expand Down
8 changes: 4 additions & 4 deletions app/views/layouts/member.html.erb
Expand Up @@ -2,11 +2,11 @@
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>tog</title>
<meta name="language" content="en" />
<title><%=config['plugins.tog_core.site.name']%></title>
<meta name="language" content="<%=I18n.locale%>" />
<meta http-equiv="content-style-type" content="text/css" />
<meta http-equiv="title" content="tog"/>
<meta name="title" content="tog" />
<meta http-equiv="title" content="<%=config['plugins.tog_core.site.name']%>"/>
<meta name="title" content="<%=config['plugins.tog_core.site.name']%>" />
<meta name="description" content="XXXXX XXXX XXXX" />
<meta name="keywords" content="xxx, xxxxxx, xxxx" />
<meta name="author" content="Linking Paths" />
Expand Down
18 changes: 18 additions & 0 deletions locale/tog_core.yml
Expand Up @@ -60,3 +60,21 @@ en:
created_at: Created at
url: URL
resource: Resource
views:
home:
index:
welcome_to: Welcome to {{site_name}}, a tog powered social network.
you_would_be_able_to: In this site you would be able to
create_your_own_profile: Create your own profile.
find_your_friends_and_colleagues: Find your friends and colleagues.
create_and_join_groups_of_interest: Create and join groups of interest.
and_enjoy_more: "And enjoy: photo &amp; video sharing, blogs system, forums, and many others extensions."
sign_up_now: Sign up now!
featured_users: Featured Users
groups: Groups
the_public_continuum: The public continuum...
discover_more_plugins_for_tog: Discover more plugins for tog
picto_explanation: Picto is a plugin for photo management and sharing between users of your social network.
vault_explanation: A small CMS for your website static pages!
conversatio_explanation: A simple blog system.
see_more: See more
20 changes: 19 additions & 1 deletion locale/tog_core_es.yml
Expand Up @@ -59,4 +59,22 @@ es:
email: Email
created_at: Creado el
url: URL
resource: Recurso
resource: Recurso
views:
home:
index:
welcome_to: Bienvenido a {{site_name}}, una red social basada en tog.
you_would_be_able_to: En este sitio podrás
create_your_own_profile: Crear tu propio perfíl.
find_your_friends_and_colleagues: Encontrar a tus amigos y colegas.
create_and_join_groups_of_interest: Crear y unirte a grupos de interés.
and_enjoy_more: "Y disfrutar de: compartir videos y fotos, un sistema de blogs, foros, y muchas más extensiones."
sign_up_now: ¡Registrate ahora!
featured_users: Usuarios destacados
groups: Grupos
the_public_continuum: El muro público...
discover_more_plugins_for_tog: Descubre más plugins de tog
picto_explanation: Picto es un plugin para gestión de fotos y compartirlas entre los usuarios de tu red social.
vault_explanation: Un pequeño CMS para las páginas estáticas de tu sitio.
conversatio_explanation: Un sencillo sistema de blogs.
see_more: Ver más

0 comments on commit b4dd1e6

Please sign in to comment.