0 of 0

File information

Last updated

Original upload

Created by

AlexGoD

Uploaded by

darthalex2014

Virus scan

Some manually verified files

About this mod

Make your mod translation-friendly! This mod automatically adds NPC names to dialogue lines in your i18n files, making it easier for translators to work with.

Permissions and credits
Donations
Also check SV i18n Translation Merger
Also check SV i18n Converter Tools
Also check XNB to CP Converter (For Dialogs mods)

 SV i18n Comment Namer
Make your mod translation-friendly! This mod automatically adds NPC names to dialogue lines in your i18n files, making it easier for translators to work with.
This tool helps Stardew Valley modders create translation-friendly i18n files by automatically adding comments that identify which character or game element is associated with each text entry.
Features:
  • Customizable Commenting: Choose which types of i18n entries to comment using the checkboxes below:
    • Include Events: Adds comments to lines using common event commands like speak, dialogue, textAboveHead, and dialogueWarpOut.
    • Include message: Adds "//message" comments to lines using the message
       command.
    • Include Characters/Dialogue/: Automatically detects and comments dialogue lines within Characters/Dialogue/
       blocks, even if those blocks are formatted across multiple lines.
    • Include Strings/schedules/: Automatically detects and comments text entries within Strings/schedules/
       blocks, useful for schedule-related text.

  • Prevent Duplicate Comments: The "Don't add comments to lines with existing comments" option ensures the tool won't add redundant comments to lines that already have them (starting with "//").
This makes your i18n files easier to understand and translate, leading to a better experience for international players!

How to Use:
  • Click "Select Folder" and choose the folder that contains your mod's content.json file. Make sure this folder also contains the i18n folder with your default.json file.
  • Select the types of i18n entries you want to comment using the checkboxes.
  • The program will automatically process your files and create a new file named default_with_comments.json in the i18n folder.
That's it! Your new default_with_comments.json file will have helpful comments that make translation and organization easier.

Planned Features:
  • \"{{i18n:key | text}}\" (lines where the | separator is used) Done
  • \"{{i18n:key{{Random: ...}}}}\"  Done
  • \"{{i18n:key}}!\" (the ! sign after {{i18n:key}}) Done
  • \"{{i18n:key}}.\" (the . sign after {{i18n:key}}) Done

Known cases that are not commented:
  • question fork1 and quickQuestion and question null (It's better to comment these lines manually, as different mod authors use them differently)
  • \"$q number null #{{i18n:key}}#$r
  • \"{{i18n:key}}#$b# (when #$b# is after {{i18n:key}})
  • "i18n_name": "{{i18n:key}}\" (when {{i18n:key}} is at the beginning of the event)
  • \"/{{i18n:key}}\" (extra /, most likely an error in the mods)
  • "key" :