Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Updated URLs via script

...

  1. Open Sisulizer project file /src/MarineLMS - Sisulizer Translation.slp
  2. Project → Scan for Changes 
  3. Select All to view all text which can be translated.
  4. Ctrl + F5 to search for any term you need to translate
  5. Make any translation/changes you need (see Translate Using Translation Engine)
  6. Project → Build in Selected Language will generate updated/new translation resx files
  7. Save the Sisulizer project
  8. Open MarineLMS solution in Visual Studio
    1. Include newly created translation resx files (created by Sisulizer) to MarineLMS solution
      1. The easiest way to find any new resx files created by Sisulizer is to check Sourcetree for uncommitted changes/unstaged files
      2. In VS, right click resx file and select Include in Project (enable Show All Files in the Solution Explorer to find resx files which are not yet added to the solution)
    2. Update the newly added resx file's properties (2) to match the values of the default resx file
      1. Custom Tool: PublicResXFileCodeGenerator
      2. Custom Tool Namespace: [[namespace from corresponding default resx file]]
    3. Example: if you added the translation resx file AssessmentSummaryRx.en-US-Disney.resx, there is always a default resx file AssessmentSummaryRx.resx.
  9. Commit all resx files and the Sisulizer project files /src/MarineLMS - Sisulizer Translation.slp and /src/MarineLMS - Sisulizer Translation.sds (note: the sds file is updated once Sisulizer is closed)

...

Use DatePicker in cshtml

(Note: This information is obsolete when the DateInput component is used. Moving forward @Html.DateInput(...) should be used when a date picker is required in a view.)

The date picker classes data-date-format and data-date-language must exist and have the correct values.

...

Note: Sisulizer generates the translation resx files for any new default resx file. The translation resx files need to be added to the VS solution once (see Update Resx Files and/or Create Translations for Core).

Edit Existing Resx Name/Value

...

  1. Rename or move all resx files (default and translations) - if the default resx file was renamed, the translation resx files need to be renamed accordingly
  2. Rename or move default resx file only and delete all their corresponding translation resx files from the VS solution. Sisulizer will generate new translation resx files for the renamed/moved default resx file. However, follow the steps at Update Resx Files and/or Create Translations for Core to re-add the translation resx files to the VS solution again.

...

  • Make sure that the default resx file and their translation resx files have the same Custom Tool Namespace and Custom Tool = PublicResXFileCodeGenerator (the designer resx file must exist)

Translate Using Translation Engine

If resx files are moved around previously translations are removed. However, the previous translations are remembered by Sisulizer as Unused Items. They are a good source of translation for any new item.

To tap into the 'background' translation list use Project > Translate Using Translation Engine > Use "Embedded".

Image Added

Note: there is a notion of Translation Engine which supposed to be a translation list/dictionary. Any 'unused item' could be moved into that translation engine and even edited. I (Stefan) haven't had the time to investigate that. The goal would be to utilize that translation list for future translations.

Filter by label (Content by label)
showLabelsfalse
max5
spacesPS
showSpacefalse
sortmodified
reversetrue
typepage
cqllabel = "kb-how-to-article" and type = "page" and space = "PS"
labelskb-how-to-article

...