I found my problem, the ClassLoader.cs wasn't done proprely that's why I wasn't able to see the custom machine services.
Now I need to understand two points about the customs codes in the tutorial.
the first points is in code of the methods
Detect it's showing
return "en-US";
but how we can make it default detect because the source language can be germany or italian, etc...
The second points is when you translate from a language, from what I understand the system take all strings to be translated and put it in a XLIFF format. So in
translate method, text parameter is what exactly in XLIFF format. Like I saw in the follow example:
<xliff version="1.2">
<file original="cms.document;25" source-language="en-US" target-language="fr-FR" datatype="htmlbody">
<body>
...
<trans-unit id="newstitle">
<source><![CDATA[Apple iPad Mini In Stock]]></source>
</trans-unit>
<trans-unit id="newssummary">
<source><![CDATA[Today, we have good news for all fans of the awesome Apple iPad. We are glad to announce that its new version, Apple iPad Mini, is available in our web shop. Furthermore, we keep our reasonable pricing policy, providing the lowest price currently available on the Web.]]></source>
</trans-unit>
...
</body>
</file>
</xliff>
It saying inside
<trans-unit>, but is it the whole code or just inside the source?
Maybe it's an easy question but I still don't get those two parts.
My best regards
Rafik