Difference between revisions of "Internationalisation/Translating html files"

From Jmol
Jump to navigation Jump to search
Line 5: Line 5:
 
'''Procedure:'''
 
'''Procedure:'''
  
# Locate the relevant files. Examples:
+
# Locate the relevant files.<br>Examples:
#* Files for "About Jmol" dialog are in <code>org/openscience/jmol/app/</code>
+
#* Files for "About Jmol" dialog are in {{Directory|org/openscience/jmol/app/}}
#* Files for "Export to Web" module are in <code>org/openscience/jmol/app/webexport/html/</code>
+
#* 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:
 
# 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 (e.g. _pt.html for Portuguese, _pt-BR.html for Brazilian Portuguese)
+
#* 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.
 
# 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]).
 
# 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]).

Revision as of 16:14, 30 August 2008

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/
    • 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