Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/translation support #3

Merged
merged 3 commits into from
Jun 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ include(${BOREALIS_LIBRARY}/cmake/toolchain.cmake)
# project info
project(nso-icon-tool)
set(VERSION_MAJOR "0")
set(VERSION_MINOR "1")
set(VERSION_MINOR "2")
set(VERSION_ALTER "0")
set(VERSION_BUILD "0")
set(PROJECT_AUTHOR "dslatt")
Expand Down
7 changes: 6 additions & 1 deletion readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<img src="https://img.shields.io/static/v1?label=version&message=0.1.0&labelColor=111111&color=06f&style=for-the-badge" alt="Version">
</a>
<a rel="BUILD" href="https://github.com/dslatt/nso-icon-tool/actions">
<img src="https://img.shields.io/github/actions/workflow/status/dslatt/nso-icon-tool/build-switch.yml?branch=main&labelColor=111111&color=06f&style=for-the-badge" alt=Build>
<img src="https://img.shields.io/github/actions/workflow/status/dslatt/nso-icon-tool/build-switch-release.yml?branch=main&labelColor=111111&color=06f&style=for-the-badge" alt=Build>
</a>
</p>

Expand Down Expand Up @@ -63,6 +63,7 @@
- You can check for updates to the icon cache from settings. If new icons are available, you can downloaded the new cache and update your local copy if desired.
- The cache is kept in `sdmc:/avatars/nso-icons-main`.
- For speed, existing files aren't overwritten when updating the cache. If you have an issue, you can use `Overwrite Existing Files During Update` in settings to toggle this behavior.
- Icon cache location: [https://github.com/henry-debruin/nso-icons](https://github.com/henry-debruin/nso-icons)



Expand Down Expand Up @@ -101,11 +102,15 @@ If you want to help me open an issue when you encounter a bug and a pull request

## Credits

- Special thanks to [henry-debruin](https://github.com/henry-debruin) for creating [nso-icons](https://github.com/henry-debruin/nso-icons). There's no way this would have been made without your working pulling all the icons together that way!
- Thanks to [Natinusala](https://github.com/natinusala), [xfangfang](https://github.com/xfangfang) and [XITRIX](https://github.com/XITRIX) for [borealis](https://github.com/xfangfang/borealis)
- Thanks to [nadrino](https://github.com/nadrino) for [SimpleModManager](https://github.com/nadrino/SimpleModManager) and [cpp-generic-toolbox](https://github.com/nadrino/cpp-generic-toolbox)
- Thanks to [XorTroll](https://github.com/XoRTroll) for [Golfleaf](https://github.com/XorTroll/Goldleaf)
- Thanks to [HamletDuFromage ](https://github.com/HamletDuFromage ) for [AIO-Switch-Updater](https://github.com/HamletDuFromage/aio-switch-updater)
- Thanks to [PoloNX](https://github.com/PoloNX) for [SimpleModDownloader](https://github.com/PoloNX/SimpleModDownloader)

## TODO

- Bugfixes. I'm sure there's some.
- Add some notification that an icon cache update is available on startup. Consider adding more details/clarity to the update process as well.

64 changes: 64 additions & 0 deletions resources/i18n/en-US/app.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
{
"title": "nso-icon-tool",
"main": {
"change_user": "Change User",
"config": "Config",
"settings": "Settings",
"icon_components": "Icon Components",
"custom": "Custom",
"custom_image": "Custom Image",
"frame": "Select Frame",
"character": "Select Character",
"background": "Select Background",
"new_icon": "New Icon",
"apply": "Apply to User",
"select_game": "Select a Game",
"available_images": "Available Images"
},
"settings": {
"title": "Settings",
"icon_cache": {
"label": "Icon Cache Update",
"yes": "Icon Cache Found",
"no": "No Icon Cache Found",
"last_checked": "Last Checked: {}",
"current_version": "Current Version: {} ({})",
"check_updates": "Check for Updates",
"update_available": "Update Available: {} ({})",
"download_update": "Download/Apply Update",
"never": "Never",
"none": "None"
},
"toggles": {
"label": "Settings",
"debug": "Debug Layer",
"overwrite": "Overwrite Existing Files During Update"
},
"version": {
"label": "Version",
"version": "Version: {}",
"author": "Author: {}",
"commit": "Commit: {} ",
"commit_clean": "clean",
"commit_dirty": "dirty",
"commit_date": "Commit Date: {}"
},
"thanks_label": "Thanks",
"thanks": "▼ Thanks to nadrino for cpp-generic-toolbox library\n▼ Thanks to Natinusala, xfangfang and XITRIX for borealis library\n▼ Thanks to HamletDuFromage (AIO-Switch-Updater) and PoloNX (SimpleModDownloader)\n▼ Special thanks to henry-debruin for creating nso-icons."
},
"download": {
"title": "Downloading and Extracting Icons...",
"downloading": "Downloading:",
"waiting": "Waiting:",
"downloaded": "Downloaded:",
"extracting": "Extracting:",
"extracted": "Extracted:",
"back": "Back"
},
"errors": {
"insufficient_storage": "Insufficient Storage on SD Card",
"nothing": "Nothing Here!",
"nothing_icon_cache": "Nothing here! Check settings to download Icon Cache.",
"nothing_images": "Nothing here! Did you place images into \"{}\"?"
}
}
72 changes: 1 addition & 71 deletions resources/xml/activity/main.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,78 +3,8 @@
footerHidden="false">

<MainView
title="nso-icon-tool"
title="@i18n/app/title"
icon="@res/img/dev.png"
/>


<!--<brls:Tab
label="@i18n/demo/tabs/about" >
<brls:Separator />

<brls:Box
width="auto"
height="auto"
axis="column"
paddingTop="@style/about/padding_top_bottom"
paddingBottom="@style/about/padding_top_bottom"
paddingLeft="@style/about/padding_sides"
paddingRight="@style/about/padding_sides" >

<brls:Image
width="auto"
height="33%"
image="@res/img/borealis_256.png"
marginBottom="@style/about/description_margin"/>

<brls:Box
width="auto"
height="auto"
axis="row"
marginBottom="@style/about/description_margin">

<brls:Label
width="40%"
height="auto"
text="@i18n/demo/about/title"
fontSize="36"
horizontalAlign="right"
verticalAlign="top" />

<brls:Label
width="auto"
height="auto"
text="@i18n/demo/about/description"
marginLeft="@style/about/description_margin" />

</brls:Box>

<brls:Box
width="auto"
height="auto"
axis="column"
alignItems="center"
justifyContent="spaceEvenly"
grow="1.0" >

<brls:Label
width="auto"
height="auto"
text="@i18n/demo/about/github" />

<brls:Label
width="auto"
height="auto"
text="@i18n/demo/about/licence" />

<brls:Label
width="auto"
height="auto"
text="@i18n/demo/about/logo_credit" />

</brls:Box>

</brls:Box>-->


</brls:AppletFrame>
2 changes: 1 addition & 1 deletion resources/xml/views/download_view.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<brls:Box
width="auto"
height="auto"
title="Downloading and Extractng Icons..."
title="@i18n/app/download/title"
justifyContent="center"
margin="20"
axis="column">
Expand Down
4 changes: 2 additions & 2 deletions resources/xml/views/empty_message.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<brls:Box
width="100%"
height="100%"
title="Nothing here!"
title="@i18n/app/errors/nothing"
axis="column"
alignItems="center"
justifyContent="center"
Expand All @@ -17,7 +17,7 @@
<brls:Label
width="auto"
height="auto"
text="Nothing here!"
text="@i18n/app/errors/nothing"
id="missing_msg"
/>
</brls:Box>
Expand Down
4 changes: 2 additions & 2 deletions resources/xml/views/icon_part_select.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<brls:Box
width="auto"
height="auto"
title="Select a Game"
title="@i18n/app/main/select_game"
axis="row"
>

Expand Down Expand Up @@ -33,7 +33,7 @@
<brls:Label
width="auto"
height="auto"
text="New Icon"
text="@i18n/app/main/new_icon"
fontSize="26"
marginBottom="20px" />

Expand Down
2 changes: 1 addition & 1 deletion resources/xml/views/icon_part_select_grid.xml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
<brls:Label
width="auto"
height="auto"
text="New Icon"
text="@i18n/app/main/new_icon"
fontSize="26"
marginBottom="20px" />

Expand Down
23 changes: 11 additions & 12 deletions resources/xml/views/main_view.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
<brls:Label
width="auto"
height="auto"
text="None"
id="current_user"
fontSize="26"
marginBottom="20px" />
Expand All @@ -38,15 +37,15 @@
<brls:Header
height="auto"
width="auto"
title="Config" />
title="@i18n/app/main/config" />
<brls:DetailCell
id="btn_change_user"
title="Change User"
title="@i18n/app/main/change_user"
lineTop="1px"
/>
<brls:DetailCell
id="btn_settings"
title="Settings"
title="@i18n/app/main/settings"
/>

</brls:Box>
Expand All @@ -62,27 +61,27 @@
<brls:Header
height="auto"
width="auto"
title="Icon Components" />
title="@i18n/app/main/icon_components" />
<brls:DetailCell
id="btn_frame"
title="Select Frame"
title="@i18n/app/main/frame"
/>
<brls:DetailCell
id="btn_character"
title="Select Character"
title="@i18n/app/main/character"
/>
<brls:DetailCell
id="btn_background"
title="Select Background"
title="@i18n/app/main/background"
/>

<brls:Header
marginTop="100px"
title="Custom" />
title="@i18n/app/main/custom" />

<brls:DetailCell
id="btn_custom"
title="Custom Image"
title="@i18n/app/main/custom_image"
/>
</brls:Box>

Expand All @@ -97,7 +96,7 @@
<brls:Label
width="auto"
height="auto"
text="New Icon"
text="@i18n/app/main/new_icon"
fontSize="26"
marginBottom="20px" />

Expand All @@ -115,7 +114,7 @@
width="75%"
height="auto"
style="primary"
text="Apply to User"
text="@i18n/app/main/apply"
marginTop="20px" />
</brls:Box>

Expand Down
Loading