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

can‘t modify the Language option #3331

Closed
1 of 3 tasks
EGQM opened this issue Apr 7, 2024 · 5 comments
Closed
1 of 3 tasks

can‘t modify the Language option #3331

EGQM opened this issue Apr 7, 2024 · 5 comments

Comments

@EGQM
Copy link

EGQM commented Apr 7, 2024

Environment information

  • Operating System:ubuntu23.10
  • Cutter version:2.4.0-dev-5750139
  • Obtained from:
    • Built from source
    • Downloaded release from Cutter website or GitHub
    • Distribution repository

Describe the bug

When compiling Cutter with default settings in Ubuntu 23.10 and executing ./cutter, I am unable to modify the Language option in Preferences - Appearance (there is only one option available, which is English).

@ITAYC0HEN
Copy link
Member

Thanks for reaching out @EGQM :)
How did you build Cutter exactly?

Translations are included as a submodule:

cutter/.gitmodules

Lines 4 to 6 in 5750139

[submodule "src/translations"]
path = src/translations
url = https://github.com/rizinorg/cutter-translations

Included in CMakeLists:

include(Translations)

And handled in Translations.cmake
https://github.com/rizinorg/cutter/blob/575013904100efdc71cbb9b614e4a1587f94ac7e/cmake/Translations.cmake

@EGQM
Copy link
Author

EGQM commented Apr 7, 2024

@ITAYC0HEN thank you for your help.
I compiled Cutter in the following way:

sudo apt install build-essential cmake meson libzip-dev zlib1g-dev qtbase5-dev libqt5svg5-dev qttools5-dev qttools5-dev-tools 
git clone --recurse-submodules https://github.com/rizinorg/cutter --depth=1
cd  cutter
mkdir build && cd build
cmake ..
cmake --build .

@EGQM
Copy link
Author

EGQM commented Apr 7, 2024

The .qm files exist in ./build/src/translations, but after I run cutter, I can‘t modify the Language option.

@karliss
Copy link
Member

karliss commented Apr 7, 2024

It's probably because you didn't perform the install step. For everything to work properly files need to be placed in appropriate folder structure that's what the install step does.

If you directly run the compiled binary it's good enough for most development work. But for some specific features or if you actually want to use the build long term, it might be necessarily to do the installation step .

@EGQM
Copy link
Author

EGQM commented Apr 7, 2024

@karliss thank you very much.
After installation,it works.

@EGQM EGQM closed this as completed Apr 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants