Как в codeblocks сделать русский язык

от admin

Code Blocks на русском

С помощью легко устанавливаемой и удобной в использовании среды разработки Code Blocks можно успешно решить задачу поддержки подключаемых модулей практически для всех популярных компиляторов и отладчиков. Code Blocks – это свободно интегрированная среда разработки основных приложений, которая написана на С++ с использованием библиотеки wx Windows. Благодаря собственной открытой архитектуре поддержки масштабируется за счет подключаемых модулей.

Функции среды:

Настраиваясь быстро и гибко в соответствии с запросами пользователей, Code Blocks использует по умолчанию компилятор MinGW, поставляемый в комплекте. Но благодаря открытому исходному коду, она способна поддерживать различные компиляторы. Работая в операционной системе, Code Blocks не требует никаких интерпретаторов, make-файлов, более того, наличие многочисленных плагинов существенно повышает и неограниченно расширяет функциональные возможности среды разработки.

Возможности использования Code Blocks:

Code Blocks ориентируется на разметку синтаксиса исходного кода, включая функцию разработки приложений на языках XML, С и С++ для Windows, Linux и MacOSX, находясь в составе современных дистрибутивов Linux. Преимуществом этой IDE является и тот факт, что она позволяет выполнять многочисленные параллельные операции на процессорах, а с помощью GDB отлаживать программы, причем среда может быть собрана из исходников практически под любую подобную систему.

Особенности применения:

Особенность этой среды разработки в наличии пользовательских дампов памяти, в возможности создания счетчиков за счет отладчика в исходных кодах или в данных, обрабатываемых программой. Кроме того осуществляется подсветки синтаксиса, управляемая и дополняемая по своему усмотрению. Осуществляет поддержку различных по стилю форматирования текстов. Code Blocks способна поддерживать компиляторы, включая и микропроцессорные.

Для того чтоб включить русский язык нужно сделать следующее:

Идем в папку программы C:\Program Files (x86)\CodeBlocks\share\CodeBlocks и создаем папку с названием locale потом заходим в эту папку и создаем там папку ru_RU и ложим в эту папку файл codeblocks.mo скачиваем тут.

После заходим в программу и выбираем Settings -> Environment -> View, ставим галочку «Internationalization» и выбираем из списка «Russian», после перезапуска CodeBlocks будет русифицирован.

Name already in use

If nothing happens, download GitHub Desktop and try again.

Launching GitHub Desktop

If nothing happens, download GitHub Desktop and try again.

Launching Xcode

If nothing happens, download Xcode and try again.

Launching Visual Studio Code

Your codespace will open once ready.

There was a problem preparing your codespace, please try again.

Latest commit

Git stats

Files

Failed to load latest commit information.

README.md

Code::Blocks (x64) (русская версия)

Code::Blocks с русским интерфейсом и проверкой русской орфографии для создания программ на С и С++

screenshot

Данная сборка протестирована при распаковке папки Code::Blocks в корень диска «C»

Не запускайте программу с каталога, в пути которого есть пробелы или русские символы!

Internationalization

This article is about how to realize and use localized C:B.

Original article written by heromyth.

Reviewed by gd_on.

Contents

Get the English POT file

The url of the english POT file is at:

Of course, you can run extract.cmd (shown below) to generate the POT file. It extracts all the text chains from .cpp files and .xrc file, for the main core and the contribs plugins. It also extract strings from compiler’s xml files and descriptions fields found in manifest*.xml from plugins. You can place it in a subdirectory of your codeblocks_src (created by svn for example), as src\i18n or a specific src\My_i18n.

This tool uses several unix-like tools as find, rm, grep, xargs, xgettext, msgcat, sed. Some of them are available with many MinGW distributions or Msys2.

Note : you must use the unix-like find.exe, not the Windows one : they have not the same syntax. So, the unix-like find.exe must be found in your PATH, before the Windows one!

Читать:
Как увеличить размер стека python

