📄 merge_po.bat
字号:
@echo off
@echo *** Merging new default.po with previous translations ***
FOR /D %%L IN (??) DO echo %%L && msgmerge --no-fuzzy-matching --update %%L\LC_MESSAGES\default.po default.po
FOR /D %%L IN (??_??) DO echo %%L && msgmerge --no-fuzzy-matching --update %%L\LC_MESSAGES\default.po default.po
@echo *** Removing fuzzy and obsolete items ***
FOR /D %%L IN (??) DO echo %%L && copy /Y %%L\LC_MESSAGES\default.po %%L\LC_MESSAGES\default.tmp && msgattrib --no-fuzzy --no-obsolete -o %%L\LC_MESSAGES\default.po %%L\LC_MESSAGES\default.tmp && del %%L\LC_MESSAGES\default.tmp
FOR /D %%L IN (??_??) DO echo %%L && copy /Y %%L\LC_MESSAGES\default.po %%L\LC_MESSAGES\default.tmp && msgattrib --no-fuzzy --no-obsolete -o %%L\LC_MESSAGES\default.po %%L\LC_MESSAGES\default.tmp && del %%L\LC_MESSAGES\default.tmp
@pause
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -