Welcome, Guest Wednesday 16th April 2014, 23:38:05
   Home   Help Search Login Register  

OFPEC Forum

Author Topic: Stringtable CSV/XML questions  (Read 523 times)
0 Members and 1 Guest are viewing this topic.
White Angel
*
Offline Offline

White Angel


WWW
« on: 08 Aug 2009, 18: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 ?  Huh?
« Last Edit: 13 Sep 2009, 21:56:09 by White Angel » Logged

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
i0n0s
Moderator
*****
Offline Offline



« Reply #1 on: 08 Aug 2009, 19:13:53 »

Try to use $STRM_marker1.
If this doesn't work use localize and set the name in the init.
Logged
White Angel
*
Offline Offline

White Angel


WWW
« Reply #2 on: 08 Aug 2009, 20:34:26 »

I don't understand exactly what you mean (Markers don't have ini field  Huh?) but i found a solution :

With the file stringtable.xml (and not *.csv) it works fine  Smiley
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 ?  Roll Eyes

* _stringtable.zip (4.12 KB - downloaded 40 times.)
Logged

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
i0n0s
Moderator
*****
Offline Offline



« Reply #3 on: 08 Aug 2009, 20: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...
Logged
White Angel
*
Offline Offline

White Angel


WWW
« Reply #4 on: 08 Aug 2009, 21:16:26 »

Tank you iOnOs.

All the informations asked are in the file attached.  Wink

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.  Cheesy
Now i must add all the Russian Traduction manually in the XML file  Confused

* error.zip (125.33 KB - downloaded 31 times.)
« Last Edit: 09 Aug 2009, 19:29:04 by White Angel » Logged

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
i0n0s
Moderator
*****
Offline Offline



« Reply #5 on: 09 Aug 2009, 20: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.
Logged
White Angel
*
Offline Offline

White Angel


WWW
« Reply #6 on: 09 Aug 2009, 22:08:36 »

No problems.
I have traduct the file by my own with some macros Wink
Logged

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
i0n0s
Moderator
*****
Offline Offline



« Reply #7 on: 17 Aug 2009, 00: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.

* stringtable.zip (4.73 KB - downloaded 38 times.)
Logged
White Angel
*
Offline Offline

White Angel


WWW
« Reply #8 on: 13 Sep 2009, 21:55:04 »

hi all,

I have another question concerning the stringtable.xml  Cheesy

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

old stringtable.csv file
Code:
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 ?
Logged

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
Pages: [1]   Go Up
  Send this topicPrint  
 
Jump to: