Merlin – Localize a Merlin report template

You are using Merlin in another language than the available 3; English, French or German? You want to localize an existing Merlin report so it shows the entries in your own language? Great, this is the place to find out how to do so.

Localizing report options:

  • First you create your own report template based on the report template Merlin already offers (as explained here)
  • Now you check the language your Merlin runs. Is it English, German or French?
  • Open the according language folder as found under /Contents/Resources (that means, if your Finder is for example Dutch but your Merlin runs in English you open the English.lproj, if Merlin runs in French, you open French.lproj)
  • Open the Localizable.strings in a text editor (BBEdit, TextWrangler, etc…) 
  • Check the strings shown in the options…
  • To see them localized in your language enter the strings in pairs; first the english string in double quotes and then your string also in double quotes. Each line has to end by ; So for example:
    "MyResource" = "Mijn resource";
    "Duration" = "Duur";
    "Project stamp" = "Project stempel";
  • Save your changes in the Localizable.strings
  • Restart Merlin and call the report. See the options are now localized. 

Localizing static texts in the outputted reports:

Is your report based on XSLT or python/wbl pairs?

For XSTL reports:

  • Proceed as described above and open the appropriate languages lproj folder
  • Open the Report.xslt (No Report.xslt file in your lproj folder? Check next post…)
  • Edit the static strings directly in the Report.xslt file 
  • To see your changes, save the files and refresh your report 

For python / wbl reports:

  • Proceed as described above and open the Localizable.strings in the appropriate languages folder
  • Open the wbl file in the report located under /Contents/Resources/
  • Search for localize=YES (all strings having this option, can be localized)
  • Enter in the Localizable.strings string pairs for the texts you see in the wbl file 
  • Save your Localizable.strings and refresh your report.

Adding a report option

See one of next blog posts

 

24 thoughts on “Merlin – Localize a Merlin report template

  1. Pingback: Merlin – creating your own report templates » MacPM

  2. Pingback: Merlin – Further tips for localizing an XSLT report template » MacPM

  3. Pingback: Merlin – Adding an option in a report template » MacPM

  4. Pingback: Merlin – adding a property into an existing report » MacPM

  5. Pingback: Merlin – Adding a property into an existing python template » MacPM

  6. Pingback: Merlin – Adding an option in a python/wbl report template » MacPM

  7. Pingback: Merlin – do a bit of magic in reports » MacPM

  8. Pingback: Merlin – do a bit of magic in reports – part II » MacPM

  9. Pingback: Merlin – do a bit of magic in reports – part III » MacPM

  10. Pingback: Merlin – Do a bit of magic in reports – Part VII » MacPM

  11. Pingback: Merlin – Do a bit of magic in reports – Part VIII » MacPM

  12. Pingback: Merlin – Do a bit of magic in reports – Part IX » MacPM

  13. Pingback: Merlin – Do a bit of magic in reports – PART XIIX » MacPM

  14. Pingback: Merlin – Do a bit of magic in reports – Part V » MacPM

  15. Pingback: Merlin – Do a bit of magic in reports – PART XXII » MacPM

  16. Pingback: Merlin – Do a bit of magic in Merlin reports – PART XXI » MacPM

  17. Pingback: Merlin – Do a bit of magic in Merlin reports – PART XXII » MacPM

  18. Pingback: Merlin – Do a bit of magic in Merlin reports – PART XXIII » MacPM

  19. Pingback: Merlin - Do a little bit of magic in Merlin reports - part XXV » MacPM

  20. Pingback: Merlin – Do a little bit of magic in Merlin reports – part XXV » MacPM

  21. Pingback: Merlin – Do a bit of magic in Merlin reports – PART XXII | MacPM

  22. Pingback: Merlin – Adding a property into an existing python template | MacPM

  23. Pingback: Merlin – Adding an option in a report template | MacPM

  24. Pingback: Merlin – Further tips for localizing an XSLT report template | MacPM

Comments are closed.