issue-#110 use mapped strings for labels in all forms

Merged to the master branch
Zinn
Posts: 476
Joined: Tue Mar 25, 2014 5:56 pm
Location: Frankfurt am Main
Contact:

Re: issue-#110 use mapped strings for labels in all forms

Post by Zinn »

Josef Templ wrote: It is not possible to find out if some key/label is already in one of the Strings files.
This is a nightmare.
In my private BlackBox I introduced such a search a long time ago.
This would have been my second wish for a new feature after finishing with the CPC changes.
Josef, please can you send me your search procedure?

Currently I work on a module which compares to forms.

By the way another problem is a lot of fields are to short for display the translated language text.
- Helmut
User avatar
DGDanforth
Posts: 1061
Joined: Tue Sep 17, 2013 1:16 am
Location: Palo Alto, California, USA
Contact:

Re: issue-#110 use mapped strings for labels in all forms

Post by DGDanforth »

Zinn wrote: Josef, please can you send me your search procedure?

Currently I work on a module which compares to forms.

By the way another problem is a lot of fields are to short for display the translated language text.
- Helmut
Unless I misunderstand you can use the CPC version of GftSearchFiles.
It will search any kind of file, text, odc, data, for arbitrary string sequences.
You can search for multiple strings simulataneously. It builds a finite state machine
which looks only once at each character in a file and reports those files which contain the pattern.
You can then click on the hot link given to go straight to the location in the file with the pattern.
Sub directories can be anything not just Docu. Specify Rsrc and all Strings files will be searched.

-Doug
User avatar
Josef Templ
Posts: 2047
Joined: Tue Sep 17, 2013 6:50 am

Re: issue-#110 use mapped strings for labels in all forms

Post by Josef Templ »

Zinn wrote: Josef, please can you send me your search procedure?

Currently I work on a module which compares to forms.

By the way another problem is a lot of fields are to short for display the translated language text.
- Helmut
Before I put any work into this it should be clarified if search in resources is
accepted by the center.
I haven't used GftSearchFiles yet but will look into it.

In my private BB I use the "Control List" for transforming Forms to text first.
This can then be used for searching and also for comparing.

issue-#110:
I have enlarged many of the label fields, some buttons, etc. as long as it did not result
in a redesign of the dialog. Since there is no dynamic adaptation of the layout to the actual size,
any translation must be done such that the new text is not much longer than the english text.

- Josef
User avatar
Robert
Posts: 1024
Joined: Sat Sep 28, 2013 11:04 am
Location: Edinburgh, Scotland

Re: issue-#110 use mapped strings for labels in all forms

Post by Robert »

Josef Templ wrote:
Zinn wrote:Before I put any work into this it should be clarified ...
Yes, some Tool would be useful.

I don't really know what people are talking about. Are you thinking: "I am interested in a procedure, for example 'Dialog.Beep'. I want to know:

1 - What is the list of Forms that use this Link?
2 - Is this link used by a particular Form?
3 - Which Controls on a particular Form use it?"

Personally I have never needed 1. I have a personal Tool that answers question 2. I do not have, but would like, something to answer question 3.
Sometimes I get error messages such as Guard has wrong type, or Missing Command, and cannot easily find which Control is at fault in a busy Form
Ivan Denisov
Posts: 1700
Joined: Tue Sep 17, 2013 12:21 am
Location: Russia

Re: issue-#110 use mapped strings for labels in all forms

Post by Ivan Denisov »

I fixed several dialogs for them better fit Russian translation. I attaching the translation files if somebody interested.

Also I fix typeface in Menus files, and change some #XXX:Apply labels to #System:Apply for them to be correct translated.

The version obtained:
http://blackboxframework.org/unstable/i ... a1.472.zip
Attachments
Russian.zip
(31.23 KiB) Downloaded 207 times
User avatar
Josef Templ
Posts: 2047
Joined: Tue Sep 17, 2013 6:50 am

Re: issue-#110 use mapped strings for labels in all forms

Post by Josef Templ »

looks good in Russian.

According to CPC 1.7 rc6 change list number 72 I have added a missing key in Xhtml Strings.
In addition, the fix in StdViewSizer has been done as proposed in CPC 1.7 rc6.
This adds a few extra characters to the unit, which allows more freedom for translations of units (cm, inch).

@Ivan: In Russian.zip there is an english Text/Rsrc/Menus file in additon to Text/Rsrc/ru/Menus.

- Josef
Ivan Denisov
Posts: 1700
Joined: Tue Sep 17, 2013 12:21 am
Location: Russia

Re: issue-#110 use mapped strings for labels in all forms

Post by Ivan Denisov »

Josef Templ wrote:@Ivan: In Russian.zip there is an english Text/Rsrc/Menus file in additon to Text/Rsrc/ru/Menus.
Forgot to move it. Now fixed.
http://blackboxframework.org/unstable/i ... a1.475.zip
Attachments
Russian.zip
(29.24 KiB) Downloaded 206 times
Ivan Denisov
Posts: 1700
Joined: Tue Sep 17, 2013 12:21 am
Location: Russia

Re: issue-#110 use mapped strings for labels in all forms

Post by Ivan Denisov »

Would someone check for other language? If not, I will make the voting soon.
User avatar
Josef Templ
Posts: 2047
Joined: Tue Sep 17, 2013 6:50 am

Re: issue-#110 use mapped strings for labels in all forms

Post by Josef Templ »

missing string mappings added as proposed in CPC 1.7 rc6, change number 72.
User avatar
Josef Templ
Posts: 2047
Joined: Tue Sep 17, 2013 6:50 am

Re: issue-#110 use mapped strings for labels in all forms

Post by Josef Templ »

Robert wrote: I don't really know what people are talking about. Are you thinking: "I am interested in a procedure, for example 'Dialog.Beep'. I want to know:

1 - What is the list of Forms that use this Link?
2 - Is this link used by a particular Form?
3 - Which Controls on a particular Form use it?"

Personally I have never needed 1. I have a personal Tool that answers question 2. I do not have, but would like, something to answer question 3.
Sometimes I get error messages such as Guard has wrong type, or Missing Command, and cannot easily find which Control is at fault in a busy Form
Yes to 1.
Plus: What is the list of Forms that use this Label?
Plus: is there any key named xxx in any of the Strings files.

I have tried GftSearch but it does not find strings in forms. Seems to do an ASCII search on binary files
that fails with Unicode strings.

In addition: extending the Info-Source command for supporting mapped strings would be very welcome.
Very much like the > button right to Label in the inspector.
This would then allow easy navigation to the Strings file from the source code as well.

- Josef
Post Reply