| |
Site Translator
v2.45 |
| |
|
| |
|
| |
Automatic Translation of
Websites Using Site
Translator |
| |
|
| |
|
|
| |
The world keeps getting
smaller. With the
new global information
networks (not to mention
the global economy),
it's more and more
important that your web
pages be available in
multiple languages.
With DeskShare's
Site Translator, you
can automatically
translate your entire
website. Combine
that with DeskShare's
Auto FTP Manager,
and you can translate
your site regularly and
have the translations
automatically uploaded
to your server, daily,
weekly, or on whatever
schedule meets your
needs. |
|
| |
|
| |
Automatic translation
relies on Site
Translator's
command-line interface.
By including Site
Translator commands in a
batch file (a simple
script for Windows), you
can schedule
translations using the
Windows Scheduled Tasks
system. |
|
| |
|
| |
Note:
Command line operation
will not be practical
with the trial version
of the program.
You must register Site
Translator in order to
perform scheduled,
unattended translations. |
|
| |
|
| |
The command-line
interface for Site
Translator is very
simple. You can
translate either a file
on a local drive, or a
URL over the Internet.
Because URL translations
open up either in a web
browser, or in a Site
Translator window, we'll
use the ability to
translate a file (which
can be saved in another
file) to automatically
translate an entire website. |
|
| |
|
| |
To be
translated,
the files must be
on a local
drive.
You can use
Auto FTP
Manager to
automatically
download all
the files
from a website to your
computer, on
a schedule,
by following
the
directions
in
this article. |
|
| |
|
| |
For this example, I'll
use the very simple website "Cooking With
Peppers" (not associated
with any real pepper
farmers): |
|
| |
|
| |
 |
| |
|
| |
This site has only three
pages: the home
page, a page for
farmers, and a page for
consumers: |
|
| |
|
| |
We'll create a batch
file to convert all
three to Spanish.
A simple batch file is
just a list of commands.
The command to convert a
file to a new language
is:
"C:\Program
Files\ DeskShare\Site
Translator\sitetranslator"
site "c:\PepperSite"
english spanish –fo
"c:\Peppersite-Spanish" |
|
| |
|
| |
I'll
explain each element of
that command. The
first part,
"C:\Program
Files\ DeskShare\Site
Translator\sitetranslator",
is the full path to and
the name of the Site
Translator program.
The quotation marks are
needed because the path
has blank spaces in it.
The keyword "site" tells
Site Translator that it
will be translating
every file in a
particular folder (and
not downloading a page
from the Internet and
translating that).
The "C:\PepperSite" is
the name of the folder.
"english spanish" tells
the program to translate
the pages from English
to Spanish.
Finally '-fo
"C:\Peppersite-Spanish"'
tells the program to put
the translated files in
that folder, and to
overwrite (-fo) files
with the same names if
they're already there. |
|
| |
|
| |
To make a batch file,
I'll use the Windows
Notepad, which is found
in the Accessories group
of the Start Menu
Programs listing.
I'll also add lines to
translate the website
into French and German,
and save the file as Peppertrans.bat. I
created a special
directory for batch
files, C:\Batch, to help
keep them where I can
find them. |
|
| |
|
| |
The batch file will look
something like this:
"c:\Program
Files\DeskShare\Site
Translator\SiteTranslator"
site "C:\Peppersite"
english spanish -fo
"c:\Peppersite-Spanish"
"c:\Program
Files\DeskShare\Site
Translator\SiteTranslator"
site "C:\Peppersite"
english french -fo
"C:\Peppersite-French" "c:\Program
Files\DeskShare\Site
Translator\SiteTranslator"
site "C:\Peppersite"
english German -fo
"C:\Peppersite-German" |
|
| |
|
| |
I'll name the batch file
Peppertrans.bat.
I would also have
to create the
directories for the
French, Spanish, and
German translations to
be saved into. |
|
| |
|
| |
To test the batch file,
just open the Start
menu, choose Run, and in
the Run window type
CMD, then press
Enter.
At the command prompt,
type the name (and path)
of the batch file and
press Enter, for
instance
C:\batch\Peppertrans.bat. |
|
| |
|
| |
The translated files are
now stored in the proper
folders. |
| |
|
| |
Here's the
translated page in
Spanish: |
| |
|
| |
 |
| |
|
| |
The next step is to
translate the page
automatically, once a
week on Monday night.
That's very simple.
(All the following
instructions assume
you're using Windows
XP.) First, start the
Scheduled Tasks
application, which is in
the System Tools folder
of the Accessories
group of the
Programs submenu of
the Start menu. |
|
| |
|
| |
Click File,
New, and
Scheduled Task.
I'll name mind
"Translate Pepper Site".
Then right-click on the
task in the list and
click Properties.
Use the Browse button to
select the batch file
you created, then switch
to the Schedule tab and
choose how often and
when to run your
Scheduled Task.
I'll choose weekly on
Mondays at 9:00 pm. |
|
| |
|
| |
 |
| |
|
| |
That should do it.
I click OK, and
the translation will
take place every Monday
at 9:00 pm (if my
computer is on at that
time). |
|
| |
|
| |
To translate the site
automatically, and
publish the translated
pages automatically, you
would use
Auto FTP Manager to
automatically download
all the files from the
site, say starting at
6:00 pm, and then to
upload the translated
files after the
scheduled task runs, for
instance at midnight. |
|
| |
|
|
| |
If you'll be translating
similar documents (or
the same documents)
repeatedly, you will
probably want to
configure
translation memory,
which lets you customize
the way certain words
and phrases are
translated. You
can use this feature to
be sure that
industry-specific
phrases and words are
translated correctly. |
|
| |
|
|
| |
By using the
command-line features of
Site Translator, you can
create scripts and
scheduled tasks that
save you time and
effort, and can even
regularly translate
whole web sites
automatically. |
|
| |
|
|