Skip to content

Commit

Permalink
Merge pull request #118 from Ludeon/test-translations
Browse files Browse the repository at this point in the history
Test translations
  • Loading branch information
Zakees authored Apr 19, 2024
2 parents 993296a + 13ee1c9 commit c4099d4
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@
</BioferriteHarvesting.generalRules.rulesStrings>

<!-- EN: bioferrite weaponry -->
<BioferriteIgnition.label>armamento bioferrico</BioferriteIgnition.label>
<BioferriteIgnition.label>armamento bioférrico</BioferriteIgnition.label>
<!-- EN: Create advanced weapons that use bioferrite as a fuel source. -->
<BioferriteIgnition.description>Fabrica armas avanzadas que utilicen bioferrita como fuente de combustible.</BioferriteIgnition.description>
<!-- EN:
Expand All @@ -133,7 +133,7 @@
-->
<BioferriteIgnition.generalRules.rulesStrings>
<li>subject->combustión de bioferrita</li>
<li>subject->armamento bioferrico</li>
<li>subject->armamento bioférrico</li>
<li>subject_story->trabajó en una plataforma de extracción en un asteroide arqueoteca</li>
<li>subject_story->estudió los niveles de combustión de materiales exóticos</li>
<li>subject_story->se unió a la división de investigación de una corporación de armas en un mundo militar</li>
Expand Down
2 changes: 1 addition & 1 deletion Core/DefInjected/ChemicalDef/Luciferium.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@
<LanguageData>

<!-- EN: luciferium -->
<Luciferium.label>luciferium</Luciferium.label>
<Luciferium.label>luciferio</Luciferium.label>

</LanguageData>
2 changes: 1 addition & 1 deletion Core/DefInjected/NeedDef/Luciferium.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<LanguageData>

<!-- EN: luciferium -->
<Chemical_Luciferium.label>luciferium</Chemical_Luciferium.label>
<Chemical_Luciferium.label>luciferio</Chemical_Luciferium.label>
<!-- EN: This person's body is enhanced by luciferium mechanites.\n\nWithout regular doses of luciferium, the mechanites will lose cohesion. If this happens, the user becomes continuously, violently insane and eventually dies.\n\nThis addiction never goes away. -->
<Chemical_Luciferium.description>El cuerpo de esta persona ha sido mejorado por las mecanitas conocidas como luciferium.\n\nSin dosis regulares de luciferium, las mecanitas perderán cohesión. Si esto sucede, el usuario se volverá más y más violentamente loco hasta finalmente morir.\n\nNo hay manera de perder esta adicción sin perder la vida.</Chemical_Luciferium.description>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@
<LanguageData>

<!-- EN: imperial trader -->
<Orbital_Empire.label>Comerciante imperial</Orbital_Empire.label>
<Orbital_Empire.label>comerciante imperial</Orbital_Empire.label>

</LanguageData>
5 changes: 4 additions & 1 deletion update-wordinfo.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,16 @@ $paths = @(
"*\DefInjected\GameConditionDef"
"*\DefInjected\BodyPartDef"
"*\DefInjected\BodyDef"
# "*\DefInjected\ResearchProjectDef"
)

# Search words in the XML files and save them in different lists of words depending on their gender
foreach ($path in $paths)
{
# unknown gender
Get-Content -Path "$path/*" -Filter "*.xml" | Select-String -Pattern "<(.*(\.label|\.pawnSingular|title|titleShort|\.chargeNoun|\.customLabel))>(.*?)</\1>" -All | ForEach-Object { $_.matches.groups[3].value.toLower() } >> "$temp/all_unknown.txt"
Get-Content -Path "$path/*" -Filter "*.xml" | Select-String -Pattern "<(.*(\.label|\.pawnSingular|title|titleShort|\.chargeNoun|\.customLabel))>(.*?)</\1>" -All | ForEach-Object { $_.matches.groups[3].value.toLower() } >> "$temp/all_unknown1.txt"

Get-Content -Path "$path/*" -Filter "*.xml" | Select-String -Pattern "<.*generalRules\.rulesStrings.*(?:\n.*<li>subject->(.*?)<\/li>)+" -All | ForEach-Object { $_.matches.groups[1].value.toLower() } >> "$temp/all_unknown2.txt"

# male gender
Get-Content -Path "$path/*" -Filter "*.xml" | Select-String -Pattern "<(.*(labelMale))>(.*?)</\1>" -All | ForEach-Object { $_.matches.groups[3].value.toLower() } >> "$temp/all_males.txt"
Expand Down

0 comments on commit c4099d4

Please sign in to comment.