I had a doubt while translating this keys: DESC_EMPIRE_STOCKPILE_VALUE and DESC_EMPIRE_STOCKPILE_VALUE_NOT
Do they refer to Imperial Stockpile? It seems they don't, since they were already translated in the Spanish stringtable, way before Imperial Stockpile was introduced.
I searched the source code and they are present in universe/Conditions.cpp. That code is too complex for me to understand, it is about evaluating conditions.
The thing is now I think that condition is to evaluate stock of a given resource. For a moment I thought it could be removed, since there is not resource that can be stocked aside from PPs in the Imperial Stockpile. Then I though that maybe it is used to query stockpiled PPs, and that it indeed could be used to query stockpiled influence once it is added to the game.
But the last doubt that remains is if there is any way to check out if a condition is never used in current implementation (so that I can skip the translation of that particular key).
How to check if a condition is ever used in the source code?
Moderator: Committer
Re: How to check if a condition is ever used in the source code?
Yes, identifying the corresponding condition and then grepping the focs files for it.
But I think that translating the key is actually less work than finding that out.
What could help is a prioritized list of keys for all languages, so translators could start from top to bottom.
I guess conditions would be on the secondary tier of priority.
Any code or patches in anything posted here is released under the CC and GPL licences in use for the FO project.
Look, ma... four combat bouts!
Look, ma... four combat bouts!
- Geoff the Medio
- Programming, Design, Admin
- Posts: 13603
- Joined: Wed Oct 08, 2003 1:33 am
- Location: Munich
Re: How to check if a condition is ever used in the source code?
The EmpireStockpileValue condition checks how much stockpile an empire has of a resource. That could be industry or trade (soon to be replaced with influence).
To check if a condition is used, you'd just have to search all the FOCS files, as noted.
To check if a condition is used, you'd just have to search all the FOCS files, as noted.
Re: How to check if a condition is ever used in the source code?
Nobody working on that I guess
Any code or patches in anything posted here is released under the CC and GPL licences in use for the FO project.
Look, ma... four combat bouts!
Look, ma... four combat bouts!