1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Po Manager 1.0.2

Exports phrases to a Po file - Converts Po file to XenForo Xml - Tool for translators

  1. cclaerhout

    cclaerhout Well-Known Member

    cclaerhout submitted a new resource:

    Po Manager (version 1.0) - Exports phrases to a Po file - Converts Po file to XenForo Xml - Tool for translators

    Read more about this resource...
     
  2. Gambleru

    Gambleru Member

    Thanx, Cedric, cool idea!

    Extracted .po file, using POEDIT to edit it, it gives 6 fatal errors in this (standard) phrase:
    Code:
    You may select this option and enter one or more full regular expressions instead of match URLs. The media ID must be identified using a named sub-pattern called 'id'.<br />\n
    <br />\n
    Example regular expression with 'id' named sub-pattern:<br />\n
    <code>#http://www\.example\.com/video/(?P&lt;id&gt;\d+/[a-z0-9_]+)/#siU</code> [match_urls_are_regex_explain][1010010]
    after trying to import it, I get:
    Code:
    This XML file does not appear to have any style information associated with it. The document tree is shown below.
    <errors>
    <error>Undefined offset: 4</error>
    <trace>
    <entry function="XenForo_Application::handlePhpError" file="/opt/web/yyyy-website.info/html/library/Sedo/PoManager/Model/Language.php" line="106"/>
    <entry function="Sedo_PoManager_Model_Language->convertPoToXml" file="/opt/web/yyyy-website.info/html/library/Sedo/PoManager/ControllerAdmin/Language.php" line="33"/>
    <entry function="Sedo_PoManager_ControllerAdmin_Language->actionPoToXml" file="/opt/web/yyyy-website.info/html/library/XenForo/FrontController.php" line="310"/>
    <entry function="XenForo_FrontController->dispatch" file="/opt/web/yyyy-website.info/html/library/XenForo/FrontController.php" line="132"/>
    <entry function="XenForo_FrontController->run" file="/opt/web/yyyy-website.info/html/admin.php" line="13"/>
    </trace>
    </errors>
    :(
     
  3. cclaerhout

    cclaerhout Well-Known Member

    cclaerhout updated Po Manager with a new update entry:

    Version 1.01 released

    Read the rest of this update entry...
     
  4. cclaerhout

    cclaerhout Well-Known Member

    @For editing: I've just tried with the software and I've also have this error that prompts up when saving file. But I've checked and the file is still correctly saved. It seems poedit detects a regex in the phrase "match_urls_are_regex_explain" and wants to do something with it. I've no idea why. It's working fine with Virtaal or the online PoEditor.
    @For converting: I've modified the converter, try with the new version.
     
    Gambleru likes this.
  5. Gambleru

    Gambleru Member

    Just tried it with Poedit again (Virtaal doesn't seem to work properly on Mac), resaved with those 6 errors, transfered back to XML just fine and imported ontop of language file (Russian) without any problems!
    Thank you, Cédric, this is going to make translation of several addons a walk in the park!
     
  6. ip0dhacker

    ip0dhacker Active Member

    Great add-on. Thank you
     
  7. cclaerhout

    cclaerhout Well-Known Member

    It appears the online version of PO Editor will not be free anymore

     
  8. cclaerhout

    cclaerhout Well-Known Member

    cclaerhout updated Po Manager with a new update entry:

    Version 1.0.2 released

    Read the rest of this update entry...
     
  9. tyteen4a03

    tyteen4a03 Well-Known Member

    Does this work on 1.4?
     
  10. cclaerhout

    cclaerhout Well-Known Member

    I don't know, it makes a while I've used it. Try it and if it does't tell me, it shouldn't be too hard to update the code.
     
  11. tyteen4a03

    tyteen4a03 Well-Known Member

    I'm getting a Duplicate Headers error when I try to export a language.
     
  12. cclaerhout

    cclaerhout Well-Known Member

    Which browser do you use? I've tested and it's working for me.
     
  13. tyteen4a03

    tyteen4a03 Well-Known Member

    Chrome 40 beta.
     
    Last edited: Jan 2, 2015
  14. cclaerhout

    cclaerhout Well-Known Member

    Working for me. It's might come from the file output method for the po file, I've used a basic one (set headers, then print) and not the raw renderer. I'm going to update the code to see if it works for you after.
     
    tyteen4a03 likes this.
  15. cclaerhout

    cclaerhout Well-Known Member

    tyteen4a03 likes this.
  16. tyteen4a03

    tyteen4a03 Well-Known Member

    Works now, thanks!
     
    cclaerhout likes this.
  17. otto

    otto Well-Known Member

    Hello,

    works for me on xenforo 1.4.6 - thanks a lot that lets make me translate even faster as bevore, but I have a question. When I export (.po) and edit (Win7, Virtaal) a language file and then reimport this after converting to xml ... it marks all phrases as translatet in xenforo, but I havnt all translatet.

    What can I do to solve this problem? Have I in Virtaal to mark all realy untranslatet phrases as "untranslatet" to work proper with xenforo?
     
  18. cclaerhout

    cclaerhout Well-Known Member

    @otto
    I don't understand and I can't provide any support at the moment. But please note that when you export the phrases of an addon (even the one that are not translated yet), then you import these phrases into a language (whether they have been translated or not), XenForo will consider these phrases as translated.

    The most important file of this addon is this one. If you find any problem with it, feel free to push a commit and I will look at it.
     

Share This Page