Uploaded image for project: 'XWiki Infrastructure'
  1. XWiki Infrastructure
  2. XINFRA-278

Ignore attachment's content in weblate translations

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • l10n.xwiki.org
    • None
    • Unknown
    • N/A
    • N/A

    Description

      Example:

      <?xml version="1.1" encoding="UTF-8"?>
      
      <!--
       * See the NOTICE file distributed with this work for additional
       * information regarding copyright ownership.
       *
       * This is free software; you can redistribute it and/or modify it
       * under the terms of the GNU Lesser General Public License as
       * published by the Free Software Foundation; either version 2.1 of
       * the License, or (at your option) any later version.
       *
       * This software is distributed in the hope that it will be useful,
       * but WITHOUT ANY WARRANTY; without even the implied warranty of
       * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
       * Lesser General Public License for more details.
       *
       * You should have received a copy of the GNU Lesser General Public
       * License along with this software; if not, write to the Free
       * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
       * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
      -->
      
      <xwikidoc version="1.3" reference="Sandbox.WebHome" locale="">
        <web>Sandbox</web>
        <name>WebHome</name>
        <language/>
        <defaultLanguage>en</defaultLanguage>
        <translation>0</translation>
        <creator>xwiki:XWiki.Admin</creator>
        <parent>Main.WebHome</parent>
        <author>xwiki:XWiki.Admin</author>
        <contentAuthor>xwiki:XWiki.Admin</contentAuthor>
        <version>1.1</version>
        <title>Sandbox</title>
        <comment/>
        <minorEdit>false</minorEdit>
        <syntaxId>xwiki/2.1</syntaxId>
        <hidden>false</hidden>
        <attachment>
          <filename>XWikiLogo.png</filename>
          <mimetype>image/png</mimetype>
          <filesize>1390</filesize>
          <author>xwiki:XWiki.Admin</author>
          <version>1.1</version>
          <comment/>
          <content>iVBORw0KGgoAAAANSUhEUgAAAIgAAACFCAYAAACAJLCMAAAFNUlEQVR4Xu2dsY3rRhRF1YDB3AlL
      UAksYUtg8uFUJTBzaGVOWQJLYAEOWAIBN0D8CsZvARoLCNKDPsXZq8c5HzjJj3aJo+WcR83wxL/T
      6e/xt8bojItx/v//ATHOxmSkGwajQoCy5aiMxUgPGBGgbEGuqwgeHwhQKF+3FpcrAhSKIwW3GUAQ
      GT9+/FEZjXExOuPDqBFkt+tbr9e0W69xE0WM2uiN9IBx+y+DIKsU04Nruxi94aS5/odfjPQEPYL8
      Gvc+eI4o53eUI/0iPYLsJ4cviX69sRhpAx2CvCCHz2xU7yBIZ6QXaBHkoRzti9f2IhdkNTW9yBlB
      nNv2diZ5tTgCbLxnIogJcPZv28+jFqQx0k5MRhVQEP2azqeJJYjPVIQgvhyTkZSC6G8xPn3Bggx7
      X8+4i1SfLogg+pz1mWJnrk9biiDr85SUgUuMQdl2mgCCCGYdgkGZttn9/FULoshZyWyJT4JAEH+B
      v4S6PesXWv6MRCmIPmf1C3x9qvn0BxJkjHGNjGCfjqtCEEHOCpM2ftm0gm+1q3JW/5gi6Aq92UmQ
      7uV9MfqcXYw66peXG13+6nfW+Tmrvw7k7/N7c8c7cvRGJZBDkLN6Sa6C/N0iSrNSC3JWMEYvY0Yy
      vHHRTQFytoj87Qv6QIxH33E3a/JX/4Rbn7Pk70tJSs6Sv9nlf//fi/xdtpQNOUv+ChbgyEH+krNc
      YKXgoP4TzS3SIH9bFtlZIRP1mQ76QRODPh9G1TwqeAYedvGwkfwlZ/XE/8INOUv+sncWSTZkJTnr
      QP4Ktm1AhI1Hgo1fEGmDuGjrKETa/CzYfA6R8leQsxDgABYfcpb8JWfJ350hZ8lfcpb8FZwTBuHP
      RyNnyV/FOWHx+fOfymiNzhh3ZjA6o9acjxZ/1vHzr1NrdJlojcqT42zMRvoGWkH+hs1ZE+BszEbK
      zGKc78lROXLk4iPO8eA+meWojcURIIck9a0gFyN9M/NBZiRt5ttKb6Rvpr8VZBAIkgT5Gy5nTYBJ
      IMh8K8h4YEHGyEnr3F6ycitIJxBkOcjw7JpZkFEgyHgrSC0QpDvQ+L3NmbYCQdp7JdN+oxyTUR3s
      AV5zkIVq781CGmMwloxiXCQzkPizkEvmWchsdGyPyAB7XXgOw2459vGy35atEDz25ywRvlUGspzl
      1CDOM9sOG7XJWU4uJGdbXuXhwLFUHDd1H3J2EIgIgY+95oWEPrxbhnfA+PB2Kt4ixfvteA/dbvCG
      TPKXd+zyLlxydoMc5C8vOuR9/OTsbFSC89HIX8FeWkFOao4HhwDHXovyF0kEx16HPR48D+Ts9SjH
      gxeL4NjrkMeDM+sQ5Gyw4V6nFYCcJX/J2fhFJigbLh75S87KJCk+f1nAkb8kICnPp+jf0++dMRtp
      ZTI+GAYyhv6UozfSA9qC11+s5D8FWEXwqAt9IEnOmgDjE4J0hc6AmCZ+SeAyRpsik7N6QeI/hyJn
      9YKQv/otAXpByF99zqoFCb45TL8oFWxLlAkS7MvPdYBbiyzb9ILoN6hf30GQRZOzekEC5O8sH4gJ
      dpcJBAm9q7BSCtIIEk0gSOgabIIJ4ucsguyev2fp5HTPnEWQ/fP3HSpm3ivHEGT3/B0CPdb3cxZB
      vPyNPyybXjknDEGy5O8YazuDbzeC+JJ0cc6G9yWZnvrhVzkQJMutfHz3R/7tA1Fm4+osSBHkuede
      vbE8KME24CG4hi8FgmyXpbkzCAMEAQQBPV+bpVwGBChXkOEJQS4IUK4gjZEcFqNCgLIlaR05OIrS
      +A9RR3TQati61AAAAABJRU5ErkJggg==
      </content>
        </attachment>
        <content>The sandbox is a part of your wiki that you can freely modify. It's meant to let you practice editing. You will discover how page editing works and create new pages. Simply click on **Edit** to get started!
      
      {{info}}
      Don't worry about overwriting or losing stuff when editing the page, you can always roll back to the first version of the page from the "History" tab at the bottom of the page.
      {{/info}}
      
      If you want to give a look to the underlying [[XWiki Syntax&gt;&gt;XWiki.XWikiSyntax]], you can click on "Wiki code" in the "Show" menu or click on the "Source" tab when editing the page.
      
      Here are a number of test pages you can play with:
      
      * [[Sandbox Test Page 1&gt;&gt;Sandbox.TestPage1]]
      * [[Sandbox Test Page 2&gt;&gt;Sandbox.TestPage2]]
      * [[Sandbox Test Page 3&gt;&gt;Sandbox.TestPage3]]
      
      Below is a demonstration of the [[XWiki Syntax&gt;&gt;XWiki.XWikiSyntax]] you can use in wiki pages (headings, images, tables).
      
      = Headings =
      
      XWiki offers 6 levels of headings. You can use them to structure your pages.
      
      == Level 2 Heading ==
      
      === Level 3 Heading ===
      
      ==== Level 4 Heading 4 ====
      
      ===== Level 5 Heading 5 =====
      
      ====== Level 6 Heading 6 ======
      
      = Styles =
      
      Basic styles are supported in XWiki:
      
      * **Text in Bold**
      * //Text in Italics//
      * __Text in Underline__
      * --Text in Strikethrough--
      * Text in ,,subscript,,
      * Text in ^^superscript^^
      
      = Lists =
      
      You can create various types of lists in your wiki pages:
      
      == Unordered list ==
      
      * Level 1
      ** Level 2
      *** Level 3
      ** Level 2
      * Level 1
      
      == Numbered list ==
      
      1. Item
      11. Subitem
      111. Item
      1. Subitem
      
      == Mixed list ==
      
      1. Item 1
      11. Item 2
      11*. Item 3
      11*. Item 4
      1. Item 5
      
      = Tables =
      
      You can create tables right into wiki pages:
      
      == Table with headers in the top row ==
      
      |= table header |= table header |= table header
      | cell | cell | cell
      | cell | cell | cell
      
      == Table with headers in the top row and left column ==
      
      |= table header |= table header |= table header
      |= table header | cell | cell
      |= table header | cell | cell
      
      = Links =
      
      XWiki allows you to create links to other pages in your wiki or on the web:
      
      * [[WebHome]] -&gt; links to the homepage of the current space
      * [[Sandbox Home&gt;&gt;WebHome]] -&gt; links can have labels
      * [[Wiki Home&gt;&gt;Main.WebHome]] -&gt; a link can use the SpaceName.PageName format to link to a page located in another space
      * [[http://www.xwiki.org]] -&gt; you can link to wiki pages or to external websites
      * [[XWiki.org Website&gt;&gt;http://www.xwiki.org]] -&gt; link labels work for exernal links too
      
      You can also create links to attachments:
      
      attach:XWikiLogo.png
      
      = Images =
      
      You can insert images in your wiki pages:
      
      image:XWikiLogo.png
      
      = Macros =
      
      Macros allow you to make wiki content look better and to add additional features to your wiki. Here are 2 examples of how macros can be used in wiki pages:
      
      == Warning Macro ==
      
      This macro allows you to draw users' attention to a specific piece of information:
      
      {{warning}}
      Hello World
      {{/warning}}
      
      == Table of Contents ==
      
      This macro automatically generates a table of contents of your wiki page based on headings:
      
      {{toc/}}</content>
      </xwikidoc>

      In this situation, we can only translate the first content that appears, which is the one from the attachment.

      Attachments

        Activity

          People

            atallahade Adel Atallah
            atallahade Adel Atallah
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: