From 6d4cffaf0f0f484e6efaedbf18ee6cbf4ccafd44 Mon Sep 17 00:00:00 2001 From: helmutm Date: Wed, 23 May 2007 10:09:58 +0000 Subject: [PATCH] added German translations git-svn-id: svn://svn.cy55.de/Zope3/src/loops/trunk@1763 fd906abe-77d9-0310-91a1-e0d9ade77398 --- base.py | 4 +- browser/common.py | 4 + browser/concept.py | 3 +- browser/concept_macros.pt | 32 ++++--- browser/form_macros.pt | 37 +++++--- browser/node.py | 2 +- browser/node_macros.pt | 4 +- browser/resource.py | 3 +- browser/resource_macros.pt | 4 +- configure.zcml | 6 +- locales/de/LC_MESSAGES/loops.mo | Bin 0 -> 2661 bytes locales/de/LC_MESSAGES/loops.po | 157 ++++++++++++++++++++++++++++++++ locales/loops.pot | 13 +++ search/search.pt | 47 ++++++---- util.py | 4 +- versioning/version_macros.pt | 14 +-- 16 files changed, 268 insertions(+), 66 deletions(-) create mode 100644 locales/de/LC_MESSAGES/loops.mo create mode 100644 locales/de/LC_MESSAGES/loops.po create mode 100644 locales/loops.pot diff --git a/base.py b/base.py index 4e6aef2..efdc99a 100644 --- a/base.py +++ b/base.py @@ -39,8 +39,8 @@ class Loops(Folder): implements(ILoops) - def getSiteManager(self): - return self.__parent__.getSiteManager() + #def getSiteManager(self): + # return self.__parent__.getSiteManager() @property def _SampleContainer__data(self): diff --git a/browser/common.py b/browser/common.py index bcc7612..b1985bb 100644 --- a/browser/common.py +++ b/browser/common.py @@ -26,6 +26,7 @@ from zope.app import zapi from zope import component from zope.app.form.browser.interfaces import ITerms from zope.app.security.interfaces import IAuthentication +from zope.app.pagetemplate import ViewPageTemplateFile from zope.cachedescriptors.property import Lazy from zope.dottedname.resolve import resolve from zope.dublincore.interfaces import IZopeDublinCore @@ -57,6 +58,9 @@ from loops.util import _ from loops.versioning.interfaces import IVersionable +conceptMacrosTemplate = ViewPageTemplateFile('concept_macros.pt') + + class NameField(schema.ASCIILine): def _validate(self, value): diff --git a/browser/concept.py b/browser/concept.py index 87c4cb6..0358673 100644 --- a/browser/concept.py +++ b/browser/concept.py @@ -48,6 +48,7 @@ from loops.interfaces import ITypeConcept from loops.concept import Concept, ConceptTypeSourceList, PredicateSourceList from loops.browser.common import EditForm, BaseView, LoopsTerms from loops import util +from loops.util import _ from loops.versioning.util import getVersion @@ -85,7 +86,7 @@ class ConceptView(BaseView): cont = self.controller if (cont is not None and not IUnauthenticatedPrincipal.providedBy( self.request.principal)): - cont.macros.register('portlet_right', 'parents', title='Parents', + cont.macros.register('portlet_right', 'parents', title=_(u'Parents'), subMacro=self.template.macros['parents'], position=0, info=self) diff --git a/browser/concept_macros.pt b/browser/concept_macros.pt index 3e2fed5..ca92748 100644 --- a/browser/concept_macros.pt +++ b/browser/concept_macros.pt @@ -29,7 +29,7 @@
-

Parents

+

Parents

-

Children


+

Children


- - - + + + Resource Title - + @@ -77,16 +78,16 @@ ondblclick python: item.openEditWindow('resources.html')" tal:define="resources python: list(item.resources())" tal:condition="resources"> -

Resources


+

Resources


