Home   Help Search Login Register  

Author Topic: Stringtable CSV/XML questions  (Read 3646 times)

0 Members and 1 Guest are viewing this topic.

Offline White Angel

  • Members
  • *
  • White Angel
    • Armee Francaise Misison Developpement
Stringtable CSV/XML questions
« on: 08 Aug 2009, 19:48:07 »
Hi all,

I use the syntax @STRM_marker1 in the text field of my markers (in editor misison) to have a translation of the name of the marker.

So, in the stringtable.csv file I found the line :

STRM_marker1,"English text","Czech text","German text","Polish","Russian","Spanish","French"

This translation work very well in ArmA 1 but not in ArmA2  :confused:

Can you help me ?  ???
« Last Edit: 13 Sep 2009, 22:56:09 by White Angel »
clic --> AFMoD (Armée Française MissiOns Développement)
clic --> R3F

"Don't tell people how to do things. Tell them what to do and let them surprise you with their results."   George S. Pat

Offline i0n0s

  • Moderator
  • *****
Re: Stringtable and Marker name using @
« Reply #1 on: 08 Aug 2009, 20:13:53 »
Try to use $STRM_marker1.
If this doesn't work use localize and set the name in the init.

Offline White Angel

  • Members
  • *
  • White Angel
    • Armee Francaise Misison Developpement
Re: Stringtable and Marker name using @
« Reply #2 on: 08 Aug 2009, 21:34:26 »
I don't understand exactly what you mean (Markers don't have ini field  ???) but i found a solution :

With the file stringtable.xml (and not *.csv) it works fine  :)
But i have another problem : i need to translate all the stringtable.csv in a *.xml file. And the program CSVtoXML doesn't run on my operating system (XP64 : kernel error)

Is there someone that could translate my stringtable.csv in a brand new stringtable.xml using the CSVtoXML prg ?  ::)
clic --> AFMoD (Armée Française MissiOns Développement)
clic --> R3F

"Don't tell people how to do things. Tell them what to do and let them surprise you with their results."   George S. Pat

Offline i0n0s

  • Moderator
  • *****
Re: Stringtable and Marker name using @
« Reply #3 on: 08 Aug 2009, 21:58:38 »
Seems like the program dislikes the csv. Seems like I missed same cases.
Can you give me your OFPEC-tag and the project name so I can translate it?
And can you give me additional informations about the "kernel error"?
My error is:
Exception EStringListError...

Offline White Angel

  • Members
  • *
  • White Angel
    • Armee Francaise Misison Developpement
Re: Stringtable and Marker name using @
« Reply #4 on: 08 Aug 2009, 22:16:26 »
Tank you iOnOs.

All the informations asked are in the file attached.  ;)

Edit :
I finally found the problem. It was the russian language with special caracters that crash the program CSVtoXML.
I import the CSV with OpenOffice Calc (= MSExcel) and save to Text CSV. Then the program convert the CSV to XML.  :D
Now i must add all the Russian Traduction manually in the XML file  :confused:
« Last Edit: 09 Aug 2009, 20:29:04 by White Angel »
clic --> AFMoD (Armée Française MissiOns Développement)
clic --> R3F

"Don't tell people how to do things. Tell them what to do and let them surprise you with their results."   George S. Pat

Offline i0n0s

  • Moderator
  • *****
Re: Stringtable and Marker name using @
« Reply #5 on: 09 Aug 2009, 21:34:16 »
Hi, sorry. I will not be able to do this the next days.
I need to rewrite my program since I require a special "formatted" csv:
The file has to either ASCI or UTF-8 without BOM. Your file doesn't match that format, but it can easily get converted.
Then your file contains lines like this:
,,,,,,,
My program can't handle them currently. And: Some lines contains not the same amount of fields as others. This causes a crash on my side.
A rework will be easy, but I'm not sure when I can found some spare time. But should be done this week.

Offline White Angel

  • Members
  • *
  • White Angel
    • Armee Francaise Misison Developpement
Re: Stringtable and Marker name using @
« Reply #6 on: 09 Aug 2009, 23:08:36 »
No problems.
I have traduct the file by my own with some macros ;)
clic --> AFMoD (Armée Française MissiOns Développement)
clic --> R3F

"Don't tell people how to do things. Tell them what to do and let them surprise you with their results."   George S. Pat

Offline i0n0s

  • Moderator
  • *****
Re: Stringtable and Marker name using @
« Reply #7 on: 17 Aug 2009, 01:05:57 »
Finally found some time to rework it.
I've attached the resulting xml-file.
I need to check if the special characters like è are encoded correctly.

If it is right, then I can release the new version.

Offline White Angel

  • Members
  • *
  • White Angel
    • Armee Francaise Misison Developpement
Re: Stringtable and Marker name using @
« Reply #8 on: 13 Sep 2009, 22:55:04 »
hi all,

I have another question concerning the stringtable.xml  :D

with the old CSV file we could use the #include function on it like this :

old stringtable.csv file
Code: [Select]
LANGUAGE, English, French

//Include strings used by the R3F dialogue box
#include "R3F\stringtable.csv"

It was very usefull to structure all kind of specific traductions in the mission directory ; like dialogue box ...

How can i do this with the .XML file ?
clic --> AFMoD (Armée Française MissiOns Développement)
clic --> R3F

"Don't tell people how to do things. Tell them what to do and let them surprise you with their results."   George S. Pat