Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Added more improvements about i18n support

  • Loading branch information...
commit c12fd71bbe4d55192402fcd7e9617b95fe0c2b20 1 parent cccdef9
@macagua macagua authored
View
8 src/plonesocial/suite/browser/navigation.pt
@@ -1,8 +1,8 @@
-<ul id="plonesocialsuite-navigation">
- <li><a tal:attributes="href string:${view/portal_url}/@@stream">
+<ul id="plonesocialsuite-navigation" i18n:domain="plonesocial.suite">
+ <li><a tal:attributes="href string:${view/portal_url}/@@stream" i18n:translate="">
network updates</a></li>
- <li><a tal:attributes="href string:${view/portal_url}/@@stream/explore">
+ <li><a tal:attributes="href string:${view/portal_url}/@@stream/explore" i18n:translate="">
explore</a></li>
- <li><a tal:attributes="href string:${view/portal_url}/@@profile">
+ <li><a tal:attributes="href string:${view/portal_url}/@@profile" i18n:translate="">
my profile</a></li>
</ul>
View
1  src/plonesocial/suite/configure.zcml
@@ -5,6 +5,7 @@
i18n_domain="plonesocial.suite">
<five:registerPackage package="." initialize=".initialize" />
+ <i18n:registerTranslations directory="locales" />
<include package=".browser" />
<include file="profiles.zcml" />
View
2  src/plonesocial/suite/profiles.zcml
@@ -11,6 +11,7 @@
directory="profiles/default"
description="Installs the suite of all plonesocial packages"
provides="Products.GenericSetup.interfaces.EXTENSION"
+ i18n:attributes="title; description"
/>
<genericsetup:importStep
@@ -25,6 +26,7 @@
directory="profiles/demo"
description="Creates fake user profiles and microblog posts"
provides="Products.GenericSetup.interfaces.EXTENSION"
+ i18n:attributes="title; description"
/>
<genericsetup:importStep
View
8 src/plonesocial/suite/profiles/default/portlets.xml
@@ -1,17 +1,19 @@
<?xml version="1.0"?>
-<portlets>
+<portlets
+ xmlns:i18n="http://xml.zope.org/namespaces/i18n"
+ i18n:domain="plonesocial.suite">
<assignment name="microblog" category="context" key="/"
manager="plonesocial.activitystream.portletmanager"
type="plonesocial.microblog.portlet" visible="True">
<property name="compact">True</property>
- <property name="title">Microblog</property>
+ <property name="title" i18n:translate="">Microblog</property>
</assignment>
<assignment name="activity-stream" category="context" key="/"
manager="plonesocial.activitystream.portletmanager"
type="plonesocial.activitystream.portlet" visible="True">
<property name="count">5</property>
<property name="compact">True</property>
- <property name="title">Activity Stream</property>
+ <property name="title" i18n:translate="">Activity Stream</property>
</assignment>
</portlets>
Please sign in to comment.
Something went wrong with that request. Please try again.