Autor Beitrag
Henry
ontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic starofftopic star
Beiträge: 619

WinXP Prof. SP3
D6 Prof.
BeitragVerfasst: So 30.09.07 13:13 
Hallo,

ich habe in einem meiner Programme verschiedene Sprachen über eine Resource-Datei eingebunden.
Nun würde ich gern wissen, ob es irgendwie möglich ist eine erstellte Resource-Datei in eine TXT oder besser CSV Datei zu exportieren (mit den ID's) und später wieder zu importieren.
Das hat folgende Gründe:

  1. Die Bearbeitung einer CSV-Datei wäre (z.B. mit Excel) wesendlich Komfortabler als im Resource Workshop
  2. Es wäre möglich eine Datei zum übersetzen weiterzu geben ohne das der Übersetzer spezielle Programme braucht

Wäre schön wenn mir da jemand weiterhelfen könnte.
Wenn das nicht geht, dann bräuchte ich eine Möglichkeit die Sprachen mit Sprachdateien (in einem eigenen Fprmat) einzubinden.
Das wäre dann aber wohl eine Frage für eine andere Sparte ;)

Danke schon einal für die Hilfe

_________________
mfg Henry
BenBE
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 8721
Erhaltene Danke: 191

Win95, Win98SE, Win2K, WinXP
D1S, D3S, D4S, D5E, D6E, D7E, D9PE, D10E, D12P, DXEP, L0.9\FPC2.0
BeitragVerfasst: So 30.09.07 13:24 
Die RC-Files (Resourcen-Skripte) die der BRCC32 zum Compilieren bekommt sind im Klartext geschrieben. Diese weiterzugeben sollte nicht allzu problematisch sein.

_________________
Anyone who is capable of being elected president should on no account be allowed to do the job.
Ich code EdgeMonkey - In dubio pro Setting.
Henry Threadstarter
ontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic starofftopic star
Beiträge: 619

WinXP Prof. SP3
D6 Prof.
BeitragVerfasst: So 30.09.07 13:40 
Aha, Danke.

Ich habe meine Dateien als *.RES gespeichert und da kommt nur ein Durcheinander heraus wenn man es im Editor lädt.
Dann habe ich noch ein kleines Problem, was sich bestimmt ähnlich einfach erklären lässt.

Nachdem ich meine Resource gespeichert habe und wieder lade, ist meine Stringtable in mehrere unterteilt.
Woher kommt das?
Ich habe mit der ID 1000 angefangen und in einem Rutsch alle IDs erstellt, ohne eine neue Stringtable anzulegen.

_________________
mfg Henry
BenBE
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 8721
Erhaltene Danke: 191

Win95, Win98SE, Win2K, WinXP
D1S, D3S, D4S, D5E, D6E, D7E, D9PE, D10E, D12P, DXEP, L0.9\FPC2.0
BeitragVerfasst: So 30.09.07 13:45 
IIRC ist die Größe pro String-Tabelle im RES-Format begrenzt. Daher hat der Editor diese automatisch geteilt. Solang die IDs erhalten bleiben, ist das aber kein Problem.

_________________
Anyone who is capable of being elected president should on no account be allowed to do the job.
Ich code EdgeMonkey - In dubio pro Setting.
Henry Threadstarter
ontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic starofftopic star
Beiträge: 619

WinXP Prof. SP3
D6 Prof.
BeitragVerfasst: So 30.09.07 13:52 
Alles klar,

ich danke Dir für die Hilfe.

Wobei komischer Weise die erste Tabelle wesendlich weniger Einträge enthält, aber egal das Problem ist ja gelöst ;)
Werde dann in Zukunft die resourcen zum Bearbeiten im Format *.RC abspeichern, da bleibt die Tabelle als eine erhalten.
Und zum einbinden in meinem Programm speichere ich sie dann als *.RES ab.

_________________
mfg Henry