TitleTypeModification DateTitleTypeModification Date
TypeType Type
- - - + + - - - + + + - Concept - (Type) + Concept + (Type) diff --git a/browser/form_macros.pt b/browser/form_macros.pt index 3a3b1d2..28f25a8 100644 --- a/browser/form_macros.pt +++ b/browser/form_macros.pt @@ -1,7 +1,7 @@ - +
@@ -22,7 +22,8 @@
- + @@ -34,7 +35,7 @@ - + @@ -48,6 +49,7 @@ 'form.fields', 'form.type', '${view/url}/inner_form.html')"> @@ -86,8 +89,7 @@ tal:define="hint widget/hint"> - - - + + + @@ -137,7 +140,7 @@ - + + @@ -179,7 +185,8 @@ Version: 1.1 (current, released) - + diff --git a/browser/node.py b/browser/node.py index e805686..8921f17 100644 --- a/browser/node.py +++ b/browser/node.py @@ -84,7 +84,7 @@ class NodeView(BaseView): # from sub- (other) packages? # see controller / configurator: use multiple configurators; # register additional configurators (adapters) from within package. - cm.register('portlet_right', 'actions', title='Actions', + cm.register('portlet_right', 'actions', title=_(u'Actions'), subMacro=node_macros.macros['actions']) @Lazy diff --git a/browser/node_macros.pt b/browser/node_macros.pt index 907e970..fcee1ab 100644 --- a/browser/node_macros.pt +++ b/browser/node_macros.pt @@ -212,7 +212,8 @@ url view/virtualTargetUrl">
- Edit Concept Map @@ -259,6 +260,7 @@ tal:define="url action/url"> External Editor diff --git a/browser/resource.py b/browser/resource.py index b4da710..d3c29ed 100644 --- a/browser/resource.py +++ b/browser/resource.py @@ -46,6 +46,7 @@ from loops.interfaces import IBaseResource, IDocument, IMediaAsset, ITextDocumen from loops.interfaces import ITypeConcept from loops.versioning.browser import version_macros from loops.versioning.interfaces import IVersionable +from loops.util import _ renderingFactories = { 'text/plain': 'zope.source.plaintext', @@ -115,7 +116,7 @@ class ResourceView(BaseView): if not IUnauthenticatedPrincipal.providedBy(self.request.principal): cont = self.controller if cont is not None and list(self.relatedConcepts()): - cont.macros.register('portlet_right', 'related', title='Related Items', + cont.macros.register('portlet_right', 'related', title=_(u'Related Items'), subMacro=self.template.macros['related'], position=0, info=self) versionable = IVersionable(self.context, None) diff --git a/browser/resource_macros.pt b/browser/resource_macros.pt index dfdadd9..25a6d4c 100644 --- a/browser/resource_macros.pt +++ b/browser/resource_macros.pt @@ -90,8 +90,8 @@ diff --git a/configure.zcml b/configure.zcml index c2f006b..ac4651b 100644 --- a/configure.zcml +++ b/configure.zcml @@ -2,8 +2,10 @@ + xmlns:i18n="http://namespaces.zope.org/i18n" + i18n_domain="loops"> + + diff --git a/locales/de/LC_MESSAGES/loops.mo b/locales/de/LC_MESSAGES/loops.mo new file mode 100644 index 0000000000000000000000000000000000000000..c8ba35884e0bf37955398e1e0618648fc492db87 GIT binary patch literal 2661 zcmZvcJ!~9B6vqb$A8|ei350|Ym_Pz{$l8vrfO8}fXU8^{>^RuxP#_`A?Y_I4-0tjY zcGj130R>2*KuSeL1QMc$$_NS3oRE@&f)XJC5=azuR1p>bw>uY`z-VWGJ74c>-rJw| z@AycdjiWz}e)B#dX88L7ywHYs2=OpD0`3M+gS>PB+yzei`Agtq7{3MX1QYNfunRr{ zz5}wH>)?Ly2FUV00}p{;`1xBP9`O@ieEwH(ANYso9T1P$`CzGMFUax_fvo=+$m^5f z32+Kzy>EkfL<6rqU<~rP4UqT02eQ5oK=$hfcm({|&wmB(#rRwBB=|kZe%t~1{4N~E zr`QMb_#nvk9P#sk=cHdh3qFDM3n0g#2C_ZMkFSDLxQniz{}N8H{;xsacMD|wKY$0o z-#zbu9RJr$z0Xfe1^Mr3Nf-IBmeBRG70{?v+WFNVWp>v!$cc5B4gU*d(_#8UN zetR3mfc@si{+vL63Z3hi^JIHtKe@I~p>r&_-Z)kqXO1oVe-xeXpKFa9$KWLTF!~GV zq8d7#noLyVSgw=J%7N*Ls_Ds@)P&S=#rFzjX>LOj)hyFZGguqWMnpAtt<>_@jKYCf z%(QeISu$cEz*9C-D_2R`u*FM`jFYuqhs2B}6oGNDJd3o=`=;)}psGJfP(?n?_ zW+UwemdGX5DJKSEc=w!+NzCQ&&e1g|7PV>1wUtG<#LtL&e@ph$L|-#cR1kMuw%^ zGEp5#&;X;gk%qdmt4)-4#bpKOTqfSg$@atw#W)|y1xHDSk&n}=S|{P1Em4}_zt^>r z)}QnWGi;A3bRGjc21DJDy)>6yg{ZkyhGooDVVJ)#hS|6qJ}sG zb(O*5a+|1WhalC`jt)g}9sI&|vKB817bn(C+oWA19pBiML9Uq8VH2B8k+^KrtN02Q zqQGyc$m0vq@uADhwV=3UggfAHSLDR__$$HqnP6f_q^)3lSx zh}J1iJMiOwPAn}f&2G7HdUSlq=WD>RsT7eN>%_>xS7q2zHY0a_tu_}-ZS7<08f1f6 z6C&44vm&SJ+6~Q%@KJ8c;yRy%AwStB?g5Wy%c>feO0yGLYJE*G`7ZpkZEjcpSt4W1t GPW%H0yl1um literal 0 HcmV?d00001 diff --git a/locales/de/LC_MESSAGES/loops.po b/locales/de/LC_MESSAGES/loops.po new file mode 100644 index 0000000..9767ed0 --- /dev/null +++ b/locales/de/LC_MESSAGES/loops.po @@ -0,0 +1,157 @@ +msgid "" +msgstr "" + +"Project-Id-Version: $Id$\n" +"POT-Creation-Date: 2007-05-22 12:00 CET\n" +"PO-Revision-Date: 2007-05-23 12:00 CET\n" +"Last-Translator: Helmut Merz \n" +"Language-Team: loops developers \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Generated-By: kwrite\n" + +msgid "Concept" +msgstr "Begriff" + +msgid "Resource" +msgstr "Ressource" + +msgid "Edit Concept Map" +msgstr "Concept Map bearbeiten" + +msgid "Create Resource..." +msgstr "Ressource anlegen..." + +msgid "Actions" +msgstr "Aktionen" + +msgid "Type" +msgstr "Typ" + +msgid "Modification Date" +msgstr "Änderungsdatum" + +msgid "Size" +msgstr "Größe" + +msgid "Author(s)" +msgstr "Autor(en)" + +msgid "Parents" +msgstr "Oberbegriffe" + +msgid "Children" +msgstr "Unterbegriffe" + +msgid "Title" +msgstr "Titel" + +msgid "Related Items" +msgstr "Verwandte Begriffe" + +msgid "Topic" +msgstr "Thema" + +msgid "Task" +msgstr "Aufgabe" + +msgid "Domain" +msgstr "Bereich" + +msgid "Note" +msgstr "Notiz" + +msgid "File" +msgstr "Datei" + +msgid "Data" +msgstr "Inhalt" + +msgid "Create Resource, Type = " +msgstr "Ressource anlegen, Typ = " + +msgid "Edit Resource..." +msgstr "Ressource bearbeiten..." + +msgid "Content Type" +msgstr "Format" + +msgid "Link URL" +msgstr "URL" + +msgid "Assign Concept(s)" +msgstr "Begriff(e) zuordnen" + +msgid "State" +msgstr "Status" + +msgid "Save" +msgstr "Speichern" + +msgid "Cancel" +msgstr "Abbrechen" + +msgid "Select" +msgstr "Übernehmen" + +msgid "Select concept" +msgstr "Begriff auswählen" + +msgid "Select/search text" +msgstr "Begriff suchen/auswählen" + +msgid "not selected" +msgstr "nicht ausgewählt" + +msgid "Type(s) to search for" +msgstr "Suche nach Objekten vom Typ" + +msgid "Search via related concepts" +msgstr "Über Begriffe suchen" + +msgid "Search" +msgstr "Suchen" + +msgid "Any Resource" +msgstr "Beliebige Ressource" + +msgid "Any Concept" +msgstr "Beliebiger Begriff" + +msgid "Any" +msgstr "Beliebig" + +msgid "Concept for Search" +msgstr "Suchbegriff" + +msgid "Select if you want to create a new version" +msgstr "Bitte markieren, wenn Sie eine neue Version anlegen möchten" + +msgid "Search text" +msgstr "Suchtext" + +msgid "Text-based search" +msgstr "Textbasierte Suche" + +msgid "Full text" +msgstr "Volltext" + +msgid "Unknown Type" +msgstr "Unbekannter Typ" + +msgid "Query" +msgstr "Abfrage" + +msgid "Open concept map editor in new window" +msgstr "Concept-Map-Editor in neuem Fenster öffnen" + +msgid "Versions" +msgstr "Versionen" + +msgid "All versions" +msgstr "Alle Versionen" + +msgid "Search results" +msgstr "Suchergebnisse" + diff --git a/locales/loops.pot b/locales/loops.pot new file mode 100644 index 0000000..84ebcf6 --- /dev/null +++ b/locales/loops.pot @@ -0,0 +1,13 @@ +msgid "" +msgstr "" + +"Project-Id-Version: $Id$\n" +"POT-Creation-Date: 2007-05-22 12:00 CET\n" +"PO-Revision-Date: 2007-05-22 12:00 CET\n" +"Last-Translator: Helmut Merz \n" +"Language-Team: loops developers \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Generated-By: kwrite\n" + diff --git a/search/search.pt b/search/search.pt index 576eed5..d9f014d 100644 --- a/search/search.pt +++ b/search/search.pt @@ -31,6 +31,7 @@
@@ -41,21 +42,22 @@
+ tal:attributes="id resultsId | request/search.resultsId" + i18n:domain="loops">
- Search results + Search results
TitleTypeTitleTypeVSizeModification DateAuthor(s)SizeModification DateAuthor(s)
Concept AssignmentsConcept Assignments
Assign Concept(s)
Type: Select value: Type: Concept: @@ -129,7 +132,7 @@ Something - (Topic) + (Topic)
+
+ @@ -195,12 +202,14 @@ -
- - - + + - - - + + + @@ -68,7 +70,8 @@ title description" tal:content="row/title" /> - + @@ -150,17 +154,20 @@ tal:attributes="name string:$namePrefix.title; id string:$idPrefix.title;" />   
TitleTypeTitleTypeVSizeModification DateAuthor(s)SizeModification DateAuthor(s)
TypeType @@ -110,13 +113,14 @@
-

Type(s) to search for

+

Type(s) to search for

+ tal:attributes="for string:$idPrefix.text"> + Type:
-

Search text

+

Text-based search

+ tal:attributes="for string:$idPrefix.text"> + Search text: - Type: - + Type: + + tal:attributes="for string:$idPrefix.text"> + Concept for Search: @@ -212,7 +221,8 @@ + tal:attributes="for string:$idPrefix.type"> + Type: -

Title

-

Versions


+

Title

+

Versions


- - - - - + + + + +
TitleTypeVSizeModification DateTitleTypeVSizeModification Date