[pmwiki-users] pmwiki-users Digest, Vol 88, Issue 13

John prinoer at aol.com
Thu Oct 18 12:23:14 CDT 2012


Here's another development that falls short of PmWiki programming, but may be useful to some PmWiki developers. It is the installation of a translator on a PmWiki site.

Unfortunately, I cannot say that the MsTranslator can be installed on an existing wiki; however, it can be installed on new wikis and the pages from the old wiki can be migrated to the new wiki with the appropriate addition of widget code to the Site.AllGroupHeader page. I'm not sure why this is.

It's really very easy. Just obtain the code from the Ms Translator widget site: http://www.microsofttranslator.com/widget/?ref=MSTWidget

Copypaste it into the Site.AllGroupHeader page. Note; this page must be enabled with the following code in your config.php file before being created; 

$GroupHeaderFmt =
  '(:include {$SiteGroup}.AllGroupHeader:)(:nl:)'
  .'(:include {$Group}.GroupHeader:)(:nl:)';

The widget will appear on all created pages, as well as those imported into the wiki.d directory.

Select language from drop-down menu, and click on the go arrow. When you click on your first target, the page will freeze; however, after some time, (about one minute), a message will appear, asking, "Stop running this script?" Click on yes, and your page will respond normally, thereafter.

To preserve the page translation, and access it without freeze-ups or waiting time, just click on the email icon in the lower-right-hand side of the Ms Translator widget. This will create a translated page URL that you can use to reach the translation in the future.

Note: Editing must be done with the page displaying in the original language, in this case English.

The widget's default position is upper-left-hand corner, bottom layer. That means, if you have a logo in that corner, you must extend it downwards on a transparent layer, so that the widget shows through. The transparent layer must not cover the active controls; such as, the drop-down and the go arrow.

Note; In Php, all unpositioned objects (linked images) will default to the left side of the page. This fact may be useful for creating hyperlinks on masses of pages using SearchReplace.php, or similar.

prinoer at aol.com

-----Original Message-----
From: pmwiki-users-request <pmwiki-users-request at pmichaud.com>
To: pmwiki-users <pmwiki-users at pmichaud.com>
Sent: Tue, Oct 16, 2012 2:28 pm
Subject: pmwiki-users Digest, Vol 88, Issue 13

Send pmwiki-users mailing list submissions to
pmwiki-users at pmichaud.com
To subscribe or unsubscribe via the World Wide Web, visit
r, via email, send a message with subject or body 'help' to
pmwiki-users-request at pmichaud.com
You can reach the person managing the list at
pmwiki-users-owner at pmichaud.com
When replying, please edit your Subject line so it is more specific
han "Re: Contents of pmwiki-users digest..."

oday's Topics:
   1. Update to Fox form processor (Hans Bracker)

Message: 1
ate: Tue, 16 Oct 2012 17:59:51 +0100
rom: Hans Bracker <design at softflow.co.uk>
o: pmwiki-users at pmichaud.com
ubject: [pmwiki-users] Update to Fox form processor
essage-ID: <795266199.20121016175951 at softflow.co.uk>
ontent-Type: text/plain; charset=iso-8859-15

 haven't updated Fox for a while, but I had a request on
ow to post PTVs to a new page, and giving them values from
nother page, which is determined only when the form is submitted
ia a form field.
I added two new kinds of replacement variables for use on Fox
emplates, one for evaluating page variables, and one for evaluating
age text variables, when the form is submitted.
They use similar syntax than the template variables for PmWiki
agelists, i.e. {PageName=$var} and {PageName=$:var} for PVs and for
TVs, or the same without PageName component. Replacement variables
or submitted field values could be used within these, for instance
See also documentation:
nd for fox.php download:


Subject: Digest Footer
mwiki-users mailing list
mwiki-users at pmichaud.com

End of pmwiki-users Digest, Vol 88, Issue 13

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.pmichaud.com/pipermail/pmwiki-users/attachments/20121018/b65d84c0/attachment.html>

More information about the pmwiki-users mailing list