Resolved Fixed:
- EditorTweaks plugin: i18n fix to avoid crash when context-menu is shown; tiny fix for unix project-file
Hum... It seems not :(
But I've founded something :
In the translation file, if the translations of the words "&Edit" and "Edit" doesn't match (I mean, if the translation of the first one is not equal to the translation of the second one with the character "&" at the first position), C::B crashes while opening the contextual menu.
For example, the following "po" file works fine :
msgid ""
msgstr ""
"Project-Id-Version: codeblocks\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2010-08-24 20:51+0200\n"
"PO-Revision-Date: 2010-08-30 22:19+0100\n"
"Last-Translator: \n"
"Language-Team: <ll@li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
msgid "&Edit"
msgstr "&Edition"
msgid "Edit"
msgstr "Edition"
But this one makes C::B crash :
msgid ""
msgstr ""
"Project-Id-Version: codeblocks\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2010-08-24 20:51+0200\n"
"PO-Revision-Date: 2010-08-30 22:21+0100\n"
"Last-Translator: \n"
"Language-Team: <ll@li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
msgid "&Edit"
msgstr "&Edition1"
msgid "Edit"
msgstr "Edition2"
Don't know if it can help, but I hope so...
Regards
Xav'
Well, finally I think there is a bug in EditorTweaks.
At line 211 we find :
int i=menuBar->FindMenu(_("Edit"));
but the real menu here, I think, is &Edit, so it should be :
int i=menuBar->FindMenu(_("&Edit"));
I tested this both for standard C::B and i18n configuration. It works.
at line 221 the problem is not exactly the same (more subtle !) :
We have :
if(mm->GetLabel()==_("End-of-line mode"))
menu->Remove(mm);
but the real menu is, I think, &End-of-line mode.
But if I try :
if(mm->GetLabel()==_("&End-of-line mode"))
menu->Remove(mm);
it does not work as expected, probably because when the GetLabel is executed, the alt key is not down, so the label appears on the screen as "End-of-line mode" and not "End-of-line mode".
So, It's better to leave this part of code as it is now. May be to add both possibilities as :
if(mm->GetLabel()==_("End-of-line mode"))
menu->Remove(mm);
if(mm->GetLabel()==_("&End-of-line mode"))
menu->Remove(mm);
but is it useful ?
May be, there is an other way to recover the right menu before removing it here.
In fact, everything happens as is the answer (or result of the instruction) is the right one, so the code works, but the question (or request) is not exactly the right one ! That's my feeling.
gd_on
Well I am fairly new to linux and normally have used windows I have tried following the tutorial here http://wiki.codeblocks.org/index.php?title=Installing_Code::Blocks_from_source_on_Linux (http://wiki.codeblocks.org/index.php?title=Installing_Code::Blocks_from_source_on_Linux).
I can not seem to get it to work.
I am running a variant of ubuntu 10.04.
when I try to use the command which would install an older version.
sudo apt-get install code-blocks I get the following. So any help would be great.
admin@Keiths-laptop:/$ sudo apt-get install codeblocks
Reading package lists... Done
Building dependency tree
Reading state information... Done
Suggested packages:
wx-common codeblocks-contrib
The following NEW packages will be installed
codeblocks
0 upgraded, 1 newly installed, 0 to remove and 11 not upgraded.
Need to get 0B/4,195kB of archives.
After this operation, 10.9MB of additional disk space will be used.
y
(Reading database ... 211876 files and directories currently installed.)
Unpacking codeblocks (from .../codeblocks_8.02-0ubuntu4_i386.deb) ...
dpkg: error processing /var/cache/apt/archives/codeblocks_8.02-0ubuntu4_i386.deb (--unpack):
trying to overwrite '/usr/share/man/man1/codesnippets.1.gz', which is also in package codeblocks-contrib-common 0:10.05-0ubuntu1~lucid
dpkg-deb: subprocess paste killed by signal (Broken pipe)
Processing triggers for desktop-file-utils ...
Processing triggers for python-gmenu ...
Rebuilding /usr/share/applications/desktop.en_GB.utf8.cache...
Processing triggers for gnome-icon-theme ...
Processing triggers for man-db ...
Processing triggers for menu ...
Processing triggers for python-support ...
Errors were encountered while processing:
/var/cache/apt/archives/codeblocks_8.02-0ubuntu4_i386.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)