Skip to content

Preparation for Localization: Migration of Hardcoded Strings and Licenses to Resources#218

Open
nbb1967 wants to merge 22 commits intobailey27:masterfrom
nbb1967:hardcoded-str-to-rc
Open

Preparation for Localization: Migration of Hardcoded Strings and Licenses to Resources#218
nbb1967 wants to merge 22 commits intobailey27:masterfrom
nbb1967:hardcoded-str-to-rc

Conversation

@nbb1967
Copy link

@nbb1967 nbb1967 commented Feb 18, 2026

Description

This PR initiates preparing the project for localization. The main goal is to separate the text content from the logic, which is currently a blocker for any translation efforts.

Implementation Details

  1. Moved 150 hardcoded strings to STRINGTABLE.
  2. Moved 8 licenses to RCDATA and removed "pseudo-formatting".
  3. Added two functions for resource extraction.
  4. Refactored string concatenations into format strings.
  5. Text data stored in the registry is protected from localization.

Safety

The project compiles successfully in both Debug and Release configurations.
No functional logic was changed; the PR focuses solely on data storage and retrieval.
Although many files were touched, 95% of the changes are simple string-to-constant replacements.

Example of a working localized cppcryptfs interface (album on Imgur)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

Comments