The tool wxrc is used in these command files. You can find the source in wxWidgets/utils and build it.

For your convenience, some unix tools (extracted from msys2) and a wxrc.exe (statically linked with wxWidgets 3.2.1, 64 bit) can be downloaded from a git repository Unix-Tools

The content of extract.cmd is below (or you can download it from a git repository Extract-Tools containing a copy of unix tools and wxrc):

The tools for translation

Usually, we use the poEdit tool which can be downloaded here.

Of course, you can do the translation directly on Launchpad.

You’ll find on Launchpad, two available downloads : a .po file, that you can use to edit or modify it, and a .mo file, a compiled ready to use in Code::Blocks. It’s name may be quite long, but it does not matter. Only the extension is important.

Translating with poEdit

Rename or copy All_codeblocks.pot into All_codeblocks.po. Use poEdit to open the file All_codeblocks.po. Change a few settings like:

If Code::Blocks is compiled with Unicode, the charset should be set to utf-8; If Code::Blocks is compiled with ANSI, the charset should be set to your own language charset like gb2312, koi8-r etc.

After these settings are done, you can start translating. Don’t be fooled, it’s a long work! During the process, of course, you can use your translation at any time.

You can also download the .po file from Launchpad, work on it with poedit locally on your machine, and re-upload it on Launchpad to update and share your work.

Note: It may be necessary to approve this work, and sometimes to validate your own translations (or wait for someone else to validate them).

Create and use the .mo file

Pressing Ctrl+S in poEdit, you can get a *.mo file like All_codeblocks.mo which is what we need. To use All_codeblocks.mo, we just place it into C:\Program Files\CodeBlocks\share\CodeBlocks\locale\<lang>\. My language is French and I have installed C::B into C:\, so I place All_codeblocks.mo into C:\Program Files\CodeBlocks\share\CodeBlocks\locale\fr_FR.

If you want to use All_codeblocks.mo under Linux or Unix, you just place it into /usr/X11R6/share/locale/<lang>/LC_MESSAGES/ or in the share/locale/<lang< sub-directory of your codeblocks installation, as in Windows (may be something like /usr/share/codeblocks/locale/<lang> (for me <lang> is fr_FR). Create sub-directories if necessary.

Details about internationalization using wxWidgets can be found in the wxWidgets docs.

Let Code::Blocks support your language

In Code::Blocks menu, Settings, Environment, View, you’ll find a check-box for Internationalization. If you check it, you’ll normally find your language in the dropdown list.

tervel

Code::Blocks — свободная кроссплатформенная среда разработки. Code::Blocks написана на С++ и использует библиотеку wxWidgets. Имея открытую архитектуру, может масштабироваться за счёт подключаемых модулей. Поддерживает языки программирования С, С++, D (с ограничениями).
Code::Blocks разрабатывается для Windows, Linux и Mac OS X. Среду можно собрать из исходников практически под любую Unix-подобную систему. [ http://ru.wikipedia.org/wiki/Code::Blocks ]

Для того чтоб включить русский язык нужно сделать следующее:

1. Архив нужно распаковать в подпапку программы (куда установлена), например C:\Program Files (x86)\CodeBlocks\share\CodeBlocks
2. После запуска программы выбираем Settings -> Environment -> View, ставим галочку «Internationalization» и выбираем из списка «Russian».
002.jpg
003.jpg

3. Перезапускаем программу CodeBlocks получаем руссификацию.
004.jpg

Русский язык успешно подключен к Code::Blocks версии 13.12.

Архив уже содержит структуру папки locale\ru_RU (для размещения в \CodeBlocks\share\CodeBlocks )

Состояние превода:
Messages: 2173
Translated: 2173 (100.0%)
Untranslated: 0 (0.0%)
Shared between Ubuntu and upstream: 2173 (100.0%)
Translated differently between Ubuntu and upstream: 0 (0.0%)
Only translated on this side: 0 (0.0%)

Похожие статьи