Giter VIP home page Giter VIP logo

kawaii-gcc's Introduction

Kawaii-gcc かわいいGCC

Make your GCC compiler kawaii~!

This project makes the output messages from GCC compiler looks kawaii by editing the localization file of GCC.

Everyone is welcomed to add more fun messages!

中文版

Dependences

  • GNU GCC
  • GNU Gettext

How to use it?

Linux (in an Ubuntu example)

  • Install Japanese for your terminal (if not installed)

    sudo apt-get install language-pack-ja language-pack-gnome-ja language-pack-ja-base language-pack-gnome-ja-base
  • Install gcc , gettext and g++.

    sudo apt-get install gcc gettext g++
  • Install gcc locales

    Check your gcc main version number by:

    gcc -v

    It is 12.3.0 on my end. So the main version number is 12.

    sudo apt-get install gcc-12-locales
  • Find your gcc language file. Defaultly, it should be found in /usr/share/locale/ja/LC_MESSAGES/gcc.mo. However, it is also possible that you cannot find the file or the file is named as gcc-12.mo. If there's a related file, back up it. (eg. sudo mv gcc-12.mo gcc-12.mo.bak) Don't worry if there's no such file, you need to do nothing.

  • Use the following command to clone the project from GitHub and compile the po file in the project and copy it to the path.

    git clone https://github.com/Bill-Haku/kawaii-gcc
    cd kawaii-gcc
    msgfmt gcc.po -o gcc.mo && sudo cp gcc.mo /usr/share/locale/ja/LC_MESSAGES/gcc-12.mo

    Regarding to the file name:

    • If you found an existed file in the last step, use the existed file name.
    • if not, try gcc-<MAIN VERSION NUMBER>.mo first, and if it doesn't work, rename it to gcc.mo.
  • Change terminal environmental variables into Japanese:

    vim ~/.bashrc
    
    # Add the following lines
    export LANG="ja_JP.UTF-8"
    export LANGUAGE="ja_JP.UTF-8"
    # Save it in Vim
    
    source ~/.bashrc
  • Now your GCC has become kawaii~!

    You can have a try with the test.cc provided in the project.

    gcc test.cc -Wall
    # -Wall makes GCC output all the warning messages.

macOS & Windows

Not implemented yet. Contribution welcomed!

Inspiration

https://github.com/Mosklia/gcc-hentai

kawaii-gcc's People

Contributors

bill-haku avatar moe-hacker avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.