Commit 0aa7e8c
committed
feat: add GenLocale method and improve locale state handling
1. Added new GenLocale method to allow generating locale without
changing system language
2. Improved locale state tracking with new flags LocaleStateSetLang and
LocaleStateGenLocale
3. Refactored generateLocale to doGenerateLocale for better code reuse
4. Enhanced state checking logic in SetLocale to use bitwise operations
5. Added proper state management during locale generation operations
The changes allow more granular control over locale operations and
better state tracking when performing different types of locale changes.
The new GenLocale method provides a way to generate locale files without
changing the system language, which can be useful for system maintenance
or preparation.
feat: 添加 GenLocale 方法并改进区域设置状态处理
1. 新增 GenLocale 方法允许在不更改系统语言的情况下生成区域设置
2. 使用 LocaleStateSetLang 和 LocaleStateGenLocale 标志改进区域设置状态
跟踪
3. 重构 generateLocale 为 doGenerateLocale 以提高代码复用性
4. 在 SetLocale 中增强状态检查逻辑以使用位运算
5. 添加在区域设置生成操作期间的正确状态管理
这些变更允许对区域设置操作进行更精细的控制,并在执行不同类型的区域设置更
改时提供更好的状态跟踪。新的 GenLocale 方法提供了一种在不更改系统语言的
情况下生成区域设置文件的方式,这对于系统维护或准备工作非常有用。
pms: TASK-3787391 parent 32e84e6 commit 0aa7e8c
3 files changed
Lines changed: 50 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
59 | 59 | | |
60 | 60 | | |
61 | 61 | | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
62 | 67 | | |
63 | 68 | | |
64 | 69 | | |
| |||
388 | 393 | | |
389 | 394 | | |
390 | 395 | | |
391 | | - | |
| 396 | + | |
392 | 397 | | |
393 | 398 | | |
394 | 399 | | |
| |||
415 | 420 | | |
416 | 421 | | |
417 | 422 | | |
418 | | - | |
| 423 | + | |
419 | 424 | | |
420 | 425 | | |
421 | 426 | | |
| |||
466 | 471 | | |
467 | 472 | | |
468 | 473 | | |
| 474 | + | |
| 475 | + | |
| 476 | + | |
| 477 | + | |
| 478 | + | |
| 479 | + | |
| 480 | + | |
| 481 | + | |
| 482 | + | |
| 483 | + | |
| 484 | + | |
| 485 | + | |
| 486 | + | |
| 487 | + | |
| 488 | + | |
| 489 | + | |
| 490 | + | |
| 491 | + | |
| 492 | + | |
| 493 | + | |
| 494 | + | |
| 495 | + | |
| 496 | + | |
469 | 497 | | |
470 | 498 | | |
471 | 499 | | |
| |||
487 | 515 | | |
488 | 516 | | |
489 | 517 | | |
490 | | - | |
| 518 | + | |
491 | 519 | | |
492 | 520 | | |
493 | 521 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
43 | | - | |
| 43 | + | |
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
| |||
114 | 114 | | |
115 | 115 | | |
116 | 116 | | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
0 commit comments