Skip to content

Conversation

@KonerDev
Copy link
Member

@KonerDev KonerDev commented Sep 12, 2025

Description

This PR uses meaningful placeholders (e.g. %(app_name)) instead of the meaningless %s like suggested in #698 (comment).

It also adds extension functions:

  • String.fillPlaceholders(values: Map<String, Any>)
    -> Replaces all %(placeholder) occurrences in a string with the provided values.
  • Int.getFilledString(values: Map<String, Any>)
    -> Fetches the XML string resource by ID and fills in placeholders in one step.

@RohitKushvaha01 RohitKushvaha01 merged commit 7ddfa89 into Xed-Editor:main Sep 16, 2025
@KonerDev KonerDev deleted the refactor/meaningful-placeholders branch October 1, 2025 13:35
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.

2 participants