Skip to content

Commit

Permalink
[73_32] xmake: install InfoPlist.strings for English and Chinese
Browse files Browse the repository at this point in the history
## What
+ Rename to `en.lproj` and `zh-Hans.lproj`
+ Use `Mogan Research` and `墨干` as the display name

## Why
Improve i18n.

## How to test your changes?
+ [x] macOS
+ [ ] <del>Windows</del>
+ [ ] <del>Linux</del>

Set the macOS language to Chinese, it should shows the Chinese name
`墨干`.

<img width="84" alt="image"
src="https://github.com/XmacsLabs/mogan/assets/1267865/52f52985-63f1-4602-904f-b15309932402">
  • Loading branch information
da-liii authored Apr 2, 2024
1 parent 9ced2be commit 4e73e54
Show file tree
Hide file tree
Showing 12 changed files with 2 additions and 6 deletions.
Binary file removed src/Plugins/Cocoa/English.lproj/InfoPlist.strings
Binary file not shown.
Binary file added src/Plugins/Cocoa/en.lproj/InfoPlist.strings
Binary file not shown.
Binary file added src/Plugins/Cocoa/zh-Hans.lproj/InfoPlist.strings
Binary file not shown.
Binary file removed src/Plugins/Cocoa/zh_CN.lproj/InfoPlist.strings
Binary file not shown.
2 changes: 0 additions & 2 deletions xmake/beamer.lua
Original file line number Diff line number Diff line change
Expand Up @@ -158,8 +158,6 @@ target("beamer") do
add_installfiles({
"$(projectdir)/packages/macos/beamer.icns",
"$(projectdir)/packages/macos/TeXmacs-document.icns",
"$(projectdir)/src/Plugins/Cocoa/(English.lproj/**)",
"$(projectdir)/src/Plugins/Cocoa/(zh_CN.lproj/**)"
})
end

Expand Down
2 changes: 0 additions & 2 deletions xmake/code.lua
Original file line number Diff line number Diff line change
Expand Up @@ -128,8 +128,6 @@ target("code") do
-- add_installfiles({
-- "$(projectdir)/packages/macos/beamer.icns",
-- "$(projectdir)/packages/macos/TeXmacs-document.icns",
-- "$(projectdir)/src/Plugins/Cocoa/(English.lproj/**)",
-- "$(projectdir)/src/Plugins/Cocoa/(zh_CN.lproj/**)"
-- })
-- end

Expand Down
4 changes: 2 additions & 2 deletions xmake/research.lua
Original file line number Diff line number Diff line change
Expand Up @@ -191,8 +191,8 @@ function add_target_research_on_others()
add_installfiles({
"$(projectdir)/packages/macos/new-mogan.icns",
"$(projectdir)/packages/macos/TeXmacs-document.icns",
"$(projectdir)/src/Plugins/Cocoa/(English.lproj/**)",
"$(projectdir)/src/Plugins/Cocoa/(zh_CN.lproj/**)"
"$(projectdir)/src/Plugins/Cocoa/(en.lproj/**)",
"$(projectdir)/src/Plugins/Cocoa/(zh-Hans.lproj/**)"
})
end

Expand Down

0 comments on commit 4e73e54

Please sign in to comment.