City focus view problem and some problem with my spanish translation

Sir_Rai

Chieftain
Joined
Sep 9, 2009
Messages
5
Location
Spain ( ES )
Hi there, I have Civilization V Deluxe Edition + Gods and Kings, installed via steam. Look at this picture. Playing the Spanish version, you can see something weird on the city interface (A) in the picture this is not showing some button correctly and some text got crazy around it. In the English version this is working nice. Maybe some Spanish files from the G&K game is doing some "rely" over this? I think it can be related to the message logged in:

Localization.log said:
[20691.520] WRN: A resource bundle lookup returned a result from the root locale (not an error).

I'm pretty new with this modding world in Civ V, but I'm trying to translate this mod. I have translated major localization files. (just left: Diplomacy.xml, ExtraDiplomacyText.xml, Villages and YieldLibrary.xml). When I launch the game I can see how my translation from Core.xml is not being applied correctly and I don't know why. You can see the original english text of this mod in the upper part (Marked with B) but if you see part of the image marked with C, there is two "Values" text "Coste" in spanish. The second 'Coste' is from AutoTips_Tips.xml that is being applied correctly (It seems) I dont know why i see two "Coste" texts there. It's the expected way to show it?

The translated files (not finished yet!): https://github.com/jraicr/Civ5-UOP-Spanish

I attached the logs files in this post and thanks for share your work.
 

Attachments

Welcome to the forums Sir_Rai! :goodjob:

Thank you for reporting these bugs.
a) The box should show simple icons, so I changed it to work in any language (does not depend on translation file now).
C) The first cost is :c5production: production. The second is a multiplier for gold purchase cost.

Monument
40 :c5production: cost
7,1 x 40 = 284 :c5gold: cost

It should show an x, not a % symbol. What is the best way to show this information in Spanish?
 
I appreciate the welcome :D

A) Alright, it seems like the original Spanish text is there yet, and it breaks the interface.

B) Any idea Why I don't see 'core.xml' translated ingame?

C) Alright, I'll put the 'x' indicating multiplier, easy to understand. I swear never changed that, I think it comes from the single Spanish localization file in your last release :p
 
I originally had a % for the multiplier like "300%." I changed it to a shorter "3x" but forgot the translation files - it was my fault, not yours. :)

Start a game with your core.xml, then look at this file:
\Documents\My Games\Sid Meier's Civilization 5\Logs\Database.log

It normally shows these errors:
Spoiler :
[14197.011] Invalid Reference on ArtDefine_Landmarks.LayoutHandler - "SPECIAL" does not exist in ArtDefine_LandmarkTypes
[14197.011] Invalid Reference on ArtDefine_Landmarks.LayoutHandler - "SPECIAL" does not exist in ArtDefine_LandmarkTypes
[14197.011] Invalid Reference on ArtDefine_Landmarks.LayoutHandler - "SPECIAL" does not exist in ArtDefine_LandmarkTypes
[14198.430] Invalid Reference on UnitGameplay2DScripts.UnitType - "UNIT_HITTITE_WARCHARIOT" does not exist in Units
[14198.430] Invalid Reference on UnitGameplay2DScripts.UnitType - "UNIT_SUMERIAN_PHALANX" does not exist in Units
Does the file show any messages about your core.xml?
 
This is not reporting nothing and your core.xml is loading instead of mine. If I test replacing my translated file in en_US folder, I have several errors in the Database.log output, reporting that all TXT_KEYS aren't found in en_US table, but they are in the file, even I put correcly the <Language_en_US>...</Language_en_US> markup. I Don't understand what is happening right now, I'm looking for typos or something, comparing my file with yours.
 
(...) I'm looking for typos or something, comparing my file with yours.

Alright I fixed the thing causing that output errors (I was setting a text out of a <update> scope) and now my translation is working nicely if I replace yours
files with the spanish text in en_US folder indicating it is in en_US table. But if I test my translation in ES_ES folder, some files like: Core.xml, TradeOpportunities.xml, Yields.xml, and others is still not loading. Why aren't some of this xml files working from ES_ES but it does on en_US table?
What I do is copy the files to the ES_ES folder from en_US and im editing from there. Am I skipping some step?

I deleted all the V19 mod, cache files, etc and i was testing your new V20. The problem described with A in the image is still happening.

Thanks for your support.
 
I realized I fixed problem A for the large scale city view, but not the small scale view (there are two separate files). It should work in v21.

Check if your Core.xml file is loading. In the ES_ES version of Core.xml, add something like this before <Language_ES_ES>:
Code:
<?xml version="1.0" encoding="utf-8"?>
<GameData>
	<Technologies>
		<Update>
			<Where Type="TECH_AGRICULTURE" />
			<Set Cost="999"/>
		</Update>
	</Technologies>
	<Language_ES_ES>
	...
Then start a game and see if it says 999 on Agriculture. If it shows 999 a problem exists later in the file. If it does not show 999, then the file is not loading.

It is difficult for me to test multiple languages so thank you for your patience. If you have skype, you can message me on skype at thalassicus_1 for faster oommunication.
 
Back
Top Bottom