AutoDarkMode / AutoDarkMode/Windows-Auto-Night-Mode

Can resw files handle not having xml elements present in some languages?

Open
#1,124 14 comments 1 reaction 0 assignees View on GitHub
area-internal area-localization support
Dominant language
C#
Stars
9.7k
Forks
308
Avg merge
2d 58m
Merged PRs (30d)
3

Description

@Jay-o-Way @ChenYiLins Whenever we change, add or remove any translation files, I am losing 1 year of my life expectancy because I have to deal with not malding over the merge conflicts with other branches and weblate.
Every single language file gets a conflict and I have to manually resolve them.

As it would be nice if I could maintain AutoDarkMode for longer than the next 3 months:
Can we directly modify the `Strings\en-us\Resources.resw` without going through the Visual Studio editor, and only add new strings there? That would reduce the amount of merge conflicts to only one file in a language I can understand, which would make things way more manageable.

Would that cause any issues with Resource loading if strings are missing in some language? The entries for other languages are only copies of the source language anyway.

With the old resw format, this worked completely fine. We had this workflow prior for many years and it caused me to not age at dangerously accelerated rates.

---
[edit]
https://docs.weblate.org/en/latest/admin/continuous.html#avoid-merge-conflicts

- [Avoiding merge conflicts by changing translation files in Weblate only](https://docs.weblate.org/en/latest/admin/continuous.html#merge-weblate-only)
- [Avoiding merge conflicts by locking Weblate while doing outside changes](https://docs.weblate.org/en/latest/admin/continuous.html#merge-weblate-locking)
- [Avoiding merge conflicts by focusing on Git operations](https://docs.weblate.org/en/latest/admin/continuous.html#merge-weblate-git)

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with Strings\en-us\Resources.resw and compare the current Visual Studio resource workflow with the old .resw workflow described in the issue. Check whether missing entries in other language files are safe during resource loading, and use the linked Weblate guidance to evaluate the merge-conflict workflow. Done means the supported editing workflow and its behavior for missing localized strings are established.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
localization
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Active
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.