SHFB icon indicating copy to clipboard operation
SHFB copied to clipboard

Issues with "Help file language"

Open Nicolas4tin opened this issue 10 years ago • 4 comments

Hello,

I use SandcastleBuilderGUI 2015.10.10.0.

I tried to change the "Help file language" and build it.

I first tried in French and German and it failed to build the help file. See the enclosed logs files.

LastBuild - French.log.txt LastBuild - German.log.txt

I then tried in Italian. I tought that the labels in the outputed CHM would have been displayed in Italian, but it was in English:


constructors missing summary documentation properties syntax


However it seems to be OK in Spanish:


constructores falta documentacion summary para metodos propiedades sintaxis


What is wrong?

Best regards,

Nicolas

Nicolas4tin avatar May 03 '16 20:05 Nicolas4tin

Languages for the resource elements are only provided for some languages, not all. See the Localizing Language Resource Files help topic for details.

EWSoftware avatar May 03 '16 21:05 EWSoftware

Hello Eric,

Thank you for your answer.

I saw this page about "Localizing Languages Ressources Files".

As I stated, I tried to build the help file in French and German. I saw that there is in the following folders the ressource files:

C:\Program Files (x86)\EWSoftware\Sandcastle Help File Builder\PresentationStyles\VS2013\Content\fr-FR C:\Program Files (x86)\EWSoftware\Sandcastle Help File Builder\PresentationStyles\VS2013\Content\de-DE

However an error occured during the build, as you can see in the logs of my previous comment. Have you any idea what is wrong?

It should work since it's OK in Spanish. There is a "es-ES" folder with the ressource files.

I tought there was an Italian folder, but there isn't. So it's OK if nothing translates. It's my mistake. Sorry.

Thanks again for helping.

Best regards,

Nicolas

Nicolas4tin avatar May 04 '16 13:05 Nicolas4tin

The French build is using the 2010 style which doesn't have French translations. However, the error there is related to an invalid XML character in the .NET Framework XML comments which do have French versions available. The file that's causing the issue is C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework.NETFramework\v4.0\fr\System.Data.Services.Client.xml. Open that file, and fix the invalid character. If the error message is accurate, it's on line 9, position 17. This is a known issue but it's up to Microsoft to fix it. Until that happens, you need to manually fix any such errors in the framework XML comments files.

For the German build, the encoding on the SHFB files is incorrect in the version you are using. Upgrade to the latest release to fix that problem.

EWSoftware avatar May 04 '16 15:05 EWSoftware

Hello Eric,

Thank you very much.

I was able to build with "French (France)" as language and "VS2013" as the presentation style.

There was many hexadecimal characters in the System.Data.Services.Client.xml file. I opened it with ANSI encoding, than I saved with UTF-8 encoding (as the other files in the directory). It fixes my issue.

I will upgrade to the latest release if I want the German build.

Thank you for helping me.

Have a nice day!

Nicolas4tin avatar May 04 '16 18:05 Nicolas4tin