We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 38367
    • 4 Posts
    Hello,
    is it possible to localise NewsPublisher form texts to other languages like Swedish?
    Or is there any workaround to change these strings?
    I launch NewsPublisher like this:

    [[!NewsPublisher?
    &show=`pagetitle,introtext,content` ...

    As a result form contains strings in English:

    Create/Edit Resource
    Title:
    Summary(introtext)
    Resource Content
    Submit and Cancel.

    I am using MODX Revo 2.1.5 pl. [ed. note: antti75 last edited this post 14 years, 8 months ago.]
      • 3749
      • 24,544 Posts
      You would have to translate the files in the core/components/newspublisher/lexicon/en/ directory and put the translated files in their own subdirectory: core/components/newspublisher/lexicon/sv.. They may be be used automatically. If not add &language=`sv` to the NewsPublisher tag.

      Make sure the files are in UTF-8 encoding. If you do the translations, please zip them up and send them to me and I'll include them in the next release.


      ---------------------------------------------------------------------------------------------------------------
      PLEASE, PLEASE specify the version of MODX you are using . . . PLEASE!
      MODx info for everyone: http://bobsguides.com/MODx.html
        Did I help you? Buy me a beer
        Get my Book: MODX:The Official Guide
        MODX info for everyone: http://bobsguides.com/modx.html
        My MODX Extras
        Bob's Guides is now hosted at A2 MODX Hosting
        • 38367
        • 4 Posts
        Thanks for the quick reply and instructions. I actually saw the lexicon files. Then I noticed that not all the localised text is there, for example I couldn't find "Title" nor "Submit" nor "Cancel".
          • 3749
          • 24,544 Posts
          NewsPublisher uses the MODX core/resource language strings for title (I think). I think changing the manager_language system setting to sv would give you that in Swedish, but I haven't tried it.

          The button captions are set in the npOuterTpl chunk.

          .

          ---------------------------------------------------------------------------------------------------------------
          PLEASE, PLEASE specify the version of MODX you are using . . . PLEASE!
          MODx info for everyone: http://bobsguides.com/MODx.html [ed. note: BobRay last edited this post 14 years, 8 months ago.]
            Did I help you? Buy me a beer
            Get my Book: MODX:The Official Guide
            MODX info for everyone: http://bobsguides.com/modx.html
            My MODX Extras
            Bob's Guides is now hosted at A2 MODX Hosting