|
Infralution Support Support groups for Infralution products
|
View previous topic :: View next topic |
Author |
Message |
MattHalstead Guest
|
Posted: Tue May 20, 2008 5:41 am Post subject: Problems importing my own tmx files. |
|
|
Hi
I recently happened upon this url at The Code Project, providing some useful code for easily identifying untranslated strings in a .Net app: http://www.codeproject.com/KB/cs/ploc.aspx
Ive implented some code that can add one of these translations to a tmx file. Ive (arbitrarily) added the russian language in Globalizer, exported all values to tmx, added garbled translations in russian to the tmx files in my own app, and then imported the result back into Globalizer. No errors occur on import, but no russian translations appear either.
Am I simply using the wrong language code, "ru"? If so, would you suggest doing something else, maybe with the invariant language? If not, is there a problem with the way I have added an extra "tuv" element to the "tu" element? As far as I can see in the tmx spec, its ok.
Heres a sample of the structure of the imported file:
Code: |
<?xml version="1.0" encoding="utf-16"?>
<tmx version="1.4">
<header creationtool="Globalizer.NET" creationtoolversion="1.4.3.0" o-tmf="GlobalizerWorkspace" datatype="plaintext" segtype="paragraph" adminlang="en-US" srclang="en" creationdate="20080520T015806Z" />
<body>
<tu tuid="MineSched.Logic\Resources#StockpileStartBalanceDateError_Format">
<tuv xml:lang="en">
<seg>Stockpile {0}: Dates or events are not supported with stockpile starting balances.</seg>
</tuv>
<tuv xml:lang="ru">
<seg>{Stóóçkpííléé {0} : Dââtes or eveñts are ñot süüpported with stoçkpile startiñg balañçes.}</seg>
</tuv>
</tu>
....
|
Thanks for you help. |
|
Back to top |
|
|
Infralution
Joined: 28 Feb 2005 Posts: 5027
|
Posted: Sat Oct 04, 2008 4:20 am Post subject: |
|
|
The Globalizer.NET import mechanism will not create new translation items in a workspace - but it does allow you to import translations for existing items.
So the invariant item (English) would need to exist already in the Workspace ie have been created as a result of a scan. _________________ Infralution Support |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|