Translations

This forum is meant for questions and discussions about the X# language and tools
Serggio
Posts: 46
Joined: Sun May 14, 2017 5:03 pm
Location: Ukraine

Translations

Post by Serggio »

Russian
ic2
Posts: 1858
Joined: Sun Feb 28, 2016 11:30 pm
Location: Holland

Translations

Post by ic2 »

Hello Jura,
hsc wrote:Hi Dick
My Dutch.resx is in attachment
Yes, now it works, thanks!

A bit of a pitty that simply downloading a file takes so much time before it's correct :(

Dick
ic2
Posts: 1858
Joined: Sun Feb 28, 2016 11:30 pm
Location: Holland

Translations

Post by ic2 »

Next problem:

I've now read the Generic.resx and Dutch .resx files with Jurjen's program. The Dutch.resx file from Jurjen is 766 KB and the one I downloaded is 74 KB. In the small file I can see something like this:

<data name="__WCSUNKNOWNSTATUSMSG" xml:space="preserve">
<value>Onbekend Status melding</value>
</data>

but in the much large generic.resx I can't. A -in Dutch- missing translation like EDB_NOAREAS is stored in 2 different sections, see below.

Is it ok that we send a bunch of missing tags like this in a file and you apply it:

<data name="EDB_NOAREAS" xml:space="preserve">
<value>Geen beschikbare werkgebieden</value>
</data>

Second: this sample shows an other issue. I appreciate that e.g. "Justify" translates in Dutch to "Uitvullen" - I can imagine this means probably more than the English word to most Dutch users. But for the above it's the contrary: everyone using DBF knows what a workarea is and closest the Dutch translation will probably confuse most users.

I think we should not translate words like these, which are best known by their English wording?

Dick


<tr>
<td id="L192" class="blob-num js-line-number" data-line-number="192"></td>
<td id="LC192" class="blob-code blob-code-inner js-file-line"> <<span class="pl-ent">data</span> <span class="pl-e">name</span>=<span class="pl-s"><span class="pl-pds">"</span>EDB_NOAREAS<span class="pl-pds">"</span></span> <span class="pl-e">xml</span><span class="pl-e">:</span><span class="pl-e">space</span>=<span class="pl-s"><span class="pl-pds">"</span>preserve<span class="pl-pds">"</span></span>></td>
</tr>
<tr>
<td id="L192" class="blob-num js-line-number" data-line-number="192"></td>
<td id="LC192" class="blob-code blob-code-inner js-file-line"> <<span class="pl-ent">data</span> <span class="pl-e">name</span>=<span class="pl-s"><span class="pl-pds">"</span>EDB_NOAREAS<span class="pl-pds">"</span></span> <span class="pl-e">xml</span><span class="pl-e">:</span><span class="pl-e">space</span>=<span class="pl-s"><span class="pl-pds">"</span>preserve<span class="pl-pds">"</span></span>></td>
</tr>
FFF
Posts: 1580
Joined: Fri Sep 25, 2015 4:52 pm
Location: Germany

Translations

Post by FFF »

hsc wrote:HI
I corrected the text in Visual Studio - XML editor. The table displayed by my app is used to look up the wrong text. In the XML editor you can find it according to the column "LCIDNAT".
Ok, yesterday i run through the files and made a list of errors, containing LCIDNAT and the textvalue.
Just now wanted to edit the resx, only to find, that neither VS nor XMLNotepad shows the values of ID column.
For now i see as working path only looking in Jurai's tool for the LC, Re-TYPING (as one can't mark and copy) the resource (like EDB_NOINITFUNC) into the search dlg of VS or XMNP to locate the "real" line.

Pls tell me that i'm dumb and try it wrongly - working this way is a nightmare :evil:
Regards
Karl
(on Win8.1/64, Xide32 2.20, X#2.20.0.3)
User avatar
wriedmann
Posts: 3755
Joined: Mon Nov 02, 2015 5:07 pm
Location: Italy

Translations

Post by wriedmann »

Hi Karl,

I'm using a plain text editor - UltraEdit in my case. But either Notepad++ oder PSPad should also work and be able to show the XML syntax and keep the UTF-8 character set.

Wolfgang
Wolfgang Riedmann
Meran, South Tyrol, Italy
wolfgang@riedmann.it
https://www.riedmann.it - https://docs.xsharp.it
FFF
Posts: 1580
Joined: Fri Sep 25, 2015 4:52 pm
Location: Germany

Translations

Post by FFF »

Wolfgang,
the problem is not the editor...
I have no idea from where Jurai took the LCIDNAT values. They are obviously NOT in plain digits in the file. But he writes, he uses them to locate the relevant line.

How do you find e.g. the line, where LCIDNAT = 211?
Regards
Karl
(on Win8.1/64, Xide32 2.20, X#2.20.0.3)
User avatar
wriedmann
Posts: 3755
Joined: Mon Nov 02, 2015 5:07 pm
Location: Italy

Translations

Post by wriedmann »

Hi Karl,

do you need that?
I would simply forget it and use the XML file.
Somewhere in the project the mapping table will be, but I don't think we need it for the translations.

Wolfgang
Wolfgang Riedmann
Meran, South Tyrol, Italy
wolfgang@riedmann.it
https://www.riedmann.it - https://docs.xsharp.it
User avatar
wriedmann
Posts: 3755
Joined: Mon Nov 02, 2015 5:07 pm
Location: Italy

Translations

Post by wriedmann »

Hi Karl,

please look here:
https://docs.microsoft.com/en-us/opensp ... 532684c37f

It is the language ID, and we don't need that....

Wolfgang
Wolfgang Riedmann
Meran, South Tyrol, Italy
wolfgang@riedmann.it
https://www.riedmann.it - https://docs.xsharp.it
Juraj
Posts: 161
Joined: Mon Jan 09, 2017 7:00 am

Translations

Post by Juraj »

Hi Karl,

The first time I downloaded files directly from the line that Robert said, with "save link as ..". These files also included ID="LCxxx". A few days later I downloaded the entire directory from Git and the files had a different format without "ID=.....". I modified my program to this format that didn't contain "LCxxx"
I don't know how this is possible.
Connecting a modified program.

Juraj
Attachments
Mytranslate.zip
(7.24 KiB) Downloaded 99 times
FFF
Posts: 1580
Joined: Fri Sep 25, 2015 4:52 pm
Location: Germany

Translations

Post by FFF »

Wolfgang,
what about an answer?
If you don't think, i should look for "211", i reformulate:
How do you find the line in the xml which contains as data "Vermisse Init-Funktion des RDD"
I'm not keen to TYPE this (wrong) translation into the search dialog and repeat this for every line which is to correct...
Regards
Karl
(on Win8.1/64, Xide32 2.20, X#2.20.0.3)
Post Reply