Difference between revisions of "Internationalisation/Translating html files"

From Jmol
Jump to navigation Jump to search
((new) How to translate html files for the app)
 
(fix url)
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
Several pieces of the Jmol application (like the ''About Jmol'' and ''What's New'' dialogs and the ''Export to Web'' help, instructions and templates) are written as html files.
+
Several pieces of the Jmol application (like the ''About Jmol'' dialog and the ''Export to Web'' help, instructions and templates) are written as html files.
  
For these, we do not use the standard way of ; instead, translators need to prepare translated copies of the html files.
+
For these, we do not use the standard way of translation; instead, translators need to prepare translated copies of the html files.
 +
 
 +
'''Procedure:'''
 +
 
 +
# Locate the relevant files.<br>Examples:
 +
#* Files for "About Jmol" dialog are in {{Directory|org/openscience/jmol/app/jmolpanel/}}
 +
#* Files for "Export to Web" module are in {{Directory|org/openscience/jmol/app/webexport/html/}}
 +
# Duplicate the original English files and rename them according to your language:
 +
#* The file name should end in _xx.html, where "xx" is your language code.<br>Example: {{File|About.html}} original English must be duplicated to:
 +
#** {{File|About_pt.html}} for Portuguese
 +
#** {{File|About_pt-BR.html}} for Brazilian Portuguese
 +
# Edit the files (using a text or html editor) and translate their content. Save.
 +
# Either upload the files to the SVN system (if you have the privileges to do so) or send them to one of the developers ([mailto:nicove@users.sourceforge.net nicove@users.sourceforge.net] or [mailto:Jmol-developers@lists.sf.net Jmol-developers@lists.sf.net]).

Latest revision as of 10:31, 17 December 2010

Several pieces of the Jmol application (like the About Jmol dialog and the Export to Web help, instructions and templates) are written as html files.

For these, we do not use the standard way of translation; instead, translators need to prepare translated copies of the html files.

Procedure:

  1. Locate the relevant files.
    Examples:
    • Files for "About Jmol" dialog are in org/openscience/jmol/app/jmolpanel/
    • Files for "Export to Web" module are in org/openscience/jmol/app/webexport/html/
  2. Duplicate the original English files and rename them according to your language:
    • The file name should end in _xx.html, where "xx" is your language code.
      Example: File icon.gifAbout.html original English must be duplicated to:
      • File icon.gifAbout_pt.html for Portuguese
      • File icon.gifAbout_pt-BR.html for Brazilian Portuguese
  3. Edit the files (using a text or html editor) and translate their content. Save.
  4. Either upload the files to the SVN system (if you have the privileges to do so) or send them to one of the developers (nicove@users.sourceforge.net or Jmol-developers@lists.sf.net).

Contributors

AngelHerraez