Code::Blocks Forums

Developer forums (C::B DEVELOPMENT STRICTLY!) => Contributions to C::B => Topic started by: igorg on August 07, 2009, 08:15:34 am

Title: No russian localization in CB - something wrong?
Post by: igorg on August 07, 2009, 08:15:34 am
I see that according to
https://translations.launchpad.net/codeblocks/trunk/+pots/codeblocks/ru/+translate?start=0&batch=10&show=untranslated&field.alternative_language=&field.alternative_language-empty-marker=1&old_show=all
the Code:Blocks interface is 100% translated into Russian, so why is it not seen?
May be some help needed?
Build: Feb 28 2009, 04:19:46 - wx2.8.9 (Linux, unicode)  from Fedora 11 repository.
Title: Re: No russian localization in CB - something wrong?
Post by: thomas on August 07, 2009, 12:13:10 pm
I'm not using any localisation, so I wouldn't know for sure, but you probably need to download those ... what are they called, .po or .mo files from the launchpad site and put them into the right folder inside share.
To my knowledge, none of the translations are under source control (at least I've never seen one) and none are included in the binaries (luckily, in my opinion, the plethora of useless wizards and templates is bad enough already).
Title: Re: No russian localization in CB - something wrong?
Post by: igorg on August 07, 2009, 12:25:41 pm
I'm not using any localisation, so I wouldn't know for sure, but you probably need to download those ... what are they called, .po or .mo files from the launchpad site and put them into the right folder inside share.
To my knowledge, none of the translations are under source control (at least I've never seen one) and none are included in the binaries....
And why is this? I've downloaded yesterday Code::Blocks from SVN to be sure that I don't miss something, and, because there was no one
russian *.po file I've  prepared to begin translation. And today I see information that it is 100% translated and there are about 24 translators now!
So what is wrong? Is it supposed to generate RU-packs like it is done in Eclipse and in OpenOffice or what?
Title: Re: No russian localization in CB - something wrong?
Post by: GeO on August 07, 2009, 12:56:17 pm
Like Thomas said:
You have to download the codeblocks.mo file from launchpad(see attachment) and put it into
(Pathtoyournightly)\share\CodeBlocks\locale\ru_RU

[attachment deleted by admin]
Title: Re: No russian localization in CB - something wrong?
Post by: igorg on August 07, 2009, 01:47:02 pm
Thanks! But it doesn't work anyway - I've put this file where it belongs, but Code::Blocks is still in English. Perhaps it work only for the latest version from SVN? But translations have been done since 2006.
You cannot expect that all users would download codeblocks.mo files and copy them to /use/share/locale/ru/LC_MESSAGES.
Code::Blocks seems to be mature enough for not using hacker's approaches.
Title: Re: No russian localization in CB - something wrong?
Post by: Jenna on August 07, 2009, 02:02:46 pm
Are you able to chose the language in "Settings -> Environment -> View -> Internationalization".
Title: Re: No russian localization in CB - something wrong?
Post by: igorg on August 07, 2009, 02:09:26 pm
Yes, but only "available languages"-phrase can be chosen. Nevertheless, somehow (by magic) after restarting Code::Blocks shows only few words in main menu in Russian: "File" and "Help", "File->Save", "File->Exit", "Edit->Cancel", "Edit->Insert", "Help->About".
These seem to be the stock-items of menu.
Title: Re: No russian localization in CB - something wrong?
Post by: dk on August 22, 2009, 10:52:58 am
I've put codeblocks.mo with russian translation into /usr/share/codeblocks/locale/ru_RU/ and all works fine.

The only problem - russian translation on Launchpad is too old, the main menu has some untraslated strings.

Is it possible to update source .pot file at Launchpad for updating russian translation?
Title: Re: No russian localization in CB - something wrong?
Post by: igorg on August 24, 2009, 06:56:57 am
For this be possible there should be a non-100% state for russian translation on Lanchpad. It seems to me to be a rather bad idea when .po-files are translated and maintained outside of the CodeBlocks project. I, myself, was going to translate CB, when I've started to use it, but then, as I've found that it is 100% translated, I've had to stop it and I don't know now what can be done in this situation.
Title: Re: No russian localization in CB - something wrong?
Post by: dk on August 24, 2009, 07:21:29 am
Hello, Igor!

I've started to work under russian translation of C::B for ALT Linux, and firstly I've took translation from Launchpad.

And what I've discovered:

1. Translation on Launchpad is too old. After exporting all new strings from current nightly build, we have less then 50% of all strings translated.

2. Existing translation is too bad. There are a lot of misspells.

3. Translation was made by a group of people - as a result many terms are translated differently by different people. For example, there were three different forms of translation term "workspace".

4. It is impossible to continue translation at Launchpad, because source .pod file at Lauchpad is very old and there is no way to update it.

5. There is no support for translations in the C::B project, so we should make all translations outside the project.

Now I am working on impoving translation locally, using .po file and poedit software. You may download currect src.rpm of C::B for ALT Linux and extract codeblocks.po from it:
ftp://ftp.altlinux.ru/pub/distributions/ALTLinux/Sisyphus/files/SRPMS/codeblocks-8.02-alt16.src.rpm

If anybody want to help - I think, we should start new translation project.
Title: Re: No russian localization in CB - something wrong?
Post by: igorg on August 24, 2009, 08:06:22 am
Why cannot this be a part of CodeBlock project? Can those translated .po files be put in the CodeBlocks tree? I'm using Fedora, for example, so how any normal user is able to get russian translation just with the package from Fedora repository? Or, say, Suse, Mandriva and so on? Now there are hot days on Fedora Translation team before the alpha release and I'm busy for a while, but I would like to participate in CB translation.
Title: Re: No russian localization in CB - something wrong?
Post by: MortenMacFly on August 24, 2009, 08:40:30 am
Why cannot this be a part of CodeBlock project?
...because we wouldn't have such a corporate multi-user translation engine. We could not offer such services so translation would become a 1:1 relation which is not what we want.
Title: Re: No russian localization in CB - something wrong?
Post by: igorg on August 24, 2009, 09:10:36 am
Well, I've taken my part in translating Virtual Box, and also have translated Qucs (qucs.sourceforge.net) and Dvdisaster (www.dvdisaster.org), and there translations are made inside of those projects, and now they are pretty well localized.
Title: Re: No russian localization in CB - something wrong?
Post by: dk on August 24, 2009, 09:48:05 am
I'm using Fedora, for example, so how any normal user is able to get russian translation just with the package from Fedora repository?

Let's start C::B translation project outside C::B repository. So each C::B package maintainer will be able to add translation to the distribution.

Do you have any ideas how to organize such project?
Title: Re: No russian localization in CB - something wrong?
Post by: igorg on August 24, 2009, 09:59:15 am
Do you have any ideas how to organize such project?
No, it looks like a tremendous doing to me. It would be better if there been ru.po-entries in CB SVN repository. Then the translated files would be present in every package for any distribution. The file been translated should be locked while it is translated by someone, like it is done in Fedora Transifex.
Title: Re: No russian localization in CB - something wrong?
Post by: dk on August 24, 2009, 10:46:54 am
No, it looks like a tremendous doing to me. It would be better if there been ru.po-entries in CB SVN repository. Then the translated files would be present in every package for any distribution.

Yes, of course. But we see that the C::B team doesn't want to do this.

Quote
The file been translated should be locked while it is translated by someone, like it is done in Fedora Transifex.

Well, would you participate in the translation project if I will start it at my own svn or at the some web-based service?
Title: Re: No russian localization in CB - something wrong?
Post by: igorg on August 24, 2009, 11:54:22 am

Well, would you participate in the translation project if I will start it at my own svn or at the some web-based service?

Yes, I would.
:-)
Title: Re: No russian localization in CB - something wrong?
Post by: dk on August 25, 2009, 10:06:20 pm
I've create project at sourceforge: http://sourceforge.net/projects/codeblocks-ru

You may join to the project. I have created SVN repository to the project and put latest revision of codeblocs.po into the SVN.
Title: Re: No russian localization in CB - something wrong?
Post by: igorg on August 26, 2009, 01:35:26 pm
Good. How can I join the project?
Title: Re: No russian localization in CB - something wrong?
Post by: igorg on August 26, 2009, 01:46:25 pm
Good. How can I join the project?
:-)
Well, I've created my account there. Right now I'm somewhat busy with translations
before Fedora 12 alpha release, but I will begin soon.
Title: Re: No russian localization in CB - something wrong?
Post by: dk on August 26, 2009, 02:06:59 pm
Well, I've created my account there. Right now I'm somewhat busy with translations
before Fedora 12 alpha release, but I will begin soon.

I don't see you in the list of project developers, so probably you have not write access to the SVN.

There should be a command "Join" at the project homepage, or say your username and I will add you manually.

I am also has no much free time, so there will not be a lot of impovments at the project.
Title: Re: No russian localization in CB - something wrong?
Post by: igorg on August 27, 2009, 10:52:31 am
Hm, I've created a sourceforge account as igorbounov.
Where is "join" to the project, I don't see it?
Title: Re: No russian localization in CB - something wrong?
Post by: dk on August 27, 2009, 11:14:21 am
Hm, I've created a sourceforge account as igorbounov.
Where is "join" to the project, I don't see it?

Probably, there are no "Join" link at sourceforge. I've added you to the project manually.
Title: Re: No russian localization in CB - something wrong?
Post by: igorg on August 27, 2009, 11:49:35 am
Thanks!
Title: Re: No russian localization in CB - something wrong?
Post by: igorg on September 17, 2009, 06:46:59 am
Well, at last, I've started translation. I see, that you've done 3 commits. But I don't understand how I could log in to the project to commit my changes. I've left a message in the Open Discussion forum on http://sourceforge.net/projects/codeblocks-ru.