AkelPad Forum Index AkelPad
Support forum
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Plugins and Translation

 
Post new topic   Reply to topic    AkelPad Forum Index -> Language modules
View previous topic :: View next topic  
Author Message
MaxPaul



Joined: 16 Oct 2006
Posts: 9
Location: France

PostPosted: Thu Jan 04, 2007 8:11 am    Post subject: Plugins and Translation Reply with quote

Unlike AkelPad main program, plugins dll language is always english.
Do you plan to add language support?
Back to top
View user's profile Send private message
Instructor
Site Admin


Joined: 06 Jul 2006
Posts: 5396

PostPosted: Fri Jan 05, 2007 2:37 pm    Post subject: Reply with quote

Currently plugins are supported russian and english. One can recompile them to support some language and english. There is problem to hold ansi strings in different code pages.
Back to top
View user's profile Send private message Send e-mail
pvagner



Joined: 27 Jul 2008
Posts: 57
Location: slovakia

PostPosted: Fri Aug 01, 2008 9:33 am    Post subject: Reply with quote

Hello,
There is a possibility to include various language definitions within one resource file. Such language definition also include codepage information. Would it be possible to do the plugins translation this way and then based off of the AkelPad language load the appropriate language resource if it exists?
I have looked into some plugins and it seems you are manually setting dialog text so russian support is kind of hacked in.

Edit: Ah I figured out there is no real way of forcing windows to load a specific language resource other than setting thread locale. Under windows 95 this is going to be a pain.
Anyway I'd like to get some of the plugins translated. How have you managed to add those russian strings? Most of the plugins have Codepage set to 1252 and you was able to add russian text. Can you help please?
Back to top
View user's profile Send private message
Instructor
Site Admin


Joined: 06 Jul 2006
Posts: 5396

PostPosted: Sat Aug 02, 2008 2:13 am    Post subject: Reply with quote

It is hard to support the language that I don't know - only Russian and English will be supported - there too many plugins. One can add his native language by changing GetLangString function. Strings are saved as hex sequence obtained by HexSel plugin.
Back to top
View user's profile Send private message Send e-mail
pvagner



Joined: 27 Jul 2008
Posts: 57
Location: slovakia

PostPosted: Sat Aug 02, 2008 5:54 am    Post subject: Reply with quote

Yes I see but the strings are different hex sequences while in ansi and different when in unicode. Let's assume I have translated all the strings, they are in the akelpad current document which is UTF-8 encoded. What do I do next so I can properly copy and paste these into the GesString function?
Once I'll manage that can you officially include my changes or the only option is to distribute the plugins my-self?
Edit: Ok I have managed to create an slovak version. At this time it works for unicode only and ansi text falls back to english. If I can manage ansi support I am anyway unable to test it so I am really not sure on how to proceed. Still I'd be happy to post these translated plugins somewhere.
Back to top
View user's profile Send private message
pvagner



Joined: 27 Jul 2008
Posts: 57
Location: slovakia

PostPosted: Tue Aug 05, 2008 8:18 pm    Post subject: Reply with quote

Hello,
Sorry for the double posting. I have finally managed to replicate your way of doing things and now I have got english, russian and slovak translations built into some plugins. I think when such a plugin is used in ansi enviromment it will only work correctly on coresponding system e.g. russian translation will only work under russian system etc. So if the language strings are added by the right person runing appropriate version of windows we can hardcode more translations. I have tested my builds under windows XP and under windows 98 and it's all working fine there.
What's your position on this? Or have you some other plans for the future?
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    AkelPad Forum Index -> Language modules All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


SourceForge.net Logo Powered by phpBB © 2001, 2005 phpBB Group