From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on sa.int.altlinux.org X-Spam-Level: X-Spam-Status: No, score=-2.5 required=5.0 tests=BAYES_00, DNS_FROM_OPENWHOIS, RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=no version=3.2.5 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:date:message-id:subject:from:to :content-type:content-transfer-encoding; bh=ixpxhK0V9YbpJpeUR4yNzk1ll9eGTzUpb/ONzafKZAA=; b=DJXYJgCrhPN4gx67elUUDL5YAoEcuvfSYcaIYBc5vW9bcYPUuRglh6jqfpo6AKmHt2 QYBY7JW8EZkaXzCzMzJV8uiTvyj8KWo7aC/jisCa+U65R8lDqx2W3GLLqjrHvMdX6yhL x++eW7DOKGaNV5rvjCduEFTUPM5ochWx6EbM4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type :content-transfer-encoding; b=QJ1SzO0T+Dk/+0yA1YrRI/SKH7XFjgKozjyR4cDGlJydk4gS6kNFXpLkdlKRzvHEq/ BwM0CPNPDlmrAJl0dW1QjBma1u2Dt+DVBvSwdsleuxDLaN+c1qpYxxaBf7kd2WtXRaCM R7iALNVShcmN/ssW2xQ7xjQVOMjY1akMRBEhc= MIME-Version: 1.0 Date: Thu, 23 Jun 2011 22:20:13 +0400 Message-ID: From: Alexander Potashev To: KDE i18n-doc , KDE russian translation mailing list Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: [kde-russian] "Magic split" for undo action names available in Calligra X-BeenThere: kde-russian@lists.kde.ru X-Mailman-Version: 2.1.12 Precedence: list Reply-To: KDE russian translation mailing list List-Id: KDE russian translation mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 23 Jun 2011 18:20:23 -0000 Archived-At: List-Archive: Hi, Two days ago I patched the whole Calligra to use my library kundo2 instead of Qt Undo Framework for undo actions. This makes the following two features effectively available (i.e. the patches for Calligra are different that for Qt, of course) in Calligra without need to wait for Qt 4.8: 1. https://qt.gitorious.org/qt/qt/merge_requests/1212 2. https://qt.gitorious.org/qt/qt/merge_requests/2610 The second feature ("magic split") makes possible different translations of undo actions in the context of "Undo %1"/"Redo %1" menu commands and in the context of Undo History widget. If you are not interested in this, you can just ignore this new feature and everying would work exactly like before. Also, you can use "magic split" for some messages and not use it for other messages. If you want to use "magic split" for a string, instread of one translation you should write two different translations separated by a "\n" in the translation field in Lokalize or other PO editor (or "msgstr" field). The first part (before "\n") goes to the Undo History widget, the second part (after "\n") goes to "Edit -> Undo %1" and "Edit -> Redo %1" menu commands. Example: (in krita.po) msgid "Brush" msgstr "=D0=9A=D0=B8=D1=81=D1=82=D1=8C\n=D1=80=D0=B8=D1=81=D0=BE=D0=B2= =D0=B0=D0=BD=D0=B8=D0=B5 =D0=BA=D0=B8=D1=81=D1=82=D1=8C=D1=8E" "=D0=9A=D0=B8=D1=81=D1=82=D1=8C" will be the name of an item in "Undo Histo= ry" widget, and the menu commands under "Edit" will be "=D0=9E=D1=82=D0=BC=D0=B5=D0=BD=D0=B8=D1= =82=D1=8C =D1=80=D0=B8=D1=81=D0=BE=D0=B2=D0=B0=D0=BD=D0=B8=D0=B5 =D0=BA=D0= =B8=D1=81=D1=82=D1=8C=D1=8E" and "=D0=9F=D0=BE=D0=B2=D1=82=D0=BE=D1=80=D0=B8=D1=82=D1=8C =D1=80=D0=B8=D1=81= =D0=BE=D0=B2=D0=B0=D0=BD=D0=B8=D0=B5 =D0=BA=D0=B8=D1=81=D1=82=D1=8C=D1=8E" = (=D0=9E=D1=82=D0=BC=D0=B5=D0=BD=D0=B8=D1=82=D1=8C/=D0=9F=D0=BE=D0=B2=D1=82= =D0=BE=D1=80=D0=B8=D1=82=D1=8C are Russian translations of Undo/Redo). If there is no "\n" in the string, the same translation will be used in both cases. Before using "magic split" you should ensure that the string is _only_ passed as undo command text to KUndo2Command (or a derived class). It would be nice to add a "(qtundo-format)" context to all such strings, but I'm not sure if I can do that soon in the whole Calligra. But if those would be added, make your "unfuzzy_context_only" Pology sieves ready ;) Note that for now you can only use "magic split" in Calligra, do not try using it in translations of other applications. Previous discussions about "magic split": 1. http://lists.kde.org/?t=3D130375522600002&r=3D1&w=3D2 2. http://mail.kde.org/pipermail/calligra-devel/2011-May/001455.html --=20 Alexander Potashev