Translating collection: Difference between revisions

From SuperMemo 18 Help
Jump to navigation Jump to search
Line 29: Line 29:
To proceed with translation in text files do the following (recommended for team translation):
To proceed with translation in text files do the following (recommended for team translation):


# Make sure the translation registry for your language has been created (i.e that you passed all steps from the paragraph devoted to creating the translation registry). You can see translation registry files at [[Collection files | ''<SuperMemo folder>\systems\<your collection name>\translat\<translation language>.*'']]
# Make sure the translation [[Glossary:Registry|registry]] for your language has been created (i.e that you passed all steps from the paragraph devoted to creating the translation registry). You can see translation registry files at [[Collection files|''<SuperMemo folder>\systems\<your collection name>\translat\<translation language>.*'']]
# Decide which [[Glossary#hierarchy_node-or-branch-or-leaf|branches]] of the [[Glossary#knowledge tree | knowledge tree]] in the [[Glossary#contents window | contents window]] should be translated by individual translators
# Decide which [[Glossary:Branch|branches]] of the [[Glossary:Knowledge tree|knowledge tree]] in the [[Contents window|'''Contents''' window]] should be translated by individual translators
# Create [[Glossary#element subset | subset files]] for each branch. For this purpose do the following:
# Create [[Glossary:Element_subset|subset files]] for each [[Glossary:Branch|branch]]. For this purpose do the following:
#* right-click a selected branch in the [[contents window]]
#* right-click a selected [[Glossary:Branch|branch]] in the [[Contents window|'''Contents''' window]]
#* choose '''Export : Subset''' from the [[contents menu]]
#* choose '''[[Contents menu#Export|Export]] : Subset''' from the [[contents menu]]
# Export individual branches as text files with '''[[File menu | File]] : Export : Translation''':
# Export individual [[Glossary:Branch|branches]] as text files with '''[[File menu|File]] : [[File menu#Export|Export]] : Translation''':
#* choose '''Sorting : By occurrence'''
#* choose '''Sorting : By occurrence'''
#* choose '''Output texts : Not translated'''
#* choose '''Output texts : Not translated'''
Line 42: Line 42:
#* leave '''Output context''' checked
#* leave '''Output context''' checked
# Let the translators replace ''???'' strings in exported text files with appropriate translations (do not change anything else in the file!)
# Let the translators replace ''???'' strings in exported text files with appropriate translations (do not change anything else in the file!)
# As soon as individual translated files are becoming available, import them with '''[[File menu | File]] : Import : Translation'''
# As soon as individual translated files are becoming available, import them with '''[[File menu|File]] : [[File menu#Import|Import]] : Translation'''
# Note that the same strings translated differently by different authors will be merged. This is not an error-proof procedure and you will have to manually resolve the import conflicts. '''[[File menu | File]] : Import : Translation''' will generate a report with all merged entries listed. The fastest way to resolve merged strings is:
# Note that the same strings translated differently by different authors will be merged. This is not an error-proof procedure and you will have to manually resolve the import conflicts. '''[[File menu|File]] : [[File menu#Import|Import]] : Translation''' will generate a report with all merged entries listed. The fastest way to resolve merged strings is:
#* copy the original string from the import report file to the clipboard
#* copy the original string from the import report file to the clipboard
#* using '''[[Search menu | Search]] : Texts''', paste the string in the search input box
#* using '''[[Search menu|Search]] : [[Search menu#Texts|Texts]]''', paste the string in the search input box
#* correct the translation directly in the text registry as it appears on the screen
#* correct the translation directly in the text [[Glossary:Registry|registry]] as it appears on the screen


[[Image:Translation_registry.jpg|800px|center|SuperMemo: Translation registry stores translation texts that correspond with the text registry in the currently selected translation language]]
[[Image:Translation_registry.jpg|800px|center|SuperMemo: Translation registry stores translation texts that correspond with the text registry in the currently selected translation language]]

Revision as of 13:24, 26 March 2016

These are detailed instructions for translating SuperMemo collections to a given language:

Creating translation registry

To translate your collection to a selected language start with creating the translation registry:

  1. Choose File : Level : Professional
  2. Choose Tools : Options : Language
  3. At Collection translation type the name of the language
  4. Close the Options dialog by choosing OK
  5. Translate the collection using either interactive translation (simpler and more reliable but requiring the use of SuperMemo) or using text files (easier in teams and not requiring the translators to know or use SuperMemo)

Interactive translation (single translator)

To proceed with interactive translation of your collection do the following (recommended for an individual translator):

  1. Make sure that no repetitions have been done in your collection (pending queue will be used to proceed in the optimum translation sequence)
  2. Make sure the translation registry for your language has been created (i.e. that you passed all steps from the previous paragraph). You can see translation registry files at <SuperMemo folder>\systems\<your collection name>\translat\<translation language>.*
  3. Go to the first element in the collection
  4. Use Alt+PgUp and Alt+PgDn to move between pages (or Ctrl+G to jump to a specific page; note that element numbers may be unrelated to the order of elements in the knowledge tree)
  5. On each page, locate all text components and use Ctrl+click to open the translation dialog box for each. Only plain text, RTF, and spell-pad components will react to Ctrl+click with opening the translation dialog box
  6. Type in the translation in the lower pane (the original stays unchanged in the upper pane). Note that the texts you have translated in earlier pages will already be translated
  7. See useful tips below for more information

Translation in text files (team translation)

To proceed with translation in text files do the following (recommended for team translation):

  1. Make sure the translation registry for your language has been created (i.e that you passed all steps from the paragraph devoted to creating the translation registry). You can see translation registry files at <SuperMemo folder>\systems\<your collection name>\translat\<translation language>.*
  2. Decide which branches of the knowledge tree in the Contents window should be translated by individual translators
  3. Create subset files for each branch. For this purpose do the following:
  4. Export individual branches as text files with File : Export : Translation:
    • choose Sorting : By occurrence
    • choose Output texts : Not translated
    • choose Output elements : Subset
    • use Browse to select the subset files created in the previous step
    • leave Do not output duplicated entries unchecked
    • leave Output context checked
  5. Let the translators replace ??? strings in exported text files with appropriate translations (do not change anything else in the file!)
  6. As soon as individual translated files are becoming available, import them with File : Import : Translation
  7. Note that the same strings translated differently by different authors will be merged. This is not an error-proof procedure and you will have to manually resolve the import conflicts. File : Import : Translation will generate a report with all merged entries listed. The fastest way to resolve merged strings is:
    • copy the original string from the import report file to the clipboard
    • using Search : Texts, paste the string in the search input box
    • correct the translation directly in the text registry as it appears on the screen
SuperMemo: Translation registry stores translation texts that correspond with the text registry in the currently selected translation language
SuperMemo: Translation registry stores translation texts that correspond with the text registry in the currently selected translation language

Useful tips

  1. In most elements, you can use PgDn and PgUp instead of Alt+PgUp and Alt+PgDn
  2. Do not change the original texts in text files, even if you find mistakes! Otherwise, your translation will not be importable to your mother collection
  3. You can easily review, search for and change translations by using Search : Other registries : <Language> translation. The same can be accomplished with Search : Texts with this difference that search and sorting will concern only the original texts
  4. The percent of the work done can be viewed in the caption of the translation registry (Search : Other registries : <Language> translation)
  5. When working in a team, try to minimize the differences in translating individual entries by frequently exporting and importing back partly translated files. This will also reduce the duplicated effort of translators working on different branches
  6. To see untranslated entries in the text registry (Search : Texts), you can choose Subset : Select untranslated on the registry menu. Untranslated members will be displayed as a registry subset