View Full Version : C2C Spanish Translation
sendate May 22, 2012, 03:16 AM Hello again. I have been translating the folder assets / XML / Text. for now I've noticed that most of the files come with their corresponding translations, but using the Spanish language, the game features all kinds of errors, such as complete loss of the interface.
to start the game an error in the section on BUG mod.
I also noticed that the TEXT folder, is not only found in the files for translation.
another problem loading the game in Spanish, is the options screen from the main menu, which disappear leaving only the other languages in English as an option, but can not change the above English.
you could fix these problems?
I have translated so far:
World_Trade_Center_CIV4GameText
007_CIV4GameText
A_New_Dawn_Diplomacy_Settings_Civ4GameText
A_New_Dawn_Great_People (names do not need translation)
Abandon_City_CIV4GameText (I this was in Spanish)
Advanced Combat Odds Options (I this was in Spanish)
Scoreboard Advanced Options (I this was in Spanish)
AdvancedCombatOdds_CIV4GameText (I this was in Spanish)
Adventure_CIV4GameText
Afforess_GameTexts
Agent_CIV4GameText
AIAutoPlay_CIV4GameText (I this was in Spanish)
Animals_CIV4GameText
Animals_Pedia_CIV4GameText
Animals_Strategy_CIV4GameText
C2C_New_Bonus_Civ4GameText
Apadana_Palace_CIV4GameText
Apothecaries_CIV4GameText
Artic_CIV4GameText
Artist_CIV4GameText
Australia_CIV4GameText
Autolog Options
Autolog_CIV4GameText (I this was in Spanish)
Options AutoSave
Balanced_CIV4GameText
BarbarianCiv_CIV4GameText (I this was in Spanish)
Beautification_CIV4GameText
Espionage Better Options (I this was in Spanish)
Bolshoi_CIV4GameText
CIV4GameText_AdjectivesFix (I this was in Spanish)
CIV4GameText_BetterBTSAI (I this was in Spanish)
Options Advisors BUG (I this was in Spanish)
BUG City Screen Options (I this was in Spanish)
BUG Core Options (I this was in Spanish)
and all BUG files in text folder.
Dancing Hoskuld May 22, 2012, 04:57 AM I also noticed that the TEXT folder, is not only found in the files for translation.
They are in each mod as well as in the text folder. This is normal for modular building as it keeps the bits all together.
another problem loading the game in Spanish, is the options screen from the main menu, which disappear leaving only the other languages in English as an option, but can not change the above English.
I am fairly sure this is because some of the text entries only have an English tag rather than repeating the English text in tags for the other languages. I have been trying to fix this as I find them.
IE
<TEXT>
<Tag>TXT_KEY_BONUS_CO2_ICE</Tag>
<English>Carbon Dioxide Ice</English>
<French>Carbon Dioxide Ice</French>
<German>Carbon Dioxide Ice</German>
<Italian>Carbon Dioxide Ice</Italian>
<Spanish>Carbon Dioxide Ice</Spanish>
</TEXT>
is good
<TEXT>
<Tag>TXT_KEY_BONUS_CO2_ICE</Tag>
<English>Carbon Dioxide Ice</English>
</TEXT>
is bad and causes lack of interface if played in another language. If fact not having a text entry is better than this as well.
sendate May 22, 2012, 08:08 AM I've been looking at various forums, and found a forum in Spanish which was making a translation of the RoM, it appears that the problem goes beyond language tags.
apparently, the problem could be in the submods and that they would not run properly.
the solution would be to change all tags <english> ... </ english> adding Spanish in them. but this would erase the English. although it is not an option that I like, prefer to do it correctly.
This may be caused to some other non-text file if not otherwise?
http://todocivilization.com/viewtopic.php?f=9&t=438&p=40066#p40066
ese es el otro foro, intentare poner en comun ideas, seguro que entre los unos y los otros conseguiremos esto, y asi podremos disfrutar esta obra de arte. un saludo.
MrAzure May 22, 2012, 08:12 AM Ispeak fluent spanish , writing is above average, (latino) so for tricky words or passages let me know.
Also take a look at this
http://forums.civfanatics.com/showthread.php?t=360885
JTranslator - program for translating civ4 text files
The purpose of this program is to ease translating of civ4 and its mods to foreign languages.
What it can do:
- load text xmls
- add new language entries
- show the text that should be translated in two languages within one window - one of them is editable
- it follows kabcsis ideas that he shared with me some time ago
- it's able to work with different encoding standards; unfortunately civ4 doesn't seem to be, instead it supports only ISO-8859-1; therefore some characters need to be replaced and some languages (that use an entirely different alphabet) remain unsupported; replacing unsupported characters needs to be done by hand, but this would solve if civ4 can be forced to use UTF-8 for instance - this encoding standard is already supported by my program, so this issue is actually a problem of civ4 itself; see this page for supported characters: http://en.wikipedia.org/wiki/ISO/IEC_8859-1 (the german version [Deutsch] of that page shows a better overview IMO)
- in theory it should run on Linux and Mac systems, too, as it is written in Java, but this is untested yet; if it does, it might be used as a converter to make text files Mac compatible
changes with v2.0:
- can compare the file with another one and then add / remove missing / additional entries
- can adjust the programs font size
- can add new entries (right click at the root element of the xml, then choose add)
- file filter to choose from xmls only
changes with v2.1:
- will add all known languages to new entries using 'No Text' as text
- when adding a new language, the program will try to get a text from already exisitng languages, normally english
Prerequisites
Instal the Java Runtime Environment (JRE), you can download it from here: http://www.oracle.com/technetwork/ja...ads/index.html. After that, you should be able to use the JTranslator.jar like an exe-file.
too much time now.
1, doubleclick file to use it
2. go to File then Open and choose File
3. When it says choose Encoding just click OK
3. In edit Entries choose spanish...
your next step is to translate XML files in
Assets\XML
after your done
Assets\Modules
sendate May 22, 2012, 10:13 AM awesome, tonight proves to handle a minimum. thank you very much for the input, I could not imagine their existence.;)
another question. I translate only the text files ... the rest I leave as-is, right?
for example: A_New_Dawn_GlobalDefines---> no edit
BUG Core Options-------------> edit
MrAzure May 22, 2012, 10:26 AM awesome, tonight proves to handle a minimum. thank you very much for the input, I could not imagine their existence.;)
another question. I translate only the text files ... the rest I leave as-is, right?
for example: A_New_Dawn_GlobalDefines---> no edit
BUG Core Options-------------> edit
It depends ill take a look tonight...start with the ones that end in Infos.
Dancing Hoskuld May 22, 2012, 04:36 PM I've been looking at various forums, and found a forum in Spanish which was making a translation of the RoM, it appears that the problem goes beyond language tags.
apparently, the problem could be in the submods and that they would not run properly.
the solution would be to change all tags <english> ... </ english> adding Spanish in them. but this would erase the English. although it is not an option that I like, prefer to do it correctly.
This may be caused to some other non-text file if not otherwise?
http://todocivilization.com/viewtopic.php?f=9&t=438&p=40066#p40066
ese es el otro foro, intentare poner en comun ideas, seguro que entre los unos y los otros conseguiremos esto, y asi podremos disfrutar esta obra de arte. un saludo.
Someone was going to do the German translations for C2C and had the missing UI text when he played in German. When he fixed all the gametext files to have tags for all six languages the problem went away, he said.
awesome, tonight proves to handle a minimum. thank you very much for the input, I could not imagine their existence.;)
another question. I translate only the text files ... the rest I leave as-is, right?
for example: A_New_Dawn_GlobalDefines---> no edit
BUG Core Options-------------> edit
To start with you should only translate those with GameText in their names. Not all mod have been changed to use game text but most have. The system takes the text from the code/XML and if it is a "string name" it gets the correct language text from there.
sendate May 23, 2012, 04:21 AM [QUOTE=Dancing Hoskuld;11517149]Someone was going to do the German translations for C2C and had the missing UI text when he played in German. When he fixed all the gametext files to have tags for all six languages the problem went away, he said.
then do you mean that six exact language earnings are needed, or six like minimum so that the texts work?
I was looking and in someone there are only 5 languages, but in others are more than 6, to try I will add brought in to the files that only have 5 languages, will use the folder of custom_civilizations in the dancing hoskuld folder, since in addition to having 5 languages also I have controlled that has no text in the civilopedia as soon as the game was executed in Spanish.
first I will add the Russian language, to complete 6 languages, will edit all the gully files and will try, if it does not work will try to add it in all the civilizations inside this folder.
if it was better to start by another simpler file in the XML/Text folder would prove it earlier, but I have not even met on appropriate any.
then I comment
---------------------------
Traducción por PROMT™
http://www.promt.es
Dancing Hoskuld May 23, 2012, 04:33 AM then do you mean that six exact language earnings are needed, or six like minimum so that the texts work?
I was looking and in someone there are only 5 languages, but in others are more than 6, to try I will add brought in to the files that only have 5 languages, will use the folder of custom_civilizations in the dancing hoskuld folder, since in addition to having 5 languages also I have controlled that has no text in the civilopedia as soon as the game was executed in Spanish.
first I will add the Russian language, to complete 6 languages, will edit all the gully files and will try, if it does not work will try to add it in all the civilizations inside this folder.
if it was better to start by another simpler file in the XML/Text folder would prove it earlier, but I have not even met on appropriate any.
then I comment
---------------------------
Traducción por PROMT™
http://www.promt.es
Sorry it is 5 languages minimum.
sendate May 23, 2012, 04:48 AM Sorry it is 5 languages minimum.
if there are 5, did may a file to which he was lacking an entry, to cause a species of "effect in chain" to other objects inside the same folder?
sendate May 26, 2012, 10:38 AM whatever I do, is disappearing all the interface of the game, get the following error.
BugPath: failed to parse INI file for mod NoCustomAssets
Dancing Hoskuld May 26, 2012, 02:36 PM whatever I do, is disappearing all the interface of the game, get the following error.
BugPath: failed to parse INI file for mod NoCustomAssets
Do you have logging on? If you do can you post your PythonErr.log (not PythonErr2.log) it should be in a logs folder near your saves folder.) See here (http://forums.civfanatics.com/showpost.php?p=11309063&postcount=2) on what to do to turn logging on.
sendate May 26, 2012, 04:34 PM Traceback (most recent call last):
File "CvScreensInterface", line 424, in pediaShow
File "SevoPediaMain", line 230, in pediaShow
File "TraitUtil", line 41, in init
File "TraitUtil", line 52, in addTrait
OverflowError: D arg not in range(0x10000) (narrow Python build)
ERR: Python function pediaShow failed, module CvScreensInterface
Traceback (most recent call last):
File "BugPath", line 460, in initNoCustomAssetsSetting
File "configobj", line 1063, in __init__
File "configobj", line 1154, in _handle_bom
File "configobj", line 1213, in _decode
File "e:/main/civilization4/warlords/assets/python/system\encodings\utf_8.py", line 16, in decode
UnicodeDecodeError: 'utf8' codec can't decode bytes in position 696-699: invalid data
Traceback (most recent call last):
File "BugUtil", line 692, in <lambda>
File "BugEventManager", line 576, in preGameStart
File "BugEventManager", line 340, in fireEvent
File "BugEventManager", line 350, in _dispatchEvent
File "BugEventManager", line 410, in _handleInitBugEvent
File "BugInit", line 43, in init
File "BugInit", line 64, in loadMod
File "BugConfig", line 88, in parse
File "BugUtil", line 249, in trace
File "BugUtil", line 295, in logToScreen
UnicodeDecodeError: 'ascii' codec can't decode byte 0xf1 in position 134: ordinal not in range(128)
ERR: Python function preGameStart failed, module CvAppInterface
there is, I hope to be helpful, thanks
Dancing Hoskuld May 27, 2012, 12:22 AM Traceback (most recent call last):
File "CvScreensInterface", line 424, in pediaShow
File "SevoPediaMain", line 230, in pediaShow
File "TraitUtil", line 41, in init
File "TraitUtil", line 52, in addTrait
OverflowError: D arg not in range(0x10000) (narrow Python build)
ERR: Python function pediaShow failed, module CvScreensInterface
Traceback (most recent call last):
File "BugPath", line 460, in initNoCustomAssetsSetting
File "configobj", line 1063, in __init__
File "configobj", line 1154, in _handle_bom
File "configobj", line 1213, in _decode
File "e:/main/civilization4/warlords/assets/python/system\encodings\utf_8.py", line 16, in decode
UnicodeDecodeError: 'utf8' codec can't decode bytes in position 696-699: invalid data
Traceback (most recent call last):
File "BugUtil", line 692, in <lambda>
File "BugEventManager", line 576, in preGameStart
File "BugEventManager", line 340, in fireEvent
File "BugEventManager", line 350, in _dispatchEvent
File "BugEventManager", line 410, in _handleInitBugEvent
File "BugInit", line 43, in init
File "BugInit", line 64, in loadMod
File "BugConfig", line 88, in parse
File "BugUtil", line 249, in trace
File "BugUtil", line 295, in logToScreen
UnicodeDecodeError: 'ascii' codec can't decode byte 0xf1 in position 134: ordinal not in range(128)
ERR: Python function preGameStart failed, module CvAppInterface
there is, I hope to be helpful, thanks
Actually it does, it prompts something in the back of my mind to do with the name of the folders or the name of save files or even the name you are playing under. If any of these have non standard English letters in them then problems happen.
sendate May 27, 2012, 02:31 AM ok, so the be error to happen, for the use of not correct characters in the tag in Spanish.
into the file that I raised we were trying to change the English tags into Spanish placing Spanish in <English>, this might be the causer of the problem.
also I have noticed that the "tildes" of the Spanish language, are expressed badly. example.....Finlandés where it should put
Finlandés, might this characters game be the causer?
should I correct all the tildes and leave them without setting?
Dancing Hoskuld May 27, 2012, 03:45 AM ok, so the be error to happen, for the use of not correct characters in the tag in Spanish.
into the file that I raised we were trying to change the English tags into Spanish placing Spanish in <English>, this might be the causer of the problem.
also I have noticed that the "tildes" of the Spanish language, are expressed badly. example.....Finlandés where it should put
Finlandés, might this characters game be the causer?
should I correct all the tildes and leave them without setting?
There is a special character for tildes - é which is & #233; without the space in the text files.
Koshling May 27, 2012, 08:05 AM There is a special character for tildes - é which is & #233; without the space in the text files.
Or use an XML editor rather than notepad/wordpad to edit the files, which will automatically do the entity encoding for unusal characters
|
|