communesplone.layout 5.0.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- communesplone/__init__.py +2 -0
- communesplone/layout/__init__.py +0 -0
- communesplone/layout/browser/__init__.py +0 -0
- communesplone/layout/browser/configure.zcml +25 -0
- communesplone/layout/browser/login.py +21 -0
- communesplone/layout/browser/maintenance.pt +15 -0
- communesplone/layout/browser/static/simplify.css +8 -0
- communesplone/layout/configure.zcml +10 -0
- communesplone/layout/interfaces.py +5 -0
- communesplone/layout/locales/README.txt +11 -0
- communesplone/layout/locales/communesplone.layout.pot +32 -0
- communesplone/layout/locales/de/LC_MESSAGES/communesplone.layout.po +35 -0
- communesplone/layout/locales/de/LC_MESSAGES/plone.po +30 -0
- communesplone/layout/locales/en/LC_MESSAGES/README.txt +5 -0
- communesplone/layout/locales/en/LC_MESSAGES/communesplone.layout.po +35 -0
- communesplone/layout/locales/en/LC_MESSAGES/plone.po +30 -0
- communesplone/layout/locales/es/LC_MESSAGES/communesplone.layout.po +35 -0
- communesplone/layout/locales/es/LC_MESSAGES/plone.po +30 -0
- communesplone/layout/locales/fr/LC_MESSAGES/README.txt +5 -0
- communesplone/layout/locales/fr/LC_MESSAGES/communesplone.layout.po +36 -0
- communesplone/layout/locales/fr/LC_MESSAGES/plone.po +30 -0
- communesplone/layout/locales/nl/LC_MESSAGES/communesplone.layout.po +35 -0
- communesplone/layout/locales/nl/LC_MESSAGES/plone.po +30 -0
- communesplone/layout/locales/plone.pot +27 -0
- communesplone/layout/locales/sync_pos.sh +10 -0
- communesplone/layout/mklocales.sh +51 -0
- communesplone/layout/profiles/default/browserlayer.xml +5 -0
- communesplone/layout/profiles/default/metadata.xml +4 -0
- communesplone/layout/profiles/simplify/registry.xml +10 -0
- communesplone/layout/profiles/uninstall/browserlayer.xml +4 -0
- communesplone/layout/profiles.zcml +31 -0
- communesplone/layout/setuphandlers.py +49 -0
- communesplone/layout/testing.py +88 -0
- communesplone/layout/tests/__init__.py +0 -0
- communesplone/layout/tests/robot/communesplone_layout.robot +41 -0
- communesplone/layout/tests/robot/test_login.robot +15 -0
- communesplone/layout/tests/robot/test_maintenance.robot +14 -0
- communesplone/layout/tests/robot/test_simplify.robot +26 -0
- communesplone/layout/tests/robot/ui_plone6.robot +137 -0
- communesplone/layout/tests/test_locales.py +80 -0
- communesplone/layout/tests/test_login.py +47 -0
- communesplone/layout/tests/test_profiles.py +97 -0
- communesplone/layout/tests/test_robot.py +33 -0
- communesplone/layout/tests/test_setuphandlers.py +63 -0
- communesplone/layout/version.txt +1 -0
- communesplone_layout-5.0.0.dist-info/METADATA +123 -0
- communesplone_layout-5.0.0.dist-info/RECORD +50 -0
- communesplone_layout-5.0.0.dist-info/WHEEL +5 -0
- communesplone_layout-5.0.0.dist-info/entry_points.txt +2 -0
- communesplone_layout-5.0.0.dist-info/top_level.txt +1 -0
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
<configure
|
|
2
|
+
xmlns="http://namespaces.zope.org/zope"
|
|
3
|
+
xmlns:browser="http://namespaces.zope.org/browser"
|
|
4
|
+
xmlns:plone="http://namespaces.plone.org/plone">
|
|
5
|
+
|
|
6
|
+
<!-- maintenance message instead of the login form when source_users is deactivated -->
|
|
7
|
+
<browser:page
|
|
8
|
+
name="login"
|
|
9
|
+
for="plone.base.interfaces.INavigationRoot"
|
|
10
|
+
class=".login.LoginForm"
|
|
11
|
+
permission="zope.Public"
|
|
12
|
+
layer="..interfaces.ICommunesploneLayoutLayer"
|
|
13
|
+
/>
|
|
14
|
+
<browser:page
|
|
15
|
+
name="login_form"
|
|
16
|
+
for="plone.base.interfaces.INavigationRoot"
|
|
17
|
+
class=".login.LoginForm"
|
|
18
|
+
permission="zope.Public"
|
|
19
|
+
layer="..interfaces.ICommunesploneLayoutLayer"
|
|
20
|
+
/>
|
|
21
|
+
|
|
22
|
+
<!-- simplify.css: bundle of the simplify profile (++plone++communesplone.layout/simplify.css) -->
|
|
23
|
+
<plone:static directory="static" type="plone" name="communesplone.layout" />
|
|
24
|
+
|
|
25
|
+
</configure>
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
from Products.CMFPlone.browser.login import login
|
|
2
|
+
from Products.CMFPlone.browser.login.login import LoginForm as BaseLoginForm
|
|
3
|
+
from Products.Five.browser.pagetemplatefile import ViewPageTemplateFile
|
|
4
|
+
from Products.PluggableAuthService.interfaces.plugins import IAuthenticationPlugin
|
|
5
|
+
|
|
6
|
+
import os
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
class LoginForm(BaseLoginForm):
|
|
10
|
+
"""Plone's login form, or a maintenance message when source_users is deactivated."""
|
|
11
|
+
|
|
12
|
+
index = ViewPageTemplateFile(
|
|
13
|
+
"templates/login.pt", _prefix=os.path.dirname(login.__file__)
|
|
14
|
+
)
|
|
15
|
+
maintenance = ViewPageTemplateFile("maintenance.pt")
|
|
16
|
+
|
|
17
|
+
def render(self):
|
|
18
|
+
plugins = self.context.acl_users.plugins.listPlugins(IAuthenticationPlugin)
|
|
19
|
+
if "source_users" not in [plugin_id for plugin_id, plugin in plugins]:
|
|
20
|
+
return self.maintenance()
|
|
21
|
+
return super().render()
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"
|
|
2
|
+
xmlns:tal="http://xml.zope.org/namespaces/tal"
|
|
3
|
+
xmlns:metal="http://xml.zope.org/namespaces/metal"
|
|
4
|
+
xmlns:i18n="http://xml.zope.org/namespaces/i18n"
|
|
5
|
+
lang="en"
|
|
6
|
+
i18n:domain="communesplone.layout"
|
|
7
|
+
metal:use-macro="context/@@main_template/macros/master">
|
|
8
|
+
<body>
|
|
9
|
+
<metal:main fill-slot="main">
|
|
10
|
+
<div id="content-core">
|
|
11
|
+
<p id="no_plugin" style="font-weight:bold;" i18n:translate="no_source_users">The connection to the site is temporary suspended for maintenance operations. <a href="contact-info">Contact the site administrator</a> for more information.</p>
|
|
12
|
+
</div>
|
|
13
|
+
</metal:main>
|
|
14
|
+
</body>
|
|
15
|
+
</html>
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
#plone-contentmenu-actions, #workflow-transition-advanced {
|
|
2
|
+
display: none !important;
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
/* edit forms: every tab but the first (autotoc nav), versioning comment */
|
|
6
|
+
#form nav.autotoc-nav > a:nth-child(n+2), #formfield-form-widgets-IVersionable-changeNote {
|
|
7
|
+
display: none !important;
|
|
8
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
<configure
|
|
2
|
+
xmlns="http://namespaces.zope.org/zope"
|
|
3
|
+
xmlns:i18n="http://namespaces.zope.org/i18n"
|
|
4
|
+
i18n_domain="communesplone.layout">
|
|
5
|
+
|
|
6
|
+
<include package=".browser" />
|
|
7
|
+
<include file="profiles.zcml" />
|
|
8
|
+
<i18n:registerTranslations directory="locales" />
|
|
9
|
+
|
|
10
|
+
</configure>
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
This directory will be the home for internationalizations for your theme
|
|
2
|
+
package. For more information on internationalization please consult the
|
|
3
|
+
following sources:
|
|
4
|
+
|
|
5
|
+
http://plone.org/documentation/kb/product-skin-localization
|
|
6
|
+
http://plone.org/documentation/kb/i18n-for-developers
|
|
7
|
+
http://www.mattdorn.com/content/plone-i18n-a-brief-tutorial/
|
|
8
|
+
http://grok.zope.org/documentation/how-to/how-to-internationalize-your-application
|
|
9
|
+
http://maurits.vanrees.org/weblog/archive/2007/09/i18n-locales-and-plone-3.0
|
|
10
|
+
http://n2.nabble.com/Recipe-for-overriding-translations-td3045492ef221724.html
|
|
11
|
+
http://dev.plone.org/plone/wiki/TranslationGuidelines
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
msgid ""
|
|
2
|
+
msgstr ""
|
|
3
|
+
"Project-Id-Version: communesplone.layout\n"
|
|
4
|
+
"POT-Creation-Date: 2011-08-30 09:55+0000\n"
|
|
5
|
+
"Last-Translator: Stephan Geulette <support@communesplone.be>\n"
|
|
6
|
+
"MIME-Version: 1.0\n"
|
|
7
|
+
"Content-Type: text/plain; charset=utf-8\n"
|
|
8
|
+
"Content-Transfer-Encoding: 8bit\n"
|
|
9
|
+
"Plural-Forms: nplurals=1; plural=0\n"
|
|
10
|
+
"Language-code: \n"
|
|
11
|
+
"Language-name: \n"
|
|
12
|
+
"Preferred-encodings: utf-8 latin1\n"
|
|
13
|
+
"Domain: communesplone.layout\n"
|
|
14
|
+
|
|
15
|
+
#. Default: "The connection to the site is temporary suspended for maintenance operations. <a href=\"contact-info\">Contact the site administrator</a> for more information."
|
|
16
|
+
#: ./skins/communesplone_layout/login_form.cpt:162
|
|
17
|
+
msgid "no_source_users"
|
|
18
|
+
msgstr ""
|
|
19
|
+
|
|
20
|
+
#: ../skins/communesplone_layout/validate_sendto.vpy:31
|
|
21
|
+
msgid "Please provide the message here above correctly, case sensitive."
|
|
22
|
+
msgstr ""
|
|
23
|
+
|
|
24
|
+
#. Default: "Captcha"
|
|
25
|
+
#: ../skins/communesplone_layout/sendto_form.cpt
|
|
26
|
+
msgid "label_captcha"
|
|
27
|
+
msgstr ""
|
|
28
|
+
|
|
29
|
+
#. Default: "Provide the text in the image here above. Just to avoid spambots"
|
|
30
|
+
#: ../skins/communesplone_layout/sendto_form.cpt
|
|
31
|
+
msgid "help_captcha"
|
|
32
|
+
msgstr ""
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
msgid ""
|
|
2
|
+
msgstr ""
|
|
3
|
+
"Project-Id-Version: PACKAGE VERSION\n"
|
|
4
|
+
"POT-Creation-Date: 2011-08-30 09:55+0000\n"
|
|
5
|
+
"PO-Revision-Date: YEAR-MO-DA HO:MI +ZONE\n"
|
|
6
|
+
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
|
7
|
+
"Language-Team: LANGUAGE <LL@li.org>\n"
|
|
8
|
+
"MIME-Version: 1.0\n"
|
|
9
|
+
"Content-Type: text/plain; charset=utf-8\n"
|
|
10
|
+
"Content-Transfer-Encoding: 8bit\n"
|
|
11
|
+
"Plural-Forms: nplurals=1; plural=0\n"
|
|
12
|
+
"Language-Code: en\n"
|
|
13
|
+
"Language-Name: English\n"
|
|
14
|
+
"Preferred-Encodings: utf-8 latin1\n"
|
|
15
|
+
"Domain: DOMAIN\n"
|
|
16
|
+
|
|
17
|
+
#: ../skins/communesplone_layout/validate_sendto.vpy:31
|
|
18
|
+
msgid "Please provide the message here above correctly, case sensitive."
|
|
19
|
+
msgstr ""
|
|
20
|
+
|
|
21
|
+
#. Default: "Provide the text in the image here above. Just to avoid spambots"
|
|
22
|
+
#: ../skins/communesplone_layout/sendto_form.cpt
|
|
23
|
+
msgid "help_captcha"
|
|
24
|
+
msgstr ""
|
|
25
|
+
|
|
26
|
+
#. Default: "Captcha"
|
|
27
|
+
#: ../skins/communesplone_layout/sendto_form.cpt
|
|
28
|
+
msgid "label_captcha"
|
|
29
|
+
msgstr ""
|
|
30
|
+
|
|
31
|
+
#. Default: "The connection to the site is temporary suspended for maintenance operations. <a href=\"contact-info\">Contact the site administrator</a> for more information."
|
|
32
|
+
#: ./skins/communesplone_layout/login_form.cpt:162
|
|
33
|
+
msgid "no_source_users"
|
|
34
|
+
msgstr ""
|
|
35
|
+
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
msgid ""
|
|
2
|
+
msgstr ""
|
|
3
|
+
"Project-Id-Version: PACKAGE VERSION\n"
|
|
4
|
+
"POT-Creation-Date: 2017-02-02 16:30+0000\n"
|
|
5
|
+
"PO-Revision-Date: YEAR-MO-DA HO:MI +ZONE\n"
|
|
6
|
+
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
|
7
|
+
"Language-Team: LANGUAGE <LL@li.org>\n"
|
|
8
|
+
"MIME-Version: 1.0\n"
|
|
9
|
+
"Content-Type: text/plain; charset=utf-8\n"
|
|
10
|
+
"Content-Transfer-Encoding: 8bit\n"
|
|
11
|
+
"Plural-Forms: nplurals=1; plural=0\n"
|
|
12
|
+
"Language-Code: en\n"
|
|
13
|
+
"Language-Name: English\n"
|
|
14
|
+
"Preferred-Encodings: utf-8 latin1\n"
|
|
15
|
+
"Domain: DOMAIN\n"
|
|
16
|
+
|
|
17
|
+
#. Default: "Created by ${author}"
|
|
18
|
+
#: CMFPlone/skins/plone_content/folder_listing.pt:136
|
|
19
|
+
#: CMFPlone/skins/plone_content/folder_summary_view.pt:73
|
|
20
|
+
#: CMFPlone/skins/plone_deprecated/search.pt:172
|
|
21
|
+
msgid "label_by_author"
|
|
22
|
+
msgstr ""
|
|
23
|
+
|
|
24
|
+
#. Default: "click here to retrieve it"
|
|
25
|
+
#: CMFPlone/skins/plone_login/failsafe_login_form.cpt:123
|
|
26
|
+
#: CMFPlone/skins/plone_login/login_form.cpt:288
|
|
27
|
+
#: plone.app.openid/plone/app/openid/skins/ploneopenid/login_form.cpt:151
|
|
28
|
+
msgid "label_click_here_to_retrieve"
|
|
29
|
+
msgstr ""
|
|
30
|
+
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
The <packagename>.po file containing language-specific translations for your product will go here when it is generated.
|
|
2
|
+
|
|
3
|
+
For more information on internationalization and the difference between the i18n directory and this locales directory, read here:
|
|
4
|
+
|
|
5
|
+
http://maurits.vanrees.org/weblog/archive/2007/09/i18n-locales-and-plone-3.0
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
msgid ""
|
|
2
|
+
msgstr ""
|
|
3
|
+
"Project-Id-Version: PACKAGE VERSION\n"
|
|
4
|
+
"POT-Creation-Date: 2011-08-30 09:55+0000\n"
|
|
5
|
+
"PO-Revision-Date: YEAR-MO-DA HO:MI +ZONE\n"
|
|
6
|
+
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
|
7
|
+
"Language-Team: LANGUAGE <LL@li.org>\n"
|
|
8
|
+
"MIME-Version: 1.0\n"
|
|
9
|
+
"Content-Type: text/plain; charset=utf-8\n"
|
|
10
|
+
"Content-Transfer-Encoding: 8bit\n"
|
|
11
|
+
"Plural-Forms: nplurals=1; plural=0\n"
|
|
12
|
+
"Language-Code: en\n"
|
|
13
|
+
"Language-Name: English\n"
|
|
14
|
+
"Preferred-Encodings: utf-8 latin1\n"
|
|
15
|
+
"Domain: DOMAIN\n"
|
|
16
|
+
|
|
17
|
+
#: ../skins/communesplone_layout/validate_sendto.vpy:31
|
|
18
|
+
msgid "Please provide the message here above correctly, case sensitive."
|
|
19
|
+
msgstr ""
|
|
20
|
+
|
|
21
|
+
#. Default: "Provide the text in the image here above. Just to avoid spambots"
|
|
22
|
+
#: ../skins/communesplone_layout/sendto_form.cpt
|
|
23
|
+
msgid "help_captcha"
|
|
24
|
+
msgstr ""
|
|
25
|
+
|
|
26
|
+
#. Default: "Captcha"
|
|
27
|
+
#: ../skins/communesplone_layout/sendto_form.cpt
|
|
28
|
+
msgid "label_captcha"
|
|
29
|
+
msgstr ""
|
|
30
|
+
|
|
31
|
+
#. Default: "The connection to the site is temporary suspended for maintenance operations. <a href=\"contact-info\">Contact the site administrator</a> for more information."
|
|
32
|
+
#: ./skins/communesplone_layout/login_form.cpt:162
|
|
33
|
+
msgid "no_source_users"
|
|
34
|
+
msgstr ""
|
|
35
|
+
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
msgid ""
|
|
2
|
+
msgstr ""
|
|
3
|
+
"Project-Id-Version: PACKAGE VERSION\n"
|
|
4
|
+
"POT-Creation-Date: 2017-02-02 16:30+0000\n"
|
|
5
|
+
"PO-Revision-Date: YEAR-MO-DA HO:MI +ZONE\n"
|
|
6
|
+
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
|
7
|
+
"Language-Team: LANGUAGE <LL@li.org>\n"
|
|
8
|
+
"MIME-Version: 1.0\n"
|
|
9
|
+
"Content-Type: text/plain; charset=utf-8\n"
|
|
10
|
+
"Content-Transfer-Encoding: 8bit\n"
|
|
11
|
+
"Plural-Forms: nplurals=1; plural=0\n"
|
|
12
|
+
"Language-Code: en\n"
|
|
13
|
+
"Language-Name: English\n"
|
|
14
|
+
"Preferred-Encodings: utf-8 latin1\n"
|
|
15
|
+
"Domain: DOMAIN\n"
|
|
16
|
+
|
|
17
|
+
#. Default: "Created by ${author}"
|
|
18
|
+
#: CMFPlone/skins/plone_content/folder_listing.pt:136
|
|
19
|
+
#: CMFPlone/skins/plone_content/folder_summary_view.pt:73
|
|
20
|
+
#: CMFPlone/skins/plone_deprecated/search.pt:172
|
|
21
|
+
msgid "label_by_author"
|
|
22
|
+
msgstr ""
|
|
23
|
+
|
|
24
|
+
#. Default: "click here to retrieve it"
|
|
25
|
+
#: CMFPlone/skins/plone_login/failsafe_login_form.cpt:123
|
|
26
|
+
#: CMFPlone/skins/plone_login/login_form.cpt:288
|
|
27
|
+
#: plone.app.openid/plone/app/openid/skins/ploneopenid/login_form.cpt:151
|
|
28
|
+
msgid "label_click_here_to_retrieve"
|
|
29
|
+
msgstr ""
|
|
30
|
+
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
msgid ""
|
|
2
|
+
msgstr ""
|
|
3
|
+
"Project-Id-Version: PACKAGE VERSION\n"
|
|
4
|
+
"POT-Creation-Date: 2011-08-30 09:55+0000\n"
|
|
5
|
+
"PO-Revision-Date: YEAR-MO-DA HO:MI +ZONE\n"
|
|
6
|
+
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
|
7
|
+
"Language-Team: LANGUAGE <LL@li.org>\n"
|
|
8
|
+
"MIME-Version: 1.0\n"
|
|
9
|
+
"Content-Type: text/plain; charset=utf-8\n"
|
|
10
|
+
"Content-Transfer-Encoding: 8bit\n"
|
|
11
|
+
"Plural-Forms: nplurals=1; plural=0\n"
|
|
12
|
+
"Language-Code: en\n"
|
|
13
|
+
"Language-Name: English\n"
|
|
14
|
+
"Preferred-Encodings: utf-8 latin1\n"
|
|
15
|
+
"Domain: DOMAIN\n"
|
|
16
|
+
|
|
17
|
+
#: ../skins/communesplone_layout/validate_sendto.vpy:31
|
|
18
|
+
msgid "Please provide the message here above correctly, case sensitive."
|
|
19
|
+
msgstr ""
|
|
20
|
+
|
|
21
|
+
#. Default: "Provide the text in the image here above. Just to avoid spambots"
|
|
22
|
+
#: ../skins/communesplone_layout/sendto_form.cpt
|
|
23
|
+
msgid "help_captcha"
|
|
24
|
+
msgstr ""
|
|
25
|
+
|
|
26
|
+
#. Default: "Captcha"
|
|
27
|
+
#: ../skins/communesplone_layout/sendto_form.cpt
|
|
28
|
+
msgid "label_captcha"
|
|
29
|
+
msgstr ""
|
|
30
|
+
|
|
31
|
+
#. Default: "The connection to the site is temporary suspended for maintenance operations. <a href=\"contact-info\">Contact the site administrator</a> for more information."
|
|
32
|
+
#: ./skins/communesplone_layout/login_form.cpt:162
|
|
33
|
+
msgid "no_source_users"
|
|
34
|
+
msgstr ""
|
|
35
|
+
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
msgid ""
|
|
2
|
+
msgstr ""
|
|
3
|
+
"Project-Id-Version: PACKAGE VERSION\n"
|
|
4
|
+
"POT-Creation-Date: 2017-02-02 16:30+0000\n"
|
|
5
|
+
"PO-Revision-Date: YEAR-MO-DA HO:MI +ZONE\n"
|
|
6
|
+
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
|
7
|
+
"Language-Team: LANGUAGE <LL@li.org>\n"
|
|
8
|
+
"MIME-Version: 1.0\n"
|
|
9
|
+
"Content-Type: text/plain; charset=utf-8\n"
|
|
10
|
+
"Content-Transfer-Encoding: 8bit\n"
|
|
11
|
+
"Plural-Forms: nplurals=1; plural=0\n"
|
|
12
|
+
"Language-Code: en\n"
|
|
13
|
+
"Language-Name: English\n"
|
|
14
|
+
"Preferred-Encodings: utf-8 latin1\n"
|
|
15
|
+
"Domain: DOMAIN\n"
|
|
16
|
+
|
|
17
|
+
#. Default: "Created by ${author}"
|
|
18
|
+
#: CMFPlone/skins/plone_content/folder_listing.pt:136
|
|
19
|
+
#: CMFPlone/skins/plone_content/folder_summary_view.pt:73
|
|
20
|
+
#: CMFPlone/skins/plone_deprecated/search.pt:172
|
|
21
|
+
msgid "label_by_author"
|
|
22
|
+
msgstr ""
|
|
23
|
+
|
|
24
|
+
#. Default: "click here to retrieve it"
|
|
25
|
+
#: CMFPlone/skins/plone_login/failsafe_login_form.cpt:123
|
|
26
|
+
#: CMFPlone/skins/plone_login/login_form.cpt:288
|
|
27
|
+
#: plone.app.openid/plone/app/openid/skins/ploneopenid/login_form.cpt:151
|
|
28
|
+
msgid "label_click_here_to_retrieve"
|
|
29
|
+
msgstr ""
|
|
30
|
+
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
The <packagename>.po file containing language-specific translations for your product will go here when it is generated.
|
|
2
|
+
|
|
3
|
+
For more information on internationalization and the difference between the i18n directory and this locales directory, read here:
|
|
4
|
+
|
|
5
|
+
http://maurits.vanrees.org/weblog/archive/2007/09/i18n-locales-and-plone-3.0
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
msgid ""
|
|
2
|
+
msgstr ""
|
|
3
|
+
"Project-Id-Version: PACKAGE VERSION\n"
|
|
4
|
+
"POT-Creation-Date: 2011-08-30 09:55+0000\n"
|
|
5
|
+
"PO-Revision-Date: YEAR-MO-DA HO:MI +ZONE\n"
|
|
6
|
+
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
|
7
|
+
"Language-Team: LANGUAGE <LL@li.org>\n"
|
|
8
|
+
"MIME-Version: 1.0\n"
|
|
9
|
+
"Content-Type: text/plain; charset=utf-8\n"
|
|
10
|
+
"Content-Transfer-Encoding: 8bit\n"
|
|
11
|
+
"Plural-Forms: nplurals=1; plural=0\n"
|
|
12
|
+
"Language-Code: fr\n"
|
|
13
|
+
"Language-Name: French\n"
|
|
14
|
+
"Preferred-Encodings: utf-8 latin1\n"
|
|
15
|
+
"Domain: communesplone.layout\n"
|
|
16
|
+
"X-is-fallback-for: fr-be fr-ca fr-lu fr-mc fr-ch fr-fr\n"
|
|
17
|
+
|
|
18
|
+
#: ../skins/communesplone_layout/validate_sendto.vpy:31
|
|
19
|
+
msgid "Please provide the message here above correctly, case sensitive."
|
|
20
|
+
msgstr "Recopiez les lettres et chiffres ci-dessous correctement en respectant la casse (majuscules/minuscules)."
|
|
21
|
+
|
|
22
|
+
#. Default: "Provide the text in the image here above. Just to avoid spambots"
|
|
23
|
+
#: ../skins/communesplone_layout/sendto_form.cpt
|
|
24
|
+
msgid "help_captcha"
|
|
25
|
+
msgstr "Recopiez le texte de l'image ci-dessous, ceci permet de lutter contre le SPAM."
|
|
26
|
+
|
|
27
|
+
#. Default: "Captcha"
|
|
28
|
+
#: ../skins/communesplone_layout/sendto_form.cpt
|
|
29
|
+
msgid "label_captcha"
|
|
30
|
+
msgstr "Code de vérification"
|
|
31
|
+
|
|
32
|
+
#. Default: "The connection to the site is temporary suspended for maintenance operations. <a href=\"contact-info\">Contact the site administrator</a> for more information."
|
|
33
|
+
#: ./skins/communesplone_layout/login_form.cpt:162
|
|
34
|
+
msgid "no_source_users"
|
|
35
|
+
msgstr "La connexion au site est momentanément suspendue pour raison de maintenance. Si besoin, vous pouvez <a href=\"contact-info\">contacter l'administrateur du site</a> pour plus d'informations."
|
|
36
|
+
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
msgid ""
|
|
2
|
+
msgstr ""
|
|
3
|
+
"Project-Id-Version: PACKAGE VERSION\n"
|
|
4
|
+
"POT-Creation-Date: 2017-02-02 16:30+0000\n"
|
|
5
|
+
"PO-Revision-Date: YEAR-MO-DA HO:MI +ZONE\n"
|
|
6
|
+
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
|
7
|
+
"Language-Team: LANGUAGE <LL@li.org>\n"
|
|
8
|
+
"MIME-Version: 1.0\n"
|
|
9
|
+
"Content-Type: text/plain; charset=utf-8\n"
|
|
10
|
+
"Content-Transfer-Encoding: 8bit\n"
|
|
11
|
+
"Plural-Forms: nplurals=1; plural=0\n"
|
|
12
|
+
"Language-Code: en\n"
|
|
13
|
+
"Language-Name: English\n"
|
|
14
|
+
"Preferred-Encodings: utf-8 latin1\n"
|
|
15
|
+
"Domain: plone\n"
|
|
16
|
+
|
|
17
|
+
#. Default: "Created by ${author}"
|
|
18
|
+
#: CMFPlone/skins/plone_content/folder_listing.pt:136
|
|
19
|
+
#: CMFPlone/skins/plone_content/folder_summary_view.pt:73
|
|
20
|
+
#: CMFPlone/skins/plone_deprecated/search.pt:172
|
|
21
|
+
msgid "label_by_author"
|
|
22
|
+
msgstr "Créé par ${author}"
|
|
23
|
+
|
|
24
|
+
#. Default: "click here to retrieve it"
|
|
25
|
+
#: CMFPlone/skins/plone_login/failsafe_login_form.cpt:123
|
|
26
|
+
#: CMFPlone/skins/plone_login/login_form.cpt:288
|
|
27
|
+
#: plone.app.openid/plone/app/openid/skins/ploneopenid/login_form.cpt:151
|
|
28
|
+
msgid "label_click_here_to_retrieve"
|
|
29
|
+
msgstr "cliquez ici pour le récupérer"
|
|
30
|
+
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
msgid ""
|
|
2
|
+
msgstr ""
|
|
3
|
+
"Project-Id-Version: PACKAGE VERSION\n"
|
|
4
|
+
"POT-Creation-Date: 2011-08-30 09:55+0000\n"
|
|
5
|
+
"PO-Revision-Date: YEAR-MO-DA HO:MI +ZONE\n"
|
|
6
|
+
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
|
7
|
+
"Language-Team: LANGUAGE <LL@li.org>\n"
|
|
8
|
+
"MIME-Version: 1.0\n"
|
|
9
|
+
"Content-Type: text/plain; charset=utf-8\n"
|
|
10
|
+
"Content-Transfer-Encoding: 8bit\n"
|
|
11
|
+
"Plural-Forms: nplurals=1; plural=0\n"
|
|
12
|
+
"Language-Code: en\n"
|
|
13
|
+
"Language-Name: English\n"
|
|
14
|
+
"Preferred-Encodings: utf-8 latin1\n"
|
|
15
|
+
"Domain: DOMAIN\n"
|
|
16
|
+
|
|
17
|
+
#: ../skins/communesplone_layout/validate_sendto.vpy:31
|
|
18
|
+
msgid "Please provide the message here above correctly, case sensitive."
|
|
19
|
+
msgstr ""
|
|
20
|
+
|
|
21
|
+
#. Default: "Provide the text in the image here above. Just to avoid spambots"
|
|
22
|
+
#: ../skins/communesplone_layout/sendto_form.cpt
|
|
23
|
+
msgid "help_captcha"
|
|
24
|
+
msgstr ""
|
|
25
|
+
|
|
26
|
+
#. Default: "Captcha"
|
|
27
|
+
#: ../skins/communesplone_layout/sendto_form.cpt
|
|
28
|
+
msgid "label_captcha"
|
|
29
|
+
msgstr ""
|
|
30
|
+
|
|
31
|
+
#. Default: "The connection to the site is temporary suspended for maintenance operations. <a href=\"contact-info\">Contact the site administrator</a> for more information."
|
|
32
|
+
#: ./skins/communesplone_layout/login_form.cpt:162
|
|
33
|
+
msgid "no_source_users"
|
|
34
|
+
msgstr ""
|
|
35
|
+
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
msgid ""
|
|
2
|
+
msgstr ""
|
|
3
|
+
"Project-Id-Version: PACKAGE VERSION\n"
|
|
4
|
+
"POT-Creation-Date: 2017-02-02 16:30+0000\n"
|
|
5
|
+
"PO-Revision-Date: YEAR-MO-DA HO:MI +ZONE\n"
|
|
6
|
+
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
|
7
|
+
"Language-Team: LANGUAGE <LL@li.org>\n"
|
|
8
|
+
"MIME-Version: 1.0\n"
|
|
9
|
+
"Content-Type: text/plain; charset=utf-8\n"
|
|
10
|
+
"Content-Transfer-Encoding: 8bit\n"
|
|
11
|
+
"Plural-Forms: nplurals=1; plural=0\n"
|
|
12
|
+
"Language-Code: en\n"
|
|
13
|
+
"Language-Name: English\n"
|
|
14
|
+
"Preferred-Encodings: utf-8 latin1\n"
|
|
15
|
+
"Domain: DOMAIN\n"
|
|
16
|
+
|
|
17
|
+
#. Default: "Created by ${author}"
|
|
18
|
+
#: CMFPlone/skins/plone_content/folder_listing.pt:136
|
|
19
|
+
#: CMFPlone/skins/plone_content/folder_summary_view.pt:73
|
|
20
|
+
#: CMFPlone/skins/plone_deprecated/search.pt:172
|
|
21
|
+
msgid "label_by_author"
|
|
22
|
+
msgstr ""
|
|
23
|
+
|
|
24
|
+
#. Default: "click here to retrieve it"
|
|
25
|
+
#: CMFPlone/skins/plone_login/failsafe_login_form.cpt:123
|
|
26
|
+
#: CMFPlone/skins/plone_login/login_form.cpt:288
|
|
27
|
+
#: plone.app.openid/plone/app/openid/skins/ploneopenid/login_form.cpt:151
|
|
28
|
+
msgid "label_click_here_to_retrieve"
|
|
29
|
+
msgstr ""
|
|
30
|
+
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
msgid ""
|
|
2
|
+
msgstr ""
|
|
3
|
+
"Project-Id-Version: communesplone.layout\n"
|
|
4
|
+
"POT-Creation-Date: 2017-02-02 16:30+0000\n"
|
|
5
|
+
"Last-Translator: Gauthier Bastien <support@imio.be>\n"
|
|
6
|
+
"MIME-Version: 1.0\n"
|
|
7
|
+
"Content-Type: text/plain; charset=utf-8\n"
|
|
8
|
+
"Content-Transfer-Encoding: 8bit\n"
|
|
9
|
+
"Plural-Forms: nplurals=1; plural=0\n"
|
|
10
|
+
"Language-code: \n"
|
|
11
|
+
"Language-name: \n"
|
|
12
|
+
"Preferred-encodings: utf-8 latin1\n"
|
|
13
|
+
"Domain: plone\n"
|
|
14
|
+
|
|
15
|
+
#. Default: "click here to retrieve it"
|
|
16
|
+
#: CMFPlone/skins/plone_login/failsafe_login_form.cpt:123
|
|
17
|
+
#: CMFPlone/skins/plone_login/login_form.cpt:288
|
|
18
|
+
#: plone.app.openid/plone/app/openid/skins/ploneopenid/login_form.cpt:151
|
|
19
|
+
msgid "label_click_here_to_retrieve"
|
|
20
|
+
msgstr ""
|
|
21
|
+
|
|
22
|
+
#. Default: "Created by ${author}"
|
|
23
|
+
#: CMFPlone/skins/plone_content/folder_listing.pt:136
|
|
24
|
+
#: CMFPlone/skins/plone_content/folder_summary_view.pt:73
|
|
25
|
+
#: CMFPlone/skins/plone_deprecated/search.pt:172
|
|
26
|
+
msgid "label_by_author"
|
|
27
|
+
msgstr ""
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
files="communesplone.layout plone"
|
|
2
|
+
languages="de en es fr nl"
|
|
3
|
+
|
|
4
|
+
for file in $files; do
|
|
5
|
+
for language in $languages; do
|
|
6
|
+
i18ndude sync --pot $file.pot $language/LC_MESSAGES/$file.po
|
|
7
|
+
msgfmt -o $language/LC_MESSAGES/$file.mo $language/LC_MESSAGES/$file.po
|
|
8
|
+
done
|
|
9
|
+
done
|
|
10
|
+
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
#!/bin/sh
|
|
2
|
+
#
|
|
3
|
+
# Shell script to manage .po files.
|
|
4
|
+
#
|
|
5
|
+
# Run this file in the folder main __init__.py of product
|
|
6
|
+
#
|
|
7
|
+
# E.g. if your product is yourproduct.name
|
|
8
|
+
# you run this file in yourproduct.name/yourproduct/name
|
|
9
|
+
#
|
|
10
|
+
#
|
|
11
|
+
# Copyright 2009 Twinapex Research http://www.twinapex.com
|
|
12
|
+
#
|
|
13
|
+
|
|
14
|
+
# Assume the product name is the current folder name
|
|
15
|
+
CURRENT_PATH=`pwd`
|
|
16
|
+
CATALOGNAME="communesplone.layout"
|
|
17
|
+
|
|
18
|
+
# List of languages
|
|
19
|
+
LANGUAGES="en fr nl de es"
|
|
20
|
+
|
|
21
|
+
# Create locales folder structure for languages
|
|
22
|
+
install -d locales
|
|
23
|
+
for lang in $LANGUAGES; do
|
|
24
|
+
install -d locales/$lang/LC_MESSAGES
|
|
25
|
+
done
|
|
26
|
+
|
|
27
|
+
# Rebuild .pot
|
|
28
|
+
if ! test -f locales/$CATALOGNAME.pot; then
|
|
29
|
+
i18ndude rebuild-pot --pot locales/$CATALOGNAME.pot --create $CATALOGNAME .
|
|
30
|
+
fi
|
|
31
|
+
|
|
32
|
+
# Compile po files
|
|
33
|
+
for lang in $(find locales -mindepth 1 -maxdepth 1 -type d); do
|
|
34
|
+
|
|
35
|
+
if test -d $lang/LC_MESSAGES; then
|
|
36
|
+
|
|
37
|
+
PO=$lang/LC_MESSAGES/${CATALOGNAME}.po
|
|
38
|
+
|
|
39
|
+
# Create po file if not exists
|
|
40
|
+
touch $PO
|
|
41
|
+
|
|
42
|
+
# Sync po file
|
|
43
|
+
echo "Syncing $PO"
|
|
44
|
+
i18ndude sync --pot locales/$CATALOGNAME.pot $PO
|
|
45
|
+
|
|
46
|
+
# Compile .po to .mo
|
|
47
|
+
MO=$lang/LC_MESSAGES/${CATALOGNAME}.mo
|
|
48
|
+
echo "Compiling $MO"
|
|
49
|
+
msgfmt -o $MO $lang/LC_MESSAGES/${CATALOGNAME}.po
|
|
50
|
+
fi
|
|
51
|
+
done
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
<?xml version="1.0"?>
|
|
2
|
+
<registry>
|
|
3
|
+
<!-- simplify.css for the authenticated users that are not Manager nor in the full-layout group -->
|
|
4
|
+
<records interface="plone.base.interfaces.IBundleRegistry"
|
|
5
|
+
prefix="plone.bundles/communesplone-layout-simplify">
|
|
6
|
+
<value key="enabled">True</value>
|
|
7
|
+
<value key="csscompilation">++plone++communesplone.layout/simplify.css</value>
|
|
8
|
+
<value key="expression">python: not portal.portal_membership.isAnonymousUser() and not context.portal_membership.getAuthenticatedMember().has_role('Manager') and not 'full-layout' in context.portal_membership.getAuthenticatedMember().getGroups()</value>
|
|
9
|
+
</records>
|
|
10
|
+
</registry>
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
<configure
|
|
2
|
+
xmlns="http://namespaces.zope.org/zope"
|
|
3
|
+
xmlns:genericsetup="http://namespaces.zope.org/genericsetup"
|
|
4
|
+
i18n_domain="communesplone.layout">
|
|
5
|
+
|
|
6
|
+
<genericsetup:registerProfile
|
|
7
|
+
name="default"
|
|
8
|
+
title="communesplone.layout"
|
|
9
|
+
directory="profiles/default"
|
|
10
|
+
description='General layout adaptations.'
|
|
11
|
+
provides="Products.GenericSetup.interfaces.EXTENSION"
|
|
12
|
+
/>
|
|
13
|
+
|
|
14
|
+
<genericsetup:registerProfile
|
|
15
|
+
name="uninstall"
|
|
16
|
+
title="communesplone.layout uninstall"
|
|
17
|
+
directory="profiles/uninstall"
|
|
18
|
+
description='Uninstalls communesplone.layout.'
|
|
19
|
+
provides="Products.GenericSetup.interfaces.EXTENSION"
|
|
20
|
+
/>
|
|
21
|
+
|
|
22
|
+
<genericsetup:registerProfile
|
|
23
|
+
name="simplify"
|
|
24
|
+
title="communesplone.layout simplify"
|
|
25
|
+
directory="profiles/simplify"
|
|
26
|
+
description='Simplify editor layout.'
|
|
27
|
+
provides="Products.GenericSetup.interfaces.EXTENSION"
|
|
28
|
+
post_handler=".setuphandlers.simplify"
|
|
29
|
+
/>
|
|
30
|
+
|
|
31
|
+
</configure>
|