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.]
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
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".
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.]