s5vi's Motorola p2k phone page
February 09, 2012, 09:49:48 am *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Over 30000 member ! Under heavy spammer attack ! Cleaning in progress !
V-6.0.0 with CDMA support is available now.
To become VIP: you can do it via PayPal: http://www.el-co.hu/p2k05/paypal.html
 
   Home   Help Login Register  
Pages: [1]   Go Down
  Print  
Author Topic: Insert Lng-file  (Read 3706 times)
0 Members and 1 Guest are viewing this topic.
Meiner Einer
Newbie
*
Offline Offline

Posts: 3


Email
« on: December 13, 2006, 09:46:01 pm »

Hi s5vi
i have ask ou for a .lng - file. I will insert it and make the Index.

Can you write: A file.open, a file-Read into a string-Array?
File can be used as simply Textfile with Tab for each Item

And please make (for me as a template) the use of the String-var instead of "text"

These 3 changing are needed for the lng-File. All another i will make it for you.
...Comander version 3.3.3

Its Ok?

Sorry, i self programming in Realbasic. My Time with assembler was 20 Years before (Z80-processor). I mus learned it new
Logged
s5vi
Administrator
Hero Member
*****
Offline Offline

Posts: 769



WWW Email
« Reply #1 on: December 13, 2006, 10:08:30 pm »

I will see the code tomorrow
yes i can load a text file into mem and index it, store indexes an array

need to rewrite "logstat" which is write into logwindow
now i pass an address to logstat , will pass an index
moreover need to change all invocation of logstat and change the address into an index

will you help me to do that (pairing text and index and make change logstat invocation) ?
in other words. i will code load lang file, index it into mem
you will provide the lang file and change logstat param
ps note we need english lang flie also

cheers
Logged

Meiner Einer
Newbie
*
Offline Offline

Posts: 3


Email
« Reply #2 on: December 13, 2006, 10:17:15 pm »

Yes, i will help you for this project.
The idea was, when you make an Update, all User must be new translate the code. better in this case is a lng-File - only changes in this must be updatet or new inserted.

And yes, a english lng-file as default is needed - i will list all items for you, which found in your code.
Logged
s5vi
Administrator
Hero Member
*****
Offline Offline

Posts: 769



WWW Email
« Reply #3 on: December 14, 2006, 01:26:51 pm »

There are some non-static, but computed strings also
eg: 664 files found in 667 milliseconds

i think the old code:
invoke logstat,addr sometext

must be replaced with like this:

invoke getstringadress,indexnumber ; this returns a text address in eax
invoke logstat,eax

so the computed values may remain as is.

Th easy way for me is: the langfile string is terminated crlf
just like a simple text file

CMD: Data write fail!
CMD: Answer wait timeout!
CMD: Data read fail!

the position of string is its index

eg: the 5th line is the 5th message.
sideeffect: inserting lines is forbidden.

i will make a test today
« Last Edit: December 14, 2006, 01:47:05 pm by s5vi » Logged

s5vi
Administrator
Hero Member
*****
Offline Offline

Posts: 769



WWW Email
« Reply #4 on: December 14, 2006, 02:09:41 pm »

MeinerEiner

http://www.el-co.hu/dl/langmod.zip

i inserted a few mod to use lang file
the first log message is printed by index=3
attached lang file prototype English.lng

Logged

Meiner Einer
Newbie
*
Offline Offline

Posts: 3


Email
« Reply #5 on: December 16, 2006, 10:51:28 am »

Thanks,
i have load this a i will make now a changing for all text. This will take a "little bit" of time.
Can i change text in Menu, Button and so on?
Logged
s5vi
Administrator
Hero Member
*****
Offline Offline

Posts: 769



WWW Email
« Reply #6 on: December 16, 2006, 01:58:23 pm »

menus and buttons need some extra work
these texts must be into the lang file also
i make  a code to change menu and button text which i read from langfile

i'm on the track, i need your help to make lang file (english and german) and an index table with the new index and old varaible name
eg:

12 msg_mem_fail
13 msg_task_error
... etc
with help of this index file i could change the code
thanks
Logged

Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.13 | SMF © 2006-2011, Simple Machines LLC Valid XHTML 1.0! Valid CSS!

Bad Behavior has blocked 118 access attempts in the last 7 days.



Google visited last this page January 31, 2012, 01:45:29 pm