Hi;

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.


John 
 
[email protected]




-----Original Message-----
From: pmwiki-users-request <[email protected]>
To: pmwiki-users <[email protected]>
Sent: Tue, Oct 16, 2012 2:28 pm
Subject: pmwiki-users Digest, Vol 88, Issue 13


Send pmwiki-users mailing list submissions to
[email protected]
To subscribe or unsubscribe via the World Wide Web, visit
http://www.pmichaud.com/mailman/listinfo/pmwiki-users
r, via email, send a message with subject or body 'help' to
[email protected]
You can reach the person managing the list at
[email protected]
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 <[email protected]>
o: [email protected]
ubject: [pmwiki-users] Update to Fox form processor
essage-ID: <[email protected]>
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
{$$page}=$:data}
See also documentation:
ttp://softflow.co.uk/design/FoxDocumentation/TemplateMarkup
nd for fox.php download:
ttp://softflow.co.uk/design/Wiki/Fox

Best,
ans   
ww.softflow.co.uk    


-----------------------------
Subject: Digest Footer
_______________________________________________
mwiki-users mailing list
[email protected]
ttp://www.pmichaud.com/mailman/listinfo/pmwiki-users

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

_______________________________________________
pmwiki-users mailing list
[email protected]
http://www.pmichaud.com/mailman/listinfo/pmwiki-users

Reply via email to