Developer forums (C::B DEVELOPMENT STRICTLY!) > Plugins development
3 localization plugin patches
gd_on:
Here is a corrected version : no translation in comments.
Hope it's OK now.
gd_on
MortenMacFly:
--- Quote from: gd_on on September 20, 2013, 11:39:33 am ---Hope it's OK now.
--- End quote ---
I am not sure. The code you've patched is parses the output of a cvs command after calling the cvs executable. If you localise it, the parser is broken. I think in this file there really is nothing else to localise.
gd_on:
Sorry, but I don't understand what do you mean by "output of a cvs command".
On my PC, it works perfectly. Strings are translated as they should be and nothing seems to be broken: menus works as expected. Without this patch, they still appear in English.
gd_on
oBFusCATed:
He is talking about this change:
--- Code: ---@@ -1798,17 +1798,17 @@
VCSstate s;
while(1)
{
- if(state==_T("Up-to-date"))
+ if(state==_("Up-to-date"))
{
s.state=fvsVcUpToDate;
break;
}
- if(state==_T("Locally Modified"))
+ if(state==_("Locally Modified"))
{
s.state=fvsVcModified;
break;
}
- if(state==_T("Locally Added"))
+ if(state==_("Locally Added"))
{
s.state=fvsVcAdded;
break;
--- End code ---
Can you try without it?
gd_on:
OK, I see now. Effectively it's not correct.
The problem now is that when I create a patch with Tortoise svn, I have some problems: I can't relly revert to the previous svn version, the one completly in english.
I tried to revert to a previous svn number, to delete the file, ... each time my previous modifications are still there and I'm not sure that the patch is correct. Strange!
I miss something ! ???
But may be I have nothing to do now because my errors have been corrected !
gd_on
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version