Git Product home page Git Product logo

boj-user-translation's Introduction

boj-user-translation

English / 한국어

User translation repository for Baekjoon Online Judge. To view translations on the problem page, see o-ey.

If you don't want to translate but to fix typos, please refer to the section Fixing Typos.

How to Contribute

Requires git and python 3.

Setting Up Environment

Fork and clone the repository, and type the following command to move to the repository directory.

cd <location of cloned repository>

Adding a Translation

Move to the your repository directory, and type the following command to create new translation files.

python3 new-tr.py <problem-id> <language-code> <username>
  • <language-code> should be a valid IETF language tag, with - replaced by _ (as in en_US, ko_KR).

A file will be generated as src/<problem-id>/<language-code>-<username>.html, and The file index will be updated accordingly. After translating the content of generated file, type the following command to upload your translation to GitHub.

git add .
git commit -m "작업 내용"
git push

Removing a Translation

Move to the your repository directory, and type the following command.

python3 del-tr.py <problem-id> <language-code> <username>

Testing Your Translation

Click the button of o-ey extension, and enter the URL of your translation repository. Uploaded change will be applied in a few minutes, which you can view on BOJ.

Creating a Pull Request

Create a Pull Request from your forked repository into the base repository. The maintainer will soon review your request and merge it.

Fixing Typos

Follow the section How to Contribute, except for:

On running the new-tr command

You should enter BOJ's internal language name instead of an IETF language tag.

  • Problems providing a single language (no language button): Original
  • Korean: Korean
  • English: English
  • For other languages, please leave an issue.

You should enter typo instead of your username. Mind that there is no dedicated space for your contribution credit.

Translation Rules

  • No new sections can be used now.
  • No XSS (or any malicious HTML injection) is allowed.
  • You can rearrange paragraphs, rewrite sentences, or change character names if you follow the problemsetter's intention.
  • If the problem has defects that should be resolved, you can warn in translation but please write together that the warning is inserted by the translator.
  • Regarding formats, please refer to formatting guide.
  • Under constraints above, translate freely.
  • For languages not in my fluent zone, approval for pull requests can be delayed.
  • Before sending pull requests, please review the local changes via o-ey. You can see the local changes by adding your repository to the repository list of o-ey.

boj-user-translation's People

Contributors

kiwiyou avatar bubbler-4 avatar ldhhello avatar wzrabbit avatar ryuzu3747 avatar w8385 avatar masooka avatar yup0927 avatar d0h000n avatar iamgamja avatar quntnim avatar barrelzebra2149 avatar knoj014 avatar byeongkeunahn avatar pasteldream-ps avatar wider93 avatar mega-bix avatar doubledeltas avatar haruharo101 avatar gubshig avatar pjshwa avatar jshyun912 avatar thregium 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.